]> git.saurik.com Git - wxWidgets.git/blame - configure
diable MDI for wxUNIV builds for now.
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
698dcdb6 3# From configure.in Id: configure.in
703e0a69
VZ
4
5
6
7
8
703e0a69
VZ
9
10
1e487827 11
1e487827 12
698dcdb6
VZ
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
8168de4c
VZ
38
39# Configure paths for GTK+
40# Owen Taylor 97-11-3
698dcdb6
VZ
41
42
43
44
698dcdb6
VZ
45
46
47# Guess values for system-dependent variables and create Makefiles.
48# Generated automatically using autoconf version 2.13
49# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50#
51# This configure script is free software; the Free Software Foundation
52# gives unlimited permission to copy, distribute and modify it.
53
54# Defaults:
55ac_help=
56ac_default_prefix=/usr/local
57# Any additions from configure.in:
58ac_help="$ac_help
8168de4c 59 --enable-gui use GUI classes"
1e6feb95 60ac_help="$ac_help
8168de4c 61 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
62ac_help="$ac_help
63 --with-gtk use GTK+"
64ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66ac_help="$ac_help
67 --with-mac use Mac OS X"
68ac_help="$ac_help
69 --with-wine use WINE"
70ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
1e6feb95 76ac_help="$ac_help
b3e8d00a 77 --with-mgl use SciTech MGL"
698dcdb6 78ac_help="$ac_help
8168de4c 79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 80ac_help="$ac_help
8168de4c 81 --with-libpng use libpng (PNG image format)"
698dcdb6 82ac_help="$ac_help
8168de4c 83 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 84ac_help="$ac_help
8168de4c 85 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 86ac_help="$ac_help
8168de4c 87 --with-freetype use freetype (font rasterizer)"
698dcdb6 88ac_help="$ac_help
8168de4c 89 --with-opengl use OpenGL (or Mesa)"
698dcdb6 90ac_help="$ac_help
8168de4c 91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
3e44f09d
VZ
92ac_help="$ac_help
93 --with-regex enable support for wxRegEx class"
698dcdb6 94ac_help="$ac_help
8168de4c 95 --with-zlib use zlib for LZW compression"
698dcdb6 96ac_help="$ac_help
8168de4c 97 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 98ac_help="$ac_help
8168de4c 99 --enable-shared create shared library code"
698dcdb6 100ac_help="$ac_help
3a922bb4 101 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 102ac_help="$ac_help
8168de4c 103 --enable-optimise create optimised code"
698dcdb6 104ac_help="$ac_help
8168de4c 105 --enable-debug same as debug_flag and debug_info"
698dcdb6 106ac_help="$ac_help
8168de4c 107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --enable-debug_info create code with debugging information"
698dcdb6 110ac_help="$ac_help
8168de4c 111 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 112ac_help="$ac_help
8168de4c 113 --enable-debug_cntxt use wxDebugContext"
698dcdb6 114ac_help="$ac_help
8168de4c 115 --enable-mem_tracing create code with memory tracing"
698dcdb6 116ac_help="$ac_help
8168de4c 117 --enable-profile create code with profiling information"
698dcdb6 118ac_help="$ac_help
8168de4c 119 --enable-no_rtti create code without RTTI information"
698dcdb6 120ac_help="$ac_help
b3e8d00a 121 --enable-no_exceptions create code without C++ exceptions handling"
698dcdb6 122ac_help="$ac_help
8168de4c 123 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 124ac_help="$ac_help
8168de4c 125 --enable-no_deps create code without dependency information"
54276ccf 126ac_help="$ac_help
b3e8d00a 127 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 128ac_help="$ac_help
b3e8d00a 129 --enable-compat22 enable wxWindows 2.2 compatibility"
698dcdb6 130ac_help="$ac_help
8168de4c 131 --enable-intl use internationalization system"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-config use wxConfig (and derived) classes"
698dcdb6 134ac_help="$ac_help
8168de4c 135 --enable-sockets use socket/network classes"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 138ac_help="$ac_help
8168de4c 139 --enable-cmdline use wxCmdLineParser class"
1e6feb95 140ac_help="$ac_help
8168de4c 141 --enable-datetime use wxDateTime class"
1e6feb95 142ac_help="$ac_help
8168de4c 143 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 144ac_help="$ac_help
8168de4c 145 --enable-stopwatch use wxStopWatch class"
1e6feb95 146ac_help="$ac_help
8168de4c 147 --enable-dialupman use dialup network classes"
698dcdb6 148ac_help="$ac_help
8168de4c 149 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 150ac_help="$ac_help
8168de4c 151 --enable-timer use wxTimer class"
698dcdb6 152ac_help="$ac_help
8168de4c 153 --enable-wave use wxWave class"
698dcdb6 154ac_help="$ac_help
8168de4c 155 --enable-fraction use wxFraction class"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-dynlib use wxLibrary class for DLL loading"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-longlong use wxLongLong class"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-geometry use geometry class"
698dcdb6 162ac_help="$ac_help
8168de4c 163 --enable-log use logging system"
698dcdb6 164ac_help="$ac_help
8168de4c 165 --enable-streams use wxStream etc classes"
698dcdb6 166ac_help="$ac_help
8168de4c 167 --enable-file use wxFile classes"
698dcdb6 168ac_help="$ac_help
8168de4c 169 --enable-ffile use wxFFile classes"
1e6feb95 170ac_help="$ac_help
8168de4c 171 --enable-textfile use wxTextFile classes"
698dcdb6 172ac_help="$ac_help
8168de4c 173 --enable-fontmap use font encodings conversion classes"
1e6feb95 174ac_help="$ac_help
8168de4c 175 --enable-unicode compile wxString with Unicode support"
698dcdb6 176ac_help="$ac_help
8168de4c 177 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 178ac_help="$ac_help
8168de4c 179 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 180ac_help="$ac_help
8168de4c 181 --enable-filesystem use virtual file systems classes"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-zipstream use wxZipInputStream"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 192ac_help="$ac_help
8168de4c 193 --enable-mimetypes use wxMimeTypesManager"
3e44f09d 194ac_help="$ac_help
b3e8d00a 195 --enable-sysoptions use wxSystemOptions"
1e6feb95 196ac_help="$ac_help
8168de4c 197 --enable-threads use threads"
698dcdb6 198ac_help="$ac_help
8168de4c 199 --enable-serial use class serialization"
698dcdb6 200ac_help="$ac_help
8168de4c 201 --enable-docview use document view architecture"
698dcdb6 202ac_help="$ac_help
3379ed37 203 --enable-help use help subsystem"
29fd3c0c
VS
204ac_help="$ac_help
205 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
206ac_help="$ac_help
207 --enable-html use wxHTML sub-library"
208ac_help="$ac_help
209 --enable-htmlhelp use wxHTML-based help"
698dcdb6 210ac_help="$ac_help
8168de4c 211 --enable-constraints use layout-constraints system"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-printarch use printing architecture"
698dcdb6 214ac_help="$ac_help
8168de4c 215 --enable-mdi use multiple document interface architecture"
698dcdb6 216ac_help="$ac_help
8168de4c 217 --enable-loggui use standard GUI logger"
1e6feb95 218ac_help="$ac_help
8168de4c 219 --enable-logwin use wxLogWindow"
1e6feb95 220ac_help="$ac_help
8168de4c 221 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 222ac_help="$ac_help
8168de4c 223 --enable-prologio use Prolog IO library"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-resources use wxWindows resources"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-clipboard use wxClipboard classes"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-dnd use Drag'n'Drop classes"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-metafile use win32 metafiles"
698dcdb6 234ac_help="$ac_help
24176f2c 235 --enable-treelayout use wxTreeLayout classes"
698dcdb6 236ac_help="$ac_help
8168de4c 237 --enable-controls use all usual controls"
698dcdb6 238ac_help="$ac_help
8168de4c 239 --enable-accel use accelerators"
698dcdb6 240ac_help="$ac_help
8168de4c 241 --enable-button use wxButton class"
698dcdb6 242ac_help="$ac_help
8168de4c 243 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 244ac_help="$ac_help
8168de4c 245 --enable-calendar use wxCalendarCtrl class"
1e6feb95 246ac_help="$ac_help
8168de4c 247 --enable-caret use wxCaret class"
1e6feb95 248ac_help="$ac_help
8168de4c 249 --enable-checkbox use wxCheckBox class"
698dcdb6 250ac_help="$ac_help
8168de4c 251 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 252ac_help="$ac_help
8168de4c 253 --enable-choice use wxChoice class"
698dcdb6 254ac_help="$ac_help
8168de4c 255 --enable-combobox use wxComboBox classes"
698dcdb6 256ac_help="$ac_help
8168de4c 257 --enable-gauge use wxGauge class"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-grid use wxGrid class"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-newgrid use new wxGrid class"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-imaglist use wxImageList class"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-listbox use wxListBox class"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-listctrl use wxListCtrl class"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-notebook use wxNotebook class"
24176f2c
GD
270ac_help="$ac_help
271 --enable-propsheet use wxPropertySheet class"
698dcdb6 272ac_help="$ac_help
8168de4c 273 --enable-radiobox use wxRadioBox class"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-radiobtn use wxRadioButton class"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-sash use wxSashWindow class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-slider use wxSlider class"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-spinbtn use wxSpinButton class"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-splitter use wxSplitterWindow class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-statbmp use wxStaticBitmap class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-statbox use wxStaticBox class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-statline use wxStaticLine class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-stattext use wxStaticText class"
1e6feb95 296ac_help="$ac_help
8168de4c 297 --enable-statusbar use wxStatusBar class"
698dcdb6 298ac_help="$ac_help
8168de4c 299 --enable-tabdialog use wxTabControl class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-textctrl use wxTextCtrl class"
1e6feb95 302ac_help="$ac_help
8168de4c 303 --enable-togglebtn use wxToggleButton class"
698dcdb6 304ac_help="$ac_help
8168de4c 305 --enable-toolbar use wxToolBar class"
698dcdb6 306ac_help="$ac_help
8168de4c 307 --enable-tbarnative use native wxToolBar class"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-treectrl use wxTreeCtrl class"
9f41d601
RR
312ac_help="$ac_help
313 --enable-popupwin use wxPopUpWindow class"
698dcdb6 314ac_help="$ac_help
b3e8d00a 315 --enable-commondlg use all common dialogs"
698dcdb6 316ac_help="$ac_help
8168de4c 317 --enable-choicedlg use wxChoiceDialog"
1e6feb95 318ac_help="$ac_help
8168de4c 319 --enable-coldlg use wxColourDialog"
1e6feb95 320ac_help="$ac_help
8168de4c 321 --enable-filedlg use wxFileDialog"
8db37e06
VZ
322ac_help="$ac_help
323 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 324ac_help="$ac_help
8168de4c 325 --enable-fontdlg use wxFontDialog"
1e6feb95 326ac_help="$ac_help
8168de4c 327 --enable-dirdlg use wxDirDialog"
698dcdb6 328ac_help="$ac_help
8168de4c 329 --enable-msgdlg use wxMessageDialog"
1e6feb95 330ac_help="$ac_help
8168de4c 331 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
332ac_help="$ac_help
333 --enable-splash use wxSplashScreen"
1e6feb95 334ac_help="$ac_help
8168de4c 335 --enable-textdlg use wxTextDialog"
698dcdb6 336ac_help="$ac_help
8168de4c 337 --enable-tipdlg use startup tips"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
340ac_help="$ac_help
341 --enable-wizarddlg use wxWizard"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 344ac_help="$ac_help
8168de4c 345 --enable-miniframe use wxMiniFrame class"
698dcdb6 346ac_help="$ac_help
8168de4c 347 --enable-tooltips use wxToolTip class"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-splines use spline drawing code"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-validators use wxValidator and derived classes"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-busyinfo use wxBusyInfo"
698dcdb6 354ac_help="$ac_help
b3e8d00a 355 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 356ac_help="$ac_help
8168de4c 357 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
358ac_help="$ac_help
359 --enable-dragimage use wxDragImage"
edae8572
VZ
360ac_help="$ac_help
361 --enable-palette use wxPalette class"
1e6feb95 362ac_help="$ac_help
8168de4c 363 --enable-image use wxImage class"
698dcdb6 364ac_help="$ac_help
8168de4c 365 --enable-gif use gif images (GIF file format)"
698dcdb6 366ac_help="$ac_help
8168de4c 367 --enable-pcx use pcx images (PCX file format)"
698dcdb6 368ac_help="$ac_help
8168de4c 369 --enable-pnm use pnm images (PNM file format)"
698dcdb6 370ac_help="$ac_help
8168de4c 371 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
372ac_help="$ac_help
373 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
374ac_help="$ac_help
375 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
376ac_help="$ac_help
377 --disable-gtktest Do not try to compile and run a test GTK program"
378ac_help="$ac_help
379 --with-x use the X Window System"
10f2d63a
VZ
380
381# Initialize some variables set by options.
382# The variables have the same names as the options, with
383# dashes changed to underlines.
698dcdb6
VZ
384build=NONE
385cache_file=./config.cache
10f2d63a 386exec_prefix=NONE
698dcdb6 387host=NONE
10f2d63a 388no_create=
698dcdb6 389nonopt=NONE
10f2d63a
VZ
390no_recursion=
391prefix=NONE
392program_prefix=NONE
393program_suffix=NONE
394program_transform_name=s,x,x,
395silent=
396site=
397srcdir=
698dcdb6 398target=NONE
10f2d63a
VZ
399verbose=
400x_includes=NONE
401x_libraries=NONE
402bindir='${exec_prefix}/bin'
403sbindir='${exec_prefix}/sbin'
404libexecdir='${exec_prefix}/libexec'
405datadir='${prefix}/share'
406sysconfdir='${prefix}/etc'
407sharedstatedir='${prefix}/com'
408localstatedir='${prefix}/var'
409libdir='${exec_prefix}/lib'
410includedir='${prefix}/include'
411oldincludedir='/usr/include'
412infodir='${prefix}/info'
413mandir='${prefix}/man'
414
698dcdb6
VZ
415# Initialize some other variables.
416subdirs=
417MFLAGS= MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419# Maximum number of lines to put in a shell here document.
420ac_max_here_lines=12
10f2d63a
VZ
421
422ac_prev=
423for ac_option
424do
698dcdb6 425
10f2d63a
VZ
426 # If the previous option needs an argument, assign it.
427 if test -n "$ac_prev"; then
428 eval "$ac_prev=\$ac_option"
429 ac_prev=
430 continue
431 fi
432
698dcdb6
VZ
433 case "$ac_option" in
434 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
435 *) ac_optarg= ;;
436 esac
10f2d63a
VZ
437
438 # Accept the important Cygnus configure options, so we can diagnose typos.
439
698dcdb6 440 case "$ac_option" in
10f2d63a
VZ
441
442 -bindir | --bindir | --bindi | --bind | --bin | --bi)
443 ac_prev=bindir ;;
444 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 445 bindir="$ac_optarg" ;;
10f2d63a
VZ
446
447 -build | --build | --buil | --bui | --bu)
698dcdb6 448 ac_prev=build ;;
10f2d63a 449 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 450 build="$ac_optarg" ;;
10f2d63a
VZ
451
452 -cache-file | --cache-file | --cache-fil | --cache-fi \
453 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
454 ac_prev=cache_file ;;
455 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
456 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 457 cache_file="$ac_optarg" ;;
10f2d63a
VZ
458
459 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
460 ac_prev=datadir ;;
461 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
462 | --da=*)
698dcdb6 463 datadir="$ac_optarg" ;;
10f2d63a
VZ
464
465 -disable-* | --disable-*)
698dcdb6 466 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 467 # Reject names that are not valid shell variable names.
698dcdb6
VZ
468 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
469 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
470 fi
471 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
472 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
473
474 -enable-* | --enable-*)
698dcdb6 475 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 476 # Reject names that are not valid shell variable names.
698dcdb6
VZ
477 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
478 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
479 fi
480 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
481 case "$ac_option" in
482 *=*) ;;
10f2d63a
VZ
483 *) ac_optarg=yes ;;
484 esac
698dcdb6 485 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
486
487 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
488 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
489 | --exec | --exe | --ex)
490 ac_prev=exec_prefix ;;
491 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
492 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
493 | --exec=* | --exe=* | --ex=*)
698dcdb6 494 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
495
496 -gas | --gas | --ga | --g)
497 # Obsolete; use --with-gas.
498 with_gas=yes ;;
499
698dcdb6
VZ
500 -help | --help | --hel | --he)
501 # Omit some internal or obsolete options to make the list less imposing.
502 # This message is too long to be a string in the A/UX 3.1 sh.
503 cat << EOF
504Usage: configure [options] [host]
505Options: [defaults in brackets after descriptions]
506Configuration:
507 --cache-file=FILE cache test results in FILE
508 --help print this message
509 --no-create do not create output files
510 --quiet, --silent do not print \`checking...' messages
511 --version print the version of autoconf that created configure
512Directory and file names:
513 --prefix=PREFIX install architecture-independent files in PREFIX
514 [$ac_default_prefix]
515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
516 [same as prefix]
517 --bindir=DIR user executables in DIR [EPREFIX/bin]
518 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
519 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
520 --datadir=DIR read-only architecture-independent data in DIR
521 [PREFIX/share]
522 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
523 --sharedstatedir=DIR modifiable architecture-independent data in DIR
524 [PREFIX/com]
525 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
526 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
527 --includedir=DIR C header files in DIR [PREFIX/include]
528 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
529 --infodir=DIR info documentation in DIR [PREFIX/info]
530 --mandir=DIR man documentation in DIR [PREFIX/man]
531 --srcdir=DIR find the sources in DIR [configure dir or ..]
532 --program-prefix=PREFIX prepend PREFIX to installed program names
533 --program-suffix=SUFFIX append SUFFIX to installed program names
534 --program-transform-name=PROGRAM
535 run sed PROGRAM on installed program names
536EOF
537 cat << EOF
538Host type:
539 --build=BUILD configure for building on BUILD [BUILD=HOST]
540 --host=HOST configure for HOST [guessed]
541 --target=TARGET configure for TARGET [TARGET=HOST]
542Features and packages:
543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
547 --x-includes=DIR X include files are in DIR
548 --x-libraries=DIR X library files are in DIR
549EOF
550 if test -n "$ac_help"; then
551 echo "--enable and --with options recognized:$ac_help"
552 fi
553 exit 0 ;;
10f2d63a
VZ
554
555 -host | --host | --hos | --ho)
698dcdb6 556 ac_prev=host ;;
10f2d63a 557 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 558 host="$ac_optarg" ;;
10f2d63a
VZ
559
560 -includedir | --includedir | --includedi | --included | --include \
561 | --includ | --inclu | --incl | --inc)
562 ac_prev=includedir ;;
563 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
564 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 565 includedir="$ac_optarg" ;;
10f2d63a
VZ
566
567 -infodir | --infodir | --infodi | --infod | --info | --inf)
568 ac_prev=infodir ;;
569 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 570 infodir="$ac_optarg" ;;
10f2d63a
VZ
571
572 -libdir | --libdir | --libdi | --libd)
573 ac_prev=libdir ;;
574 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 575 libdir="$ac_optarg" ;;
10f2d63a
VZ
576
577 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
578 | --libexe | --libex | --libe)
579 ac_prev=libexecdir ;;
580 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
581 | --libexe=* | --libex=* | --libe=*)
698dcdb6 582 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
583
584 -localstatedir | --localstatedir | --localstatedi | --localstated \
585 | --localstate | --localstat | --localsta | --localst \
586 | --locals | --local | --loca | --loc | --lo)
587 ac_prev=localstatedir ;;
588 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
589 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
590 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 591 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
592
593 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
594 ac_prev=mandir ;;
595 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 596 mandir="$ac_optarg" ;;
10f2d63a
VZ
597
598 -nfp | --nfp | --nf)
599 # Obsolete; use --without-fp.
600 with_fp=no ;;
601
602 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
603 | --no-cr | --no-c)
604 no_create=yes ;;
605
606 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
607 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
608 no_recursion=yes ;;
609
610 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
611 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
612 | --oldin | --oldi | --old | --ol | --o)
613 ac_prev=oldincludedir ;;
614 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
615 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
616 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 617 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
618
619 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
620 ac_prev=prefix ;;
621 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 622 prefix="$ac_optarg" ;;
10f2d63a
VZ
623
624 -program-prefix | --program-prefix | --program-prefi | --program-pref \
625 | --program-pre | --program-pr | --program-p)
626 ac_prev=program_prefix ;;
627 -program-prefix=* | --program-prefix=* | --program-prefi=* \
628 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 629 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
630
631 -program-suffix | --program-suffix | --program-suffi | --program-suff \
632 | --program-suf | --program-su | --program-s)
633 ac_prev=program_suffix ;;
634 -program-suffix=* | --program-suffix=* | --program-suffi=* \
635 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 636 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
637
638 -program-transform-name | --program-transform-name \
639 | --program-transform-nam | --program-transform-na \
640 | --program-transform-n | --program-transform- \
641 | --program-transform | --program-transfor \
642 | --program-transfo | --program-transf \
643 | --program-trans | --program-tran \
644 | --progr-tra | --program-tr | --program-t)
645 ac_prev=program_transform_name ;;
646 -program-transform-name=* | --program-transform-name=* \
647 | --program-transform-nam=* | --program-transform-na=* \
648 | --program-transform-n=* | --program-transform-=* \
649 | --program-transform=* | --program-transfor=* \
650 | --program-transfo=* | --program-transf=* \
651 | --program-trans=* | --program-tran=* \
652 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 653 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
654
655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
656 | -silent | --silent | --silen | --sile | --sil)
657 silent=yes ;;
658
659 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
660 ac_prev=sbindir ;;
661 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
662 | --sbi=* | --sb=*)
698dcdb6 663 sbindir="$ac_optarg" ;;
10f2d63a
VZ
664
665 -sharedstatedir | --sharedstatedir | --sharedstatedi \
666 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
667 | --sharedst | --shareds | --shared | --share | --shar \
668 | --sha | --sh)
669 ac_prev=sharedstatedir ;;
670 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
671 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
672 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
673 | --sha=* | --sh=*)
698dcdb6 674 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
675
676 -site | --site | --sit)
677 ac_prev=site ;;
678 -site=* | --site=* | --sit=*)
698dcdb6 679 site="$ac_optarg" ;;
10f2d63a
VZ
680
681 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
682 ac_prev=srcdir ;;
683 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 684 srcdir="$ac_optarg" ;;
10f2d63a
VZ
685
686 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
687 | --syscon | --sysco | --sysc | --sys | --sy)
688 ac_prev=sysconfdir ;;
689 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
690 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 691 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
692
693 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 694 ac_prev=target ;;
10f2d63a 695 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 696 target="$ac_optarg" ;;
10f2d63a
VZ
697
698 -v | -verbose | --verbose | --verbos | --verbo | --verb)
699 verbose=yes ;;
700
698dcdb6
VZ
701 -version | --version | --versio | --versi | --vers)
702 echo "configure generated by autoconf version 2.13"
703 exit 0 ;;
10f2d63a
VZ
704
705 -with-* | --with-*)
698dcdb6 706 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 707 # Reject names that are not valid shell variable names.
698dcdb6
VZ
708 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
709 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
710 fi
10f2d63a 711 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
712 case "$ac_option" in
713 *=*) ;;
10f2d63a
VZ
714 *) ac_optarg=yes ;;
715 esac
698dcdb6 716 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
717
718 -without-* | --without-*)
698dcdb6 719 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 720 # Reject names that are not valid shell variable names.
698dcdb6
VZ
721 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
722 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
723 fi
724 ac_package=`echo $ac_package| sed 's/-/_/g'`
725 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
726
727 --x)
728 # Obsolete; use --with-x.
729 with_x=yes ;;
730
731 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
732 | --x-incl | --x-inc | --x-in | --x-i)
733 ac_prev=x_includes ;;
734 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
735 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 736 x_includes="$ac_optarg" ;;
10f2d63a
VZ
737
738 -x-libraries | --x-libraries | --x-librarie | --x-librari \
739 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
740 ac_prev=x_libraries ;;
741 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
742 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 743 x_libraries="$ac_optarg" ;;
10f2d63a 744
698dcdb6 745 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
746 ;;
747
748 *)
698dcdb6
VZ
749 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
750 echo "configure: warning: $ac_option: invalid host type" 1>&2
751 fi
752 if test "x$nonopt" != xNONE; then
753 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
754 fi
755 nonopt="$ac_option"
10f2d63a
VZ
756 ;;
757
758 esac
759done
760
761if test -n "$ac_prev"; then
698dcdb6
VZ
762 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
763fi
764
765trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
766
767# File descriptor usage:
768# 0 standard input
769# 1 file creation
770# 2 errors and warnings
771# 3 some systems may open it to /dev/tty
772# 4 used on the Kubota Titan
773# 6 checking for... messages and results
774# 5 compiler messages saved in config.log
775if test "$silent" = yes; then
776 exec 6>/dev/null
777else
778 exec 6>&1
10f2d63a 779fi
698dcdb6
VZ
780exec 5>./config.log
781
782echo "\
783This file contains any messages produced by compilers while
784running configure, to aid debugging if configure makes a mistake.
785" 1>&5
10f2d63a 786
698dcdb6
VZ
787# Strip out --no-create and --no-recursion so they do not pile up.
788# Also quote any args containing shell metacharacters.
789ac_configure_args=
790for ac_arg
10f2d63a 791do
698dcdb6
VZ
792 case "$ac_arg" in
793 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
794 | --no-cr | --no-c) ;;
795 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
796 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
797 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
798 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
799 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
800 esac
801done
802
698dcdb6
VZ
803# NLS nuisances.
804# Only set these to C if already set. These must not be set unconditionally
805# because not all systems understand e.g. LANG=C (notably SCO).
806# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
807# Non-C LC_CTYPE values break the ctype check.
808if test "${LANG+set}" = set; then LANG=C; export LANG; fi
809if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
810if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
811if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 812
698dcdb6
VZ
813# confdefs.h avoids OS command line length limits that DEFS can exceed.
814rm -rf conftest* confdefs.h
815# AIX cpp loses on an empty file, so make sure it contains at least a newline.
816echo > confdefs.h
10f2d63a 817
698dcdb6
VZ
818# A filename unique to this package, relative to the directory that
819# configure is in, which we can look for to find out if srcdir is correct.
820ac_unique_file=wx-config.in
10f2d63a
VZ
821
822# Find the source files, if location was not specified.
823if test -z "$srcdir"; then
824 ac_srcdir_defaulted=yes
825 # Try the directory containing this script, then its parent.
826 ac_prog=$0
698dcdb6 827 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
828 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
829 srcdir=$ac_confdir
830 if test ! -r $srcdir/$ac_unique_file; then
831 srcdir=..
832 fi
833else
834 ac_srcdir_defaulted=no
835fi
836if test ! -r $srcdir/$ac_unique_file; then
837 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 838 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 839 else
698dcdb6 840 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
841 fi
842fi
698dcdb6 843srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
844
845# Prefer explicitly selected file to automatically selected ones.
846if test -z "$CONFIG_SITE"; then
847 if test "x$prefix" != xNONE; then
848 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
849 else
850 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
851 fi
852fi
853for ac_site_file in $CONFIG_SITE; do
854 if test -r "$ac_site_file"; then
698dcdb6 855 echo "loading site script $ac_site_file"
10f2d63a
VZ
856 . "$ac_site_file"
857 fi
858done
859
860if test -r "$cache_file"; then
698dcdb6
VZ
861 echo "loading cache $cache_file"
862 . $cache_file
10f2d63a 863else
698dcdb6
VZ
864 echo "creating cache $cache_file"
865 > $cache_file
10f2d63a
VZ
866fi
867
868ac_ext=c
698dcdb6 869# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 870ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
871ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
872ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
873cross_compiling=$ac_cv_prog_cc_cross
874
875ac_exeext=
876ac_objext=o
877if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
878 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
879 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
880 ac_n= ac_c='
881' ac_t=' '
882 else
883 ac_n=-n ac_c= ac_t=
884 fi
10f2d63a 885else
698dcdb6 886 ac_n= ac_c='\c' ac_t=
10f2d63a 887fi
698dcdb6
VZ
888
889
10f2d63a 890
7c66a493
VZ
891ac_aux_dir=
892for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
893 if test -f $ac_dir/install-sh; then
894 ac_aux_dir=$ac_dir
895 ac_install_sh="$ac_aux_dir/install-sh -c"
896 break
897 elif test -f $ac_dir/install.sh; then
898 ac_aux_dir=$ac_dir
899 ac_install_sh="$ac_aux_dir/install.sh -c"
900 break
901 fi
902done
903if test -z "$ac_aux_dir"; then
698dcdb6 904 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 905fi
698dcdb6
VZ
906ac_config_guess=$ac_aux_dir/config.guess
907ac_config_sub=$ac_aux_dir/config.sub
908ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 909
698dcdb6
VZ
910
911# Do some error checking and defaulting for the host and target type.
912# The inputs are:
913# configure --host=HOST --target=TARGET --build=BUILD NONOPT
914#
915# The rules are:
916# 1. You are not allowed to specify --host, --target, and nonopt at the
917# same time.
918# 2. Host defaults to nonopt.
919# 3. If nonopt is not specified, then host defaults to the current host,
920# as determined by config.guess.
921# 4. Target and build default to nonopt.
922# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
923
924# The aliases save the names the user supplied, while $host etc.
925# will get canonicalized.
698dcdb6
VZ
926case $host---$target---$nonopt in
927NONE---*---* | *---NONE---* | *---*---NONE) ;;
928*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
929esac
930
931
932# Make sure we can run config.sub.
933if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
934else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
935fi
936
937echo $ac_n "checking host system type""... $ac_c" 1>&6
edae8572 938echo "configure:939: checking host system type" >&5
698dcdb6
VZ
939
940host_alias=$host
941case "$host_alias" in
942NONE)
943 case $nonopt in
944 NONE)
945 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
946 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
947 fi ;;
948 *) host_alias=$nonopt ;;
949 esac ;;
950esac
951
952host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
953host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
954host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
955host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
956echo "$ac_t""$host" 1>&6
957
958echo $ac_n "checking target system type""... $ac_c" 1>&6
edae8572 959echo "configure:960: checking target system type" >&5
698dcdb6
VZ
960
961target_alias=$target
962case "$target_alias" in
963NONE)
964 case $nonopt in
965 NONE) target_alias=$host_alias ;;
966 *) target_alias=$nonopt ;;
967 esac ;;
968esac
969
970target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
971target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
972target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
973target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
974echo "$ac_t""$target" 1>&6
975
976echo $ac_n "checking build system type""... $ac_c" 1>&6
edae8572 977echo "configure:978: checking build system type" >&5
698dcdb6
VZ
978
979build_alias=$build
980case "$build_alias" in
981NONE)
982 case $nonopt in
983 NONE) build_alias=$host_alias ;;
984 *) build_alias=$nonopt ;;
985 esac ;;
986esac
987
988build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
989build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
990build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
991build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
992echo "$ac_t""$build" 1>&6
993
994test "$host_alias" != "$target_alias" &&
7c66a493
VZ
995 test "$program_prefix$program_suffix$program_transform_name" = \
996 NONENONEs,x,x, &&
997 program_prefix=${target_alias}-
998
698dcdb6
VZ
999
1000
10f2d63a 1001WX_MAJOR_VERSION_NUMBER=2
37d403aa 1002WX_MINOR_VERSION_NUMBER=3
6c01ec02 1003WX_RELEASE_NUMBER=2
10f2d63a 1004
10f2d63a 1005WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1006WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1007
6c01ec02 1008WX_CURRENT=1
6426998c
RL
1009WX_REVISION=0
1010WX_AGE=0
1011
698dcdb6
VZ
1012
1013
10f2d63a
VZ
1014USE_UNIX=1
1015USE_WIN32=0
b12915c1 1016USE_BEOS=0
1216f52d 1017USE_MAC=0
b12915c1 1018
10f2d63a
VZ
1019USE_LINUX=
1020USE_SGI=
1021USE_HPUX=
1022USE_SYSV=
1023USE_SVR4=
1024USE_AIX=
1025USE_SUN=
1026USE_SOLARIS=
1027USE_SUNOS=
1028USE_ALPHA=
1029USE_OSF=
1030USE_BSD=
f11bdd03 1031USE_DARWIN=
10f2d63a 1032USE_FREEBSD=
95c8801c 1033USE_OPENBSD=
f6bcfd97 1034USE_NETBSD=
10f2d63a
VZ
1035USE_VMS=
1036USE_ULTRIX=
1037USE_CYGWIN=
1038USE_MINGW=
1039USE_DATA_GENERAL=
1040
ab9b9eab
VZ
1041NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1042
1e6feb95 1043ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
10f2d63a
VZ
1044
1045DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1046DEFAULT_wxUSE_MAC=0
1047DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1048DEFAULT_wxUSE_MOTIF=0
1049DEFAULT_wxUSE_MSW=0
e07802fc 1050DEFAULT_wxUSE_PM=0
1e6feb95 1051DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1052
1053DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1054DEFAULT_DEFAULT_wxUSE_MAC=0
1055DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1056DEFAULT_DEFAULT_wxUSE_MOTIF=0
1057DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1058DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1059DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1060
d6a55c4b 1061PROGRAM_EXT=
3a922bb4 1062SO_SUFFIX=so
d6a55c4b 1063
10f2d63a
VZ
1064case "${host}" in
1065 *-hp-hpux* )
1066 USE_HPUX=1
1067 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1068 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1069 SO_SUFFIX=sl
698dcdb6 1070 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1071#define __HPUX__ 1
1072EOF
1073
1074 ;;
1075 *-*-linux* )
1076 USE_LINUX=1
698dcdb6 1077 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1078#define __LINUX__ 1
1079EOF
1080
1081 TMP=`uname -m`
1082 if test "x$TMP" = "xalpha"; then
1083 USE_ALPHA=1
698dcdb6 1084 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1085#define __ALPHA__ 1
1086EOF
1087
1088 fi
1089 DEFAULT_DEFAULT_wxUSE_GTK=1
1090 ;;
1091 *-*-irix5* | *-*-irix6* )
1092 USE_SGI=1
1093 USE_SVR4=1
698dcdb6 1094 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1095#define __SGI__ 1
1096EOF
1097
698dcdb6 1098 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1099#define __SVR4__ 1
1100EOF
1101
1102 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1103 ;;
1104 *-*-solaris2* )
1105 USE_SUN=1
1106 USE_SOLARIS=1
1107 USE_SVR4=1
698dcdb6 1108 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1109#define __SUN__ 1
1110EOF
1111
698dcdb6 1112 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1113#define __SOLARIS__ 1
1114EOF
1115
698dcdb6 1116 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1117#define __SVR4__ 1
1118EOF
1119
1120 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1121 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1122 ;;
1123 *-*-sunos4* )
1124 USE_SUN=1
1125 USE_SUNOS=1
1126 USE_BSD=1
698dcdb6 1127 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1128#define __SUN__ 1
1129EOF
1130
698dcdb6 1131 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1132#define __SUNOS__ 1
1133EOF
1134
698dcdb6 1135 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1136#define __BSD__ 1
1137EOF
1138
1139 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1140 ;;
f6bcfd97 1141 *-*-freebsd*)
10f2d63a
VZ
1142 USE_BSD=1
1143 USE_FREEBSD=1
698dcdb6 1144 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1145#define __FREEBSD__ 1
1146EOF
1147
698dcdb6 1148 cat >> confdefs.h <<\EOF
10f2d63a 1149#define __BSD__ 1
95c8801c
VS
1150EOF
1151
1152 DEFAULT_DEFAULT_wxUSE_GTK=1
1153 ;;
1154 *-*-openbsd*)
1155 USE_BSD=1
1156 USE_OPENBSD=1
698dcdb6 1157 cat >> confdefs.h <<\EOF
95c8801c
VS
1158#define __FREEBSD__ 1
1159EOF
1160
698dcdb6 1161 cat >> confdefs.h <<\EOF
95c8801c 1162#define __OPENBSD__ 1
f6bcfd97
BP
1163EOF
1164
1165 DEFAULT_DEFAULT_wxUSE_GTK=1
1166 ;;
1167 *-*-netbsd*)
1168 USE_BSD=1
1169 USE_NETBSD=1
698dcdb6 1170 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1171#define __FREEBSD__ 1
1172EOF
1173
698dcdb6 1174 cat >> confdefs.h <<\EOF
f6bcfd97 1175#define __NETBSD__ 1
10f2d63a
VZ
1176EOF
1177
1178 DEFAULT_DEFAULT_wxUSE_GTK=1
1179 ;;
1180 *-*-osf* )
1181 USE_ALPHA=1
1182 USE_OSF=1
698dcdb6 1183 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1184#define __ALPHA__ 1
1185EOF
1186
698dcdb6 1187 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1188#define __OSF__ 1
1189EOF
1190
1191 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1192 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1193 ;;
1194 *-*-dgux5* )
1195 USE_ALPHA=1
1196 USE_SVR4=1
698dcdb6 1197 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1198#define __ALPHA__ 1
1199EOF
1200
698dcdb6 1201 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1202#define __SVR4__ 1
1203EOF
1204
1205 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1206 ;;
1207 *-*-sysv5* )
1208 USE_SYSV=1
1209 USE_SVR4=1
698dcdb6 1210 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1211#define __SYSV__ 1
1212EOF
1213
698dcdb6 1214 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1215#define __SVR4__ 1
1216EOF
1217
1218 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1219 ;;
1220 *-*-aix* )
1221 USE_AIX=1
1222 USE_SYSV=1
1223 USE_SVR4=1
698dcdb6 1224 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1225#define __AIX__ 1
1226EOF
1227
698dcdb6 1228 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1229#define __SYSV__ 1
1230EOF
1231
698dcdb6 1232 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1233#define __SVR4__ 1
1234EOF
1235
1236 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1237 ;;
1238
1c8183e2 1239 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1240 USE_UNIX=0
1241 USE_WIN32=1
3a922bb4 1242 SO_SUFFIX=dll
698dcdb6 1243 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1244#define __WIN32__ 1
1245EOF
1246
698dcdb6 1247 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1248#define __WIN95__ 1
1249EOF
1250
698dcdb6 1251 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1252#define __WINDOWS__ 1
1253EOF
1254
698dcdb6 1255 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1256#define __GNUWIN32__ 1
1257EOF
1258
698dcdb6 1259 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1260#define STRICT 1
1261EOF
1262
698dcdb6 1263 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1264#define WINVER 0x0400
1265EOF
1266
cf27ef00 1267 PROGRAM_EXT=".exe"
7b7a7637 1268 RESCOMP=windres
10f2d63a
VZ
1269 DEFAULT_DEFAULT_wxUSE_MSW=1
1270 ;;
1271
1272 *-pc-os2_emx )
698dcdb6 1273 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1274#define __EMX__ 1
1275EOF
1276
cf27ef00 1277 PROGRAM_EXT=".exe"
e07802fc 1278 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1279 ;;
1280
d08b457b
GD
1281 powerpc-*-darwin* )
1282 USE_BSD=1
f11bdd03 1283 USE_DARWIN=1
3a922bb4 1284 SO_SUFFIX=dylib
698dcdb6 1285 cat >> confdefs.h <<\EOF
f11bdd03 1286#define __BSD__ 1
b4085ce6
GD
1287EOF
1288
698dcdb6 1289 cat >> confdefs.h <<\EOF
f11bdd03 1290#define __DARWIN__ 1
d08b457b
GD
1291EOF
1292
1293 cat >> confdefs.h <<\EOF
1294#define __POWERPC__ 1
b4085ce6
GD
1295EOF
1296
1297 DEFAULT_DEFAULT_wxUSE_MAC=1
1298 ;;
1299
b12915c1
VZ
1300 *-*-beos* )
1301 USE_BEOS=1
698dcdb6 1302 cat >> confdefs.h <<\EOF
b12915c1
VZ
1303#define __BEOS__ 1
1304EOF
1305
1306 ;;
1307
10f2d63a 1308 *)
698dcdb6 1309 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1310esac
1311
1312if test "$USE_UNIX" = 1 ; then
b12915c1 1313 wxUSE_UNIX=yes
698dcdb6 1314 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1315#define __UNIX__ 1
1316EOF
1317
10f2d63a
VZ
1318fi
1319
2389f33b
VZ
1320if test "$USE_LINUX" = 1; then
1321 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
7b7a7637 1322echo "configure:1323: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1323if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325else
1326 cat > conftest.$ac_ext <<EOF
7b7a7637 1327#line 1328 "configure"
2389f33b
VZ
1328#include "confdefs.h"
1329#include <features.h>
1330int main() {
1331
1332 #if !__GLIBC_PREREQ(2, 1)
1333 #error not glibc2.1
1334 #endif
1335
1336; return 0; }
1337EOF
7b7a7637 1338if { (eval echo configure:1339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1339 rm -rf conftest*
1340
1341 wx_lib_glibc21=yes
1342
1343else
1344 echo "configure: failed program was:" >&5
1345 cat conftest.$ac_ext >&5
1346 rm -rf conftest*
1347
1348 wx_lib_glibc21=no
1349
1350
1351fi
1352rm -f conftest*
1353
1354fi
1355
1356echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1357 if test "$wx_lib_glibc21" = "yes"; then
1358 cat >> confdefs.h <<\EOF
1359#define wxHAVE_GLIBC2 1
1360EOF
1361
1362 fi
1363fi
10f2d63a 1364
1e487827 1365
1e487827 1366
6232543b 1367
10f2d63a
VZ
1368 wx_arg_cache_file="configarg.cache"
1369 echo "loading argument cache $wx_arg_cache_file"
1370 rm -f ${wx_arg_cache_file}.tmp
1371 touch ${wx_arg_cache_file}.tmp
1372 touch ${wx_arg_cache_file}
698dcdb6 1373
10f2d63a
VZ
1374
1375DEBUG_CONFIGURE=0
1376if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1377 DEFAULT_wxUSE_UNIVERSAL=no
1378
10f2d63a
VZ
1379 DEFAULT_wxUSE_THREADS=yes
1380
1381 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1382 DEFAULT_wxUSE_SONAME=no
1e6feb95 1383 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1384 DEFAULT_wxUSE_PROFILE=no
1385 DEFAULT_wxUSE_NO_DEPS=no
1386 DEFAULT_wxUSE_NO_RTTI=no
1387 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1388 DEFAULT_wxUSE_PERMISSIVE=no
1389 DEFAULT_wxUSE_DEBUG_FLAG=yes
1390 DEFAULT_wxUSE_DEBUG_INFO=yes
1391 DEFAULT_wxUSE_DEBUG_GDB=yes
1392 DEFAULT_wxUSE_MEM_TRACING=no
1393 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1394 DEFAULT_wxUSE_DMALLOC=no
1395 DEFAULT_wxUSE_APPLE_IEEE=no
1396
1397 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1398 DEFAULT_wxUSE_LOGWINDOW=no
1399 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1400
1401 DEFAULT_wxUSE_GUI=yes
1e6feb95 1402 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1403
3e44f09d 1404 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1405 DEFAULT_wxUSE_ZLIB=no
1406 DEFAULT_wxUSE_LIBPNG=no
1407 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1408 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1409 DEFAULT_wxUSE_ODBC=no
3fed1840 1410 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1411 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1412
eb4efbdc 1413 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1414 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1415 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1416 DEFAULT_wxUSE_CMDLINE_PARSER=no
1417 DEFAULT_wxUSE_DATETIME=no
1418 DEFAULT_wxUSE_TIMEDATE=no
1419 DEFAULT_wxUSE_TIMER=no
1420 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1421 DEFAULT_wxUSE_FILE=no
1e6feb95 1422 DEFAULT_wxUSE_FFILE=no
10f2d63a 1423 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1424 DEFAULT_wxUSE_WAVE=no
1425 DEFAULT_wxUSE_INTL=no
1426 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1427 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1428 DEFAULT_wxUSE_STREAMS=no
1429 DEFAULT_wxUSE_SOCKETS=no
1430 DEFAULT_wxUSE_DIALUP_MANAGER=no
1431 DEFAULT_wxUSE_SERIAL=no
1432 DEFAULT_wxUSE_JOYSTICK=no
1433 DEFAULT_wxUSE_DYNLIB_CLASS=no
1434 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1435 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1436
1437 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1438 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1439 DEFAULT_wxUSE_POSTSCRIPT=no
1440
1441 DEFAULT_wxUSE_X_RESOURCES=no
1442 DEFAULT_wxUSE_CLIPBOARD=no
1443 DEFAULT_wxUSE_TOOLTIPS=no
1444 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1445 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1446 DEFAULT_wxUSE_SPLINES=no
1447
1448 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1449 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1450 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1451
1452 DEFAULT_wxUSE_PROLOGIO=no
1453 DEFAULT_wxUSE_RESOURCES=no
1454 DEFAULT_wxUSE_CONSTRAINTS=no
1455 DEFAULT_wxUSE_IPC=no
1456 DEFAULT_wxUSE_HELP=no
29fd3c0c 1457 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1458 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1459 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1460 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1461 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1462 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1463
1464 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1465 DEFAULT_wxUSE_CHOICEDLG=no
1466 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1467 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1468 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1469 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1470 DEFAULT_wxUSE_FONTDLG=no
1471 DEFAULT_wxUSE_MSGDLG=no
1472 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1473 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1474 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1475 DEFAULT_wxUSE_STARTUP_TIPS=no
1476 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1477 DEFAULT_wxUSE_WIZARDDLG=no
1478
1e6feb95 1479 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1480 DEFAULT_wxUSE_MINIFRAME=no
1481 DEFAULT_wxUSE_HTML=no
24528b0c 1482 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1483 DEFAULT_wxUSE_FS_INET=no
1484 DEFAULT_wxUSE_FS_ZIP=no
1485 DEFAULT_wxUSE_BUSYINFO=no
1486 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1487 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1488
1489 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1490 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1491 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1492 DEFAULT_wxUSE_CALCTRL=no
1493 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1494 DEFAULT_wxUSE_CHECKBOX=no
1495 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1496 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1497 DEFAULT_wxUSE_COMBOBOX=no
1498 DEFAULT_wxUSE_GAUGE=no
1499 DEFAULT_wxUSE_GRID=no
1500 DEFAULT_wxUSE_NEW_GRID=no
1501 DEFAULT_wxUSE_IMAGLIST=no
1502 DEFAULT_wxUSE_LISTBOX=no
1503 DEFAULT_wxUSE_LISTCTRL=no
1504 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1505 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1506 DEFAULT_wxUSE_RADIOBOX=no
1507 DEFAULT_wxUSE_RADIOBTN=no
1508 DEFAULT_wxUSE_SASH=no
1509 DEFAULT_wxUSE_SCROLLBAR=no
1510 DEFAULT_wxUSE_SLIDER=no
1511 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1512 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1513 DEFAULT_wxUSE_SPLITTER=no
1514 DEFAULT_wxUSE_STATBMP=no
1515 DEFAULT_wxUSE_STATBOX=no
1516 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1517 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1518 DEFAULT_wxUSE_STATUSBAR=yes
1519 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1520 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1521 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1522 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1523 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1524 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1525 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1526 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
1527
1528 DEFAULT_wxUSE_UNICODE=no
1529 DEFAULT_wxUSE_WCSRTOMBS=no
1530
edae8572 1531 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1532 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1533 DEFAULT_wxUSE_GIF=no
1534 DEFAULT_wxUSE_PCX=no
1535 DEFAULT_wxUSE_PNM=no
0046ff7c 1536 DEFAULT_wxUSE_XPM=no
10f2d63a 1537else
1e6feb95
VZ
1538 DEFAULT_wxUSE_UNIVERSAL=no
1539
10f2d63a
VZ
1540 DEFAULT_wxUSE_THREADS=yes
1541
1542 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1543 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1544 DEFAULT_wxUSE_OPTIMISE=yes
1545 DEFAULT_wxUSE_PROFILE=no
1546 DEFAULT_wxUSE_NO_DEPS=no
1547 DEFAULT_wxUSE_NO_RTTI=no
1548 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1549 DEFAULT_wxUSE_PERMISSIVE=no
1550 DEFAULT_wxUSE_DEBUG_FLAG=no
1551 DEFAULT_wxUSE_DEBUG_INFO=no
1552 DEFAULT_wxUSE_DEBUG_GDB=no
1553 DEFAULT_wxUSE_MEM_TRACING=no
1554 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1555 DEFAULT_wxUSE_DMALLOC=no
1556 DEFAULT_wxUSE_APPLE_IEEE=yes
1557
1558 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1559 DEFAULT_wxUSE_LOGWINDOW=yes
1560 DEFAULT_wxUSE_LOGGUI=yes
10f2d63a
VZ
1561
1562 DEFAULT_wxUSE_GUI=yes
1563
831b3152 1564 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1565 DEFAULT_wxUSE_ZLIB=yes
1566 DEFAULT_wxUSE_LIBPNG=yes
1567 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1568 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1569 DEFAULT_wxUSE_ODBC=no
3fed1840 1570 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1571 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1572
eb4efbdc 1573 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1574 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1575 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1576 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1577 DEFAULT_wxUSE_DATETIME=yes
1578 DEFAULT_wxUSE_TIMEDATE=no
1579 DEFAULT_wxUSE_TIMER=yes
1580 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1581 DEFAULT_wxUSE_FILE=yes
1e6feb95 1582 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1583 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1584 DEFAULT_wxUSE_WAVE=no
1585 DEFAULT_wxUSE_INTL=yes
1586 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1587 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1588 DEFAULT_wxUSE_STREAMS=yes
1589 DEFAULT_wxUSE_SOCKETS=yes
1590 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1591 DEFAULT_wxUSE_SERIAL=yes
1592 DEFAULT_wxUSE_JOYSTICK=yes
1593 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1594 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1595 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1596
1597 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1598 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1599 DEFAULT_wxUSE_POSTSCRIPT=yes
1600
1601 DEFAULT_wxUSE_X_RESOURCES=no
1602 DEFAULT_wxUSE_CLIPBOARD=yes
1603 DEFAULT_wxUSE_TOOLTIPS=yes
1604 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1605 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1606 DEFAULT_wxUSE_SPLINES=yes
1607
1608 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1609 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1610 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1611
1612 DEFAULT_wxUSE_PROLOGIO=yes
1613 DEFAULT_wxUSE_RESOURCES=yes
1614 DEFAULT_wxUSE_CONSTRAINTS=yes
1615 DEFAULT_wxUSE_IPC=yes
1616 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1617 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1618 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1619 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1620 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1621 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1622 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1623
1624 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1625 DEFAULT_wxUSE_CHOICEDLG=yes
1626 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1627 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1628 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1629 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1630 DEFAULT_wxUSE_FONTDLG=yes
1631 DEFAULT_wxUSE_MSGDLG=yes
1632 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1633 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1634 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1635 DEFAULT_wxUSE_STARTUP_TIPS=yes
1636 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1637 DEFAULT_wxUSE_WIZARDDLG=yes
1638
1e6feb95 1639 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1640 DEFAULT_wxUSE_MINIFRAME=yes
1641 DEFAULT_wxUSE_HTML=yes
24528b0c 1642 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1643 DEFAULT_wxUSE_FS_INET=yes
1644 DEFAULT_wxUSE_FS_ZIP=yes
1645 DEFAULT_wxUSE_BUSYINFO=yes
1646 DEFAULT_wxUSE_ZIPSTREAM=yes
1647 DEFAULT_wxUSE_VALIDATORS=yes
1648
1649 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1650 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1651 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1652 DEFAULT_wxUSE_CALCTRL=yes
1653 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1654 DEFAULT_wxUSE_CHECKBOX=yes
1655 DEFAULT_wxUSE_CHECKLST=yes
1656 DEFAULT_wxUSE_CHOICE=yes
1657 DEFAULT_wxUSE_COMBOBOX=yes
1658 DEFAULT_wxUSE_GAUGE=yes
1659 DEFAULT_wxUSE_GRID=yes
cc977e5f 1660 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1661 DEFAULT_wxUSE_IMAGLIST=yes
1662 DEFAULT_wxUSE_LISTBOX=yes
1663 DEFAULT_wxUSE_LISTCTRL=yes
1664 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1665 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1666 DEFAULT_wxUSE_RADIOBOX=yes
1667 DEFAULT_wxUSE_RADIOBTN=yes
1668 DEFAULT_wxUSE_SASH=yes
1669 DEFAULT_wxUSE_SCROLLBAR=yes
1670 DEFAULT_wxUSE_SLIDER=yes
1671 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1672 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1673 DEFAULT_wxUSE_SPLITTER=yes
1674 DEFAULT_wxUSE_STATBMP=yes
1675 DEFAULT_wxUSE_STATBOX=yes
1676 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1677 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1678 DEFAULT_wxUSE_STATUSBAR=yes
1679 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1680 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1681 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1682 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1683 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1684 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1685 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1686 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
1687
1688 DEFAULT_wxUSE_UNICODE=no
1689 DEFAULT_wxUSE_WCSRTOMBS=no
1690
edae8572 1691 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1692 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1693 DEFAULT_wxUSE_GIF=yes
1694 DEFAULT_wxUSE_PCX=yes
1695 DEFAULT_wxUSE_PNM=yes
0046ff7c 1696 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1697fi
1698
698dcdb6
VZ
1699
1700
10f2d63a
VZ
1701for toolkit in `echo $ALL_TOOLKITS`; do
1702 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1703 if test "x$LINE" != x ; then
1704 has_toolkit_in_cache=1
1705 eval "DEFAULT_$LINE"
1706 eval "CACHE_$toolkit=1"
1707 fi
1708done
1709
698dcdb6
VZ
1710
1711
1712 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
7b7a7637 1713echo "configure:1714: checking for --enable-gui" >&5
10f2d63a
VZ
1714 no_cache=0
1715 # Check whether --enable-gui or --disable-gui was given.
1716if test "${enable_gui+set}" = set; then
1717 enableval="$enable_gui"
698dcdb6 1718
10f2d63a
VZ
1719 if test "$enableval" = yes; then
1720 ac_cv_use_gui='wxUSE_GUI=yes'
1721 else
1722 ac_cv_use_gui='wxUSE_GUI=no'
1723 fi
698dcdb6 1724
10f2d63a 1725else
698dcdb6 1726
10f2d63a
VZ
1727 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1728 if test "x$LINE" != x ; then
1729 eval "DEFAULT_$LINE"
1730 else
1731 no_cache=1
1732 fi
1733
1734 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1735
1736fi
10f2d63a
VZ
1737
1738
1739 eval "$ac_cv_use_gui"
1740 if test "$no_cache" != 1; then
1741 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1742 fi
1743
1744 if test "$wxUSE_GUI" = yes; then
698dcdb6 1745 echo "$ac_t""yes" 1>&6
10f2d63a 1746 else
698dcdb6 1747 echo "$ac_t""no" 1>&6
10f2d63a 1748 fi
698dcdb6 1749
10f2d63a 1750
b12915c1 1751if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1752
1e6feb95
VZ
1753
1754 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
7b7a7637 1755echo "configure:1756: checking for --enable-universal" >&5
1e6feb95
VZ
1756 no_cache=0
1757 # Check whether --enable-universal or --disable-universal was given.
1758if test "${enable_universal+set}" = set; then
1759 enableval="$enable_universal"
1760
1761 if test "$enableval" = yes; then
1762 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1763 else
1764 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1765 fi
1766
1767else
1768
1769 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1770 if test "x$LINE" != x ; then
1771 eval "DEFAULT_$LINE"
1772 else
1773 no_cache=1
1774 fi
1775
1776 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1777
1778fi
1779
1780
1781 eval "$ac_cv_use_universal"
1782 if test "$no_cache" != 1; then
1783 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1784 fi
1785
1786 if test "$wxUSE_UNIVERSAL" = yes; then
1787 echo "$ac_t""yes" 1>&6
1788 else
1789 echo "$ac_t""no" 1>&6
1790 fi
1791
10f2d63a
VZ
1792# Check whether --with-gtk or --without-gtk was given.
1793if test "${with_gtk+set}" = set; then
1794 withval="$with_gtk"
1795 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1796fi
10f2d63a
VZ
1797
1798# Check whether --with-motif or --without-motif was given.
1799if test "${with_motif+set}" = set; then
1800 withval="$with_motif"
1801 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1802fi
10f2d63a 1803
b4085ce6
GD
1804# Check whether --with-mac or --without-mac was given.
1805if test "${with_mac+set}" = set; then
1806 withval="$with_mac"
1807 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1808fi
b4085ce6 1809
10f2d63a
VZ
1810# Check whether --with-wine or --without-wine was given.
1811if test "${with_wine+set}" = set; then
1812 withval="$with_wine"
1813 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1814fi
10f2d63a
VZ
1815
1816# Check whether --with-cygwin or --without-cygwin was given.
1817if test "${with_cygwin+set}" = set; then
1818 withval="$with_cygwin"
1819 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
698dcdb6 1820fi
10f2d63a
VZ
1821
1822# Check whether --with-mingw or --without-mingw was given.
1823if test "${with_mingw+set}" = set; then
1824 withval="$with_mingw"
1825 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
698dcdb6 1826fi
10f2d63a 1827
e07802fc
VZ
1828# Check whether --with-pm or --without-pm was given.
1829if test "${with_pm+set}" = set; then
1830 withval="$with_pm"
1831 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1832fi
1833
1e6feb95
VZ
1834# Check whether --with-mgl or --without-mgl was given.
1835if test "${with_mgl+set}" = set; then
1836 withval="$with_mgl"
1837 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1838fi
1839
10f2d63a 1840
8168de4c
VZ
1841# Check whether --enable-gtk2 or --disable-gtk2 was given.
1842if test "${enable_gtk2+set}" = set; then
1843 enableval="$enable_gtk2"
1844 wxUSE_GTK2=1
10f2d63a 1845else
8168de4c 1846 wxUSE_GTK2=0
698dcdb6
VZ
1847fi
1848
703e0a69 1849
1e487827 1850
698dcdb6 1851 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
7b7a7637 1852echo "configure:1853: checking for --with-libpng" >&5
698dcdb6
VZ
1853 no_cache=0
1854 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1855if test "${with_libpng+set}" = set; then
1856 withval="$with_libpng"
698dcdb6 1857
10f2d63a 1858 if test "$withval" = yes; then
b12915c1 1859 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1860 elif test "$withval" = no; then
b12915c1 1861 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1862 elif test "$withval" = sys; then
1863 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1864 else
698dcdb6 1865 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1866 fi
698dcdb6 1867
10f2d63a 1868else
698dcdb6 1869
b12915c1 1870 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1871 if test "x$LINE" != x ; then
1872 eval "DEFAULT_$LINE"
1873 else
1874 no_cache=1
1875 fi
1876
b12915c1 1877 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1878
1879fi
10f2d63a
VZ
1880
1881
b12915c1 1882 eval "$ac_cv_use_libpng"
10f2d63a 1883 if test "$no_cache" != 1; then
b12915c1 1884 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1885 fi
1886
b12915c1 1887 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1888 echo "$ac_t""yes" 1>&6
422107f9 1889 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1890 echo "$ac_t""no" 1>&6
422107f9 1891 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1892 echo "$ac_t""system version" 1>&6
422107f9 1893 else
698dcdb6 1894 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1895 fi
698dcdb6 1896
10f2d63a 1897
698dcdb6 1898 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
7b7a7637 1899echo "configure:1900: checking for --with-libjpeg" >&5
10f2d63a 1900 no_cache=0
698dcdb6 1901 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1902if test "${with_libjpeg+set}" = set; then
1903 withval="$with_libjpeg"
698dcdb6 1904
10f2d63a 1905 if test "$withval" = yes; then
b12915c1 1906 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1907 elif test "$withval" = no; then
b12915c1 1908 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1909 elif test "$withval" = sys; then
1910 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1911 else
698dcdb6 1912 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1913 fi
698dcdb6 1914
10f2d63a 1915else
698dcdb6 1916
b12915c1 1917 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1918 if test "x$LINE" != x ; then
1919 eval "DEFAULT_$LINE"
1920 else
1921 no_cache=1
1922 fi
1923
b12915c1 1924 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1925
1926fi
10f2d63a
VZ
1927
1928
b12915c1 1929 eval "$ac_cv_use_libjpeg"
10f2d63a 1930 if test "$no_cache" != 1; then
b12915c1 1931 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1932 fi
1933
b12915c1 1934 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1935 echo "$ac_t""yes" 1>&6
422107f9 1936 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1937 echo "$ac_t""no" 1>&6
422107f9 1938 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1939 echo "$ac_t""system version" 1>&6
422107f9 1940 else
698dcdb6 1941 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1942 fi
698dcdb6 1943
10f2d63a 1944
698dcdb6 1945 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
7b7a7637 1946echo "configure:1947: checking for --with-libtiff" >&5
10f2d63a 1947 no_cache=0
698dcdb6 1948 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1949if test "${with_libtiff+set}" = set; then
1950 withval="$with_libtiff"
698dcdb6 1951
10f2d63a 1952 if test "$withval" = yes; then
b12915c1 1953 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1954 elif test "$withval" = no; then
b12915c1 1955 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1956 elif test "$withval" = sys; then
1957 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1958 else
698dcdb6 1959 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1960 fi
698dcdb6 1961
10f2d63a 1962else
698dcdb6 1963
b12915c1 1964 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1965 if test "x$LINE" != x ; then
1966 eval "DEFAULT_$LINE"
1967 else
1968 no_cache=1
1969 fi
1970
b12915c1 1971 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1972
1973fi
10f2d63a
VZ
1974
1975
b12915c1 1976 eval "$ac_cv_use_libtiff"
10f2d63a 1977 if test "$no_cache" != 1; then
b12915c1 1978 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1979 fi
1980
b12915c1 1981 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1982 echo "$ac_t""yes" 1>&6
0dcf9893 1983 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1984 echo "$ac_t""no" 1>&6
0dcf9893 1985 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1986 echo "$ac_t""system version" 1>&6
0dcf9893 1987 else
698dcdb6 1988 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1989 fi
698dcdb6 1990
10f2d63a 1991
698dcdb6 1992 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
7b7a7637 1993echo "configure:1994: checking for --with-freetype" >&5
3fed1840 1994 no_cache=0
698dcdb6 1995 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
1996if test "${with_freetype+set}" = set; then
1997 withval="$with_freetype"
698dcdb6 1998
3fed1840
RR
1999 if test "$withval" = yes; then
2000 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2001 elif test "$withval" = no; then
2002 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2003 elif test "$withval" = sys; then
2004 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2005 else
698dcdb6 2006 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2007 fi
698dcdb6 2008
3fed1840 2009else
698dcdb6 2010
3fed1840
RR
2011 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2012 if test "x$LINE" != x ; then
2013 eval "DEFAULT_$LINE"
2014 else
2015 no_cache=1
2016 fi
2017
2018 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2019
2020fi
3fed1840
RR
2021
2022
2023 eval "$ac_cv_use_freetype"
2024 if test "$no_cache" != 1; then
2025 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2026 fi
2027
2028 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2029 echo "$ac_t""yes" 1>&6
3fed1840 2030 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2031 echo "$ac_t""no" 1>&6
3fed1840 2032 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2033 echo "$ac_t""system version" 1>&6
3fed1840 2034 else
698dcdb6 2035 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2036 fi
698dcdb6 2037
3fed1840 2038
698dcdb6 2039 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
7b7a7637 2040echo "configure:2041: checking for --with-opengl" >&5
10f2d63a 2041 no_cache=0
698dcdb6 2042 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2043if test "${with_opengl+set}" = set; then
2044 withval="$with_opengl"
698dcdb6 2045
10f2d63a 2046 if test "$withval" = yes; then
b12915c1 2047 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2048 else
b12915c1 2049 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2050 fi
698dcdb6 2051
10f2d63a 2052else
698dcdb6 2053
b12915c1 2054 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2055 if test "x$LINE" != x ; then
2056 eval "DEFAULT_$LINE"
2057 else
2058 no_cache=1
2059 fi
2060
b12915c1 2061 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2062
2063fi
10f2d63a
VZ
2064
2065
b12915c1 2066 eval "$ac_cv_use_opengl"
10f2d63a 2067 if test "$no_cache" != 1; then
b12915c1 2068 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2069 fi
2070
b12915c1 2071 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2072 echo "$ac_t""yes" 1>&6
10f2d63a 2073 else
698dcdb6 2074 echo "$ac_t""no" 1>&6
10f2d63a 2075 fi
698dcdb6 2076
10f2d63a 2077
b12915c1
VZ
2078fi
2079
1e487827 2080
698dcdb6 2081 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
7b7a7637 2082echo "configure:2083: checking for --with-dmalloc" >&5
698dcdb6
VZ
2083 no_cache=0
2084 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2085if test "${with_dmalloc+set}" = set; then
2086 withval="$with_dmalloc"
698dcdb6 2087
c7a2bf27 2088 if test "$withval" = yes; then
b12915c1 2089 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2090 else
b12915c1 2091 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2092 fi
698dcdb6 2093
c7a2bf27 2094else
698dcdb6 2095
b12915c1 2096 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2097 if test "x$LINE" != x ; then
2098 eval "DEFAULT_$LINE"
2099 else
2100 no_cache=1
2101 fi
2102
b12915c1 2103 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2104
2105fi
c7a2bf27
RR
2106
2107
b12915c1 2108 eval "$ac_cv_use_dmalloc"
c7a2bf27 2109 if test "$no_cache" != 1; then
b12915c1 2110 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2111 fi
2112
b12915c1 2113 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2114 echo "$ac_t""yes" 1>&6
c7a2bf27 2115 else
698dcdb6 2116 echo "$ac_t""no" 1>&6
c7a2bf27 2117 fi
698dcdb6 2118
c7a2bf27 2119
3e44f09d 2120 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
7b7a7637 2121echo "configure:2122: checking for --with-regex" >&5
3e44f09d
VZ
2122 no_cache=0
2123 # Check whether --with-regex or --without-regex was given.
2124if test "${with_regex+set}" = set; then
2125 withval="$with_regex"
2126
2127 if test "$withval" = yes; then
2128 ac_cv_use_regex='wxUSE_REGEX=yes'
2129 elif test "$withval" = no; then
2130 ac_cv_use_regex='wxUSE_REGEX=no'
2131 elif test "$withval" = sys; then
2132 ac_cv_use_regex='wxUSE_REGEX=sys'
2133 else
2134 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2135 fi
2136
2137else
2138
2139 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2140 if test "x$LINE" != x ; then
2141 eval "DEFAULT_$LINE"
2142 else
2143 no_cache=1
2144 fi
2145
2146 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2147
2148fi
2149
2150
2151 eval "$ac_cv_use_regex"
2152 if test "$no_cache" != 1; then
2153 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2154 fi
2155
2156 if test "$wxUSE_REGEX" = yes; then
2157 echo "$ac_t""yes" 1>&6
2158 elif test "$wxUSE_REGEX" = no; then
2159 echo "$ac_t""no" 1>&6
2160 elif test "$wxUSE_REGEX" = sys; then
2161 echo "$ac_t""system version" 1>&6
2162 else
2163 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2164 fi
2165
2166
698dcdb6 2167 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
7b7a7637 2168echo "configure:2169: checking for --with-zlib" >&5
10f2d63a 2169 no_cache=0
698dcdb6 2170 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2171if test "${with_zlib+set}" = set; then
2172 withval="$with_zlib"
698dcdb6 2173
10f2d63a 2174 if test "$withval" = yes; then
b12915c1 2175 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2176 elif test "$withval" = no; then
b12915c1 2177 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2178 elif test "$withval" = sys; then
2179 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2180 else
698dcdb6 2181 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2182 fi
698dcdb6 2183
10f2d63a 2184else
698dcdb6 2185
b12915c1 2186 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2187 if test "x$LINE" != x ; then
2188 eval "DEFAULT_$LINE"
2189 else
2190 no_cache=1
2191 fi
2192
b12915c1 2193 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2194
2195fi
10f2d63a
VZ
2196
2197
b12915c1 2198 eval "$ac_cv_use_zlib"
10f2d63a 2199 if test "$no_cache" != 1; then
b12915c1 2200 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2201 fi
2202
b12915c1 2203 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2204 echo "$ac_t""yes" 1>&6
422107f9 2205 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2206 echo "$ac_t""no" 1>&6
422107f9 2207 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2208 echo "$ac_t""system version" 1>&6
422107f9 2209 else
698dcdb6 2210 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2211 fi
698dcdb6 2212
10f2d63a 2213
698dcdb6 2214 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
7b7a7637 2215echo "configure:2216: checking for --with-odbc" >&5
10f2d63a 2216 no_cache=0
698dcdb6 2217 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2218if test "${with_odbc+set}" = set; then
2219 withval="$with_odbc"
698dcdb6 2220
10f2d63a
VZ
2221 if test "$withval" = yes; then
2222 ac_cv_use_odbc='wxUSE_ODBC=yes'
2223 else
2224 ac_cv_use_odbc='wxUSE_ODBC=no'
2225 fi
698dcdb6 2226
10f2d63a 2227else
698dcdb6 2228
10f2d63a
VZ
2229 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2230 if test "x$LINE" != x ; then
2231 eval "DEFAULT_$LINE"
2232 else
2233 no_cache=1
2234 fi
2235
2236 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2237
2238fi
10f2d63a
VZ
2239
2240
2241 eval "$ac_cv_use_odbc"
2242 if test "$no_cache" != 1; then
2243 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2244 fi
2245
2246 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2247 echo "$ac_t""yes" 1>&6
10f2d63a 2248 else
698dcdb6 2249 echo "$ac_t""no" 1>&6
10f2d63a 2250 fi
698dcdb6
VZ
2251
2252
10f2d63a 2253
698dcdb6 2254
698dcdb6 2255 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
1a4f0015 2256echo "configure:2257: checking for --enable-shared" >&5
10f2d63a
VZ
2257 no_cache=0
2258 # Check whether --enable-shared or --disable-shared was given.
2259if test "${enable_shared+set}" = set; then
2260 enableval="$enable_shared"
698dcdb6 2261
10f2d63a
VZ
2262 if test "$enableval" = yes; then
2263 ac_cv_use_shared='wxUSE_SHARED=yes'
2264 else
2265 ac_cv_use_shared='wxUSE_SHARED=no'
2266 fi
698dcdb6 2267
10f2d63a 2268else
698dcdb6 2269
10f2d63a
VZ
2270 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2271 if test "x$LINE" != x ; then
2272 eval "DEFAULT_$LINE"
2273 else
2274 no_cache=1
2275 fi
2276
2277 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2278
2279fi
10f2d63a
VZ
2280
2281
2282 eval "$ac_cv_use_shared"
2283 if test "$no_cache" != 1; then
2284 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2285 fi
2286
2287 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2288 echo "$ac_t""yes" 1>&6
10f2d63a 2289 else
698dcdb6 2290 echo "$ac_t""no" 1>&6
10f2d63a 2291 fi
698dcdb6 2292
10f2d63a 2293
3a922bb4 2294 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
1a4f0015 2295echo "configure:2296: checking for --enable-soname" >&5
00cf1208 2296 no_cache=0
3a922bb4
RL
2297 # Check whether --enable-soname or --disable-soname was given.
2298if test "${enable_soname+set}" = set; then
2299 enableval="$enable_soname"
698dcdb6 2300
00cf1208 2301 if test "$enableval" = yes; then
3a922bb4 2302 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2303 else
3a922bb4 2304 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2305 fi
698dcdb6 2306
00cf1208 2307else
698dcdb6 2308
3a922bb4 2309 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2310 if test "x$LINE" != x ; then
2311 eval "DEFAULT_$LINE"
2312 else
2313 no_cache=1
2314 fi
2315
3a922bb4 2316 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2317
2318fi
00cf1208
RR
2319
2320
3a922bb4 2321 eval "$ac_cv_use_soname"
00cf1208 2322 if test "$no_cache" != 1; then
3a922bb4 2323 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2324 fi
2325
3a922bb4 2326 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2327 echo "$ac_t""yes" 1>&6
00cf1208 2328 else
698dcdb6 2329 echo "$ac_t""no" 1>&6
00cf1208 2330 fi
698dcdb6 2331
00cf1208 2332
698dcdb6 2333 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
1a4f0015 2334echo "configure:2335: checking for --enable-optimise" >&5
10f2d63a
VZ
2335 no_cache=0
2336 # Check whether --enable-optimise or --disable-optimise was given.
2337if test "${enable_optimise+set}" = set; then
2338 enableval="$enable_optimise"
698dcdb6 2339
10f2d63a
VZ
2340 if test "$enableval" = yes; then
2341 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2342 else
2343 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2344 fi
698dcdb6 2345
10f2d63a 2346else
698dcdb6 2347
10f2d63a
VZ
2348 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2349 if test "x$LINE" != x ; then
2350 eval "DEFAULT_$LINE"
2351 else
2352 no_cache=1
2353 fi
2354
2355 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2356
2357fi
10f2d63a
VZ
2358
2359
2360 eval "$ac_cv_use_optimise"
2361 if test "$no_cache" != 1; then
2362 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2363 fi
2364
2365 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2366 echo "$ac_t""yes" 1>&6
10f2d63a 2367 else
698dcdb6 2368 echo "$ac_t""no" 1>&6
10f2d63a 2369 fi
698dcdb6 2370
10f2d63a 2371
698dcdb6 2372 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
1a4f0015 2373echo "configure:2374: checking for --enable-debug" >&5
10f2d63a
VZ
2374 no_cache=0
2375 # Check whether --enable-debug or --disable-debug was given.
2376if test "${enable_debug+set}" = set; then
2377 enableval="$enable_debug"
698dcdb6 2378
10f2d63a
VZ
2379 if test "$enableval" = yes; then
2380 ac_cv_use_debug='wxUSE_DEBUG=yes'
2381 else
2382 ac_cv_use_debug='wxUSE_DEBUG=no'
2383 fi
698dcdb6 2384
10f2d63a 2385else
698dcdb6 2386
10f2d63a
VZ
2387 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2388 if test "x$LINE" != x ; then
2389 eval "DEFAULT_$LINE"
2390 else
2391 no_cache=1
2392 fi
2393
2394 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2395
2396fi
10f2d63a
VZ
2397
2398
2399 eval "$ac_cv_use_debug"
2400 if test "$no_cache" != 1; then
2401 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2402 fi
2403
2404 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2405 echo "$ac_t""yes" 1>&6
10f2d63a 2406 else
698dcdb6 2407 echo "$ac_t""no" 1>&6
10f2d63a 2408 fi
698dcdb6 2409
10f2d63a
VZ
2410
2411if test "$wxUSE_DEBUG" = "yes"; then
2412 DEFAULT_wxUSE_DEBUG_FLAG=yes
2413 DEFAULT_wxUSE_DEBUG_INFO=yes
2414elif test "$wxUSE_DEBUG" = "no"; then
2415 DEFAULT_wxUSE_DEBUG_FLAG=no
2416 DEFAULT_wxUSE_DEBUG_INFO=no
2417fi
2418
698dcdb6
VZ
2419
2420 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
1a4f0015 2421echo "configure:2422: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2422 no_cache=0
2423 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2424if test "${enable_debug_flag+set}" = set; then
2425 enableval="$enable_debug_flag"
698dcdb6 2426
10f2d63a
VZ
2427 if test "$enableval" = yes; then
2428 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2429 else
2430 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2431 fi
698dcdb6 2432
10f2d63a 2433else
698dcdb6 2434
10f2d63a
VZ
2435 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2436 if test "x$LINE" != x ; then
2437 eval "DEFAULT_$LINE"
2438 else
2439 no_cache=1
2440 fi
2441
2442 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2443
2444fi
10f2d63a
VZ
2445
2446
2447 eval "$ac_cv_use_debug_flag"
2448 if test "$no_cache" != 1; then
2449 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2450 fi
2451
2452 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2453 echo "$ac_t""yes" 1>&6
10f2d63a 2454 else
698dcdb6 2455 echo "$ac_t""no" 1>&6
10f2d63a 2456 fi
698dcdb6 2457
10f2d63a 2458
698dcdb6 2459 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
1a4f0015 2460echo "configure:2461: checking for --enable-debug_info" >&5
10f2d63a
VZ
2461 no_cache=0
2462 # Check whether --enable-debug_info or --disable-debug_info was given.
2463if test "${enable_debug_info+set}" = set; then
2464 enableval="$enable_debug_info"
698dcdb6 2465
10f2d63a
VZ
2466 if test "$enableval" = yes; then
2467 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2468 else
2469 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2470 fi
698dcdb6 2471
10f2d63a 2472else
698dcdb6 2473
10f2d63a
VZ
2474 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2475 if test "x$LINE" != x ; then
2476 eval "DEFAULT_$LINE"
2477 else
2478 no_cache=1
2479 fi
2480
2481 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2482
2483fi
10f2d63a
VZ
2484
2485
2486 eval "$ac_cv_use_debug_info"
2487 if test "$no_cache" != 1; then
2488 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2489 fi
2490
2491 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2492 echo "$ac_t""yes" 1>&6
10f2d63a 2493 else
698dcdb6 2494 echo "$ac_t""no" 1>&6
10f2d63a 2495 fi
698dcdb6 2496
10f2d63a 2497
698dcdb6 2498 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
1a4f0015 2499echo "configure:2500: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2500 no_cache=0
2501 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2502if test "${enable_debug_gdb+set}" = set; then
2503 enableval="$enable_debug_gdb"
698dcdb6 2504
10f2d63a
VZ
2505 if test "$enableval" = yes; then
2506 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2507 else
2508 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2509 fi
698dcdb6 2510
10f2d63a 2511else
698dcdb6 2512
10f2d63a
VZ
2513 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2514 if test "x$LINE" != x ; then
2515 eval "DEFAULT_$LINE"
2516 else
2517 no_cache=1
2518 fi
2519
2520 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2521
2522fi
10f2d63a
VZ
2523
2524
2525 eval "$ac_cv_use_debug_gdb"
2526 if test "$no_cache" != 1; then
2527 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2528 fi
2529
2530 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2531 echo "$ac_t""yes" 1>&6
10f2d63a 2532 else
698dcdb6 2533 echo "$ac_t""no" 1>&6
10f2d63a 2534 fi
698dcdb6 2535
10f2d63a 2536
698dcdb6 2537 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
1a4f0015 2538echo "configure:2539: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2539 no_cache=0
2540 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2541if test "${enable_debug_cntxt+set}" = set; then
2542 enableval="$enable_debug_cntxt"
698dcdb6 2543
10f2d63a
VZ
2544 if test "$enableval" = yes; then
2545 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2546 else
2547 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2548 fi
698dcdb6 2549
10f2d63a 2550else
698dcdb6 2551
10f2d63a
VZ
2552 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2553 if test "x$LINE" != x ; then
2554 eval "DEFAULT_$LINE"
2555 else
2556 no_cache=1
2557 fi
2558
2559 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2560
2561fi
10f2d63a
VZ
2562
2563
2564 eval "$ac_cv_use_debug_cntxt"
2565 if test "$no_cache" != 1; then
2566 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2567 fi
2568
2569 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2570 echo "$ac_t""yes" 1>&6
10f2d63a 2571 else
698dcdb6 2572 echo "$ac_t""no" 1>&6
10f2d63a 2573 fi
698dcdb6 2574
10f2d63a 2575
698dcdb6 2576 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
1a4f0015 2577echo "configure:2578: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2578 no_cache=0
2579 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2580if test "${enable_mem_tracing+set}" = set; then
2581 enableval="$enable_mem_tracing"
698dcdb6 2582
10f2d63a
VZ
2583 if test "$enableval" = yes; then
2584 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2585 else
2586 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2587 fi
698dcdb6 2588
10f2d63a 2589else
698dcdb6 2590
10f2d63a
VZ
2591 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2592 if test "x$LINE" != x ; then
2593 eval "DEFAULT_$LINE"
2594 else
2595 no_cache=1
2596 fi
2597
2598 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2599
2600fi
10f2d63a
VZ
2601
2602
2603 eval "$ac_cv_use_mem_tracing"
2604 if test "$no_cache" != 1; then
2605 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2606 fi
2607
2608 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2609 echo "$ac_t""yes" 1>&6
10f2d63a 2610 else
698dcdb6 2611 echo "$ac_t""no" 1>&6
10f2d63a 2612 fi
698dcdb6 2613
10f2d63a 2614
698dcdb6 2615 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
1a4f0015 2616echo "configure:2617: checking for --enable-profile" >&5
10f2d63a
VZ
2617 no_cache=0
2618 # Check whether --enable-profile or --disable-profile was given.
2619if test "${enable_profile+set}" = set; then
2620 enableval="$enable_profile"
698dcdb6 2621
10f2d63a
VZ
2622 if test "$enableval" = yes; then
2623 ac_cv_use_profile='wxUSE_PROFILE=yes'
2624 else
2625 ac_cv_use_profile='wxUSE_PROFILE=no'
2626 fi
698dcdb6 2627
10f2d63a 2628else
698dcdb6 2629
10f2d63a
VZ
2630 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2631 if test "x$LINE" != x ; then
2632 eval "DEFAULT_$LINE"
2633 else
2634 no_cache=1
2635 fi
2636
2637 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2638
2639fi
10f2d63a
VZ
2640
2641
2642 eval "$ac_cv_use_profile"
2643 if test "$no_cache" != 1; then
2644 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2645 fi
2646
2647 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2648 echo "$ac_t""yes" 1>&6
10f2d63a 2649 else
698dcdb6 2650 echo "$ac_t""no" 1>&6
10f2d63a 2651 fi
698dcdb6 2652
10f2d63a 2653
698dcdb6 2654 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
1a4f0015 2655echo "configure:2656: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2656 no_cache=0
2657 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2658if test "${enable_no_rtti+set}" = set; then
2659 enableval="$enable_no_rtti"
698dcdb6 2660
10f2d63a
VZ
2661 if test "$enableval" = yes; then
2662 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2663 else
2664 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2665 fi
698dcdb6 2666
10f2d63a 2667else
698dcdb6 2668
10f2d63a
VZ
2669 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2670 if test "x$LINE" != x ; then
2671 eval "DEFAULT_$LINE"
2672 else
2673 no_cache=1
2674 fi
2675
2676 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2677
2678fi
10f2d63a
VZ
2679
2680
2681 eval "$ac_cv_use_no_rtti"
2682 if test "$no_cache" != 1; then
2683 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2684 fi
2685
2686 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2687 echo "$ac_t""yes" 1>&6
10f2d63a 2688 else
698dcdb6 2689 echo "$ac_t""no" 1>&6
10f2d63a 2690 fi
698dcdb6 2691
10f2d63a 2692
698dcdb6 2693 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
1a4f0015 2694echo "configure:2695: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2695 no_cache=0
2696 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2697if test "${enable_no_exceptions+set}" = set; then
2698 enableval="$enable_no_exceptions"
698dcdb6 2699
10f2d63a
VZ
2700 if test "$enableval" = yes; then
2701 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2702 else
2703 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2704 fi
698dcdb6 2705
10f2d63a 2706else
698dcdb6 2707
10f2d63a
VZ
2708 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2709 if test "x$LINE" != x ; then
2710 eval "DEFAULT_$LINE"
2711 else
2712 no_cache=1
2713 fi
2714
2715 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2716
2717fi
10f2d63a
VZ
2718
2719
2720 eval "$ac_cv_use_no_exceptions"
2721 if test "$no_cache" != 1; then
2722 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2723 fi
2724
2725 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2726 echo "$ac_t""yes" 1>&6
10f2d63a 2727 else
698dcdb6 2728 echo "$ac_t""no" 1>&6
10f2d63a 2729 fi
698dcdb6 2730
10f2d63a 2731
698dcdb6 2732 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
1a4f0015 2733echo "configure:2734: checking for --enable-permissive" >&5
10f2d63a
VZ
2734 no_cache=0
2735 # Check whether --enable-permissive or --disable-permissive was given.
2736if test "${enable_permissive+set}" = set; then
2737 enableval="$enable_permissive"
698dcdb6 2738
10f2d63a
VZ
2739 if test "$enableval" = yes; then
2740 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2741 else
2742 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2743 fi
698dcdb6 2744
10f2d63a 2745else
698dcdb6 2746
10f2d63a
VZ
2747 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2748 if test "x$LINE" != x ; then
2749 eval "DEFAULT_$LINE"
2750 else
2751 no_cache=1
2752 fi
2753
2754 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2755
2756fi
10f2d63a
VZ
2757
2758
2759 eval "$ac_cv_use_permissive"
2760 if test "$no_cache" != 1; then
2761 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2762 fi
2763
2764 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2765 echo "$ac_t""yes" 1>&6
10f2d63a 2766 else
698dcdb6 2767 echo "$ac_t""no" 1>&6
10f2d63a 2768 fi
698dcdb6 2769
10f2d63a 2770
698dcdb6 2771 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
1a4f0015 2772echo "configure:2773: checking for --enable-no_deps" >&5
10f2d63a
VZ
2773 no_cache=0
2774 # Check whether --enable-no_deps or --disable-no_deps was given.
2775if test "${enable_no_deps+set}" = set; then
2776 enableval="$enable_no_deps"
698dcdb6 2777
10f2d63a
VZ
2778 if test "$enableval" = yes; then
2779 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2780 else
2781 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2782 fi
698dcdb6 2783
10f2d63a 2784else
698dcdb6 2785
10f2d63a
VZ
2786 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2787 if test "x$LINE" != x ; then
2788 eval "DEFAULT_$LINE"
2789 else
2790 no_cache=1
2791 fi
2792
2793 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2794
2795fi
10f2d63a
VZ
2796
2797
2798 eval "$ac_cv_use_no_deps"
2799 if test "$no_cache" != 1; then
2800 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2801 fi
2802
2803 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2804 echo "$ac_t""yes" 1>&6
10f2d63a 2805 else
698dcdb6 2806 echo "$ac_t""no" 1>&6
10f2d63a 2807 fi
698dcdb6
VZ
2808
2809
10f2d63a 2810
54276ccf 2811 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
1a4f0015 2812echo "configure:2813: checking for --enable-compat20" >&5
54276ccf
VZ
2813 no_cache=0
2814 # Check whether --enable-compat20 or --disable-compat20 was given.
2815if test "${enable_compat20+set}" = set; then
2816 enableval="$enable_compat20"
2817
2818 if test "$enableval" = yes; then
2819 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2820 else
2821 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2822 fi
2823
2824else
2825
2826 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2827 if test "x$LINE" != x ; then
2828 eval "DEFAULT_$LINE"
2829 else
2830 no_cache=1
2831 fi
2832
2833 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2834
2835fi
2836
2837
2838 eval "$ac_cv_use_compat20"
2839 if test "$no_cache" != 1; then
2840 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2841 fi
2842
2843 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2844 echo "$ac_t""yes" 1>&6
2845 else
2846 echo "$ac_t""no" 1>&6
2847 fi
2848
2849
2850 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
1a4f0015 2851echo "configure:2852: checking for --enable-compat22" >&5
54276ccf
VZ
2852 no_cache=0
2853 # Check whether --enable-compat22 or --disable-compat22 was given.
2854if test "${enable_compat22+set}" = set; then
2855 enableval="$enable_compat22"
2856
2857 if test "$enableval" = yes; then
2858 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2859 else
2860 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2861 fi
2862
2863else
2864
2865 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2866 if test "x$LINE" != x ; then
2867 eval "DEFAULT_$LINE"
2868 else
2869 no_cache=1
2870 fi
2871
2872 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2873
2874fi
2875
2876
2877 eval "$ac_cv_use_compat22"
2878 if test "$no_cache" != 1; then
2879 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2880 fi
2881
2882 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2883 echo "$ac_t""yes" 1>&6
2884 else
2885 echo "$ac_t""no" 1>&6
2886 fi
2887
2888
2889
698dcdb6
VZ
2890
2891 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
1a4f0015 2892echo "configure:2893: checking for --enable-intl" >&5
10f2d63a
VZ
2893 no_cache=0
2894 # Check whether --enable-intl or --disable-intl was given.
2895if test "${enable_intl+set}" = set; then
2896 enableval="$enable_intl"
698dcdb6 2897
10f2d63a
VZ
2898 if test "$enableval" = yes; then
2899 ac_cv_use_intl='wxUSE_INTL=yes'
2900 else
2901 ac_cv_use_intl='wxUSE_INTL=no'
2902 fi
698dcdb6 2903
10f2d63a 2904else
698dcdb6 2905
10f2d63a
VZ
2906 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2907 if test "x$LINE" != x ; then
2908 eval "DEFAULT_$LINE"
2909 else
2910 no_cache=1
2911 fi
2912
2913 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2914
2915fi
10f2d63a
VZ
2916
2917
2918 eval "$ac_cv_use_intl"
2919 if test "$no_cache" != 1; then
2920 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2921 fi
2922
2923 if test "$wxUSE_INTL" = yes; then
698dcdb6 2924 echo "$ac_t""yes" 1>&6
10f2d63a 2925 else
698dcdb6 2926 echo "$ac_t""no" 1>&6
10f2d63a 2927 fi
698dcdb6 2928
10f2d63a 2929
698dcdb6 2930 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
1a4f0015 2931echo "configure:2932: checking for --enable-config" >&5
10f2d63a
VZ
2932 no_cache=0
2933 # Check whether --enable-config or --disable-config was given.
2934if test "${enable_config+set}" = set; then
2935 enableval="$enable_config"
698dcdb6 2936
10f2d63a
VZ
2937 if test "$enableval" = yes; then
2938 ac_cv_use_config='wxUSE_CONFIG=yes'
2939 else
2940 ac_cv_use_config='wxUSE_CONFIG=no'
2941 fi
698dcdb6 2942
10f2d63a 2943else
698dcdb6 2944
10f2d63a
VZ
2945 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2946 if test "x$LINE" != x ; then
2947 eval "DEFAULT_$LINE"
2948 else
2949 no_cache=1
2950 fi
2951
2952 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
2953
2954fi
10f2d63a
VZ
2955
2956
2957 eval "$ac_cv_use_config"
2958 if test "$no_cache" != 1; then
2959 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2960 fi
2961
2962 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 2963 echo "$ac_t""yes" 1>&6
10f2d63a 2964 else
698dcdb6 2965 echo "$ac_t""no" 1>&6
10f2d63a 2966 fi
698dcdb6
VZ
2967
2968
b12915c1 2969
698dcdb6 2970 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
1a4f0015 2971echo "configure:2972: checking for --enable-sockets" >&5
10f2d63a
VZ
2972 no_cache=0
2973 # Check whether --enable-sockets or --disable-sockets was given.
2974if test "${enable_sockets+set}" = set; then
2975 enableval="$enable_sockets"
698dcdb6 2976
10f2d63a
VZ
2977 if test "$enableval" = yes; then
2978 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2979 else
2980 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2981 fi
698dcdb6 2982
10f2d63a 2983else
698dcdb6 2984
10f2d63a
VZ
2985 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2986 if test "x$LINE" != x ; then
2987 eval "DEFAULT_$LINE"
2988 else
2989 no_cache=1
2990 fi
2991
2992 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
2993
2994fi
10f2d63a
VZ
2995
2996
2997 eval "$ac_cv_use_sockets"
2998 if test "$no_cache" != 1; then
2999 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3000 fi
3001
3002 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3003 echo "$ac_t""yes" 1>&6
10f2d63a 3004 else
698dcdb6 3005 echo "$ac_t""no" 1>&6
10f2d63a 3006 fi
698dcdb6 3007
b12915c1 3008
698dcdb6
VZ
3009
3010 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
1a4f0015 3011echo "configure:3012: checking for --enable-ipc" >&5
10f2d63a 3012 no_cache=0
eb4efbdc
VZ
3013 # Check whether --enable-ipc or --disable-ipc was given.
3014if test "${enable_ipc+set}" = set; then
3015 enableval="$enable_ipc"
698dcdb6 3016
10f2d63a 3017 if test "$enableval" = yes; then
eb4efbdc 3018 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3019 else
eb4efbdc 3020 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3021 fi
698dcdb6 3022
10f2d63a 3023else
698dcdb6 3024
eb4efbdc 3025 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3026 if test "x$LINE" != x ; then
3027 eval "DEFAULT_$LINE"
3028 else
3029 no_cache=1
3030 fi
3031
eb4efbdc 3032 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3033
3034fi
10f2d63a
VZ
3035
3036
eb4efbdc 3037 eval "$ac_cv_use_ipc"
10f2d63a 3038 if test "$no_cache" != 1; then
eb4efbdc 3039 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3040 fi
3041
eb4efbdc 3042 if test "$wxUSE_IPC" = yes; then
698dcdb6 3043 echo "$ac_t""yes" 1>&6
10f2d63a 3044 else
698dcdb6 3045 echo "$ac_t""no" 1>&6
10f2d63a 3046 fi
698dcdb6
VZ
3047
3048
eb4efbdc 3049
1e6feb95 3050 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
1a4f0015 3051echo "configure:3052: checking for --enable-cmdline" >&5
1e6feb95
VZ
3052 no_cache=0
3053 # Check whether --enable-cmdline or --disable-cmdline was given.
3054if test "${enable_cmdline+set}" = set; then
3055 enableval="$enable_cmdline"
3056
3057 if test "$enableval" = yes; then
3058 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3059 else
3060 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3061 fi
3062
3063else
3064
3065 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3066 if test "x$LINE" != x ; then
3067 eval "DEFAULT_$LINE"
3068 else
3069 no_cache=1
3070 fi
3071
3072 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3073
3074fi
3075
3076
3077 eval "$ac_cv_use_cmdline"
3078 if test "$no_cache" != 1; then
3079 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3080 fi
3081
3082 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3083 echo "$ac_t""yes" 1>&6
3084 else
3085 echo "$ac_t""no" 1>&6
3086 fi
3087
3088
3089 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
1a4f0015 3090echo "configure:3091: checking for --enable-datetime" >&5
1e6feb95
VZ
3091 no_cache=0
3092 # Check whether --enable-datetime or --disable-datetime was given.
3093if test "${enable_datetime+set}" = set; then
3094 enableval="$enable_datetime"
3095
3096 if test "$enableval" = yes; then
3097 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3098 else
3099 ac_cv_use_datetime='wxUSE_DATETIME=no'
3100 fi
3101
3102else
3103
3104 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3105 if test "x$LINE" != x ; then
3106 eval "DEFAULT_$LINE"
3107 else
3108 no_cache=1
3109 fi
3110
3111 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3112
3113fi
3114
3115
3116 eval "$ac_cv_use_datetime"
3117 if test "$no_cache" != 1; then
3118 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3119 fi
3120
3121 if test "$wxUSE_DATETIME" = yes; then
3122 echo "$ac_t""yes" 1>&6
3123 else
3124 echo "$ac_t""no" 1>&6
3125 fi
3126
3127
3128 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
1a4f0015 3129echo "configure:3130: checking for --enable-timedate" >&5
1e6feb95
VZ
3130 no_cache=0
3131 # Check whether --enable-timedate or --disable-timedate was given.
3132if test "${enable_timedate+set}" = set; then
3133 enableval="$enable_timedate"
3134
3135 if test "$enableval" = yes; then
3136 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3137 else
3138 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3139 fi
3140
3141else
3142
3143 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3144 if test "x$LINE" != x ; then
3145 eval "DEFAULT_$LINE"
3146 else
3147 no_cache=1
3148 fi
3149
3150 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3151
3152fi
3153
3154
3155 eval "$ac_cv_use_timedate"
3156 if test "$no_cache" != 1; then
3157 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3158 fi
3159
3160 if test "$wxUSE_TIMEDATE" = yes; then
3161 echo "$ac_t""yes" 1>&6
3162 else
3163 echo "$ac_t""no" 1>&6
3164 fi
3165
3166
3167 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
1a4f0015 3168echo "configure:3169: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3169 no_cache=0
3170 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3171if test "${enable_stopwatch+set}" = set; then
3172 enableval="$enable_stopwatch"
3173
3174 if test "$enableval" = yes; then
3175 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3176 else
3177 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3178 fi
3179
3180else
3181
3182 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3183 if test "x$LINE" != x ; then
3184 eval "DEFAULT_$LINE"
3185 else
3186 no_cache=1
3187 fi
3188
3189 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3190
3191fi
3192
3193
3194 eval "$ac_cv_use_stopwatch"
3195 if test "$no_cache" != 1; then
3196 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3197 fi
3198
3199 if test "$wxUSE_STOPWATCH" = yes; then
3200 echo "$ac_t""yes" 1>&6
3201 else
3202 echo "$ac_t""no" 1>&6
3203 fi
3204
3205
698dcdb6 3206 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
1a4f0015 3207echo "configure:3208: checking for --enable-dialupman" >&5
10f2d63a 3208 no_cache=0
eb4efbdc
VZ
3209 # Check whether --enable-dialupman or --disable-dialupman was given.
3210if test "${enable_dialupman+set}" = set; then
3211 enableval="$enable_dialupman"
698dcdb6 3212
10f2d63a 3213 if test "$enableval" = yes; then
eb4efbdc 3214 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3215 else
eb4efbdc 3216 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3217 fi
698dcdb6 3218
10f2d63a 3219else
698dcdb6 3220
eb4efbdc 3221 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3222 if test "x$LINE" != x ; then
3223 eval "DEFAULT_$LINE"
3224 else
3225 no_cache=1
3226 fi
3227
eb4efbdc 3228 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3229
3230fi
10f2d63a
VZ
3231
3232
eb4efbdc 3233 eval "$ac_cv_use_dialupman"
10f2d63a 3234 if test "$no_cache" != 1; then
eb4efbdc 3235 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3236 fi
3237
eb4efbdc 3238 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3239 echo "$ac_t""yes" 1>&6
10f2d63a 3240 else
698dcdb6 3241 echo "$ac_t""no" 1>&6
10f2d63a 3242 fi
698dcdb6 3243
10f2d63a 3244
698dcdb6 3245 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
1a4f0015 3246echo "configure:3247: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3247 no_cache=0
3248 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3249if test "${enable_apple_ieee+set}" = set; then
3250 enableval="$enable_apple_ieee"
698dcdb6 3251
10f2d63a
VZ
3252 if test "$enableval" = yes; then
3253 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3254 else
3255 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3256 fi
698dcdb6 3257
10f2d63a 3258else
698dcdb6 3259
10f2d63a
VZ
3260 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3261 if test "x$LINE" != x ; then
3262 eval "DEFAULT_$LINE"
3263 else
3264 no_cache=1
3265 fi
3266
3267 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3268
3269fi
10f2d63a
VZ
3270
3271
3272 eval "$ac_cv_use_apple_ieee"
3273 if test "$no_cache" != 1; then
3274 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3275 fi
3276
3277 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3278 echo "$ac_t""yes" 1>&6
10f2d63a 3279 else
698dcdb6 3280 echo "$ac_t""no" 1>&6
10f2d63a 3281 fi
698dcdb6 3282
10f2d63a 3283
1e6feb95 3284 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
1a4f0015 3285echo "configure:3286: checking for --enable-timer" >&5
10f2d63a 3286 no_cache=0
1e6feb95
VZ
3287 # Check whether --enable-timer or --disable-timer was given.
3288if test "${enable_timer+set}" = set; then
3289 enableval="$enable_timer"
698dcdb6 3290
10f2d63a 3291 if test "$enableval" = yes; then
1e6feb95 3292 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3293 else
1e6feb95 3294 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3295 fi
698dcdb6 3296
10f2d63a 3297else
698dcdb6 3298
1e6feb95 3299 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3300 if test "x$LINE" != x ; then
3301 eval "DEFAULT_$LINE"
3302 else
3303 no_cache=1
3304 fi
3305
1e6feb95 3306 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3307
3308fi
10f2d63a
VZ
3309
3310
1e6feb95 3311 eval "$ac_cv_use_timer"
10f2d63a 3312 if test "$no_cache" != 1; then
1e6feb95 3313 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3314 fi
3315
1e6feb95 3316 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3317 echo "$ac_t""yes" 1>&6
10f2d63a 3318 else
698dcdb6 3319 echo "$ac_t""no" 1>&6
10f2d63a 3320 fi
698dcdb6 3321
10f2d63a 3322
698dcdb6 3323 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
1a4f0015 3324echo "configure:3325: checking for --enable-wave" >&5
10f2d63a
VZ
3325 no_cache=0
3326 # Check whether --enable-wave or --disable-wave was given.
3327if test "${enable_wave+set}" = set; then
3328 enableval="$enable_wave"
698dcdb6 3329
10f2d63a
VZ
3330 if test "$enableval" = yes; then
3331 ac_cv_use_wave='wxUSE_WAVE=yes'
3332 else
3333 ac_cv_use_wave='wxUSE_WAVE=no'
3334 fi
698dcdb6 3335
10f2d63a 3336else
698dcdb6 3337
10f2d63a
VZ
3338 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3339 if test "x$LINE" != x ; then
3340 eval "DEFAULT_$LINE"
3341 else
3342 no_cache=1
3343 fi
3344
3345 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3346
3347fi
10f2d63a
VZ
3348
3349
3350 eval "$ac_cv_use_wave"
3351 if test "$no_cache" != 1; then
3352 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3353 fi
3354
3355 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3356 echo "$ac_t""yes" 1>&6
10f2d63a 3357 else
698dcdb6 3358 echo "$ac_t""no" 1>&6
10f2d63a 3359 fi
698dcdb6 3360
10f2d63a 3361
698dcdb6 3362 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
1a4f0015 3363echo "configure:3364: checking for --enable-fraction" >&5
10f2d63a
VZ
3364 no_cache=0
3365 # Check whether --enable-fraction or --disable-fraction was given.
3366if test "${enable_fraction+set}" = set; then
3367 enableval="$enable_fraction"
698dcdb6 3368
10f2d63a
VZ
3369 if test "$enableval" = yes; then
3370 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3371 else
3372 ac_cv_use_fraction='wxUSE_FRACTION=no'
3373 fi
698dcdb6 3374
10f2d63a 3375else
698dcdb6 3376
10f2d63a
VZ
3377 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3378 if test "x$LINE" != x ; then
3379 eval "DEFAULT_$LINE"
3380 else
3381 no_cache=1
3382 fi
3383
3384 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3385
3386fi
10f2d63a
VZ
3387
3388
3389 eval "$ac_cv_use_fraction"
3390 if test "$no_cache" != 1; then
3391 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3392 fi
3393
3394 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3395 echo "$ac_t""yes" 1>&6
10f2d63a 3396 else
698dcdb6 3397 echo "$ac_t""no" 1>&6
10f2d63a 3398 fi
698dcdb6 3399
10f2d63a 3400
698dcdb6 3401 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
1a4f0015 3402echo "configure:3403: checking for --enable-dynlib" >&5
10f2d63a
VZ
3403 no_cache=0
3404 # Check whether --enable-dynlib or --disable-dynlib was given.
3405if test "${enable_dynlib+set}" = set; then
3406 enableval="$enable_dynlib"
698dcdb6 3407
10f2d63a
VZ
3408 if test "$enableval" = yes; then
3409 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3410 else
3411 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3412 fi
698dcdb6 3413
10f2d63a 3414else
698dcdb6 3415
10f2d63a
VZ
3416 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3417 if test "x$LINE" != x ; then
3418 eval "DEFAULT_$LINE"
3419 else
3420 no_cache=1
3421 fi
3422
3423 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3424
3425fi
10f2d63a
VZ
3426
3427
3428 eval "$ac_cv_use_dynlib"
3429 if test "$no_cache" != 1; then
3430 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3431 fi
3432
3433 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3434 echo "$ac_t""yes" 1>&6
10f2d63a 3435 else
698dcdb6 3436 echo "$ac_t""no" 1>&6
10f2d63a 3437 fi
698dcdb6 3438
10f2d63a 3439
698dcdb6 3440 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
1a4f0015 3441echo "configure:3442: checking for --enable-longlong" >&5
10f2d63a
VZ
3442 no_cache=0
3443 # Check whether --enable-longlong or --disable-longlong was given.
3444if test "${enable_longlong+set}" = set; then
3445 enableval="$enable_longlong"
698dcdb6 3446
10f2d63a
VZ
3447 if test "$enableval" = yes; then
3448 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3449 else
3450 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3451 fi
698dcdb6 3452
10f2d63a 3453else
698dcdb6 3454
10f2d63a
VZ
3455 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3456 if test "x$LINE" != x ; then
3457 eval "DEFAULT_$LINE"
3458 else
3459 no_cache=1
3460 fi
3461
3462 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3463
3464fi
10f2d63a
VZ
3465
3466
3467 eval "$ac_cv_use_longlong"
3468 if test "$no_cache" != 1; then
3469 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3470 fi
3471
3472 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3473 echo "$ac_t""yes" 1>&6
10f2d63a 3474 else
698dcdb6 3475 echo "$ac_t""no" 1>&6
10f2d63a 3476 fi
698dcdb6 3477
10f2d63a 3478
698dcdb6 3479 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
1a4f0015 3480echo "configure:3481: checking for --enable-geometry" >&5
e8f65ba6
RR
3481 no_cache=0
3482 # Check whether --enable-geometry or --disable-geometry was given.
3483if test "${enable_geometry+set}" = set; then
3484 enableval="$enable_geometry"
698dcdb6 3485
e8f65ba6
RR
3486 if test "$enableval" = yes; then
3487 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3488 else
3489 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3490 fi
698dcdb6 3491
e8f65ba6 3492else
698dcdb6 3493
e8f65ba6
RR
3494 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3495 if test "x$LINE" != x ; then
3496 eval "DEFAULT_$LINE"
3497 else
3498 no_cache=1
3499 fi
3500
3501 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3502
3503fi
e8f65ba6
RR
3504
3505
3506 eval "$ac_cv_use_geometry"
3507 if test "$no_cache" != 1; then
3508 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3509 fi
3510
3511 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3512 echo "$ac_t""yes" 1>&6
e8f65ba6 3513 else
698dcdb6 3514 echo "$ac_t""no" 1>&6
e8f65ba6 3515 fi
698dcdb6 3516
e8f65ba6 3517
698dcdb6 3518 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
1a4f0015 3519echo "configure:3520: checking for --enable-log" >&5
10f2d63a
VZ
3520 no_cache=0
3521 # Check whether --enable-log or --disable-log was given.
3522if test "${enable_log+set}" = set; then
3523 enableval="$enable_log"
698dcdb6 3524
10f2d63a
VZ
3525 if test "$enableval" = yes; then
3526 ac_cv_use_log='wxUSE_LOG=yes'
3527 else
3528 ac_cv_use_log='wxUSE_LOG=no'
3529 fi
698dcdb6 3530
10f2d63a 3531else
698dcdb6 3532
10f2d63a
VZ
3533 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3534 if test "x$LINE" != x ; then
3535 eval "DEFAULT_$LINE"
3536 else
3537 no_cache=1
3538 fi
3539
3540 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3541
3542fi
10f2d63a
VZ
3543
3544
3545 eval "$ac_cv_use_log"
3546 if test "$no_cache" != 1; then
3547 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3548 fi
3549
3550 if test "$wxUSE_LOG" = yes; then
698dcdb6 3551 echo "$ac_t""yes" 1>&6
10f2d63a 3552 else
698dcdb6 3553 echo "$ac_t""no" 1>&6
10f2d63a 3554 fi
698dcdb6 3555
10f2d63a 3556
698dcdb6 3557 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
1a4f0015 3558echo "configure:3559: checking for --enable-streams" >&5
10f2d63a
VZ
3559 no_cache=0
3560 # Check whether --enable-streams or --disable-streams was given.
3561if test "${enable_streams+set}" = set; then
3562 enableval="$enable_streams"
698dcdb6 3563
10f2d63a
VZ
3564 if test "$enableval" = yes; then
3565 ac_cv_use_streams='wxUSE_STREAMS=yes'
3566 else
3567 ac_cv_use_streams='wxUSE_STREAMS=no'
3568 fi
698dcdb6 3569
10f2d63a 3570else
698dcdb6 3571
10f2d63a
VZ
3572 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3573 if test "x$LINE" != x ; then
3574 eval "DEFAULT_$LINE"
3575 else
3576 no_cache=1
3577 fi
3578
3579 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3580
3581fi
10f2d63a
VZ
3582
3583
3584 eval "$ac_cv_use_streams"
3585 if test "$no_cache" != 1; then
3586 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3587 fi
3588
3589 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3590 echo "$ac_t""yes" 1>&6
10f2d63a 3591 else
698dcdb6 3592 echo "$ac_t""no" 1>&6
10f2d63a 3593 fi
698dcdb6 3594
10f2d63a 3595
698dcdb6 3596 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
1a4f0015 3597echo "configure:3598: checking for --enable-file" >&5
10f2d63a
VZ
3598 no_cache=0
3599 # Check whether --enable-file or --disable-file was given.
3600if test "${enable_file+set}" = set; then
3601 enableval="$enable_file"
698dcdb6 3602
10f2d63a
VZ
3603 if test "$enableval" = yes; then
3604 ac_cv_use_file='wxUSE_FILE=yes'
3605 else
3606 ac_cv_use_file='wxUSE_FILE=no'
3607 fi
698dcdb6 3608
10f2d63a 3609else
698dcdb6 3610
10f2d63a
VZ
3611 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3612 if test "x$LINE" != x ; then
3613 eval "DEFAULT_$LINE"
3614 else
3615 no_cache=1
3616 fi
3617
3618 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3619
3620fi
10f2d63a
VZ
3621
3622
3623 eval "$ac_cv_use_file"
3624 if test "$no_cache" != 1; then
3625 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3626 fi
3627
3628 if test "$wxUSE_FILE" = yes; then
698dcdb6 3629 echo "$ac_t""yes" 1>&6
10f2d63a 3630 else
698dcdb6 3631 echo "$ac_t""no" 1>&6
10f2d63a 3632 fi
698dcdb6 3633
10f2d63a 3634
1e6feb95 3635 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
1a4f0015 3636echo "configure:3637: checking for --enable-ffile" >&5
10f2d63a 3637 no_cache=0
1e6feb95
VZ
3638 # Check whether --enable-ffile or --disable-ffile was given.
3639if test "${enable_ffile+set}" = set; then
3640 enableval="$enable_ffile"
698dcdb6 3641
10f2d63a 3642 if test "$enableval" = yes; then
1e6feb95 3643 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3644 else
1e6feb95 3645 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3646 fi
698dcdb6 3647
10f2d63a 3648else
698dcdb6 3649
1e6feb95 3650 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3651 if test "x$LINE" != x ; then
3652 eval "DEFAULT_$LINE"
3653 else
3654 no_cache=1
3655 fi
3656
1e6feb95 3657 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3658
3659fi
10f2d63a
VZ
3660
3661
1e6feb95 3662 eval "$ac_cv_use_ffile"
10f2d63a 3663 if test "$no_cache" != 1; then
1e6feb95 3664 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3665 fi
3666
1e6feb95 3667 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3668 echo "$ac_t""yes" 1>&6
10f2d63a 3669 else
698dcdb6 3670 echo "$ac_t""no" 1>&6
10f2d63a 3671 fi
698dcdb6 3672
10f2d63a 3673
1e6feb95 3674 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
1a4f0015 3675echo "configure:3676: checking for --enable-textfile" >&5
10f2d63a 3676 no_cache=0
1e6feb95
VZ
3677 # Check whether --enable-textfile or --disable-textfile was given.
3678if test "${enable_textfile+set}" = set; then
3679 enableval="$enable_textfile"
698dcdb6 3680
10f2d63a 3681 if test "$enableval" = yes; then
1e6feb95 3682 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3683 else
1e6feb95 3684 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3685 fi
698dcdb6 3686
10f2d63a 3687else
698dcdb6 3688
1e6feb95 3689 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3690 if test "x$LINE" != x ; then
3691 eval "DEFAULT_$LINE"
3692 else
3693 no_cache=1
3694 fi
3695
1e6feb95 3696 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3697
3698fi
10f2d63a
VZ
3699
3700
1e6feb95 3701 eval "$ac_cv_use_textfile"
10f2d63a 3702 if test "$no_cache" != 1; then
1e6feb95 3703 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3704 fi
3705
1e6feb95 3706 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3707 echo "$ac_t""yes" 1>&6
10f2d63a 3708 else
698dcdb6 3709 echo "$ac_t""no" 1>&6
10f2d63a 3710 fi
698dcdb6 3711
10f2d63a 3712
1e6feb95 3713 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
1a4f0015 3714echo "configure:3715: checking for --enable-fontmap" >&5
10f2d63a 3715 no_cache=0
1e6feb95
VZ
3716 # Check whether --enable-fontmap or --disable-fontmap was given.
3717if test "${enable_fontmap+set}" = set; then
3718 enableval="$enable_fontmap"
698dcdb6 3719
10f2d63a 3720 if test "$enableval" = yes; then
1e6feb95 3721 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3722 else
1e6feb95 3723 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3724 fi
698dcdb6 3725
10f2d63a 3726else
698dcdb6 3727
1e6feb95 3728 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3729 if test "x$LINE" != x ; then
3730 eval "DEFAULT_$LINE"
3731 else
3732 no_cache=1
3733 fi
3734
1e6feb95 3735 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3736
3737fi
10f2d63a
VZ
3738
3739
1e6feb95 3740 eval "$ac_cv_use_fontmap"
10f2d63a 3741 if test "$no_cache" != 1; then
1e6feb95 3742 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3743 fi
3744
1e6feb95 3745 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3746 echo "$ac_t""yes" 1>&6
10f2d63a 3747 else
698dcdb6 3748 echo "$ac_t""no" 1>&6
10f2d63a 3749 fi
698dcdb6 3750
10f2d63a 3751
1e6feb95 3752 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
1a4f0015 3753echo "configure:3754: checking for --enable-unicode" >&5
10f2d63a 3754 no_cache=0
1e6feb95
VZ
3755 # Check whether --enable-unicode or --disable-unicode was given.
3756if test "${enable_unicode+set}" = set; then
3757 enableval="$enable_unicode"
3758
3759 if test "$enableval" = yes; then
3760 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3761 else
3762 ac_cv_use_unicode='wxUSE_UNICODE=no'
3763 fi
3764
3765else
3766
3767 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3768 if test "x$LINE" != x ; then
3769 eval "DEFAULT_$LINE"
3770 else
3771 no_cache=1
3772 fi
3773
3774 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3775
3776fi
3777
3778
3779 eval "$ac_cv_use_unicode"
3780 if test "$no_cache" != 1; then
3781 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3782 fi
3783
3784 if test "$wxUSE_UNICODE" = yes; then
3785 echo "$ac_t""yes" 1>&6
3786 else
3787 echo "$ac_t""no" 1>&6
3788 fi
3789
3790
1e6feb95 3791 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
1a4f0015 3792echo "configure:3793: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3793 no_cache=0
3794 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3795if test "${enable_wxprintfv+set}" = set; then
3796 enableval="$enable_wxprintfv"
3797
3798 if test "$enableval" = yes; then
10f2d63a
VZ
3799 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3800 else
3801 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3802 fi
698dcdb6 3803
10f2d63a 3804else
698dcdb6 3805
10f2d63a
VZ
3806 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3807 if test "x$LINE" != x ; then
3808 eval "DEFAULT_$LINE"
3809 else
3810 no_cache=1
3811 fi
3812
3813 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3814
3815fi
10f2d63a
VZ
3816
3817
3818 eval "$ac_cv_use_wxprintfv"
3819 if test "$no_cache" != 1; then
3820 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3821 fi
3822
3823 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3824 echo "$ac_t""yes" 1>&6
10f2d63a 3825 else
698dcdb6 3826 echo "$ac_t""no" 1>&6
10f2d63a 3827 fi
698dcdb6 3828
10f2d63a 3829
698dcdb6 3830 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
1a4f0015 3831echo "configure:3832: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3832 no_cache=0
3833 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3834if test "${enable_std_iostreams+set}" = set; then
3835 enableval="$enable_std_iostreams"
698dcdb6 3836
10f2d63a
VZ
3837 if test "$enableval" = yes; then
3838 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3839 else
3840 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3841 fi
698dcdb6 3842
10f2d63a 3843else
698dcdb6 3844
10f2d63a
VZ
3845 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3846 if test "x$LINE" != x ; then
3847 eval "DEFAULT_$LINE"
3848 else
3849 no_cache=1
3850 fi
3851
3852 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3853
3854fi
10f2d63a
VZ
3855
3856
3857 eval "$ac_cv_use_std_iostreams"
3858 if test "$no_cache" != 1; then
3859 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3860 fi
3861
3862 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3863 echo "$ac_t""yes" 1>&6
10f2d63a 3864 else
698dcdb6 3865 echo "$ac_t""no" 1>&6
10f2d63a 3866 fi
698dcdb6 3867
10f2d63a 3868
698dcdb6 3869 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
1a4f0015 3870echo "configure:3871: checking for --enable-filesystem" >&5
24528b0c
VS
3871 no_cache=0
3872 # Check whether --enable-filesystem or --disable-filesystem was given.
3873if test "${enable_filesystem+set}" = set; then
3874 enableval="$enable_filesystem"
698dcdb6 3875
24528b0c
VS
3876 if test "$enableval" = yes; then
3877 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3878 else
3879 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3880 fi
698dcdb6 3881
24528b0c 3882else
698dcdb6 3883
24528b0c
VS
3884 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3885 if test "x$LINE" != x ; then
3886 eval "DEFAULT_$LINE"
3887 else
3888 no_cache=1
3889 fi
3890
3891 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3892
3893fi
24528b0c
VS
3894
3895
3896 eval "$ac_cv_use_filesystem"
3897 if test "$no_cache" != 1; then
3898 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3899 fi
3900
3901 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3902 echo "$ac_t""yes" 1>&6
24528b0c 3903 else
698dcdb6 3904 echo "$ac_t""no" 1>&6
24528b0c 3905 fi
698dcdb6 3906
24528b0c 3907
698dcdb6 3908 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
1a4f0015 3909echo "configure:3910: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3910 no_cache=0
3911 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3912if test "${enable_fs_inet+set}" = set; then
3913 enableval="$enable_fs_inet"
698dcdb6 3914
10f2d63a
VZ
3915 if test "$enableval" = yes; then
3916 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3917 else
3918 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3919 fi
698dcdb6 3920
10f2d63a 3921else
698dcdb6 3922
10f2d63a
VZ
3923 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3924 if test "x$LINE" != x ; then
3925 eval "DEFAULT_$LINE"
3926 else
3927 no_cache=1
3928 fi
3929
3930 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3931
3932fi
10f2d63a
VZ
3933
3934
3935 eval "$ac_cv_use_fs_inet"
3936 if test "$no_cache" != 1; then
3937 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3938 fi
3939
3940 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3941 echo "$ac_t""yes" 1>&6
10f2d63a 3942 else
698dcdb6 3943 echo "$ac_t""no" 1>&6
10f2d63a 3944 fi
698dcdb6 3945
10f2d63a 3946
698dcdb6 3947 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
1a4f0015 3948echo "configure:3949: checking for --enable-fs_zip" >&5
10f2d63a
VZ
3949 no_cache=0
3950 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3951if test "${enable_fs_zip+set}" = set; then
3952 enableval="$enable_fs_zip"
698dcdb6 3953
10f2d63a
VZ
3954 if test "$enableval" = yes; then
3955 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3956 else
3957 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3958 fi
698dcdb6 3959
10f2d63a 3960else
698dcdb6 3961
10f2d63a
VZ
3962 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3963 if test "x$LINE" != x ; then
3964 eval "DEFAULT_$LINE"
3965 else
3966 no_cache=1
3967 fi
3968
3969 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
3970
3971fi
10f2d63a
VZ
3972
3973
3974 eval "$ac_cv_use_fs_zip"
3975 if test "$no_cache" != 1; then
3976 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3977 fi
3978
3979 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 3980 echo "$ac_t""yes" 1>&6
10f2d63a 3981 else
698dcdb6 3982 echo "$ac_t""no" 1>&6
10f2d63a 3983 fi
698dcdb6 3984
10f2d63a 3985
698dcdb6 3986 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
1a4f0015 3987echo "configure:3988: checking for --enable-zipstream" >&5
10f2d63a
VZ
3988 no_cache=0
3989 # Check whether --enable-zipstream or --disable-zipstream was given.
3990if test "${enable_zipstream+set}" = set; then
3991 enableval="$enable_zipstream"
698dcdb6 3992
10f2d63a
VZ
3993 if test "$enableval" = yes; then
3994 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3995 else
3996 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3997 fi
698dcdb6 3998
10f2d63a 3999else
698dcdb6 4000
10f2d63a
VZ
4001 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4002 if test "x$LINE" != x ; then
4003 eval "DEFAULT_$LINE"
4004 else
4005 no_cache=1
4006 fi
4007
4008 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4009
4010fi
10f2d63a
VZ
4011
4012
4013 eval "$ac_cv_use_zipstream"
4014 if test "$no_cache" != 1; then
4015 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4016 fi
4017
4018 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4019 echo "$ac_t""yes" 1>&6
10f2d63a 4020 else
698dcdb6 4021 echo "$ac_t""no" 1>&6
10f2d63a 4022 fi
698dcdb6 4023
10f2d63a 4024
698dcdb6
VZ
4025
4026 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
1a4f0015 4027echo "configure:4028: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4028 no_cache=0
4029 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4030if test "${enable_catch_segvs+set}" = set; then
4031 enableval="$enable_catch_segvs"
698dcdb6 4032
eb4efbdc
VZ
4033 if test "$enableval" = yes; then
4034 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4035 else
4036 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4037 fi
698dcdb6 4038
eb4efbdc 4039else
698dcdb6 4040
eb4efbdc
VZ
4041 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4042 if test "x$LINE" != x ; then
4043 eval "DEFAULT_$LINE"
4044 else
4045 no_cache=1
4046 fi
4047
4048 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4049
4050fi
eb4efbdc
VZ
4051
4052
4053 eval "$ac_cv_use_catch_segvs"
4054 if test "$no_cache" != 1; then
4055 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4056 fi
4057
4058 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4059 echo "$ac_t""yes" 1>&6
eb4efbdc 4060 else
698dcdb6 4061 echo "$ac_t""no" 1>&6
eb4efbdc 4062 fi
698dcdb6 4063
eb4efbdc 4064
698dcdb6 4065 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
1a4f0015 4066echo "configure:4067: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4067 no_cache=0
4068 # Check whether --enable-snglinst or --disable-snglinst was given.
4069if test "${enable_snglinst+set}" = set; then
4070 enableval="$enable_snglinst"
698dcdb6 4071
4f3c5f06
VZ
4072 if test "$enableval" = yes; then
4073 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4074 else
4075 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4076 fi
698dcdb6 4077
4f3c5f06 4078else
698dcdb6 4079
4f3c5f06
VZ
4080 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4081 if test "x$LINE" != x ; then
4082 eval "DEFAULT_$LINE"
4083 else
4084 no_cache=1
4085 fi
4086
4087 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4088
4089fi
4f3c5f06
VZ
4090
4091
4092 eval "$ac_cv_use_snglinst"
4093 if test "$no_cache" != 1; then
4094 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4095 fi
4096
4097 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4098 echo "$ac_t""yes" 1>&6
4f3c5f06 4099 else
698dcdb6 4100 echo "$ac_t""no" 1>&6
4f3c5f06 4101 fi
698dcdb6
VZ
4102
4103
eb4efbdc 4104
1e6feb95 4105 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
1a4f0015 4106echo "configure:4107: checking for --enable-mimetype" >&5
1e6feb95
VZ
4107 no_cache=0
4108 # Check whether --enable-mimetype or --disable-mimetype was given.
4109if test "${enable_mimetype+set}" = set; then
4110 enableval="$enable_mimetype"
4111
4112 if test "$enableval" = yes; then
4113 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4114 else
4115 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4116 fi
4117
4118else
4119
4120 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4121 if test "x$LINE" != x ; then
4122 eval "DEFAULT_$LINE"
4123 else
4124 no_cache=1
4125 fi
4126
4127 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4128
4129fi
4130
4131
4132 eval "$ac_cv_use_mimetype"
4133 if test "$no_cache" != 1; then
4134 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4135 fi
4136
4137 if test "$wxUSE_MIMETYPE" = yes; then
4138 echo "$ac_t""yes" 1>&6
4139 else
4140 echo "$ac_t""no" 1>&6
4141 fi
4142
4143
3e44f09d 4144 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
1a4f0015 4145echo "configure:4146: checking for --enable-system_options" >&5
3e44f09d
VZ
4146 no_cache=0
4147 # Check whether --enable-system_options or --disable-system_options was given.
4148if test "${enable_system_options+set}" = set; then
4149 enableval="$enable_system_options"
4150
4151 if test "$enableval" = yes; then
4152 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4153 else
4154 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4155 fi
4156
4157else
4158
4159 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4160 if test "x$LINE" != x ; then
4161 eval "DEFAULT_$LINE"
4162 else
4163 no_cache=1
4164 fi
4165
4166 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4167
4168fi
4169
4170
4171 eval "$ac_cv_use_system_options"
4172 if test "$no_cache" != 1; then
4173 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4174 fi
4175
4176 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4177 echo "$ac_t""yes" 1>&6
4178 else
4179 echo "$ac_t""no" 1>&6
4180 fi
4181
4182
1e6feb95 4183
698dcdb6
VZ
4184
4185 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
1a4f0015 4186echo "configure:4187: checking for --enable-threads" >&5
10f2d63a
VZ
4187 no_cache=0
4188 # Check whether --enable-threads or --disable-threads was given.
4189if test "${enable_threads+set}" = set; then
4190 enableval="$enable_threads"
698dcdb6 4191
10f2d63a
VZ
4192 if test "$enableval" = yes; then
4193 ac_cv_use_threads='wxUSE_THREADS=yes'
4194 else
4195 ac_cv_use_threads='wxUSE_THREADS=no'
4196 fi
698dcdb6 4197
10f2d63a 4198else
698dcdb6 4199
10f2d63a
VZ
4200 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4201 if test "x$LINE" != x ; then
4202 eval "DEFAULT_$LINE"
4203 else
4204 no_cache=1
4205 fi
4206
4207 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4208
4209fi
10f2d63a
VZ
4210
4211
4212 eval "$ac_cv_use_threads"
4213 if test "$no_cache" != 1; then
4214 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4215 fi
4216
4217 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4218 echo "$ac_t""yes" 1>&6
10f2d63a 4219 else
698dcdb6 4220 echo "$ac_t""no" 1>&6
10f2d63a 4221 fi
698dcdb6 4222
10f2d63a 4223
698dcdb6 4224 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
1a4f0015 4225echo "configure:4226: checking for --enable-serial" >&5
10f2d63a
VZ
4226 no_cache=0
4227 # Check whether --enable-serial or --disable-serial was given.
4228if test "${enable_serial+set}" = set; then
4229 enableval="$enable_serial"
698dcdb6 4230
10f2d63a
VZ
4231 if test "$enableval" = yes; then
4232 ac_cv_use_serial='wxUSE_SERIAL=yes'
4233 else
4234 ac_cv_use_serial='wxUSE_SERIAL=no'
4235 fi
698dcdb6 4236
10f2d63a 4237else
698dcdb6 4238
10f2d63a
VZ
4239 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4240 if test "x$LINE" != x ; then
4241 eval "DEFAULT_$LINE"
4242 else
4243 no_cache=1
4244 fi
4245
4246 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4247
4248fi
10f2d63a
VZ
4249
4250
4251 eval "$ac_cv_use_serial"
4252 if test "$no_cache" != 1; then
4253 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4254 fi
4255
4256 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4257 echo "$ac_t""yes" 1>&6
10f2d63a 4258 else
698dcdb6 4259 echo "$ac_t""no" 1>&6
10f2d63a 4260 fi
698dcdb6 4261
10f2d63a 4262
b12915c1
VZ
4263if test "$wxUSE_GUI" = "yes"; then
4264
698dcdb6
VZ
4265
4266
4267 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
1a4f0015 4268echo "configure:4269: checking for --enable-docview" >&5
10f2d63a
VZ
4269 no_cache=0
4270 # Check whether --enable-docview or --disable-docview was given.
4271if test "${enable_docview+set}" = set; then
4272 enableval="$enable_docview"
698dcdb6 4273
10f2d63a
VZ
4274 if test "$enableval" = yes; then
4275 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4276 else
4277 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4278 fi
698dcdb6 4279
10f2d63a 4280else
698dcdb6 4281
10f2d63a
VZ
4282 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4283 if test "x$LINE" != x ; then
4284 eval "DEFAULT_$LINE"
4285 else
4286 no_cache=1
4287 fi
4288
4289 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4290
4291fi
10f2d63a
VZ
4292
4293
4294 eval "$ac_cv_use_docview"
4295 if test "$no_cache" != 1; then
4296 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4297 fi
4298
4299 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4300 echo "$ac_t""yes" 1>&6
10f2d63a 4301 else
698dcdb6 4302 echo "$ac_t""no" 1>&6
10f2d63a 4303 fi
698dcdb6 4304
10f2d63a 4305
698dcdb6 4306 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
1a4f0015 4307echo "configure:4308: checking for --enable-help" >&5
10f2d63a
VZ
4308 no_cache=0
4309 # Check whether --enable-help or --disable-help was given.
4310if test "${enable_help+set}" = set; then
4311 enableval="$enable_help"
698dcdb6 4312
10f2d63a
VZ
4313 if test "$enableval" = yes; then
4314 ac_cv_use_help='wxUSE_HELP=yes'
4315 else
4316 ac_cv_use_help='wxUSE_HELP=no'
4317 fi
698dcdb6 4318
10f2d63a 4319else
698dcdb6 4320
10f2d63a
VZ
4321 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4322 if test "x$LINE" != x ; then
4323 eval "DEFAULT_$LINE"
4324 else
4325 no_cache=1
4326 fi
4327
4328 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4329
4330fi
10f2d63a
VZ
4331
4332
4333 eval "$ac_cv_use_help"
4334 if test "$no_cache" != 1; then
4335 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4336 fi
4337
4338 if test "$wxUSE_HELP" = yes; then
698dcdb6 4339 echo "$ac_t""yes" 1>&6
10f2d63a 4340 else
698dcdb6 4341 echo "$ac_t""no" 1>&6
10f2d63a 4342 fi
698dcdb6 4343
10f2d63a 4344
29fd3c0c 4345 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
1a4f0015 4346echo "configure:4347: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4347 no_cache=0
4348 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4349if test "${enable_mshtmlhelp+set}" = set; then
4350 enableval="$enable_mshtmlhelp"
4351
4352 if test "$enableval" = yes; then
4353 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4354 else
4355 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4356 fi
4357
4358else
4359
4360 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4361 if test "x$LINE" != x ; then
4362 eval "DEFAULT_$LINE"
4363 else
4364 no_cache=1
4365 fi
4366
4367 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4368
4369fi
4370
4371
4372 eval "$ac_cv_use_mshtmlhelp"
4373 if test "$no_cache" != 1; then
4374 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4375 fi
4376
4377 if test "$wxUSE_MS_HTML_HELP" = yes; then
4378 echo "$ac_t""yes" 1>&6
4379 else
4380 echo "$ac_t""no" 1>&6
4381 fi
4382
4383
3379ed37 4384 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
1a4f0015 4385echo "configure:4386: checking for --enable-html" >&5
3379ed37
VZ
4386 no_cache=0
4387 # Check whether --enable-html or --disable-html was given.
4388if test "${enable_html+set}" = set; then
4389 enableval="$enable_html"
4390
4391 if test "$enableval" = yes; then
4392 ac_cv_use_html='wxUSE_HTML=yes'
4393 else
4394 ac_cv_use_html='wxUSE_HTML=no'
4395 fi
4396
4397else
4398
4399 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4400 if test "x$LINE" != x ; then
4401 eval "DEFAULT_$LINE"
4402 else
4403 no_cache=1
4404 fi
4405
4406 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4407
4408fi
4409
4410
4411 eval "$ac_cv_use_html"
4412 if test "$no_cache" != 1; then
4413 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4414 fi
4415
4416 if test "$wxUSE_HTML" = yes; then
4417 echo "$ac_t""yes" 1>&6
4418 else
4419 echo "$ac_t""no" 1>&6
4420 fi
4421
4422
4423 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
1a4f0015 4424echo "configure:4425: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4425 no_cache=0
4426 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4427if test "${enable_htmlhelp+set}" = set; then
4428 enableval="$enable_htmlhelp"
4429
4430 if test "$enableval" = yes; then
4431 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4432 else
4433 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4434 fi
4435
4436else
4437
4438 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4439 if test "x$LINE" != x ; then
4440 eval "DEFAULT_$LINE"
4441 else
4442 no_cache=1
4443 fi
4444
4445 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4446
4447fi
4448
4449
4450 eval "$ac_cv_use_htmlhelp"
4451 if test "$no_cache" != 1; then
4452 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4453 fi
4454
4455 if test "$wxUSE_WXHTML_HELP" = yes; then
4456 echo "$ac_t""yes" 1>&6
4457 else
4458 echo "$ac_t""no" 1>&6
4459 fi
4460
4461
698dcdb6 4462 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
1a4f0015 4463echo "configure:4464: checking for --enable-constraints" >&5
10f2d63a
VZ
4464 no_cache=0
4465 # Check whether --enable-constraints or --disable-constraints was given.
4466if test "${enable_constraints+set}" = set; then
4467 enableval="$enable_constraints"
698dcdb6 4468
10f2d63a
VZ
4469 if test "$enableval" = yes; then
4470 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4471 else
4472 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4473 fi
698dcdb6 4474
10f2d63a 4475else
698dcdb6 4476
10f2d63a
VZ
4477 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4478 if test "x$LINE" != x ; then
4479 eval "DEFAULT_$LINE"
4480 else
4481 no_cache=1
4482 fi
4483
4484 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4485
4486fi
10f2d63a
VZ
4487
4488
4489 eval "$ac_cv_use_constraints"
4490 if test "$no_cache" != 1; then
4491 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4492 fi
4493
4494 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4495 echo "$ac_t""yes" 1>&6
10f2d63a 4496 else
698dcdb6 4497 echo "$ac_t""no" 1>&6
10f2d63a 4498 fi
698dcdb6 4499
10f2d63a 4500
698dcdb6 4501 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
1a4f0015 4502echo "configure:4503: checking for --enable-printarch" >&5
10f2d63a
VZ
4503 no_cache=0
4504 # Check whether --enable-printarch or --disable-printarch was given.
4505if test "${enable_printarch+set}" = set; then
4506 enableval="$enable_printarch"
698dcdb6 4507
10f2d63a
VZ
4508 if test "$enableval" = yes; then
4509 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4510 else
4511 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4512 fi
698dcdb6 4513
10f2d63a 4514else
698dcdb6 4515
10f2d63a
VZ
4516 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4517 if test "x$LINE" != x ; then
4518 eval "DEFAULT_$LINE"
4519 else
4520 no_cache=1
4521 fi
4522
4523 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4524
4525fi
10f2d63a
VZ
4526
4527
4528 eval "$ac_cv_use_printarch"
4529 if test "$no_cache" != 1; then
4530 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4531 fi
4532
4533 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4534 echo "$ac_t""yes" 1>&6
10f2d63a 4535 else
698dcdb6 4536 echo "$ac_t""no" 1>&6
10f2d63a 4537 fi
698dcdb6 4538
10f2d63a 4539
698dcdb6 4540 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
1a4f0015 4541echo "configure:4542: checking for --enable-mdi" >&5
10f2d63a
VZ
4542 no_cache=0
4543 # Check whether --enable-mdi or --disable-mdi was given.
4544if test "${enable_mdi+set}" = set; then
4545 enableval="$enable_mdi"
698dcdb6 4546
10f2d63a
VZ
4547 if test "$enableval" = yes; then
4548 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4549 else
4550 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4551 fi
698dcdb6 4552
10f2d63a 4553else
698dcdb6 4554
10f2d63a
VZ
4555 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4556 if test "x$LINE" != x ; then
4557 eval "DEFAULT_$LINE"
4558 else
4559 no_cache=1
4560 fi
4561
4562 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4563
4564fi
10f2d63a
VZ
4565
4566
4567 eval "$ac_cv_use_mdi"
4568 if test "$no_cache" != 1; then
4569 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4570 fi
4571
4572 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4573 echo "$ac_t""yes" 1>&6
10f2d63a 4574 else
698dcdb6 4575 echo "$ac_t""no" 1>&6
10f2d63a 4576 fi
698dcdb6
VZ
4577
4578
1e6feb95 4579 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
1a4f0015 4580echo "configure:4581: checking for --enable-loggui" >&5
1e6feb95
VZ
4581 no_cache=0
4582 # Check whether --enable-loggui or --disable-loggui was given.
4583if test "${enable_loggui+set}" = set; then
4584 enableval="$enable_loggui"
4585
4586 if test "$enableval" = yes; then
4587 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4588 else
4589 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4590 fi
4591
4592else
4593
4594 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4595 if test "x$LINE" != x ; then
4596 eval "DEFAULT_$LINE"
4597 else
4598 no_cache=1
4599 fi
4600
4601 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4602
4603fi
4604
4605
4606 eval "$ac_cv_use_loggui"
4607 if test "$no_cache" != 1; then
4608 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4609 fi
4610
4611 if test "$wxUSE_LOGGUI" = yes; then
4612 echo "$ac_t""yes" 1>&6
4613 else
4614 echo "$ac_t""no" 1>&6
4615 fi
4616
4617
4618 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
1a4f0015 4619echo "configure:4620: checking for --enable-logwin" >&5
1e6feb95
VZ
4620 no_cache=0
4621 # Check whether --enable-logwin or --disable-logwin was given.
4622if test "${enable_logwin+set}" = set; then
4623 enableval="$enable_logwin"
4624
4625 if test "$enableval" = yes; then
4626 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4627 else
4628 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4629 fi
4630
4631else
4632
4633 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4634 if test "x$LINE" != x ; then
4635 eval "DEFAULT_$LINE"
4636 else
4637 no_cache=1
4638 fi
4639
4640 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4641
4642fi
4643
4644
4645 eval "$ac_cv_use_logwin"
4646 if test "$no_cache" != 1; then
4647 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4648 fi
4649
4650 if test "$wxUSE_LOGWINDOW" = yes; then
4651 echo "$ac_t""yes" 1>&6
4652 else
4653 echo "$ac_t""no" 1>&6
4654 fi
4655
4656
10f2d63a 4657
698dcdb6 4658 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
1a4f0015 4659echo "configure:4660: checking for --enable-postscript" >&5
10f2d63a
VZ
4660 no_cache=0
4661 # Check whether --enable-postscript or --disable-postscript was given.
4662if test "${enable_postscript+set}" = set; then
4663 enableval="$enable_postscript"
698dcdb6 4664
10f2d63a
VZ
4665 if test "$enableval" = yes; then
4666 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4667 else
4668 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4669 fi
698dcdb6 4670
10f2d63a 4671else
698dcdb6 4672
10f2d63a
VZ
4673 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4674 if test "x$LINE" != x ; then
4675 eval "DEFAULT_$LINE"
4676 else
4677 no_cache=1
4678 fi
4679
4680 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4681
4682fi
10f2d63a
VZ
4683
4684
4685 eval "$ac_cv_use_postscript"
4686 if test "$no_cache" != 1; then
4687 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4688 fi
4689
4690 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4691 echo "$ac_t""yes" 1>&6
10f2d63a 4692 else
698dcdb6 4693 echo "$ac_t""no" 1>&6
10f2d63a 4694 fi
698dcdb6
VZ
4695
4696
4697
10f2d63a 4698
1e6feb95 4699
698dcdb6 4700 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
1a4f0015 4701echo "configure:4702: checking for --enable-prologio" >&5
10f2d63a
VZ
4702 no_cache=0
4703 # Check whether --enable-prologio or --disable-prologio was given.
4704if test "${enable_prologio+set}" = set; then
4705 enableval="$enable_prologio"
698dcdb6 4706
10f2d63a
VZ
4707 if test "$enableval" = yes; then
4708 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4709 else
4710 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4711 fi
698dcdb6 4712
10f2d63a 4713else
698dcdb6 4714
10f2d63a
VZ
4715 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4716 if test "x$LINE" != x ; then
4717 eval "DEFAULT_$LINE"
4718 else
4719 no_cache=1
4720 fi
4721
4722 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4723
4724fi
10f2d63a
VZ
4725
4726
4727 eval "$ac_cv_use_prologio"
4728 if test "$no_cache" != 1; then
4729 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4730 fi
4731
4732 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4733 echo "$ac_t""yes" 1>&6
10f2d63a 4734 else
698dcdb6 4735 echo "$ac_t""no" 1>&6
10f2d63a 4736 fi
698dcdb6 4737
10f2d63a 4738
698dcdb6 4739 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
1a4f0015 4740echo "configure:4741: checking for --enable-resources" >&5
10f2d63a
VZ
4741 no_cache=0
4742 # Check whether --enable-resources or --disable-resources was given.
4743if test "${enable_resources+set}" = set; then
4744 enableval="$enable_resources"
698dcdb6 4745
10f2d63a
VZ
4746 if test "$enableval" = yes; then
4747 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4748 else
4749 ac_cv_use_resources='wxUSE_RESOURCES=no'
4750 fi
698dcdb6 4751
10f2d63a 4752else
698dcdb6 4753
10f2d63a
VZ
4754 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4755 if test "x$LINE" != x ; then
4756 eval "DEFAULT_$LINE"
4757 else
4758 no_cache=1
4759 fi
4760
4761 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4762
4763fi
10f2d63a
VZ
4764
4765
4766 eval "$ac_cv_use_resources"
4767 if test "$no_cache" != 1; then
4768 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4769 fi
4770
4771 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4772 echo "$ac_t""yes" 1>&6
10f2d63a 4773 else
698dcdb6 4774 echo "$ac_t""no" 1>&6
10f2d63a 4775 fi
698dcdb6 4776
10f2d63a 4777
698dcdb6
VZ
4778
4779 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
1a4f0015 4780echo "configure:4781: checking for --enable-xresources" >&5
10f2d63a
VZ
4781 no_cache=0
4782 # Check whether --enable-xresources or --disable-xresources was given.
4783if test "${enable_xresources+set}" = set; then
4784 enableval="$enable_xresources"
698dcdb6 4785
10f2d63a
VZ
4786 if test "$enableval" = yes; then
4787 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4788 else
4789 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4790 fi
698dcdb6 4791
10f2d63a 4792else
698dcdb6 4793
10f2d63a
VZ
4794 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4795 if test "x$LINE" != x ; then
4796 eval "DEFAULT_$LINE"
4797 else
4798 no_cache=1
4799 fi
4800
4801 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4802
4803fi
10f2d63a
VZ
4804
4805
4806 eval "$ac_cv_use_xresources"
4807 if test "$no_cache" != 1; then
4808 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4809 fi
4810
4811 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4812 echo "$ac_t""yes" 1>&6
10f2d63a 4813 else
698dcdb6 4814 echo "$ac_t""no" 1>&6
10f2d63a 4815 fi
698dcdb6
VZ
4816
4817
10f2d63a 4818
698dcdb6
VZ
4819
4820 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
1a4f0015 4821echo "configure:4822: checking for --enable-clipboard" >&5
10f2d63a
VZ
4822 no_cache=0
4823 # Check whether --enable-clipboard or --disable-clipboard was given.
4824if test "${enable_clipboard+set}" = set; then
4825 enableval="$enable_clipboard"
698dcdb6 4826
10f2d63a
VZ
4827 if test "$enableval" = yes; then
4828 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4829 else
4830 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4831 fi
698dcdb6 4832
10f2d63a 4833else
698dcdb6 4834
10f2d63a
VZ
4835 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4836 if test "x$LINE" != x ; then
4837 eval "DEFAULT_$LINE"
4838 else
4839 no_cache=1
4840 fi
4841
4842 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4843
4844fi
10f2d63a
VZ
4845
4846
4847 eval "$ac_cv_use_clipboard"
4848 if test "$no_cache" != 1; then
4849 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4850 fi
4851
4852 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4853 echo "$ac_t""yes" 1>&6
10f2d63a 4854 else
698dcdb6 4855 echo "$ac_t""no" 1>&6
10f2d63a 4856 fi
698dcdb6 4857
10f2d63a 4858
698dcdb6 4859 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
1a4f0015 4860echo "configure:4861: checking for --enable-dnd" >&5
10f2d63a
VZ
4861 no_cache=0
4862 # Check whether --enable-dnd or --disable-dnd was given.
4863if test "${enable_dnd+set}" = set; then
4864 enableval="$enable_dnd"
698dcdb6 4865
10f2d63a
VZ
4866 if test "$enableval" = yes; then
4867 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4868 else
4869 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4870 fi
698dcdb6 4871
10f2d63a 4872else
698dcdb6 4873
10f2d63a
VZ
4874 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4875 if test "x$LINE" != x ; then
4876 eval "DEFAULT_$LINE"
4877 else
4878 no_cache=1
4879 fi
4880
4881 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4882
4883fi
10f2d63a
VZ
4884
4885
4886 eval "$ac_cv_use_dnd"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4889 fi
4890
4891 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 4892 echo "$ac_t""yes" 1>&6
10f2d63a 4893 else
698dcdb6 4894 echo "$ac_t""no" 1>&6
10f2d63a 4895 fi
698dcdb6 4896
10f2d63a 4897
698dcdb6 4898 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
1a4f0015 4899echo "configure:4900: checking for --enable-metafile" >&5
b64f0a5f
RL
4900 no_cache=0
4901 # Check whether --enable-metafile or --disable-metafile was given.
4902if test "${enable_metafile+set}" = set; then
4903 enableval="$enable_metafile"
698dcdb6 4904
b64f0a5f
RL
4905 if test "$enableval" = yes; then
4906 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4907 else
4908 ac_cv_use_metafile='wxUSE_METAFILE=no'
4909 fi
698dcdb6 4910
b64f0a5f 4911else
698dcdb6 4912
b64f0a5f
RL
4913 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4914 if test "x$LINE" != x ; then
4915 eval "DEFAULT_$LINE"
4916 else
4917 no_cache=1
4918 fi
4919
4920 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4921
4922fi
b64f0a5f
RL
4923
4924
4925 eval "$ac_cv_use_metafile"
4926 if test "$no_cache" != 1; then
4927 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4928 fi
4929
4930 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4931 echo "$ac_t""yes" 1>&6
b64f0a5f 4932 else
698dcdb6 4933 echo "$ac_t""no" 1>&6
b64f0a5f 4934 fi
698dcdb6
VZ
4935
4936
10f2d63a 4937
24176f2c 4938 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
1a4f0015 4939echo "configure:4940: checking for --enable-treelayout" >&5
10f2d63a 4940 no_cache=0
24176f2c
GD
4941 # Check whether --enable-treelayout or --disable-treelayout was given.
4942if test "${enable_treelayout+set}" = set; then
4943 enableval="$enable_treelayout"
698dcdb6 4944
10f2d63a 4945 if test "$enableval" = yes; then
24176f2c 4946 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 4947 else
24176f2c 4948 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 4949 fi
698dcdb6 4950
10f2d63a 4951else
698dcdb6 4952
24176f2c 4953 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
4954 if test "x$LINE" != x ; then
4955 eval "DEFAULT_$LINE"
4956 else
4957 no_cache=1
4958 fi
4959
24176f2c 4960 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
4961
4962fi
10f2d63a
VZ
4963
4964
24176f2c 4965 eval "$ac_cv_use_treelayout"
10f2d63a 4966 if test "$no_cache" != 1; then
24176f2c 4967 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4968 fi
4969
24176f2c 4970 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 4971 echo "$ac_t""yes" 1>&6
10f2d63a 4972 else
698dcdb6 4973 echo "$ac_t""no" 1>&6
10f2d63a 4974 fi
698dcdb6 4975
10f2d63a 4976
698dcdb6
VZ
4977
4978
4979 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
1a4f0015 4980echo "configure:4981: checking for --enable-controls" >&5
10f2d63a
VZ
4981 no_cache=0
4982 # Check whether --enable-controls or --disable-controls was given.
4983if test "${enable_controls+set}" = set; then
4984 enableval="$enable_controls"
698dcdb6 4985
10f2d63a
VZ
4986 if test "$enableval" = yes; then
4987 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4988 else
4989 ac_cv_use_controls='wxUSE_CONTROLS=no'
4990 fi
698dcdb6 4991
10f2d63a 4992else
698dcdb6 4993
10f2d63a
VZ
4994 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4995 if test "x$LINE" != x ; then
4996 eval "DEFAULT_$LINE"
4997 else
4998 no_cache=1
4999 fi
5000
5001 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5002
5003fi
10f2d63a
VZ
5004
5005
5006 eval "$ac_cv_use_controls"
5007 if test "$no_cache" != 1; then
5008 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5009 fi
5010
5011 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5012 echo "$ac_t""yes" 1>&6
10f2d63a 5013 else
698dcdb6 5014 echo "$ac_t""no" 1>&6
10f2d63a 5015 fi
698dcdb6 5016
10f2d63a
VZ
5017
5018if test "$wxUSE_CONTROLS" = "yes"; then
5019 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5020 DEFAULT_wxUSE_BMPBUTTON=yes
5021 DEFAULT_wxUSE_BUTTON=yes
5022 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5023 DEFAULT_wxUSE_CARET=yes
5024 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5025 DEFAULT_wxUSE_CHECKBOX=yes
5026 DEFAULT_wxUSE_CHECKLISTBOX=yes
5027 DEFAULT_wxUSE_CHOICE=yes
5028 DEFAULT_wxUSE_GAUGE=yes
5029 DEFAULT_wxUSE_GRID=yes
cc977e5f 5030 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5031 DEFAULT_wxUSE_IMAGLIST=yes
5032 DEFAULT_wxUSE_LISTBOX=yes
5033 DEFAULT_wxUSE_LISTCTRL=yes
5034 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5035 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5036 DEFAULT_wxUSE_RADIOBOX=yes
5037 DEFAULT_wxUSE_RADIOBTN=yes
5038 DEFAULT_wxUSE_SASH=yes
5039 DEFAULT_wxUSE_SCROLLBAR=yes
5040 DEFAULT_wxUSE_SLIDER=yes
5041 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5042 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5043 DEFAULT_wxUSE_SPLITTER=yes
5044 DEFAULT_wxUSE_STATBMP=yes
5045 DEFAULT_wxUSE_STATBOX=yes
5046 DEFAULT_wxUSE_STATLINE=yes
5047 DEFAULT_wxUSE_STATUSBAR=yes
5048 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5049 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5050 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5051 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5052 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5053 DEFAULT_wxUSE_TOOLTIPS=yes
5054 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5055 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
5056elif test "$wxUSE_CONTROLS" = "no"; then
5057 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5058 DEFAULT_wxUSE_BMPBUTTON=no
5059 DEFAULT_wxUSE_BUTTON=no
5060 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5061 DEFAULT_wxUSE_CARET=no
5062 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5063 DEFAULT_wxUSE_CHECKBOX=no
5064 DEFAULT_wxUSE_CHECKLISTBOX=no
5065 DEFAULT_wxUSE_CHOICE=no
5066 DEFAULT_wxUSE_GAUGE=no
5067 DEFAULT_wxUSE_GRID=no
5068 DEFAULT_wxUSE_NEW_GRID=no
5069 DEFAULT_wxUSE_IMAGLIST=no
5070 DEFAULT_wxUSE_LISTBOX=no
5071 DEFAULT_wxUSE_LISTCTRL=no
5072 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5073 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5074 DEFAULT_wxUSE_RADIOBOX=no
5075 DEFAULT_wxUSE_RADIOBTN=no
5076 DEFAULT_wxUSE_SASH=no
5077 DEFAULT_wxUSE_SCROLLBAR=no
5078 DEFAULT_wxUSE_SLIDER=no
5079 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5080 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5081 DEFAULT_wxUSE_SPLITTER=no
5082 DEFAULT_wxUSE_STATBMP=no
5083 DEFAULT_wxUSE_STATBOX=no
5084 DEFAULT_wxUSE_STATLINE=no
5085 DEFAULT_wxUSE_STATUSBAR=no
5086 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5087 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5088 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5089 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5090 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5091 DEFAULT_wxUSE_TOOLTIPS=no
5092 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5093 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
5094fi
5095
698dcdb6
VZ
5096
5097 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
1a4f0015 5098echo "configure:5099: checking for --enable-accel" >&5
10f2d63a
VZ
5099 no_cache=0
5100 # Check whether --enable-accel or --disable-accel was given.
5101if test "${enable_accel+set}" = set; then
5102 enableval="$enable_accel"
698dcdb6 5103
10f2d63a
VZ
5104 if test "$enableval" = yes; then
5105 ac_cv_use_accel='wxUSE_ACCEL=yes'
5106 else
5107 ac_cv_use_accel='wxUSE_ACCEL=no'
5108 fi
698dcdb6 5109
10f2d63a 5110else
698dcdb6 5111
10f2d63a
VZ
5112 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5113 if test "x$LINE" != x ; then
5114 eval "DEFAULT_$LINE"
5115 else
5116 no_cache=1
5117 fi
5118
5119 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5120
5121fi
10f2d63a
VZ
5122
5123
5124 eval "$ac_cv_use_accel"
5125 if test "$no_cache" != 1; then
5126 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5127 fi
5128
5129 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5130 echo "$ac_t""yes" 1>&6
10f2d63a 5131 else
698dcdb6 5132 echo "$ac_t""no" 1>&6
10f2d63a 5133 fi
698dcdb6 5134
10f2d63a 5135
1e6feb95 5136 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
1a4f0015 5137echo "configure:5138: checking for --enable-button" >&5
10f2d63a 5138 no_cache=0
1e6feb95
VZ
5139 # Check whether --enable-button or --disable-button was given.
5140if test "${enable_button+set}" = set; then
5141 enableval="$enable_button"
698dcdb6 5142
10f2d63a 5143 if test "$enableval" = yes; then
1e6feb95 5144 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5145 else
1e6feb95 5146 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5147 fi
698dcdb6 5148
10f2d63a 5149else
698dcdb6 5150
1e6feb95 5151 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5152 if test "x$LINE" != x ; then
5153 eval "DEFAULT_$LINE"
5154 else
5155 no_cache=1
5156 fi
5157
1e6feb95 5158 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5159
5160fi
10f2d63a
VZ
5161
5162
1e6feb95 5163 eval "$ac_cv_use_button"
10f2d63a 5164 if test "$no_cache" != 1; then
1e6feb95 5165 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5166 fi
5167
1e6feb95 5168 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5169 echo "$ac_t""yes" 1>&6
10f2d63a 5170 else
698dcdb6 5171 echo "$ac_t""no" 1>&6
10f2d63a 5172 fi
698dcdb6 5173
10f2d63a 5174
698dcdb6 5175 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
1a4f0015 5176echo "configure:5177: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5177 no_cache=0
5178 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5179if test "${enable_bmpbutton+set}" = set; then
5180 enableval="$enable_bmpbutton"
698dcdb6 5181
10f2d63a
VZ
5182 if test "$enableval" = yes; then
5183 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5184 else
5185 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5186 fi
698dcdb6 5187
10f2d63a 5188else
698dcdb6 5189
10f2d63a
VZ
5190 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5191 if test "x$LINE" != x ; then
5192 eval "DEFAULT_$LINE"
5193 else
5194 no_cache=1
5195 fi
5196
5197 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5198
5199fi
10f2d63a
VZ
5200
5201
5202 eval "$ac_cv_use_bmpbutton"
5203 if test "$no_cache" != 1; then
5204 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5205 fi
5206
5207 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5208 echo "$ac_t""yes" 1>&6
10f2d63a 5209 else
698dcdb6 5210 echo "$ac_t""no" 1>&6
10f2d63a 5211 fi
698dcdb6 5212
10f2d63a 5213
1e6feb95 5214 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
1a4f0015 5215echo "configure:5216: checking for --enable-calendar" >&5
1e6feb95
VZ
5216 no_cache=0
5217 # Check whether --enable-calendar or --disable-calendar was given.
5218if test "${enable_calendar+set}" = set; then
5219 enableval="$enable_calendar"
5220
5221 if test "$enableval" = yes; then
5222 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5223 else
5224 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5225 fi
5226
5227else
5228
5229 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5230 if test "x$LINE" != x ; then
5231 eval "DEFAULT_$LINE"
5232 else
5233 no_cache=1
5234 fi
5235
5236 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5237
5238fi
5239
5240
5241 eval "$ac_cv_use_calendar"
5242 if test "$no_cache" != 1; then
5243 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5244 fi
5245
5246 if test "$wxUSE_CALCTRL" = yes; then
5247 echo "$ac_t""yes" 1>&6
5248 else
5249 echo "$ac_t""no" 1>&6
5250 fi
5251
5252
5253 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
1a4f0015 5254echo "configure:5255: checking for --enable-caret" >&5
1e6feb95
VZ
5255 no_cache=0
5256 # Check whether --enable-caret or --disable-caret was given.
5257if test "${enable_caret+set}" = set; then
5258 enableval="$enable_caret"
5259
5260 if test "$enableval" = yes; then
5261 ac_cv_use_caret='wxUSE_CARET=yes'
5262 else
5263 ac_cv_use_caret='wxUSE_CARET=no'
5264 fi
5265
5266else
5267
5268 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5269 if test "x$LINE" != x ; then
5270 eval "DEFAULT_$LINE"
5271 else
5272 no_cache=1
5273 fi
5274
5275 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5276
5277fi
5278
5279
5280 eval "$ac_cv_use_caret"
5281 if test "$no_cache" != 1; then
5282 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5283 fi
5284
5285 if test "$wxUSE_CARET" = yes; then
5286 echo "$ac_t""yes" 1>&6
5287 else
5288 echo "$ac_t""no" 1>&6
5289 fi
5290
5291
698dcdb6 5292 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
1a4f0015 5293echo "configure:5294: checking for --enable-checkbox" >&5
10f2d63a
VZ
5294 no_cache=0
5295 # Check whether --enable-checkbox or --disable-checkbox was given.
5296if test "${enable_checkbox+set}" = set; then
5297 enableval="$enable_checkbox"
698dcdb6 5298
10f2d63a
VZ
5299 if test "$enableval" = yes; then
5300 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5301 else
5302 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5303 fi
698dcdb6 5304
10f2d63a 5305else
698dcdb6 5306
10f2d63a
VZ
5307 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5308 if test "x$LINE" != x ; then
5309 eval "DEFAULT_$LINE"
5310 else
5311 no_cache=1
5312 fi
5313
5314 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5315
5316fi
10f2d63a
VZ
5317
5318
5319 eval "$ac_cv_use_checkbox"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5325 echo "$ac_t""yes" 1>&6
10f2d63a 5326 else
698dcdb6 5327 echo "$ac_t""no" 1>&6
10f2d63a 5328 fi
698dcdb6 5329
10f2d63a 5330
698dcdb6 5331 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
1a4f0015 5332echo "configure:5333: checking for --enable-checklst" >&5
10f2d63a
VZ
5333 no_cache=0
5334 # Check whether --enable-checklst or --disable-checklst was given.
5335if test "${enable_checklst+set}" = set; then
5336 enableval="$enable_checklst"
698dcdb6 5337
10f2d63a
VZ
5338 if test "$enableval" = yes; then
5339 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5340 else
5341 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5342 fi
698dcdb6 5343
10f2d63a 5344else
698dcdb6 5345
10f2d63a
VZ
5346 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5347 if test "x$LINE" != x ; then
5348 eval "DEFAULT_$LINE"
5349 else
5350 no_cache=1
5351 fi
5352
5353 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5354
5355fi
10f2d63a
VZ
5356
5357
5358 eval "$ac_cv_use_checklst"
5359 if test "$no_cache" != 1; then
5360 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5361 fi
5362
5363 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5364 echo "$ac_t""yes" 1>&6
10f2d63a 5365 else
698dcdb6 5366 echo "$ac_t""no" 1>&6
10f2d63a 5367 fi
698dcdb6 5368
10f2d63a 5369
698dcdb6 5370 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
1a4f0015 5371echo "configure:5372: checking for --enable-choice" >&5
10f2d63a
VZ
5372 no_cache=0
5373 # Check whether --enable-choice or --disable-choice was given.
5374if test "${enable_choice+set}" = set; then
5375 enableval="$enable_choice"
698dcdb6 5376
10f2d63a
VZ
5377 if test "$enableval" = yes; then
5378 ac_cv_use_choice='wxUSE_CHOICE=yes'
5379 else
5380 ac_cv_use_choice='wxUSE_CHOICE=no'
5381 fi
698dcdb6 5382
10f2d63a 5383else
698dcdb6 5384
10f2d63a
VZ
5385 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5386 if test "x$LINE" != x ; then
5387 eval "DEFAULT_$LINE"
5388 else
5389 no_cache=1
5390 fi
5391
5392 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5393
5394fi
10f2d63a
VZ
5395
5396
5397 eval "$ac_cv_use_choice"
5398 if test "$no_cache" != 1; then
5399 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5400 fi
5401
5402 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5403 echo "$ac_t""yes" 1>&6
10f2d63a 5404 else
698dcdb6 5405 echo "$ac_t""no" 1>&6
10f2d63a 5406 fi
698dcdb6 5407
10f2d63a 5408
698dcdb6 5409 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
1a4f0015 5410echo "configure:5411: checking for --enable-combobox" >&5
10f2d63a
VZ
5411 no_cache=0
5412 # Check whether --enable-combobox or --disable-combobox was given.
5413if test "${enable_combobox+set}" = set; then
5414 enableval="$enable_combobox"
698dcdb6 5415
10f2d63a
VZ
5416 if test "$enableval" = yes; then
5417 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5418 else
5419 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5420 fi
698dcdb6 5421
10f2d63a 5422else
698dcdb6 5423
10f2d63a
VZ
5424 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5425 if test "x$LINE" != x ; then
5426 eval "DEFAULT_$LINE"
5427 else
5428 no_cache=1
5429 fi
5430
5431 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5432
5433fi
10f2d63a
VZ
5434
5435
5436 eval "$ac_cv_use_combobox"
5437 if test "$no_cache" != 1; then
5438 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5439 fi
5440
5441 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5442 echo "$ac_t""yes" 1>&6
10f2d63a 5443 else
698dcdb6 5444 echo "$ac_t""no" 1>&6
10f2d63a 5445 fi
698dcdb6 5446
10f2d63a 5447
698dcdb6 5448 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
1a4f0015 5449echo "configure:5450: checking for --enable-gauge" >&5
10f2d63a
VZ
5450 no_cache=0
5451 # Check whether --enable-gauge or --disable-gauge was given.
5452if test "${enable_gauge+set}" = set; then
5453 enableval="$enable_gauge"
698dcdb6 5454
10f2d63a
VZ
5455 if test "$enableval" = yes; then
5456 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5457 else
5458 ac_cv_use_gauge='wxUSE_GAUGE=no'
5459 fi
698dcdb6 5460
10f2d63a 5461else
698dcdb6 5462
10f2d63a
VZ
5463 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5464 if test "x$LINE" != x ; then
5465 eval "DEFAULT_$LINE"
5466 else
5467 no_cache=1
5468 fi
5469
5470 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5471
5472fi
10f2d63a
VZ
5473
5474
5475 eval "$ac_cv_use_gauge"
5476 if test "$no_cache" != 1; then
5477 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5478 fi
5479
5480 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5481 echo "$ac_t""yes" 1>&6
10f2d63a 5482 else
698dcdb6 5483 echo "$ac_t""no" 1>&6
10f2d63a 5484 fi
698dcdb6 5485
10f2d63a 5486
698dcdb6 5487 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
1a4f0015 5488echo "configure:5489: checking for --enable-grid" >&5
10f2d63a
VZ
5489 no_cache=0
5490 # Check whether --enable-grid or --disable-grid was given.
5491if test "${enable_grid+set}" = set; then
5492 enableval="$enable_grid"
698dcdb6 5493
10f2d63a
VZ
5494 if test "$enableval" = yes; then
5495 ac_cv_use_grid='wxUSE_GRID=yes'
5496 else
5497 ac_cv_use_grid='wxUSE_GRID=no'
5498 fi
698dcdb6 5499
10f2d63a 5500else
698dcdb6 5501
10f2d63a
VZ
5502 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5503 if test "x$LINE" != x ; then
5504 eval "DEFAULT_$LINE"
5505 else
5506 no_cache=1
5507 fi
5508
5509 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5510
5511fi
10f2d63a
VZ
5512
5513
5514 eval "$ac_cv_use_grid"
5515 if test "$no_cache" != 1; then
5516 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5517 fi
5518
5519 if test "$wxUSE_GRID" = yes; then
698dcdb6 5520 echo "$ac_t""yes" 1>&6
10f2d63a 5521 else
698dcdb6 5522 echo "$ac_t""no" 1>&6
10f2d63a 5523 fi
698dcdb6 5524
10f2d63a 5525
698dcdb6 5526 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
1a4f0015 5527echo "configure:5528: checking for --enable-newgrid" >&5
10f2d63a
VZ
5528 no_cache=0
5529 # Check whether --enable-newgrid or --disable-newgrid was given.
5530if test "${enable_newgrid+set}" = set; then
5531 enableval="$enable_newgrid"
698dcdb6 5532
10f2d63a
VZ
5533 if test "$enableval" = yes; then
5534 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5535 else
5536 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5537 fi
698dcdb6 5538
10f2d63a 5539else
698dcdb6 5540
10f2d63a
VZ
5541 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5542 if test "x$LINE" != x ; then
5543 eval "DEFAULT_$LINE"
5544 else
5545 no_cache=1
5546 fi
5547
5548 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5549
5550fi
10f2d63a
VZ
5551
5552
5553 eval "$ac_cv_use_newgrid"
5554 if test "$no_cache" != 1; then
5555 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5556 fi
5557
5558 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5559 echo "$ac_t""yes" 1>&6
10f2d63a 5560 else
698dcdb6 5561 echo "$ac_t""no" 1>&6
10f2d63a 5562 fi
698dcdb6 5563
10f2d63a 5564
698dcdb6 5565 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
1a4f0015 5566echo "configure:5567: checking for --enable-imaglist" >&5
10f2d63a
VZ
5567 no_cache=0
5568 # Check whether --enable-imaglist or --disable-imaglist was given.
5569if test "${enable_imaglist+set}" = set; then
5570 enableval="$enable_imaglist"
698dcdb6 5571
10f2d63a
VZ
5572 if test "$enableval" = yes; then
5573 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5574 else
5575 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5576 fi
698dcdb6 5577
10f2d63a 5578else
698dcdb6 5579
10f2d63a
VZ
5580 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5581 if test "x$LINE" != x ; then
5582 eval "DEFAULT_$LINE"
5583 else
5584 no_cache=1
5585 fi
5586
5587 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5588
5589fi
10f2d63a
VZ
5590
5591
5592 eval "$ac_cv_use_imaglist"
5593 if test "$no_cache" != 1; then
5594 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5595 fi
5596
5597 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5598 echo "$ac_t""yes" 1>&6
10f2d63a 5599 else
698dcdb6 5600 echo "$ac_t""no" 1>&6
10f2d63a 5601 fi
698dcdb6 5602
10f2d63a 5603
698dcdb6 5604 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
1a4f0015 5605echo "configure:5606: checking for --enable-listbox" >&5
10f2d63a
VZ
5606 no_cache=0
5607 # Check whether --enable-listbox or --disable-listbox was given.
5608if test "${enable_listbox+set}" = set; then
5609 enableval="$enable_listbox"
698dcdb6 5610
10f2d63a
VZ
5611 if test "$enableval" = yes; then
5612 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5613 else
5614 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5615 fi
698dcdb6 5616
10f2d63a 5617else
698dcdb6 5618
10f2d63a
VZ
5619 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5620 if test "x$LINE" != x ; then
5621 eval "DEFAULT_$LINE"
5622 else
5623 no_cache=1
5624 fi
5625
5626 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5627
5628fi
10f2d63a
VZ
5629
5630
5631 eval "$ac_cv_use_listbox"
5632 if test "$no_cache" != 1; then
5633 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5634 fi
5635
5636 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5637 echo "$ac_t""yes" 1>&6
10f2d63a 5638 else
698dcdb6 5639 echo "$ac_t""no" 1>&6
10f2d63a 5640 fi
698dcdb6 5641
10f2d63a 5642
698dcdb6 5643 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
1a4f0015 5644echo "configure:5645: checking for --enable-listctrl" >&5
10f2d63a
VZ
5645 no_cache=0
5646 # Check whether --enable-listctrl or --disable-listctrl was given.
5647if test "${enable_listctrl+set}" = set; then
5648 enableval="$enable_listctrl"
698dcdb6 5649
10f2d63a
VZ
5650 if test "$enableval" = yes; then
5651 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5652 else
5653 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5654 fi
698dcdb6 5655
10f2d63a 5656else
698dcdb6 5657
10f2d63a
VZ
5658 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5659 if test "x$LINE" != x ; then
5660 eval "DEFAULT_$LINE"
5661 else
5662 no_cache=1
5663 fi
5664
5665 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5666
5667fi
10f2d63a
VZ
5668
5669
5670 eval "$ac_cv_use_listctrl"
5671 if test "$no_cache" != 1; then
5672 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5673 fi
5674
5675 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5676 echo "$ac_t""yes" 1>&6
10f2d63a 5677 else
698dcdb6 5678 echo "$ac_t""no" 1>&6
10f2d63a 5679 fi
698dcdb6 5680
10f2d63a 5681
698dcdb6 5682 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
1a4f0015 5683echo "configure:5684: checking for --enable-notebook" >&5
10f2d63a
VZ
5684 no_cache=0
5685 # Check whether --enable-notebook or --disable-notebook was given.
5686if test "${enable_notebook+set}" = set; then
5687 enableval="$enable_notebook"
698dcdb6 5688
10f2d63a
VZ
5689 if test "$enableval" = yes; then
5690 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5691 else
5692 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5693 fi
698dcdb6 5694
10f2d63a 5695else
698dcdb6 5696
10f2d63a
VZ
5697 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5698 if test "x$LINE" != x ; then
5699 eval "DEFAULT_$LINE"
5700 else
5701 no_cache=1
5702 fi
5703
5704 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5705
5706fi
10f2d63a
VZ
5707
5708
5709 eval "$ac_cv_use_notebook"
5710 if test "$no_cache" != 1; then
5711 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5712 fi
5713
5714 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5715 echo "$ac_t""yes" 1>&6
10f2d63a 5716 else
698dcdb6 5717 echo "$ac_t""no" 1>&6
10f2d63a 5718 fi
698dcdb6 5719
10f2d63a 5720
24176f2c 5721 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
1a4f0015 5722echo "configure:5723: checking for --enable-propsheet" >&5
24176f2c
GD
5723 no_cache=0
5724 # Check whether --enable-propsheet or --disable-propsheet was given.
5725if test "${enable_propsheet+set}" = set; then
5726 enableval="$enable_propsheet"
5727
5728 if test "$enableval" = yes; then
5729 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5730 else
5731 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5732 fi
5733
5734else
5735
5736 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5737 if test "x$LINE" != x ; then
5738 eval "DEFAULT_$LINE"
5739 else
5740 no_cache=1
5741 fi
5742
5743 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5744
5745fi
5746
5747
5748 eval "$ac_cv_use_propsheet"
5749 if test "$no_cache" != 1; then
5750 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5751 fi
5752
5753 if test "$wxUSE_PROPSHEET" = yes; then
5754 echo "$ac_t""yes" 1>&6
5755 else
5756 echo "$ac_t""no" 1>&6
5757 fi
5758
5759
698dcdb6 5760 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
1a4f0015 5761echo "configure:5762: checking for --enable-radiobox" >&5
10f2d63a
VZ
5762 no_cache=0
5763 # Check whether --enable-radiobox or --disable-radiobox was given.
5764if test "${enable_radiobox+set}" = set; then
5765 enableval="$enable_radiobox"
698dcdb6 5766
10f2d63a
VZ
5767 if test "$enableval" = yes; then
5768 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5769 else
5770 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5771 fi
698dcdb6 5772
10f2d63a 5773else
698dcdb6 5774
10f2d63a
VZ
5775 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5776 if test "x$LINE" != x ; then
5777 eval "DEFAULT_$LINE"
5778 else
5779 no_cache=1
5780 fi
5781
5782 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5783
5784fi
10f2d63a
VZ
5785
5786
5787 eval "$ac_cv_use_radiobox"
5788 if test "$no_cache" != 1; then
5789 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5790 fi
5791
5792 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5793 echo "$ac_t""yes" 1>&6
10f2d63a 5794 else
698dcdb6 5795 echo "$ac_t""no" 1>&6
10f2d63a 5796 fi
698dcdb6 5797
10f2d63a 5798
698dcdb6 5799 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
1a4f0015 5800echo "configure:5801: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5801 no_cache=0
5802 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5803if test "${enable_radiobtn+set}" = set; then
5804 enableval="$enable_radiobtn"
698dcdb6 5805
10f2d63a
VZ
5806 if test "$enableval" = yes; then
5807 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5808 else
5809 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5810 fi
698dcdb6 5811
10f2d63a 5812else
698dcdb6 5813
10f2d63a
VZ
5814 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5815 if test "x$LINE" != x ; then
5816 eval "DEFAULT_$LINE"
5817 else
5818 no_cache=1
5819 fi
5820
5821 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5822
5823fi
10f2d63a
VZ
5824
5825
5826 eval "$ac_cv_use_radiobtn"
5827 if test "$no_cache" != 1; then
5828 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5829 fi
5830
5831 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5832 echo "$ac_t""yes" 1>&6
10f2d63a 5833 else
698dcdb6 5834 echo "$ac_t""no" 1>&6
10f2d63a 5835 fi
698dcdb6 5836
10f2d63a 5837
698dcdb6 5838 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
1a4f0015 5839echo "configure:5840: checking for --enable-sash" >&5
10f2d63a
VZ
5840 no_cache=0
5841 # Check whether --enable-sash or --disable-sash was given.
5842if test "${enable_sash+set}" = set; then
5843 enableval="$enable_sash"
698dcdb6 5844
10f2d63a
VZ
5845 if test "$enableval" = yes; then
5846 ac_cv_use_sash='wxUSE_SASH=yes'
5847 else
5848 ac_cv_use_sash='wxUSE_SASH=no'
5849 fi
698dcdb6 5850
10f2d63a 5851else
698dcdb6 5852
10f2d63a
VZ
5853 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5854 if test "x$LINE" != x ; then
5855 eval "DEFAULT_$LINE"
5856 else
5857 no_cache=1
5858 fi
5859
5860 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5861
5862fi
10f2d63a
VZ
5863
5864
5865 eval "$ac_cv_use_sash"
5866 if test "$no_cache" != 1; then
5867 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5868 fi
5869
5870 if test "$wxUSE_SASH" = yes; then
698dcdb6 5871 echo "$ac_t""yes" 1>&6
10f2d63a 5872 else
698dcdb6 5873 echo "$ac_t""no" 1>&6
10f2d63a 5874 fi
698dcdb6 5875
10f2d63a 5876
698dcdb6 5877 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
1a4f0015 5878echo "configure:5879: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5879 no_cache=0
5880 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5881if test "${enable_scrollbar+set}" = set; then
5882 enableval="$enable_scrollbar"
698dcdb6 5883
10f2d63a
VZ
5884 if test "$enableval" = yes; then
5885 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5886 else
5887 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5888 fi
698dcdb6 5889
10f2d63a 5890else
698dcdb6 5891
10f2d63a
VZ
5892 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5893 if test "x$LINE" != x ; then
5894 eval "DEFAULT_$LINE"
5895 else
5896 no_cache=1
5897 fi
5898
5899 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5900
5901fi
10f2d63a
VZ
5902
5903
5904 eval "$ac_cv_use_scrollbar"
5905 if test "$no_cache" != 1; then
5906 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5907 fi
5908
5909 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5910 echo "$ac_t""yes" 1>&6
10f2d63a 5911 else
698dcdb6 5912 echo "$ac_t""no" 1>&6
10f2d63a 5913 fi
698dcdb6 5914
10f2d63a 5915
698dcdb6 5916 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
1a4f0015 5917echo "configure:5918: checking for --enable-slider" >&5
10f2d63a
VZ
5918 no_cache=0
5919 # Check whether --enable-slider or --disable-slider was given.
5920if test "${enable_slider+set}" = set; then
5921 enableval="$enable_slider"
698dcdb6 5922
10f2d63a
VZ
5923 if test "$enableval" = yes; then
5924 ac_cv_use_slider='wxUSE_SLIDER=yes'
5925 else
5926 ac_cv_use_slider='wxUSE_SLIDER=no'
5927 fi
698dcdb6 5928
10f2d63a 5929else
698dcdb6 5930
10f2d63a
VZ
5931 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5932 if test "x$LINE" != x ; then
5933 eval "DEFAULT_$LINE"
5934 else
5935 no_cache=1
5936 fi
5937
5938 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5939
5940fi
10f2d63a
VZ
5941
5942
5943 eval "$ac_cv_use_slider"
5944 if test "$no_cache" != 1; then
5945 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5946 fi
5947
5948 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 5949 echo "$ac_t""yes" 1>&6
10f2d63a 5950 else
698dcdb6 5951 echo "$ac_t""no" 1>&6
10f2d63a 5952 fi
698dcdb6 5953
10f2d63a 5954
698dcdb6 5955 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
1a4f0015 5956echo "configure:5957: checking for --enable-spinbtn" >&5
10f2d63a
VZ
5957 no_cache=0
5958 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5959if test "${enable_spinbtn+set}" = set; then
5960 enableval="$enable_spinbtn"
698dcdb6 5961
10f2d63a
VZ
5962 if test "$enableval" = yes; then
5963 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5964 else
5965 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5966 fi
698dcdb6 5967
10f2d63a 5968else
698dcdb6 5969
10f2d63a
VZ
5970 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5971 if test "x$LINE" != x ; then
5972 eval "DEFAULT_$LINE"
5973 else
5974 no_cache=1
5975 fi
5976
5977 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
5978
5979fi
10f2d63a
VZ
5980
5981
5982 eval "$ac_cv_use_spinbtn"
5983 if test "$no_cache" != 1; then
5984 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5985 fi
5986
5987 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 5988 echo "$ac_t""yes" 1>&6
10f2d63a 5989 else
698dcdb6 5990 echo "$ac_t""no" 1>&6
10f2d63a 5991 fi
698dcdb6 5992
10f2d63a 5993
698dcdb6 5994 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
1a4f0015 5995echo "configure:5996: checking for --enable-spinctrl" >&5
56cfaa52
RR
5996 no_cache=0
5997 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5998if test "${enable_spinctrl+set}" = set; then
5999 enableval="$enable_spinctrl"
698dcdb6 6000
56cfaa52
RR
6001 if test "$enableval" = yes; then
6002 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6003 else
6004 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6005 fi
698dcdb6 6006
56cfaa52 6007else
698dcdb6 6008
56cfaa52
RR
6009 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6010 if test "x$LINE" != x ; then
6011 eval "DEFAULT_$LINE"
6012 else
6013 no_cache=1
6014 fi
6015
6016 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6017
6018fi
56cfaa52
RR
6019
6020
6021 eval "$ac_cv_use_spinctrl"
6022 if test "$no_cache" != 1; then
6023 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6024 fi
6025
6026 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6027 echo "$ac_t""yes" 1>&6
56cfaa52 6028 else
698dcdb6 6029 echo "$ac_t""no" 1>&6
56cfaa52 6030 fi
698dcdb6 6031
56cfaa52 6032
698dcdb6 6033 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
1a4f0015 6034echo "configure:6035: checking for --enable-splitter" >&5
10f2d63a
VZ
6035 no_cache=0
6036 # Check whether --enable-splitter or --disable-splitter was given.
6037if test "${enable_splitter+set}" = set; then
6038 enableval="$enable_splitter"
698dcdb6 6039
10f2d63a
VZ
6040 if test "$enableval" = yes; then
6041 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6042 else
6043 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6044 fi
698dcdb6 6045
10f2d63a 6046else
698dcdb6 6047
10f2d63a
VZ
6048 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6049 if test "x$LINE" != x ; then
6050 eval "DEFAULT_$LINE"
6051 else
6052 no_cache=1
6053 fi
6054
6055 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6056
6057fi
10f2d63a
VZ
6058
6059
6060 eval "$ac_cv_use_splitter"
6061 if test "$no_cache" != 1; then
6062 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6063 fi
6064
6065 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6066 echo "$ac_t""yes" 1>&6
10f2d63a 6067 else
698dcdb6 6068 echo "$ac_t""no" 1>&6
10f2d63a 6069 fi
698dcdb6 6070
10f2d63a 6071
698dcdb6 6072 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
1a4f0015 6073echo "configure:6074: checking for --enable-statbmp" >&5
10f2d63a
VZ
6074 no_cache=0
6075 # Check whether --enable-statbmp or --disable-statbmp was given.
6076if test "${enable_statbmp+set}" = set; then
6077 enableval="$enable_statbmp"
698dcdb6 6078
10f2d63a
VZ
6079 if test "$enableval" = yes; then
6080 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6081 else
6082 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6083 fi
698dcdb6 6084
10f2d63a 6085else
698dcdb6 6086
10f2d63a
VZ
6087 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6088 if test "x$LINE" != x ; then
6089 eval "DEFAULT_$LINE"
6090 else
6091 no_cache=1
6092 fi
6093
6094 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6095
6096fi
10f2d63a
VZ
6097
6098
6099 eval "$ac_cv_use_statbmp"
6100 if test "$no_cache" != 1; then
6101 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6102 fi
6103
6104 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6105 echo "$ac_t""yes" 1>&6
10f2d63a 6106 else
698dcdb6 6107 echo "$ac_t""no" 1>&6
10f2d63a 6108 fi
698dcdb6 6109
10f2d63a 6110
698dcdb6 6111 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
1a4f0015 6112echo "configure:6113: checking for --enable-statbox" >&5
10f2d63a
VZ
6113 no_cache=0
6114 # Check whether --enable-statbox or --disable-statbox was given.
6115if test "${enable_statbox+set}" = set; then
6116 enableval="$enable_statbox"
698dcdb6 6117
10f2d63a
VZ
6118 if test "$enableval" = yes; then
6119 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6120 else
6121 ac_cv_use_statbox='wxUSE_STATBOX=no'
6122 fi
698dcdb6 6123
10f2d63a 6124else
698dcdb6 6125
10f2d63a
VZ
6126 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6127 if test "x$LINE" != x ; then
6128 eval "DEFAULT_$LINE"
6129 else
6130 no_cache=1
6131 fi
6132
6133 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6134
6135fi
10f2d63a
VZ
6136
6137
6138 eval "$ac_cv_use_statbox"
6139 if test "$no_cache" != 1; then
6140 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6141 fi
6142
6143 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6144 echo "$ac_t""yes" 1>&6
10f2d63a 6145 else
698dcdb6 6146 echo "$ac_t""no" 1>&6
10f2d63a 6147 fi
698dcdb6 6148
10f2d63a 6149
698dcdb6 6150 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
1a4f0015 6151echo "configure:6152: checking for --enable-statline" >&5
10f2d63a
VZ
6152 no_cache=0
6153 # Check whether --enable-statline or --disable-statline was given.
6154if test "${enable_statline+set}" = set; then
6155 enableval="$enable_statline"
698dcdb6 6156
10f2d63a
VZ
6157 if test "$enableval" = yes; then
6158 ac_cv_use_statline='wxUSE_STATLINE=yes'
6159 else
6160 ac_cv_use_statline='wxUSE_STATLINE=no'
6161 fi
698dcdb6 6162
10f2d63a 6163else
698dcdb6 6164
10f2d63a
VZ
6165 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6166 if test "x$LINE" != x ; then
6167 eval "DEFAULT_$LINE"
6168 else
6169 no_cache=1
6170 fi
6171
6172 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6173
6174fi
10f2d63a
VZ
6175
6176
6177 eval "$ac_cv_use_statline"
6178 if test "$no_cache" != 1; then
6179 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6180 fi
6181
6182 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6183 echo "$ac_t""yes" 1>&6
10f2d63a 6184 else
698dcdb6 6185 echo "$ac_t""no" 1>&6
10f2d63a 6186 fi
698dcdb6 6187
10f2d63a 6188
1e6feb95 6189 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
1a4f0015 6190echo "configure:6191: checking for --enable-stattext" >&5
1e6feb95
VZ
6191 no_cache=0
6192 # Check whether --enable-stattext or --disable-stattext was given.
6193if test "${enable_stattext+set}" = set; then
6194 enableval="$enable_stattext"
6195
6196 if test "$enableval" = yes; then
6197 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6198 else
6199 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6200 fi
6201
6202else
6203
6204 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6205 if test "x$LINE" != x ; then
6206 eval "DEFAULT_$LINE"
6207 else
6208 no_cache=1
6209 fi
6210
6211 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6212
6213fi
6214
6215
6216 eval "$ac_cv_use_stattext"
6217 if test "$no_cache" != 1; then
6218 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6219 fi
6220
6221 if test "$wxUSE_STATTEXT" = yes; then
6222 echo "$ac_t""yes" 1>&6
6223 else
6224 echo "$ac_t""no" 1>&6
6225 fi
6226
6227
698dcdb6 6228 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
1a4f0015 6229echo "configure:6230: checking for --enable-statusbar" >&5
10f2d63a
VZ
6230 no_cache=0
6231 # Check whether --enable-statusbar or --disable-statusbar was given.
6232if test "${enable_statusbar+set}" = set; then
6233 enableval="$enable_statusbar"
698dcdb6 6234
10f2d63a
VZ
6235 if test "$enableval" = yes; then
6236 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6237 else
6238 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6239 fi
698dcdb6 6240
10f2d63a 6241else
698dcdb6 6242
10f2d63a
VZ
6243 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6244 if test "x$LINE" != x ; then
6245 eval "DEFAULT_$LINE"
6246 else
6247 no_cache=1
6248 fi
6249
6250 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6251
6252fi
10f2d63a
VZ
6253
6254
6255 eval "$ac_cv_use_statusbar"
6256 if test "$no_cache" != 1; then
6257 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6258 fi
6259
6260 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6261 echo "$ac_t""yes" 1>&6
10f2d63a 6262 else
698dcdb6 6263 echo "$ac_t""no" 1>&6
10f2d63a 6264 fi
698dcdb6 6265
10f2d63a 6266
698dcdb6 6267 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
1a4f0015 6268echo "configure:6269: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6269 no_cache=0
6270 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6271if test "${enable_tabdialog+set}" = set; then
6272 enableval="$enable_tabdialog"
698dcdb6 6273
10f2d63a
VZ
6274 if test "$enableval" = yes; then
6275 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6276 else
6277 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6278 fi
698dcdb6 6279
10f2d63a 6280else
698dcdb6 6281
10f2d63a
VZ
6282 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6283 if test "x$LINE" != x ; then
6284 eval "DEFAULT_$LINE"
6285 else
6286 no_cache=1
6287 fi
6288
6289 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6290
6291fi
10f2d63a
VZ
6292
6293
6294 eval "$ac_cv_use_tabdialog"
6295 if test "$no_cache" != 1; then
6296 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6297 fi
6298
6299 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6300 echo "$ac_t""yes" 1>&6
10f2d63a 6301 else
698dcdb6 6302 echo "$ac_t""no" 1>&6
10f2d63a 6303 fi
698dcdb6 6304
10f2d63a 6305
1e6feb95 6306 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
1a4f0015 6307echo "configure:6308: checking for --enable-textctrl" >&5
1e6feb95
VZ
6308 no_cache=0
6309 # Check whether --enable-textctrl or --disable-textctrl was given.
6310if test "${enable_textctrl+set}" = set; then
6311 enableval="$enable_textctrl"
6312
6313 if test "$enableval" = yes; then
6314 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6315 else
6316 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6317 fi
6318
6319else
6320
6321 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6322 if test "x$LINE" != x ; then
6323 eval "DEFAULT_$LINE"
6324 else
6325 no_cache=1
6326 fi
6327
6328 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6329
6330fi
6331
6332
6333 eval "$ac_cv_use_textctrl"
6334 if test "$no_cache" != 1; then
6335 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6336 fi
6337
6338 if test "$wxUSE_TEXTCTRL" = yes; then
6339 echo "$ac_t""yes" 1>&6
6340 else
6341 echo "$ac_t""no" 1>&6
6342 fi
6343
6344
698dcdb6 6345 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
1a4f0015 6346echo "configure:6347: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6347 no_cache=0
6348 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6349if test "${enable_togglebtn+set}" = set; then
6350 enableval="$enable_togglebtn"
698dcdb6 6351
1db8dc4a
VZ
6352 if test "$enableval" = yes; then
6353 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6354 else
6355 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6356 fi
698dcdb6 6357
1db8dc4a 6358else
698dcdb6 6359
1db8dc4a
VZ
6360 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6361 if test "x$LINE" != x ; then
6362 eval "DEFAULT_$LINE"
6363 else
6364 no_cache=1
6365 fi
6366
6367 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6368
6369fi
1db8dc4a
VZ
6370
6371
6372 eval "$ac_cv_use_togglebtn"
6373 if test "$no_cache" != 1; then
6374 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6375 fi
6376
6377 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6378 echo "$ac_t""yes" 1>&6
1db8dc4a 6379 else
698dcdb6 6380 echo "$ac_t""no" 1>&6
1db8dc4a 6381 fi
698dcdb6 6382
1db8dc4a 6383
698dcdb6 6384 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
1a4f0015 6385echo "configure:6386: checking for --enable-toolbar" >&5
10f2d63a
VZ
6386 no_cache=0
6387 # Check whether --enable-toolbar or --disable-toolbar was given.
6388if test "${enable_toolbar+set}" = set; then
6389 enableval="$enable_toolbar"
698dcdb6 6390
10f2d63a
VZ
6391 if test "$enableval" = yes; then
6392 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6393 else
6394 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6395 fi
698dcdb6 6396
10f2d63a 6397else
698dcdb6 6398
10f2d63a
VZ
6399 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6400 if test "x$LINE" != x ; then
6401 eval "DEFAULT_$LINE"
6402 else
6403 no_cache=1
6404 fi
6405
6406 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6407
6408fi
10f2d63a
VZ
6409
6410
6411 eval "$ac_cv_use_toolbar"
6412 if test "$no_cache" != 1; then
6413 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6414 fi
6415
6416 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6417 echo "$ac_t""yes" 1>&6
10f2d63a 6418 else
698dcdb6 6419 echo "$ac_t""no" 1>&6
10f2d63a 6420 fi
698dcdb6 6421
10f2d63a 6422
698dcdb6 6423 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
1a4f0015 6424echo "configure:6425: checking for --enable-tbarnative" >&5
360d6699
VZ
6425 no_cache=0
6426 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6427if test "${enable_tbarnative+set}" = set; then
6428 enableval="$enable_tbarnative"
698dcdb6 6429
360d6699
VZ
6430 if test "$enableval" = yes; then
6431 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6432 else
6433 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6434 fi
698dcdb6 6435
360d6699 6436else
698dcdb6 6437
360d6699
VZ
6438 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6439 if test "x$LINE" != x ; then
6440 eval "DEFAULT_$LINE"
6441 else
6442 no_cache=1
6443 fi
6444
6445 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6446
6447fi
360d6699
VZ
6448
6449
6450 eval "$ac_cv_use_tbarnative"
6451 if test "$no_cache" != 1; then
6452 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6453 fi
6454
6455 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6456 echo "$ac_t""yes" 1>&6
360d6699 6457 else
698dcdb6 6458 echo "$ac_t""no" 1>&6
360d6699 6459 fi
698dcdb6 6460
360d6699 6461
698dcdb6 6462 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
1a4f0015 6463echo "configure:6464: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6464 no_cache=0
6465 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6466if test "${enable_tbarsmpl+set}" = set; then
6467 enableval="$enable_tbarsmpl"
698dcdb6 6468
360d6699
VZ
6469 if test "$enableval" = yes; then
6470 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6471 else
6472 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6473 fi
698dcdb6 6474
360d6699 6475else
698dcdb6 6476
360d6699
VZ
6477 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6478 if test "x$LINE" != x ; then
6479 eval "DEFAULT_$LINE"
6480 else
6481 no_cache=1
6482 fi
6483
6484 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6485
6486fi
360d6699
VZ
6487
6488
6489 eval "$ac_cv_use_tbarsmpl"
6490 if test "$no_cache" != 1; then
6491 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6492 fi
6493
6494 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6495 echo "$ac_t""yes" 1>&6
360d6699 6496 else
698dcdb6 6497 echo "$ac_t""no" 1>&6
360d6699 6498 fi
698dcdb6 6499
360d6699 6500
698dcdb6 6501 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
1a4f0015 6502echo "configure:6503: checking for --enable-treectrl" >&5
10f2d63a
VZ
6503 no_cache=0
6504 # Check whether --enable-treectrl or --disable-treectrl was given.
6505if test "${enable_treectrl+set}" = set; then
6506 enableval="$enable_treectrl"
698dcdb6 6507
10f2d63a
VZ
6508 if test "$enableval" = yes; then
6509 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6510 else
6511 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6512 fi
698dcdb6 6513
10f2d63a 6514else
698dcdb6 6515
10f2d63a
VZ
6516 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6517 if test "x$LINE" != x ; then
6518 eval "DEFAULT_$LINE"
6519 else
6520 no_cache=1
6521 fi
6522
6523 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6524
6525fi
10f2d63a
VZ
6526
6527
1e6feb95
VZ
6528 eval "$ac_cv_use_treectrl"
6529 if test "$no_cache" != 1; then
6530 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6531 fi
6532
6533 if test "$wxUSE_TREECTRL" = yes; then
6534 echo "$ac_t""yes" 1>&6
6535 else
6536 echo "$ac_t""no" 1>&6
6537 fi
6538
6539
9f41d601 6540 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
1a4f0015 6541echo "configure:6542: checking for --enable-popupwin" >&5
9f41d601
RR
6542 no_cache=0
6543 # Check whether --enable-popupwin or --disable-popupwin was given.
6544if test "${enable_popupwin+set}" = set; then
6545 enableval="$enable_popupwin"
6546
6547 if test "$enableval" = yes; then
6548 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6549 else
6550 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6551 fi
6552
6553else
6554
6555 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6556 if test "x$LINE" != x ; then
6557 eval "DEFAULT_$LINE"
6558 else
6559 no_cache=1
6560 fi
6561
6562 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6563
6564fi
6565
6566
6567 eval "$ac_cv_use_popupwin"
6568 if test "$no_cache" != 1; then
6569 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6570 fi
6571
6572 if test "$wxUSE_POPUPWIN" = yes; then
6573 echo "$ac_t""yes" 1>&6
6574 else
6575 echo "$ac_t""no" 1>&6
6576 fi
6577
6578
1e6feb95
VZ
6579
6580
6581 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
1a4f0015 6582echo "configure:6583: checking for --enable-commondlg" >&5
1e6feb95
VZ
6583 no_cache=0
6584 # Check whether --enable-commondlg or --disable-commondlg was given.
6585if test "${enable_commondlg+set}" = set; then
6586 enableval="$enable_commondlg"
6587
6588 if test "$enableval" = yes; then
6589 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6590 else
6591 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6592 fi
6593
6594else
6595
6596 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6597 if test "x$LINE" != x ; then
6598 eval "DEFAULT_$LINE"
6599 else
6600 no_cache=1
6601 fi
6602
6603 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6604
6605fi
6606
6607
6608 eval "$ac_cv_use_commondlg"
6609 if test "$no_cache" != 1; then
6610 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6611 fi
6612
6613 if test "$wxUSE_COMMONDLGS" = yes; then
6614 echo "$ac_t""yes" 1>&6
6615 else
6616 echo "$ac_t""no" 1>&6
6617 fi
6618
6619
6620 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
1a4f0015 6621echo "configure:6622: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6622 no_cache=0
6623 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6624if test "${enable_choicedlg+set}" = set; then
6625 enableval="$enable_choicedlg"
6626
6627 if test "$enableval" = yes; then
6628 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6629 else
6630 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6631 fi
6632
6633else
6634
6635 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6636 if test "x$LINE" != x ; then
6637 eval "DEFAULT_$LINE"
6638 else
6639 no_cache=1
6640 fi
6641
6642 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6643
6644fi
6645
6646
6647 eval "$ac_cv_use_choicedlg"
6648 if test "$no_cache" != 1; then
6649 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6650 fi
6651
6652 if test "$wxUSE_CHOICEDLG" = yes; then
6653 echo "$ac_t""yes" 1>&6
6654 else
6655 echo "$ac_t""no" 1>&6
6656 fi
6657
6658
6659 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
1a4f0015 6660echo "configure:6661: checking for --enable-coldlg" >&5
1e6feb95
VZ
6661 no_cache=0
6662 # Check whether --enable-coldlg or --disable-coldlg was given.
6663if test "${enable_coldlg+set}" = set; then
6664 enableval="$enable_coldlg"
6665
6666 if test "$enableval" = yes; then
6667 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6668 else
6669 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6670 fi
6671
6672else
6673
6674 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6675 if test "x$LINE" != x ; then
6676 eval "DEFAULT_$LINE"
6677 else
6678 no_cache=1
6679 fi
6680
6681 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6682
6683fi
6684
6685
6686 eval "$ac_cv_use_coldlg"
6687 if test "$no_cache" != 1; then
6688 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6689 fi
6690
6691 if test "$wxUSE_COLOURDLG" = yes; then
6692 echo "$ac_t""yes" 1>&6
6693 else
6694 echo "$ac_t""no" 1>&6
6695 fi
6696
6697
6698 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
1a4f0015 6699echo "configure:6700: checking for --enable-filedlg" >&5
1e6feb95
VZ
6700 no_cache=0
6701 # Check whether --enable-filedlg or --disable-filedlg was given.
6702if test "${enable_filedlg+set}" = set; then
6703 enableval="$enable_filedlg"
6704
6705 if test "$enableval" = yes; then
6706 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6707 else
6708 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6709 fi
6710
6711else
6712
6713 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6714 if test "x$LINE" != x ; then
6715 eval "DEFAULT_$LINE"
6716 else
6717 no_cache=1
6718 fi
6719
6720 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6721
6722fi
6723
6724
6725 eval "$ac_cv_use_filedlg"
6726 if test "$no_cache" != 1; then
6727 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6728 fi
6729
6730 if test "$wxUSE_FILEDLG" = yes; then
6731 echo "$ac_t""yes" 1>&6
6732 else
6733 echo "$ac_t""no" 1>&6
6734 fi
6735
6736
8db37e06 6737 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
1a4f0015 6738echo "configure:6739: checking for --enable-filedlg" >&5
8db37e06
VZ
6739 no_cache=0
6740 # Check whether --enable-filedlg or --disable-filedlg was given.
6741if test "${enable_filedlg+set}" = set; then
6742 enableval="$enable_filedlg"
6743
6744 if test "$enableval" = yes; then
6745 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6746 else
6747 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6748 fi
6749
6750else
6751
6752 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6753 if test "x$LINE" != x ; then
6754 eval "DEFAULT_$LINE"
6755 else
6756 no_cache=1
6757 fi
6758
6759 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6760
6761fi
6762
6763
6764 eval "$ac_cv_use_filedlg"
6765 if test "$no_cache" != 1; then
6766 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6767 fi
6768
6769 if test "$wxUSE_FINDREPLDLG" = yes; then
6770 echo "$ac_t""yes" 1>&6
6771 else
6772 echo "$ac_t""no" 1>&6
6773 fi
6774
6775
1e6feb95 6776 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
1a4f0015 6777echo "configure:6778: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6778 no_cache=0
6779 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6780if test "${enable_fontdlg+set}" = set; then
6781 enableval="$enable_fontdlg"
6782
6783 if test "$enableval" = yes; then
6784 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6785 else
6786 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6787 fi
6788
6789else
6790
6791 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6792 if test "x$LINE" != x ; then
6793 eval "DEFAULT_$LINE"
6794 else
6795 no_cache=1
6796 fi
6797
6798 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6799
6800fi
6801
6802
6803 eval "$ac_cv_use_fontdlg"
6804 if test "$no_cache" != 1; then
6805 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6806 fi
6807
6808 if test "$wxUSE_FONTDLG" = yes; then
6809 echo "$ac_t""yes" 1>&6
6810 else
6811 echo "$ac_t""no" 1>&6
6812 fi
6813
6814
6815 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
1a4f0015 6816echo "configure:6817: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6817 no_cache=0
6818 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6819if test "${enable_dirdlg+set}" = set; then
6820 enableval="$enable_dirdlg"
6821
6822 if test "$enableval" = yes; then
6823 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6824 else
6825 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6826 fi
6827
6828else
6829
6830 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6831 if test "x$LINE" != x ; then
6832 eval "DEFAULT_$LINE"
6833 else
6834 no_cache=1
6835 fi
6836
6837 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6838
6839fi
6840
6841
6842 eval "$ac_cv_use_dirdlg"
10f2d63a 6843 if test "$no_cache" != 1; then
1e6feb95 6844 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6845 fi
6846
1e6feb95 6847 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6848 echo "$ac_t""yes" 1>&6
10f2d63a 6849 else
698dcdb6 6850 echo "$ac_t""no" 1>&6
10f2d63a 6851 fi
698dcdb6
VZ
6852
6853
1e6feb95 6854 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
1a4f0015 6855echo "configure:6856: checking for --enable-msgdlg" >&5
10f2d63a 6856 no_cache=0
1e6feb95
VZ
6857 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6858if test "${enable_msgdlg+set}" = set; then
6859 enableval="$enable_msgdlg"
698dcdb6 6860
10f2d63a 6861 if test "$enableval" = yes; then
1e6feb95 6862 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6863 else
1e6feb95 6864 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6865 fi
698dcdb6 6866
10f2d63a 6867else
698dcdb6 6868
1e6feb95 6869 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6870 if test "x$LINE" != x ; then
6871 eval "DEFAULT_$LINE"
6872 else
6873 no_cache=1
6874 fi
6875
1e6feb95 6876 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6877
6878fi
10f2d63a
VZ
6879
6880
1e6feb95 6881 eval "$ac_cv_use_msgdlg"
10f2d63a 6882 if test "$no_cache" != 1; then
1e6feb95 6883 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6884 fi
6885
1e6feb95 6886 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6887 echo "$ac_t""yes" 1>&6
10f2d63a 6888 else
698dcdb6 6889 echo "$ac_t""no" 1>&6
10f2d63a 6890 fi
698dcdb6 6891
10f2d63a 6892
1e6feb95 6893 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
1a4f0015 6894echo "configure:6895: checking for --enable-numberdlg" >&5
10f2d63a 6895 no_cache=0
1e6feb95
VZ
6896 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6897if test "${enable_numberdlg+set}" = set; then
6898 enableval="$enable_numberdlg"
698dcdb6 6899
10f2d63a 6900 if test "$enableval" = yes; then
1e6feb95 6901 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6902 else
1e6feb95 6903 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6904 fi
698dcdb6 6905
10f2d63a 6906else
698dcdb6 6907
1e6feb95 6908 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6909 if test "x$LINE" != x ; then
6910 eval "DEFAULT_$LINE"
6911 else
6912 no_cache=1
6913 fi
6914
1e6feb95 6915 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6916
6917fi
10f2d63a
VZ
6918
6919
1e6feb95 6920 eval "$ac_cv_use_numberdlg"
10f2d63a 6921 if test "$no_cache" != 1; then
1e6feb95 6922 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6923 fi
6924
1e6feb95 6925 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6926 echo "$ac_t""yes" 1>&6
10f2d63a 6927 else
698dcdb6 6928 echo "$ac_t""no" 1>&6
10f2d63a 6929 fi
698dcdb6 6930
10f2d63a 6931
cbca9943 6932 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
1a4f0015 6933echo "configure:6934: checking for --enable-splash" >&5
cbca9943
VZ
6934 no_cache=0
6935 # Check whether --enable-splash or --disable-splash was given.
6936if test "${enable_splash+set}" = set; then
6937 enableval="$enable_splash"
6938
6939 if test "$enableval" = yes; then
6940 ac_cv_use_splash='wxUSE_SPLASH=yes'
6941 else
6942 ac_cv_use_splash='wxUSE_SPLASH=no'
6943 fi
6944
6945else
6946
6947 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
6948 if test "x$LINE" != x ; then
6949 eval "DEFAULT_$LINE"
6950 else
6951 no_cache=1
6952 fi
6953
6954 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
6955
6956fi
6957
6958
6959 eval "$ac_cv_use_splash"
6960 if test "$no_cache" != 1; then
6961 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
6962 fi
6963
6964 if test "$wxUSE_SPLASH" = yes; then
6965 echo "$ac_t""yes" 1>&6
6966 else
6967 echo "$ac_t""no" 1>&6
6968 fi
6969
6970
698dcdb6 6971 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
1a4f0015 6972echo "configure:6973: checking for --enable-textdlg" >&5
10f2d63a
VZ
6973 no_cache=0
6974 # Check whether --enable-textdlg or --disable-textdlg was given.
6975if test "${enable_textdlg+set}" = set; then
6976 enableval="$enable_textdlg"
698dcdb6 6977
10f2d63a
VZ
6978 if test "$enableval" = yes; then
6979 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6980 else
6981 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6982 fi
698dcdb6 6983
10f2d63a 6984else
698dcdb6 6985
10f2d63a
VZ
6986 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6987 if test "x$LINE" != x ; then
6988 eval "DEFAULT_$LINE"
6989 else
6990 no_cache=1
6991 fi
6992
6993 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
6994
6995fi
10f2d63a
VZ
6996
6997
6998 eval "$ac_cv_use_textdlg"
6999 if test "$no_cache" != 1; then
7000 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7001 fi
7002
7003 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7004 echo "$ac_t""yes" 1>&6
10f2d63a 7005 else
698dcdb6 7006 echo "$ac_t""no" 1>&6
10f2d63a 7007 fi
698dcdb6 7008
10f2d63a 7009
698dcdb6 7010 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
1a4f0015 7011echo "configure:7012: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7012 no_cache=0
7013 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7014if test "${enable_tipdlg+set}" = set; then
7015 enableval="$enable_tipdlg"
698dcdb6 7016
10f2d63a
VZ
7017 if test "$enableval" = yes; then
7018 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7019 else
7020 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7021 fi
698dcdb6 7022
10f2d63a 7023else
698dcdb6 7024
10f2d63a
VZ
7025 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7026 if test "x$LINE" != x ; then
7027 eval "DEFAULT_$LINE"
7028 else
7029 no_cache=1
7030 fi
7031
7032 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7033
7034fi
10f2d63a
VZ
7035
7036
7037 eval "$ac_cv_use_tipdlg"
7038 if test "$no_cache" != 1; then
7039 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7040 fi
7041
7042 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7043 echo "$ac_t""yes" 1>&6
10f2d63a 7044 else
698dcdb6 7045 echo "$ac_t""no" 1>&6
10f2d63a 7046 fi
698dcdb6 7047
10f2d63a 7048
698dcdb6 7049 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
1a4f0015 7050echo "configure:7051: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7051 no_cache=0
7052 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7053if test "${enable_progressdlg+set}" = set; then
7054 enableval="$enable_progressdlg"
698dcdb6 7055
10f2d63a
VZ
7056 if test "$enableval" = yes; then
7057 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7058 else
7059 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7060 fi
698dcdb6 7061
10f2d63a 7062else
698dcdb6 7063
10f2d63a
VZ
7064 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7065 if test "x$LINE" != x ; then
7066 eval "DEFAULT_$LINE"
7067 else
7068 no_cache=1
7069 fi
7070
7071 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7072
7073fi
10f2d63a
VZ
7074
7075
7076 eval "$ac_cv_use_progressdlg"
7077 if test "$no_cache" != 1; then
7078 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7079 fi
7080
7081 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7082 echo "$ac_t""yes" 1>&6
10f2d63a 7083 else
698dcdb6 7084 echo "$ac_t""no" 1>&6
10f2d63a 7085 fi
698dcdb6 7086
10f2d63a 7087
b1f5d087 7088 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
1a4f0015 7089echo "configure:7090: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7090 no_cache=0
7091 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7092if test "${enable_wizarddlg+set}" = set; then
7093 enableval="$enable_wizarddlg"
7094
7095 if test "$enableval" = yes; then
7096 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7097 else
7098 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7099 fi
7100
7101else
7102
7103 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7104 if test "x$LINE" != x ; then
7105 eval "DEFAULT_$LINE"
7106 else
7107 no_cache=1
7108 fi
7109
7110 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7111
7112fi
7113
7114
7115 eval "$ac_cv_use_wizarddlg"
7116 if test "$no_cache" != 1; then
7117 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7118 fi
7119
7120 if test "$wxUSE_WIZARDDLG" = yes; then
7121 echo "$ac_t""yes" 1>&6
7122 else
7123 echo "$ac_t""no" 1>&6
7124 fi
7125
7126
7127
7128
1e6feb95 7129 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
1a4f0015 7130echo "configure:7131: checking for --enable-menus" >&5
1e6feb95
VZ
7131 no_cache=0
7132 # Check whether --enable-menus or --disable-menus was given.
7133if test "${enable_menus+set}" = set; then
7134 enableval="$enable_menus"
7135
7136 if test "$enableval" = yes; then
7137 ac_cv_use_menus='wxUSE_MENUS=yes'
7138 else
7139 ac_cv_use_menus='wxUSE_MENUS=no'
7140 fi
7141
7142else
7143
7144 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7145 if test "x$LINE" != x ; then
7146 eval "DEFAULT_$LINE"
7147 else
7148 no_cache=1
7149 fi
7150
7151 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7152
7153fi
7154
7155
7156 eval "$ac_cv_use_menus"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_MENUS" = yes; then
7162 echo "$ac_t""yes" 1>&6
7163 else
7164 echo "$ac_t""no" 1>&6
7165 fi
7166
7167
698dcdb6 7168 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
1a4f0015 7169echo "configure:7170: checking for --enable-miniframe" >&5
10f2d63a
VZ
7170 no_cache=0
7171 # Check whether --enable-miniframe or --disable-miniframe was given.
7172if test "${enable_miniframe+set}" = set; then
7173 enableval="$enable_miniframe"
698dcdb6 7174
10f2d63a
VZ
7175 if test "$enableval" = yes; then
7176 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7177 else
7178 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7179 fi
698dcdb6 7180
10f2d63a 7181else
698dcdb6 7182
10f2d63a
VZ
7183 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7184 if test "x$LINE" != x ; then
7185 eval "DEFAULT_$LINE"
7186 else
7187 no_cache=1
7188 fi
7189
7190 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7191
7192fi
10f2d63a
VZ
7193
7194
7195 eval "$ac_cv_use_miniframe"
7196 if test "$no_cache" != 1; then
7197 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7198 fi
7199
7200 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7201 echo "$ac_t""yes" 1>&6
10f2d63a 7202 else
698dcdb6 7203 echo "$ac_t""no" 1>&6
10f2d63a 7204 fi
698dcdb6 7205
10f2d63a 7206
698dcdb6 7207 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
1a4f0015 7208echo "configure:7209: checking for --enable-tooltips" >&5
10f2d63a
VZ
7209 no_cache=0
7210 # Check whether --enable-tooltips or --disable-tooltips was given.
7211if test "${enable_tooltips+set}" = set; then
7212 enableval="$enable_tooltips"
698dcdb6 7213
10f2d63a
VZ
7214 if test "$enableval" = yes; then
7215 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7216 else
7217 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7218 fi
698dcdb6 7219
10f2d63a 7220else
698dcdb6 7221
10f2d63a
VZ
7222 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7223 if test "x$LINE" != x ; then
7224 eval "DEFAULT_$LINE"
7225 else
7226 no_cache=1
7227 fi
7228
7229 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7230
7231fi
10f2d63a
VZ
7232
7233
7234 eval "$ac_cv_use_tooltips"
7235 if test "$no_cache" != 1; then
7236 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7237 fi
7238
7239 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7240 echo "$ac_t""yes" 1>&6
10f2d63a 7241 else
698dcdb6 7242 echo "$ac_t""no" 1>&6
10f2d63a 7243 fi
698dcdb6 7244
10f2d63a 7245
698dcdb6 7246 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
1a4f0015 7247echo "configure:7248: checking for --enable-splines" >&5
10f2d63a
VZ
7248 no_cache=0
7249 # Check whether --enable-splines or --disable-splines was given.
7250if test "${enable_splines+set}" = set; then
7251 enableval="$enable_splines"
698dcdb6 7252
10f2d63a
VZ
7253 if test "$enableval" = yes; then
7254 ac_cv_use_splines='wxUSE_SPLINES=yes'
7255 else
7256 ac_cv_use_splines='wxUSE_SPLINES=no'
7257 fi
698dcdb6 7258
10f2d63a 7259else
698dcdb6 7260
10f2d63a
VZ
7261 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7262 if test "x$LINE" != x ; then
7263 eval "DEFAULT_$LINE"
7264 else
7265 no_cache=1
7266 fi
7267
7268 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7269
7270fi
10f2d63a
VZ
7271
7272
7273 eval "$ac_cv_use_splines"
7274 if test "$no_cache" != 1; then
7275 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7276 fi
7277
7278 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7279 echo "$ac_t""yes" 1>&6
10f2d63a 7280 else
698dcdb6 7281 echo "$ac_t""no" 1>&6
10f2d63a 7282 fi
698dcdb6 7283
10f2d63a 7284
698dcdb6 7285 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
1a4f0015 7286echo "configure:7287: checking for --enable-validators" >&5
10f2d63a
VZ
7287 no_cache=0
7288 # Check whether --enable-validators or --disable-validators was given.
7289if test "${enable_validators+set}" = set; then
7290 enableval="$enable_validators"
698dcdb6 7291
10f2d63a
VZ
7292 if test "$enableval" = yes; then
7293 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7294 else
7295 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7296 fi
698dcdb6 7297
10f2d63a 7298else
698dcdb6 7299
10f2d63a
VZ
7300 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7301 if test "x$LINE" != x ; then
7302 eval "DEFAULT_$LINE"
7303 else
7304 no_cache=1
7305 fi
7306
7307 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7308
7309fi
10f2d63a
VZ
7310
7311
7312 eval "$ac_cv_use_validators"
7313 if test "$no_cache" != 1; then
7314 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7315 fi
7316
7317 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7318 echo "$ac_t""yes" 1>&6
10f2d63a 7319 else
698dcdb6 7320 echo "$ac_t""no" 1>&6
10f2d63a 7321 fi
698dcdb6 7322
10f2d63a 7323
698dcdb6 7324 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
1a4f0015 7325echo "configure:7326: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7326 no_cache=0
7327 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7328if test "${enable_busyinfo+set}" = set; then
7329 enableval="$enable_busyinfo"
698dcdb6 7330
10f2d63a
VZ
7331 if test "$enableval" = yes; then
7332 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7333 else
7334 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7335 fi
698dcdb6 7336
10f2d63a 7337else
698dcdb6 7338
10f2d63a
VZ
7339 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7340 if test "x$LINE" != x ; then
7341 eval "DEFAULT_$LINE"
7342 else
7343 no_cache=1
7344 fi
7345
7346 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7347
7348fi
10f2d63a
VZ
7349
7350
7351 eval "$ac_cv_use_busyinfo"
7352 if test "$no_cache" != 1; then
7353 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7354 fi
7355
7356 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7357 echo "$ac_t""yes" 1>&6
10f2d63a 7358 else
698dcdb6 7359 echo "$ac_t""no" 1>&6
10f2d63a 7360 fi
698dcdb6 7361
10f2d63a 7362
698dcdb6 7363 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
1a4f0015 7364echo "configure:7365: checking for --enable-joystick" >&5
f6bcfd97
BP
7365 no_cache=0
7366 # Check whether --enable-joystick or --disable-joystick was given.
7367if test "${enable_joystick+set}" = set; then
7368 enableval="$enable_joystick"
698dcdb6 7369
f6bcfd97
BP
7370 if test "$enableval" = yes; then
7371 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7372 else
7373 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7374 fi
698dcdb6 7375
f6bcfd97 7376else
698dcdb6 7377
f6bcfd97
BP
7378 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7379 if test "x$LINE" != x ; then
7380 eval "DEFAULT_$LINE"
7381 else
7382 no_cache=1
7383 fi
7384
7385 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7386
7387fi
f6bcfd97
BP
7388
7389
7390 eval "$ac_cv_use_joystick"
7391 if test "$no_cache" != 1; then
7392 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7393 fi
7394
7395 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7396 echo "$ac_t""yes" 1>&6
f6bcfd97 7397 else
698dcdb6 7398 echo "$ac_t""no" 1>&6
f6bcfd97 7399 fi
698dcdb6
VZ
7400
7401
1e6feb95 7402 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
1a4f0015 7403echo "configure:7404: checking for --enable-metafile" >&5
1e6feb95
VZ
7404 no_cache=0
7405 # Check whether --enable-metafile or --disable-metafile was given.
7406if test "${enable_metafile+set}" = set; then
7407 enableval="$enable_metafile"
7408
7409 if test "$enableval" = yes; then
7410 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7411 else
7412 ac_cv_use_metafile='wxUSE_METAFILE=no'
7413 fi
7414
7415else
7416
7417 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7418 if test "x$LINE" != x ; then
7419 eval "DEFAULT_$LINE"
7420 else
7421 no_cache=1
7422 fi
7423
7424 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7425
7426fi
7427
7428
7429 eval "$ac_cv_use_metafile"
7430 if test "$no_cache" != 1; then
7431 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7432 fi
7433
7434 if test "$wxUSE_METAFILE" = yes; then
7435 echo "$ac_t""yes" 1>&6
7436 else
7437 echo "$ac_t""no" 1>&6
7438 fi
7439
7440
24fd6d87 7441 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
1a4f0015 7442echo "configure:7443: checking for --enable-dragimage" >&5
24fd6d87
VZ
7443 no_cache=0
7444 # Check whether --enable-dragimage or --disable-dragimage was given.
7445if test "${enable_dragimage+set}" = set; then
7446 enableval="$enable_dragimage"
7447
7448 if test "$enableval" = yes; then
7449 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7450 else
7451 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7452 fi
7453
7454else
7455
7456 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7457 if test "x$LINE" != x ; then
7458 eval "DEFAULT_$LINE"
7459 else
7460 no_cache=1
7461 fi
7462
7463 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7464
7465fi
7466
7467
7468 eval "$ac_cv_use_dragimage"
7469 if test "$no_cache" != 1; then
7470 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7471 fi
7472
7473 if test "$wxUSE_DRAGIMAGE" = yes; then
7474 echo "$ac_t""yes" 1>&6
7475 else
7476 echo "$ac_t""no" 1>&6
7477 fi
7478
7479
10f2d63a 7480
698dcdb6 7481
edae8572 7482 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
1a4f0015 7483echo "configure:7484: checking for --enable-palette" >&5
edae8572
VZ
7484 no_cache=0
7485 # Check whether --enable-palette or --disable-palette was given.
7486if test "${enable_palette+set}" = set; then
7487 enableval="$enable_palette"
7488
7489 if test "$enableval" = yes; then
7490 ac_cv_use_palette='wxUSE_PALETTE=yes'
7491 else
7492 ac_cv_use_palette='wxUSE_PALETTE=no'
7493 fi
7494
7495else
7496
7497 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7498 if test "x$LINE" != x ; then
7499 eval "DEFAULT_$LINE"
7500 else
7501 no_cache=1
7502 fi
7503
7504 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7505
7506fi
7507
7508
7509 eval "$ac_cv_use_palette"
7510 if test "$no_cache" != 1; then
7511 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7512 fi
7513
7514 if test "$wxUSE_PALETTE" = yes; then
7515 echo "$ac_t""yes" 1>&6
7516 else
7517 echo "$ac_t""no" 1>&6
7518 fi
7519
7520
698dcdb6 7521 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
1a4f0015 7522echo "configure:7523: checking for --enable-image" >&5
0046ff7c
VS
7523 no_cache=0
7524 # Check whether --enable-image or --disable-image was given.
7525if test "${enable_image+set}" = set; then
7526 enableval="$enable_image"
698dcdb6 7527
0046ff7c
VS
7528 if test "$enableval" = yes; then
7529 ac_cv_use_image='wxUSE_IMAGE=yes'
7530 else
7531 ac_cv_use_image='wxUSE_IMAGE=no'
7532 fi
698dcdb6 7533
0046ff7c 7534else
698dcdb6 7535
0046ff7c
VS
7536 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7537 if test "x$LINE" != x ; then
7538 eval "DEFAULT_$LINE"
7539 else
7540 no_cache=1
7541 fi
7542
7543 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7544
7545fi
0046ff7c
VS
7546
7547
7548 eval "$ac_cv_use_image"
7549 if test "$no_cache" != 1; then
7550 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7551 fi
7552
7553 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7554 echo "$ac_t""yes" 1>&6
0046ff7c 7555 else
698dcdb6 7556 echo "$ac_t""no" 1>&6
0046ff7c 7557 fi
698dcdb6 7558
0046ff7c 7559
698dcdb6 7560 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
1a4f0015 7561echo "configure:7562: checking for --enable-gif" >&5
10f2d63a
VZ
7562 no_cache=0
7563 # Check whether --enable-gif or --disable-gif was given.
7564if test "${enable_gif+set}" = set; then
7565 enableval="$enable_gif"
698dcdb6 7566
10f2d63a
VZ
7567 if test "$enableval" = yes; then
7568 ac_cv_use_gif='wxUSE_GIF=yes'
7569 else
7570 ac_cv_use_gif='wxUSE_GIF=no'
7571 fi
698dcdb6 7572
10f2d63a 7573else
698dcdb6 7574
10f2d63a
VZ
7575 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7576 if test "x$LINE" != x ; then
7577 eval "DEFAULT_$LINE"
7578 else
7579 no_cache=1
7580 fi
7581
7582 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7583
7584fi
10f2d63a
VZ
7585
7586
7587 eval "$ac_cv_use_gif"
7588 if test "$no_cache" != 1; then
7589 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7590 fi
7591
7592 if test "$wxUSE_GIF" = yes; then
698dcdb6 7593 echo "$ac_t""yes" 1>&6
10f2d63a 7594 else
698dcdb6 7595 echo "$ac_t""no" 1>&6
10f2d63a 7596 fi
698dcdb6 7597
10f2d63a 7598
698dcdb6 7599 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
1a4f0015 7600echo "configure:7601: checking for --enable-pcx" >&5
10f2d63a
VZ
7601 no_cache=0
7602 # Check whether --enable-pcx or --disable-pcx was given.
7603if test "${enable_pcx+set}" = set; then
7604 enableval="$enable_pcx"
698dcdb6 7605
10f2d63a
VZ
7606 if test "$enableval" = yes; then
7607 ac_cv_use_pcx='wxUSE_PCX=yes'
7608 else
7609 ac_cv_use_pcx='wxUSE_PCX=no'
7610 fi
698dcdb6 7611
10f2d63a 7612else
698dcdb6 7613
10f2d63a
VZ
7614 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7615 if test "x$LINE" != x ; then
7616 eval "DEFAULT_$LINE"
7617 else
7618 no_cache=1
7619 fi
7620
7621 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7622
7623fi
10f2d63a
VZ
7624
7625
7626 eval "$ac_cv_use_pcx"
7627 if test "$no_cache" != 1; then
7628 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7629 fi
7630
7631 if test "$wxUSE_PCX" = yes; then
698dcdb6 7632 echo "$ac_t""yes" 1>&6
10f2d63a 7633 else
698dcdb6 7634 echo "$ac_t""no" 1>&6
10f2d63a 7635 fi
698dcdb6 7636
10f2d63a 7637
698dcdb6 7638 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
1a4f0015 7639echo "configure:7640: checking for --enable-pnm" >&5
10f2d63a
VZ
7640 no_cache=0
7641 # Check whether --enable-pnm or --disable-pnm was given.
7642if test "${enable_pnm+set}" = set; then
7643 enableval="$enable_pnm"
698dcdb6 7644
10f2d63a
VZ
7645 if test "$enableval" = yes; then
7646 ac_cv_use_pnm='wxUSE_PNM=yes'
7647 else
7648 ac_cv_use_pnm='wxUSE_PNM=no'
7649 fi
698dcdb6 7650
10f2d63a 7651else
698dcdb6 7652
10f2d63a
VZ
7653 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7654 if test "x$LINE" != x ; then
7655 eval "DEFAULT_$LINE"
7656 else
7657 no_cache=1
7658 fi
7659
7660 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7661
7662fi
10f2d63a
VZ
7663
7664
7665 eval "$ac_cv_use_pnm"
7666 if test "$no_cache" != 1; then
7667 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7668 fi
7669
7670 if test "$wxUSE_PNM" = yes; then
698dcdb6 7671 echo "$ac_t""yes" 1>&6
10f2d63a 7672 else
698dcdb6 7673 echo "$ac_t""no" 1>&6
10f2d63a 7674 fi
698dcdb6 7675
10f2d63a 7676
698dcdb6 7677 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
1a4f0015 7678echo "configure:7679: checking for --enable-pnm" >&5
0046ff7c
VS
7679 no_cache=0
7680 # Check whether --enable-pnm or --disable-pnm was given.
7681if test "${enable_pnm+set}" = set; then
7682 enableval="$enable_pnm"
698dcdb6 7683
0046ff7c
VS
7684 if test "$enableval" = yes; then
7685 ac_cv_use_pnm='wxUSE_XPM=yes'
7686 else
7687 ac_cv_use_pnm='wxUSE_XPM=no'
7688 fi
698dcdb6 7689
0046ff7c 7690else
698dcdb6 7691
0046ff7c
VS
7692 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7693 if test "x$LINE" != x ; then
7694 eval "DEFAULT_$LINE"
7695 else
7696 no_cache=1
7697 fi
7698
7699 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7700
7701fi
0046ff7c
VS
7702
7703
7704 eval "$ac_cv_use_pnm"
7705 if test "$no_cache" != 1; then
7706 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7707 fi
7708
7709 if test "$wxUSE_XPM" = yes; then
698dcdb6 7710 echo "$ac_t""yes" 1>&6
0046ff7c 7711 else
698dcdb6 7712 echo "$ac_t""no" 1>&6
0046ff7c 7713 fi
698dcdb6 7714
0046ff7c 7715
b12915c1
VZ
7716fi
7717
698dcdb6 7718
10f2d63a
VZ
7719 echo "saving argument cache $wx_arg_cache_file"
7720 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7721
10f2d63a 7722
698dcdb6
VZ
7723
7724echo $ac_n "checking for toolkit""... $ac_c" 1>&6
1a4f0015 7725echo "configure:7726: checking for toolkit" >&5
10f2d63a
VZ
7726
7727if test "$wxUSE_GUI" = "yes"; then
7728
3a922bb4
RL
7729 if test "$USE_BEOS" = 1; then
7730 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7731 fi
b12915c1 7732
3a922bb4
RL
7733 if test "$TOOLKIT_GIVEN" = 1; then
7734 for toolkit in `echo $ALL_TOOLKITS`; do
7735 var=wxUSE_$toolkit
7736 eval "value=\$${var}"
7737 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7738 done
10f2d63a 7739 else
3a922bb4
RL
7740 for toolkit in `echo $ALL_TOOLKITS`; do
7741 if test "$has_toolkit_in_cache" != 1; then
7742 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7743 else
7744 var=DEFAULT_wxUSE_$toolkit
7745 fi
7746 eval "wxUSE_$toolkit=\$${var}"
7747 done
10f2d63a 7748 fi
10f2d63a 7749
3a922bb4
RL
7750 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7751 + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} \
7752 + ${wxUSE_MGL:-0}`
10f2d63a 7753
3a922bb4
RL
7754 case "${host}" in
7755 *-pc-os2_emx )
7756 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7757 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7758 LEX_STEM="lexyy"
7759 ;;
7760 *)
7761 PATH_IFS=':'
7762 LEX_STEM="lex.yy"
7763 ;;
7764 esac
10f2d63a 7765
3a922bb4
RL
7766 case "$NUM_TOOLKITS" in
7767 1)
7768 ;;
7769 0)
7770 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7771 ;;
7772 *)
7773 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7774 esac
10f2d63a 7775
3a922bb4
RL
7776 for toolkit in `echo $ALL_TOOLKITS`; do
7777 var=wxUSE_$toolkit
7778 eval "value=\$${var}"
7779 if test "x$value" != x; then
7780 cache_var=CACHE_$toolkit
7781 eval "cache=\$${cache_var}"
7782 if test "$cache" = 1; then
7783 echo "$var=$value" >> ${wx_arg_cache_file}
7784 fi
7785 if test "$value" = 1; then
7786 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7787 echo "$ac_t""$toolkit_echo" 1>&6
7788 fi
7789 fi
7790 done
10f2d63a 7791else
cf27ef00 7792 PATH_IFS=':'
3a922bb4 7793 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
7794fi
7795
698dcdb6
VZ
7796
7797cat > confcache <<\EOF
10f2d63a
VZ
7798# This file is a shell script that caches the results of configure
7799# tests run on this system so they can be shared between configure
698dcdb6
VZ
7800# scripts and configure runs. It is not useful on other systems.
7801# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7802#
698dcdb6
VZ
7803# By default, configure uses ./config.cache as the cache file,
7804# creating it if it does not exist already. You can give configure
7805# the --cache-file=FILE option to use a different cache file; that is
7806# what configure does when it calls configure scripts in
7807# subdirectories, so they share the cache.
7808# Giving --cache-file=/dev/null disables caching, for debugging configure.
7809# config.status only pays attention to the cache file if you give it the
7810# --recheck option to rerun configure.
10f2d63a 7811#
698dcdb6 7812EOF
10f2d63a
VZ
7813# The following way of writing the cache mishandles newlines in values,
7814# but we know of no workaround that is simple, portable, and efficient.
7815# So, don't put newlines in cache variables' values.
7816# Ultrix sh set writes to stderr and can't be redirected directly,
7817# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7818(set) 2>&1 |
7819 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7820 *ac_space=\ *)
7821 # `set' does not quote correctly, so add quotes (double-quote substitution
7822 # turns \\\\ into \\, and sed turns \\ into \).
7823 sed -n \
7824 -e "s/'/'\\\\''/g" \
7825 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7826 ;;
7827 *)
7828 # `set' quotes correctly as required by POSIX, so do not add quotes.
7829 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7830 ;;
7831 esac >> confcache
7832if cmp -s $cache_file confcache; then
7833 :
7834else
10f2d63a 7835 if test -w $cache_file; then
698dcdb6
VZ
7836 echo "updating cache $cache_file"
7837 cat confcache > $cache_file
10f2d63a
VZ
7838 else
7839 echo "not updating unwritable cache $cache_file"
7840 fi
7841fi
7842rm -f confcache
7843
698dcdb6 7844
e59890c3 7845if test "$build" != "$host" ; then
3a922bb4
RL
7846 if test "$USE_WIN32" = 1 ; then
7847 CC=$host_alias-gcc
7848 CXX=$host_alias-c++
7849 AR=$host_alias-ar
7850 RANLIB=$host_alias-ranlib
7851 DLLTOOL=$host_alias-dlltool
7852 RESCOMP=$host_alias-windres
7853 LD=$host_alias-ld
7854 NM=$host_alias-nm
7855 STRIP=$host_alias-strip
7856 else
7857 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
7858 fi
10f2d63a
VZ
7859fi
7860
698dcdb6 7861# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7862set dummy gcc; ac_word=$2
698dcdb6 7863echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1a4f0015 7864echo "configure:7865: checking for $ac_word" >&5
698dcdb6
VZ
7865if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7866 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7867else
7868 if test -n "$CC"; then
7869 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7870else
698dcdb6
VZ
7871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7872 ac_dummy="$PATH"
7873 for ac_dir in $ac_dummy; do
7874 test -z "$ac_dir" && ac_dir=.
7875 if test -f $ac_dir/$ac_word; then
7876 ac_cv_prog_CC="gcc"
7877 break
7878 fi
7879 done
7880 IFS="$ac_save_ifs"
10f2d63a 7881fi
6232543b 7882fi
698dcdb6 7883CC="$ac_cv_prog_CC"
6232543b 7884if test -n "$CC"; then
698dcdb6 7885 echo "$ac_t""$CC" 1>&6
1e487827 7886else
698dcdb6 7887 echo "$ac_t""no" 1>&6
1e487827 7888fi
6232543b 7889
1e487827
VS
7890if test -z "$CC"; then
7891 # Extract the first word of "cc", so it can be a program name with args.
7892set dummy cc; ac_word=$2
698dcdb6 7893echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1a4f0015 7894echo "configure:7895: checking for $ac_word" >&5
698dcdb6
VZ
7895if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7896 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7897else
7898 if test -n "$CC"; then
7899 ac_cv_prog_CC="$CC" # Let the user override the test.
7900else
698dcdb6 7901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7902 ac_prog_rejected=no
698dcdb6
VZ
7903 ac_dummy="$PATH"
7904 for ac_dir in $ac_dummy; do
7905 test -z "$ac_dir" && ac_dir=.
7906 if test -f $ac_dir/$ac_word; then
7907 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7908 ac_prog_rejected=yes
7909 continue
7910 fi
7911 ac_cv_prog_CC="cc"
7912 break
7913 fi
7914 done
7915 IFS="$ac_save_ifs"
1e487827
VS
7916if test $ac_prog_rejected = yes; then
7917 # We found a bogon in the path, so make sure we never use it.
7918 set dummy $ac_cv_prog_CC
7919 shift
698dcdb6 7920 if test $# -gt 0; then
1e487827
VS
7921 # We chose a different compiler from the bogus one.
7922 # However, it has the same basename, so the bogon will be chosen
7923 # first if we set CC to just the basename; use the full file name.
7924 shift
698dcdb6 7925 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7926 shift
7927 ac_cv_prog_CC="$@"
703e0a69 7928 fi
1e487827
VS
7929fi
7930fi
7931fi
698dcdb6 7932CC="$ac_cv_prog_CC"
1e487827 7933if test -n "$CC"; then
698dcdb6 7934 echo "$ac_t""$CC" 1>&6
703e0a69 7935else
698dcdb6 7936 echo "$ac_t""no" 1>&6
703e0a69 7937fi
1e487827 7938
698dcdb6
VZ
7939 if test -z "$CC"; then
7940 case "`uname -s`" in
7941 *win32* | *WIN32*)
7942 # Extract the first word of "cl", so it can be a program name with args.
7943set dummy cl; ac_word=$2
7944echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1a4f0015 7945echo "configure:7946: checking for $ac_word" >&5
698dcdb6
VZ
7946if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7947 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7948else
7949 if test -n "$CC"; then
7950 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 7951else
698dcdb6
VZ
7952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7953 ac_dummy="$PATH"
7954 for ac_dir in $ac_dummy; do
7955 test -z "$ac_dir" && ac_dir=.
7956 if test -f $ac_dir/$ac_word; then
7957 ac_cv_prog_CC="cl"
7958 break
7959 fi
7960 done
7961 IFS="$ac_save_ifs"
703e0a69 7962fi
1e487827 7963fi
698dcdb6 7964CC="$ac_cv_prog_CC"
1e487827 7965if test -n "$CC"; then
698dcdb6 7966 echo "$ac_t""$CC" 1>&6
1e487827 7967else
698dcdb6 7968 echo "$ac_t""no" 1>&6
1e487827 7969fi
698dcdb6
VZ
7970 ;;
7971 esac
7972 fi
7973 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
7974fi
7975
698dcdb6 7976echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1a4f0015 7977echo "configure:7978: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 7978
698dcdb6
VZ
7979ac_ext=c
7980# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7981ac_cpp='$CPP $CPPFLAGS'
7982ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7983ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7984cross_compiling=$ac_cv_prog_cc_cross
6232543b 7985
698dcdb6 7986cat > conftest.$ac_ext << EOF
1e487827 7987
1a4f0015 7988#line 7989 "configure"
1e487827
VS
7989#include "confdefs.h"
7990
698dcdb6
VZ
7991main(){return(0);}
7992EOF
1a4f0015 7993if { (eval echo configure:7994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7994 ac_cv_prog_cc_works=yes
7995 # If we can't run a trivial program, we are probably using a cross compiler.
7996 if (./conftest; exit) 2>/dev/null; then
7997 ac_cv_prog_cc_cross=no
7998 else
7999 ac_cv_prog_cc_cross=yes
8000 fi
8001else
8002 echo "configure: failed program was:" >&5
8003 cat conftest.$ac_ext >&5
8004 ac_cv_prog_cc_works=no
8005fi
8006rm -fr conftest*
8007ac_ext=c
8008# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8009ac_cpp='$CPP $CPPFLAGS'
8010ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8011ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8012cross_compiling=$ac_cv_prog_cc_cross
8013
8014echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8015if test $ac_cv_prog_cc_works = no; then
8016 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8017fi
8018echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1a4f0015 8019echo "configure:8020: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8020echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8021cross_compiling=$ac_cv_prog_cc_cross
8022
8023echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1a4f0015 8024echo "configure:8025: checking whether we are using GNU C" >&5
698dcdb6
VZ
8025if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8026 echo $ac_n "(cached) $ac_c" 1>&6
8027else
8028 cat > conftest.c <<EOF
8029#ifdef __GNUC__
8030 yes;
1e487827 8031#endif
698dcdb6 8032EOF
1a4f0015 8033if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8034 ac_cv_prog_gcc=yes
8035else
8036 ac_cv_prog_gcc=no
8037fi
8038fi
1e487827 8039
698dcdb6 8040echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8041
698dcdb6
VZ
8042if test $ac_cv_prog_gcc = yes; then
8043 GCC=yes
8044else
8045 GCC=
8046fi
1e487827 8047
698dcdb6
VZ
8048ac_test_CFLAGS="${CFLAGS+set}"
8049ac_save_CFLAGS="$CFLAGS"
8050CFLAGS=
8051echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1a4f0015 8052echo "configure:8053: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8053if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8054 echo $ac_n "(cached) $ac_c" 1>&6
8055else
8056 echo 'void f(){}' > conftest.c
8057if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8058 ac_cv_prog_cc_g=yes
8059else
698dcdb6 8060 ac_cv_prog_cc_g=no
10f2d63a 8061fi
698dcdb6
VZ
8062rm -f conftest*
8063
10f2d63a 8064fi
698dcdb6
VZ
8065
8066echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8067if test "$ac_test_CFLAGS" = set; then
698dcdb6 8068 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8069elif test $ac_cv_prog_cc_g = yes; then
8070 if test "$GCC" = yes; then
8071 CFLAGS="-g -O2"
8072 else
8073 CFLAGS="-g"
8074 fi
8075else
8076 if test "$GCC" = yes; then
8077 CFLAGS="-O2"
8078 else
8079 CFLAGS=
8080 fi
8081fi
8082
8083
8084CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8085
698dcdb6 8086echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1a4f0015 8087echo "configure:8088: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8088# On Suns, sometimes $CPP names a directory.
8089if test -n "$CPP" && test -d "$CPP"; then
8090 CPP=
8091fi
8092if test -z "$CPP"; then
698dcdb6
VZ
8093if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8094 echo $ac_n "(cached) $ac_c" 1>&6
8095else
8096 # This must be in double quotes, not single quotes, because CPP may get
8097 # substituted into the Makefile and "${CC-cc}" will confuse make.
8098 CPP="${CC-cc} -E"
10f2d63a 8099 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8100 # not just through cpp.
8101 cat > conftest.$ac_ext <<EOF
1a4f0015 8102#line 8103 "configure"
10f2d63a
VZ
8103#include "confdefs.h"
8104#include <assert.h>
698dcdb6
VZ
8105Syntax Error
8106EOF
8107ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 8108{ (eval echo configure:8109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8109ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8110if test -z "$ac_err"; then
10f2d63a
VZ
8111 :
8112else
698dcdb6
VZ
8113 echo "$ac_err" >&5
8114 echo "configure: failed program was:" >&5
10f2d63a 8115 cat conftest.$ac_ext >&5
698dcdb6
VZ
8116 rm -rf conftest*
8117 CPP="${CC-cc} -E -traditional-cpp"
8118 cat > conftest.$ac_ext <<EOF
1a4f0015 8119#line 8120 "configure"
10f2d63a 8120#include "confdefs.h"
698dcdb6
VZ
8121#include <assert.h>
8122Syntax Error
8123EOF
8124ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 8125{ (eval echo configure:8126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8126ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8127if test -z "$ac_err"; then
8128 :
10f2d63a 8129else
698dcdb6
VZ
8130 echo "$ac_err" >&5
8131 echo "configure: failed program was:" >&5
10f2d63a 8132 cat conftest.$ac_ext >&5
698dcdb6
VZ
8133 rm -rf conftest*
8134 CPP="${CC-cc} -nologo -E"
8135 cat > conftest.$ac_ext <<EOF
1a4f0015 8136#line 8137 "configure"
10f2d63a
VZ
8137#include "confdefs.h"
8138#include <assert.h>
698dcdb6
VZ
8139Syntax Error
8140EOF
8141ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 8142{ (eval echo configure:8143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8143ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8144if test -z "$ac_err"; then
10f2d63a
VZ
8145 :
8146else
698dcdb6
VZ
8147 echo "$ac_err" >&5
8148 echo "configure: failed program was:" >&5
10f2d63a 8149 cat conftest.$ac_ext >&5
698dcdb6
VZ
8150 rm -rf conftest*
8151 CPP=/lib/cpp
10f2d63a 8152fi
698dcdb6 8153rm -f conftest*
10f2d63a 8154fi
698dcdb6 8155rm -f conftest*
703e0a69 8156fi
698dcdb6
VZ
8157rm -f conftest*
8158 ac_cv_prog_CPP="$CPP"
8159fi
8160 CPP="$ac_cv_prog_CPP"
10f2d63a 8161else
698dcdb6 8162 ac_cv_prog_CPP="$CPP"
10f2d63a 8163fi
698dcdb6 8164echo "$ac_t""$CPP" 1>&6
10f2d63a 8165
698dcdb6
VZ
8166if test $ac_cv_prog_gcc = yes; then
8167 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1a4f0015 8168echo "configure:8169: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8169if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8170 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8171else
8172 ac_pattern="Autoconf.*'x'"
698dcdb6 8173 cat > conftest.$ac_ext <<EOF
1a4f0015 8174#line 8175 "configure"
10f2d63a
VZ
8175#include "confdefs.h"
8176#include <sgtty.h>
8177Autoconf TIOCGETP
698dcdb6 8178EOF
10f2d63a
VZ
8179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8180 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8181 rm -rf conftest*
10f2d63a
VZ
8182 ac_cv_prog_gcc_traditional=yes
8183else
698dcdb6 8184 rm -rf conftest*
10f2d63a
VZ
8185 ac_cv_prog_gcc_traditional=no
8186fi
8187rm -f conftest*
8188
698dcdb6 8189
10f2d63a 8190 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8191 cat > conftest.$ac_ext <<EOF
1a4f0015 8192#line 8193 "configure"
10f2d63a
VZ
8193#include "confdefs.h"
8194#include <termio.h>
8195Autoconf TCGETA
698dcdb6 8196EOF
10f2d63a
VZ
8197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8198 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8199 rm -rf conftest*
10f2d63a
VZ
8200 ac_cv_prog_gcc_traditional=yes
8201fi
8202rm -f conftest*
8203
8204 fi
8205fi
698dcdb6
VZ
8206
8207echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8208 if test $ac_cv_prog_gcc_traditional = yes; then
8209 CC="$CC -traditional"
8210 fi
8211fi
8212
703e0a69 8213
698dcdb6
VZ
8214
8215ac_ext=C
8216# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8217ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8218ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8219ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8220cross_compiling=$ac_cv_prog_cxx_cross
8221
8222
8223for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8224do
8225# Extract the first word of "$ac_prog", so it can be a program name with args.
8226set dummy $ac_prog; ac_word=$2
8227echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1a4f0015 8228echo "configure:8229: checking for $ac_word" >&5
698dcdb6
VZ
8229if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8230 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8231else
8232 if test -n "$CXX"; then
8233 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8234else
698dcdb6
VZ
8235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8236 ac_dummy="$PATH"
8237 for ac_dir in $ac_dummy; do
8238 test -z "$ac_dir" && ac_dir=.
8239 if test -f $ac_dir/$ac_word; then
8240 ac_cv_prog_CXX="$ac_prog"
8241 break
8242 fi
8243 done
8244 IFS="$ac_save_ifs"
10f2d63a
VZ
8245fi
8246fi
698dcdb6 8247CXX="$ac_cv_prog_CXX"
10f2d63a 8248if test -n "$CXX"; then
698dcdb6 8249 echo "$ac_t""$CXX" 1>&6
10f2d63a 8250else
698dcdb6 8251 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8252fi
8253
698dcdb6 8254test -n "$CXX" && break
10f2d63a 8255done
698dcdb6 8256test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8257
8258
698dcdb6 8259echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1a4f0015 8260echo "configure:8261: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8261
698dcdb6
VZ
8262ac_ext=C
8263# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8264ac_cpp='$CXXCPP $CPPFLAGS'
8265ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8266ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8267cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8268
698dcdb6
VZ
8269cat > conftest.$ac_ext << EOF
8270
1a4f0015 8271#line 8272 "configure"
10f2d63a
VZ
8272#include "confdefs.h"
8273
698dcdb6
VZ
8274int main(){return(0);}
8275EOF
1a4f0015 8276if { (eval echo configure:8277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8277 ac_cv_prog_cxx_works=yes
8278 # If we can't run a trivial program, we are probably using a cross compiler.
8279 if (./conftest; exit) 2>/dev/null; then
8280 ac_cv_prog_cxx_cross=no
8281 else
8282 ac_cv_prog_cxx_cross=yes
8283 fi
8284else
8285 echo "configure: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8287 ac_cv_prog_cxx_works=no
8288fi
8289rm -fr conftest*
8290ac_ext=C
8291# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8292ac_cpp='$CXXCPP $CPPFLAGS'
8293ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8294ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8295cross_compiling=$ac_cv_prog_cxx_cross
8296
8297echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8298if test $ac_cv_prog_cxx_works = no; then
8299 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8300fi
8301echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1a4f0015 8302echo "configure:8303: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8303echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8304cross_compiling=$ac_cv_prog_cxx_cross
8305
8306echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1a4f0015 8307echo "configure:8308: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8308if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8309 echo $ac_n "(cached) $ac_c" 1>&6
8310else
8311 cat > conftest.C <<EOF
8312#ifdef __GNUC__
8313 yes;
10f2d63a 8314#endif
698dcdb6 8315EOF
1a4f0015 8316if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8317 ac_cv_prog_gxx=yes
8318else
8319 ac_cv_prog_gxx=no
8320fi
8321fi
10f2d63a 8322
698dcdb6 8323echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8324
698dcdb6
VZ
8325if test $ac_cv_prog_gxx = yes; then
8326 GXX=yes
8327else
8328 GXX=
8329fi
10f2d63a 8330
698dcdb6
VZ
8331ac_test_CXXFLAGS="${CXXFLAGS+set}"
8332ac_save_CXXFLAGS="$CXXFLAGS"
8333CXXFLAGS=
8334echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1a4f0015 8335echo "configure:8336: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8336if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8337 echo $ac_n "(cached) $ac_c" 1>&6
8338else
8339 echo 'void f(){}' > conftest.cc
8340if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8341 ac_cv_prog_cxx_g=yes
8342else
698dcdb6 8343 ac_cv_prog_cxx_g=no
10f2d63a 8344fi
698dcdb6
VZ
8345rm -f conftest*
8346
10f2d63a 8347fi
698dcdb6
VZ
8348
8349echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8350if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8351 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8352elif test $ac_cv_prog_cxx_g = yes; then
8353 if test "$GXX" = yes; then
8354 CXXFLAGS="-g -O2"
8355 else
8356 CXXFLAGS="-g"
8357 fi
8358else
8359 if test "$GXX" = yes; then
8360 CXXFLAGS="-O2"
8361 else
8362 CXXFLAGS=
8363 fi
8364fi
8365
8366
10f2d63a
VZ
8367CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8368
8369ac_ext=c
698dcdb6 8370# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8371ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8372ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8373ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8374cross_compiling=$ac_cv_prog_cc_cross
8375
8376
8377# Extract the first word of "ranlib", so it can be a program name with args.
8378set dummy ranlib; ac_word=$2
8379echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1a4f0015 8380echo "configure:8381: checking for $ac_word" >&5
698dcdb6
VZ
8381if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8382 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8383else
8384 if test -n "$RANLIB"; then
8385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8386else
698dcdb6
VZ
8387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8388 ac_dummy="$PATH"
8389 for ac_dir in $ac_dummy; do
8390 test -z "$ac_dir" && ac_dir=.
8391 if test -f $ac_dir/$ac_word; then
8392 ac_cv_prog_RANLIB="ranlib"
8393 break
8394 fi
8395 done
8396 IFS="$ac_save_ifs"
8397 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8398fi
8399fi
698dcdb6 8400RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8401if test -n "$RANLIB"; then
698dcdb6 8402 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8403else
698dcdb6 8404 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8405fi
8406
8407
8408# Extract the first word of "ar", so it can be a program name with args.
8409set dummy ar; ac_word=$2
698dcdb6 8410echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1a4f0015 8411echo "configure:8412: checking for $ac_word" >&5
698dcdb6
VZ
8412if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8414else
8415 if test -n "$AR"; then
8416 ac_cv_prog_AR="$AR" # Let the user override the test.
8417else
698dcdb6
VZ
8418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8419 ac_dummy="$PATH"
8420 for ac_dir in $ac_dummy; do
8421 test -z "$ac_dir" && ac_dir=.
8422 if test -f $ac_dir/$ac_word; then
8423 ac_cv_prog_AR="ar"
8424 break
8425 fi
8426 done
8427 IFS="$ac_save_ifs"
10f2d63a
VZ
8428 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8429fi
8430fi
698dcdb6 8431AR="$ac_cv_prog_AR"
10f2d63a 8432if test -n "$AR"; then
698dcdb6 8433 echo "$ac_t""$AR" 1>&6
10f2d63a 8434else
698dcdb6 8435 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8436fi
8437
698dcdb6 8438
10f2d63a
VZ
8439# Find a good install program. We prefer a C program (faster),
8440# so one script is as good as another. But avoid the broken or
8441# incompatible versions:
8442# SysV /etc/install, /usr/sbin/install
8443# SunOS /usr/etc/install
8444# IRIX /sbin/install
8445# AIX /bin/install
8446# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8447# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8448# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8449# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8450echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1a4f0015 8451echo "configure:8452: checking for a BSD compatible install" >&5
10f2d63a 8452if test -z "$INSTALL"; then
698dcdb6
VZ
8453if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8454 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8455else
698dcdb6 8456 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8457 for ac_dir in $PATH; do
8458 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8459 case "$ac_dir/" in
8460 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8461 *)
8462 # OSF1 and SCO ODT 3.0 have their own names for install.
8463 # Don't use installbsd from OSF since it installs stuff as root
8464 # by default.
8465 for ac_prog in ginstall scoinst install; do
698dcdb6 8466 if test -f $ac_dir/$ac_prog; then
10f2d63a 8467 if test $ac_prog = install &&
698dcdb6 8468 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8469 # AIX install. It has an incompatible calling convention.
8470 :
8471 else
8472 ac_cv_path_install="$ac_dir/$ac_prog -c"
8473 break 2
8474 fi
8475 fi
8476 done
8477 ;;
8478 esac
8479 done
698dcdb6 8480 IFS="$ac_save_IFS"
10f2d63a
VZ
8481
8482fi
8483 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8484 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8485 else
8486 # As a last resort, use the slow shell script. We don't cache a
8487 # path for INSTALL within a source directory, because that will
8488 # break other packages using the cache if that directory is
8489 # removed, or if the path is relative.
698dcdb6 8490 INSTALL="$ac_install_sh"
10f2d63a
VZ
8491 fi
8492fi
698dcdb6 8493echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8494
8495# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8496# It thinks the first close brace ends the variable substitution.
8497test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8498
698dcdb6 8499test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8500
8501test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8502
698dcdb6 8503
10f2d63a
VZ
8504# Extract the first word of "strip", so it can be a program name with args.
8505set dummy strip; ac_word=$2
698dcdb6 8506echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1a4f0015 8507echo "configure:8508: checking for $ac_word" >&5
698dcdb6
VZ
8508if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8509 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8510else
8511 if test -n "$STRIP"; then
8512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8513else
698dcdb6
VZ
8514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8515 ac_dummy="$PATH"
8516 for ac_dir in $ac_dummy; do
8517 test -z "$ac_dir" && ac_dir=.
8518 if test -f $ac_dir/$ac_word; then
8519 ac_cv_prog_STRIP="strip"
8520 break
8521 fi
8522 done
8523 IFS="$ac_save_ifs"
10f2d63a
VZ
8524 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8525fi
8526fi
698dcdb6 8527STRIP="$ac_cv_prog_STRIP"
10f2d63a 8528if test -n "$STRIP"; then
698dcdb6 8529 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8530else
698dcdb6 8531 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8532fi
8533
698dcdb6
VZ
8534
8535echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
1a4f0015 8536echo "configure:8537: checking make for VPATH support" >&5
10f2d63a
VZ
8537cat - << EOF > confMake
8538check : file
8539 cp \$? \$@
8540 cp \$? final_file
8541EOF
8542
8543if test ! -d sub ; then
8544 mkdir sub
8545fi
8546echo dummy > sub/file
f6bcfd97 8547${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8548RESULT=$?
8549rm -f sub/file check final_file confMake
8550rmdir sub
8551if test "$RESULT" = 0; then
698dcdb6 8552 echo "$ac_t""yes" 1>&6
10f2d63a 8553else
698dcdb6
VZ
8554 echo "$ac_t""no" 1>&6
8555 { echo "configure: error:
1e487827
VS
8556You need a make-utility that is able to use the variable
8557VPATH correctly.
8558If your version of make does not support VPATH correctly,
8559please install GNU-make (possibly as gmake), and start
8560configure with the following command:
8561export MAKE=gmake; ./configure for sh-type shells
8562setenv MAKE gmake; ./configure for csh-type shells
8563Also please do remember to use gmake in this case every time
8564you are trying to compile.
698dcdb6 8565" 1>&2; exit 1; }
10f2d63a
VZ
8566fi
8567
8568for ac_prog in 'bison -y' byacc
8569do
698dcdb6 8570# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8571set dummy $ac_prog; ac_word=$2
698dcdb6 8572echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1a4f0015 8573echo "configure:8574: checking for $ac_word" >&5
698dcdb6
VZ
8574if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8575 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8576else
8577 if test -n "$YACC"; then
8578 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8579else
698dcdb6
VZ
8580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8581 ac_dummy="$PATH"
8582 for ac_dir in $ac_dummy; do
8583 test -z "$ac_dir" && ac_dir=.
8584 if test -f $ac_dir/$ac_word; then
8585 ac_cv_prog_YACC="$ac_prog"
8586 break
8587 fi
8588 done
8589 IFS="$ac_save_ifs"
10f2d63a
VZ
8590fi
8591fi
698dcdb6 8592YACC="$ac_cv_prog_YACC"
10f2d63a 8593if test -n "$YACC"; then
698dcdb6 8594 echo "$ac_t""$YACC" 1>&6
10f2d63a 8595else
698dcdb6 8596 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8597fi
8598
698dcdb6 8599test -n "$YACC" && break
10f2d63a
VZ
8600done
8601test -n "$YACC" || YACC="yacc"
8602
698dcdb6
VZ
8603
8604# Extract the first word of "flex", so it can be a program name with args.
8605set dummy flex; ac_word=$2
8606echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1a4f0015 8607echo "configure:8608: checking for $ac_word" >&5
698dcdb6
VZ
8608if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8609 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8610else
8611 if test -n "$LEX"; then
8612 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8613else
698dcdb6
VZ
8614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8615 ac_dummy="$PATH"
8616 for ac_dir in $ac_dummy; do
8617 test -z "$ac_dir" && ac_dir=.
8618 if test -f $ac_dir/$ac_word; then
8619 ac_cv_prog_LEX="flex"
8620 break
8621 fi
8622 done
8623 IFS="$ac_save_ifs"
8624 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8625fi
8626fi
698dcdb6 8627LEX="$ac_cv_prog_LEX"
10f2d63a 8628if test -n "$LEX"; then
698dcdb6 8629 echo "$ac_t""$LEX" 1>&6
10f2d63a 8630else
698dcdb6 8631 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8632fi
8633
8634if test -z "$LEXLIB"
8635then
698dcdb6
VZ
8636 case "$LEX" in
8637 flex*) ac_lib=fl ;;
8638 *) ac_lib=l ;;
8639 esac
8640 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1a4f0015 8641echo "configure:8642: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8642ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8643if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8644 echo $ac_n "(cached) $ac_c" 1>&6
8645else
8646 ac_save_LIBS="$LIBS"
8647LIBS="-l$ac_lib $LIBS"
8648cat > conftest.$ac_ext <<EOF
1a4f0015 8649#line 8650 "configure"
10f2d63a
VZ
8650#include "confdefs.h"
8651/* Override any gcc2 internal prototype to avoid an error. */
8652/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8653 builtin and then its argument prototype would still apply. */
8654char yywrap();
10f2d63a 8655
698dcdb6
VZ
8656int main() {
8657yywrap()
8658; return 0; }
8659EOF
1a4f0015 8660if { (eval echo configure:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8661 rm -rf conftest*
8662 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8663else
698dcdb6
VZ
8664 echo "configure: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8666 rm -rf conftest*
8667 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8668fi
698dcdb6
VZ
8669rm -f conftest*
8670LIBS="$ac_save_LIBS"
8671
10f2d63a 8672fi
698dcdb6
VZ
8673if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8674 echo "$ac_t""yes" 1>&6
8675 LEXLIB="-l$ac_lib"
8676else
8677 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8678fi
8679
8680fi
8681
8682
698dcdb6 8683echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1a4f0015 8684echo "configure:8685: checking whether ln -s works" >&5
698dcdb6
VZ
8685if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8686 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8687else
698dcdb6
VZ
8688 rm -f conftestdata
8689if ln -s X conftestdata 2>/dev/null
8690then
8691 rm -f conftestdata
8692 ac_cv_prog_LN_S="ln -s"
10f2d63a 8693else
698dcdb6 8694 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8695fi
8696fi
698dcdb6
VZ
8697LN_S="$ac_cv_prog_LN_S"
8698if test "$ac_cv_prog_LN_S" = "ln -s"; then
8699 echo "$ac_t""yes" 1>&6
10f2d63a 8700else
698dcdb6 8701 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8702fi
8703
8704
8705
8706SEARCH_INCLUDE="\
8707 /usr/local/include \
8708 \
8709 /usr/Motif-1.2/include \
8710 /usr/Motif-2.1/include \
8711 \
8712 /usr/include/Motif1.2 \
8713 /opt/xpm/include/X11 \
8714 /opt/GBxpm/include/ \
8715 /opt/GBxpm/X11/include/ \
8716 \
8717 /usr/Motif1.2/include \
8718 /usr/dt/include \
afc31813
VZ
8719 /usr/openwin/include \
8720 \
10f2d63a
VZ
8721 /usr/include/Xm \
8722 \
8723 /usr/X11R6/include \
afc31813 8724 /usr/X11R6.4/include \
10f2d63a
VZ
8725 /usr/X11R5/include \
8726 /usr/X11R4/include \
8727 \
10f2d63a
VZ
8728 /usr/include/X11R6 \
8729 /usr/include/X11R5 \
8730 /usr/include/X11R4 \
8731 \
8732 /usr/local/X11R6/include \
8733 /usr/local/X11R5/include \
8734 /usr/local/X11R4/include \
8735 \
8736 /usr/local/include/X11R6 \
8737 /usr/local/include/X11R5 \
8738 /usr/local/include/X11R4 \
8739 \
8740 /usr/X11/include \
8741 /usr/include/X11 \
8742 /usr/local/X11/include \
8743 /usr/local/include/X11 \
8744 \
8745 /usr/X386/include \
8746 /usr/x386/include \
8747 /usr/XFree86/include/X11 \
8748 \
cf27ef00 8749 X:/XFree86/include \
ec14dd32
VZ
8750 X:/XFree86/include/X11 \
8751 \
10f2d63a
VZ
8752 /usr/include/gtk \
8753 /usr/local/include/gtk \
8754 /usr/include/glib \
8755 /usr/local/include/glib \
8756 \
8757 /usr/include/qt \
8758 /usr/local/include/qt \
8759 \
8760 /usr/include/windows \
8761 /usr/include/wine \
8762 /usr/local/include/wine \
8763 \
8764 /usr/unsupported/include \
8765 /usr/athena/include \
8766 /usr/local/x11r5/include \
8767 /usr/lpp/Xamples/include \
8768 \
10f2d63a 8769 /usr/openwin/share/include \
928b5c08
VZ
8770 \
8771 /usr/include"
10f2d63a
VZ
8772
8773SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8774
698dcdb6
VZ
8775
8776cat > confcache <<\EOF
10f2d63a
VZ
8777# This file is a shell script that caches the results of configure
8778# tests run on this system so they can be shared between configure
698dcdb6
VZ
8779# scripts and configure runs. It is not useful on other systems.
8780# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8781#
698dcdb6
VZ
8782# By default, configure uses ./config.cache as the cache file,
8783# creating it if it does not exist already. You can give configure
8784# the --cache-file=FILE option to use a different cache file; that is
8785# what configure does when it calls configure scripts in
8786# subdirectories, so they share the cache.
8787# Giving --cache-file=/dev/null disables caching, for debugging configure.
8788# config.status only pays attention to the cache file if you give it the
8789# --recheck option to rerun configure.
10f2d63a 8790#
698dcdb6 8791EOF
10f2d63a
VZ
8792# The following way of writing the cache mishandles newlines in values,
8793# but we know of no workaround that is simple, portable, and efficient.
8794# So, don't put newlines in cache variables' values.
8795# Ultrix sh set writes to stderr and can't be redirected directly,
8796# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8797(set) 2>&1 |
8798 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8799 *ac_space=\ *)
8800 # `set' does not quote correctly, so add quotes (double-quote substitution
8801 # turns \\\\ into \\, and sed turns \\ into \).
8802 sed -n \
8803 -e "s/'/'\\\\''/g" \
8804 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8805 ;;
8806 *)
8807 # `set' quotes correctly as required by POSIX, so do not add quotes.
8808 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8809 ;;
8810 esac >> confcache
8811if cmp -s $cache_file confcache; then
8812 :
8813else
10f2d63a 8814 if test -w $cache_file; then
698dcdb6
VZ
8815 echo "updating cache $cache_file"
8816 cat confcache > $cache_file
10f2d63a
VZ
8817 else
8818 echo "not updating unwritable cache $cache_file"
8819 fi
8820fi
8821rm -f confcache
8822
698dcdb6
VZ
8823
8824
18dbb1f6
VZ
8825REGEX_INCLUDE=
8826if test "$wxUSE_REGEX" != "no"; then
8827 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8828echo $ac_n "checking for regex.h""... $ac_c" 1>&6
1a4f0015 8829echo "configure:8830: checking for regex.h" >&5
18dbb1f6
VZ
8830if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8831 echo $ac_n "(cached) $ac_c" 1>&6
8832else
8833 cat > conftest.$ac_ext <<EOF
1a4f0015 8834#line 8835 "configure"
18dbb1f6
VZ
8835#include "confdefs.h"
8836#include <regex.h>
8837EOF
8838ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 8839{ (eval echo configure:8840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
8840ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8841if test -z "$ac_err"; then
8842 rm -rf conftest*
8843 eval "ac_cv_header_$ac_safe=yes"
8844else
8845 echo "$ac_err" >&5
8846 echo "configure: failed program was:" >&5
8847 cat conftest.$ac_ext >&5
8848 rm -rf conftest*
8849 eval "ac_cv_header_$ac_safe=no"
8850fi
8851rm -f conftest*
8852fi
8853if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8854 echo "$ac_t""yes" 1>&6
8855 for ac_func in regcomp
8856do
8857echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 8858echo "configure:8859: checking for $ac_func" >&5
18dbb1f6
VZ
8859if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8860 echo $ac_n "(cached) $ac_c" 1>&6
8861else
8862 cat > conftest.$ac_ext <<EOF
1a4f0015 8863#line 8864 "configure"
18dbb1f6
VZ
8864#include "confdefs.h"
8865/* System header to define __stub macros and hopefully few prototypes,
8866 which can conflict with char $ac_func(); below. */
8867#include <assert.h>
8868/* Override any gcc2 internal prototype to avoid an error. */
8869/* We use char because int might match the return type of a gcc2
8870 builtin and then its argument prototype would still apply. */
8871char $ac_func();
8872
8873int main() {
8874
8875/* The GNU C library defines this for functions which it implements
8876 to always fail with ENOSYS. Some functions are actually named
8877 something starting with __ and the normal name is an alias. */
8878#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8879choke me
8880#else
8881$ac_func();
8882#endif
8883
8884; return 0; }
8885EOF
1a4f0015 8886if { (eval echo configure:8887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
8887 rm -rf conftest*
8888 eval "ac_cv_func_$ac_func=yes"
8889else
8890 echo "configure: failed program was:" >&5
8891 cat conftest.$ac_ext >&5
8892 rm -rf conftest*
8893 eval "ac_cv_func_$ac_func=no"
8894fi
8895rm -f conftest*
8896fi
8897
8898if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8899 echo "$ac_t""yes" 1>&6
8900 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8901 cat >> confdefs.h <<EOF
8902#define $ac_tr_func 1
8903EOF
8904
8905else
8906 echo "$ac_t""no" 1>&6
8907fi
8908done
8909
8910else
8911 echo "$ac_t""no" 1>&6
8912fi
8913
8914
8915 if test "x$ac_cv_func_regcomp" != "xyes"; then
8916 if test "$wxUSE_REGEX" = "sys"; then
8917 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
8918 fi
8919
8920 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
8921 fi
8922
8923 cat >> confdefs.h <<\EOF
8924#define wxUSE_REGEX 1
8925EOF
8926
8927fi
8928
8929
dad6c0ea
VZ
8930AFMINSTALL=
8931
3a922bb4
RL
8932TOOLKIT=
8933TOOLKIT_INCLUDE=
8934WIDGET_SET=
10f2d63a 8935
3a922bb4
RL
8936if test "$USE_WIN32" = 1 ; then
8937 for ac_hdr in w32api.h
8938do
8939ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8940echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1a4f0015 8941echo "configure:8942: checking for $ac_hdr" >&5
3a922bb4
RL
8942if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8943 echo $ac_n "(cached) $ac_c" 1>&6
8944else
8945 cat > conftest.$ac_ext <<EOF
1a4f0015 8946#line 8947 "configure"
3a922bb4
RL
8947#include "confdefs.h"
8948#include <$ac_hdr>
8949EOF
8950ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 8951{ (eval echo configure:8952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
8952ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8953if test -z "$ac_err"; then
8954 rm -rf conftest*
8955 eval "ac_cv_header_$ac_safe=yes"
8956else
8957 echo "$ac_err" >&5
8958 echo "configure: failed program was:" >&5
8959 cat conftest.$ac_ext >&5
8960 rm -rf conftest*
8961 eval "ac_cv_header_$ac_safe=no"
8962fi
8963rm -f conftest*
8964fi
8965if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8966 echo "$ac_t""yes" 1>&6
8967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8968 cat >> confdefs.h <<EOF
8969#define $ac_tr_hdr 1
8970EOF
8971
8972else
8973 echo "$ac_t""no" 1>&6
8974fi
8975done
10f2d63a 8976
3a922bb4 8977 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
29fd3c0c 8978echo $ac_n "checking for windows.h""... $ac_c" 1>&6
1a4f0015 8979echo "configure:8980: checking for windows.h" >&5
d4158b5d
VS
8980if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8981 echo $ac_n "(cached) $ac_c" 1>&6
8982else
8983 cat > conftest.$ac_ext <<EOF
1a4f0015 8984#line 8985 "configure"
d4158b5d 8985#include "confdefs.h"
29fd3c0c 8986#include <windows.h>
d4158b5d
VS
8987EOF
8988ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 8989{ (eval echo configure:8990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
8990ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8991if test -z "$ac_err"; then
8992 rm -rf conftest*
8993 eval "ac_cv_header_$ac_safe=yes"
8994else
8995 echo "$ac_err" >&5
8996 echo "configure: failed program was:" >&5
8997 cat conftest.$ac_ext >&5
8998 rm -rf conftest*
8999 eval "ac_cv_header_$ac_safe=no"
9000fi
9001rm -f conftest*
9002fi
9003if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9004 echo "$ac_t""yes" 1>&6
29fd3c0c 9005 :
d4158b5d
VS
9006else
9007 echo "$ac_t""no" 1>&6
d4158b5d 9008
3a922bb4
RL
9009 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9010
29fd3c0c 9011fi
10f2d63a 9012
3f0f0161 9013
3a922bb4 9014 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
1a4f0015 9015echo "configure:9016: checking if w32api has good enough MSIE support" >&5
3a922bb4
RL
9016if eval "test \"`echo '$''{'wx_cv_w32api_win_ie'+set}'`\" = set"; then
9017 echo $ac_n "(cached) $ac_c" 1>&6
9018else
9019
9020 cat > conftest.$ac_ext <<EOF
1a4f0015 9021#line 9022 "configure"
3a922bb4
RL
9022#include "confdefs.h"
9023#include <w32api.h>
9024int main() {
3f0f0161 9025
3a922bb4
RL
9026 #define wxCHECK_W32API_VERSION( major, minor ) \
9027 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9028 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9029 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
f6bcfd97 9030
3a922bb4
RL
9031 #if !wxCHECK_W32API_VERSION(1,1)
9032 #error You need w32api 1.1 or newer
9033 #endif
9034
9035; return 0; }
9036EOF
1a4f0015 9037if { (eval echo configure:9038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a922bb4
RL
9038 rm -rf conftest*
9039
9040 wx_cv_w32api_win_ie=yes
9041 CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400"
9042
9043else
9044 echo "configure: failed program was:" >&5
9045 cat conftest.$ac_ext >&5
9046 rm -rf conftest*
9047
9048 wx_cv_w32api_win_ie=no
9049
9050fi
9051rm -f conftest*
9052
9053fi
10f2d63a 9054
3a922bb4 9055echo "$ac_t""$wx_cv_w32api_win_ie" 1>&6
32832908 9056
3a922bb4
RL
9057 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9058
7b7a7637
RL
9059 if test "$wxUSE_CYGWIN" = 1; then
9060 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9061 fi
9062
3a922bb4
RL
9063 if test "$wxUSE_ODBC" = "yes" ; then
9064 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9065 fi
9066
9067 if test "$wxUSE_MINGW" = 1; then
9068 LDFLAGS="$LDFLAGS -mwindows"
9069 fi
9070
9071 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9072 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9073fi
9074
9075if test "$wxUSE_GUI" = "yes"; then
9076 USE_GUI=1
32832908 9077
3a922bb4
RL
9078 GUI_TK_LIBRARY=
9079
9080 WXGTK12=
9081 WXGTK127=
9082 WXGTK20=
32832908 9083
3a922bb4
RL
9084 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
9085 TOOLKIT=MSW
9086 GUIDIST=MSW_DIST
1e6feb95 9087 fi
10f2d63a 9088
1e6feb95 9089 if test "$wxUSE_GTK" = 1; then
8168de4c 9090 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
1a4f0015 9091echo "configure:9092: checking for GTK+ version" >&5
8168de4c
VZ
9092
9093 gtk_version_cached=1
9094 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9095 echo $ac_n "(cached) $ac_c" 1>&6
9096else
9097
9098 gtk_version_cached=0
9099 echo "$ac_t""""" 1>&6
9100
9101 wx_cv_lib_gtk=
9102 if test "x$wxUSE_GTK2" = "xyes"; then
9103 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
9104if test "${with_gtk_prefix+set}" = set; then
9105 withval="$with_gtk_prefix"
9106 gtk_config_prefix="$withval"
9107else
9108 gtk_config_prefix=""
698dcdb6 9109fi
6f72b082
OK
9110
9111# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9112if test "${with_gtk_exec_prefix+set}" = set; then
9113 withval="$with_gtk_exec_prefix"
9114 gtk_config_exec_prefix="$withval"
9115else
9116 gtk_config_exec_prefix=""
698dcdb6
VZ
9117fi
9118
6f72b082
OK
9119# Check whether --enable-gtktest or --disable-gtktest was given.
9120if test "${enable_gtktest+set}" = set; then
9121 enableval="$enable_gtktest"
698dcdb6 9122 :
6f72b082
OK
9123else
9124 enable_gtktest=yes
698dcdb6
VZ
9125fi
9126
6f72b082 9127
8168de4c 9128 for module in .
6f72b082
OK
9129 do
9130 case "$module" in
8168de4c 9131 gthread)
6f72b082
OK
9132 gtk_config_args="$gtk_config_args gthread"
9133 ;;
9134 esac
9135 done
9136
9137 if test x$gtk_config_exec_prefix != x ; then
9138 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9139 if test x${GTK_CONFIG_2_0+set} != xset ; then
9140 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9141 fi
9142 fi
9143 if test x$gtk_config_prefix != x ; then
9144 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9145 if test x${GTK_CONFIG_2_0+set} != xset ; then
9146 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9147 fi
9148 fi
9149
9150 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9151set dummy gtk-config-2.0; ac_word=$2
698dcdb6 9152echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1a4f0015 9153echo "configure:9154: checking for $ac_word" >&5
698dcdb6
VZ
9154if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9155 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9156else
698dcdb6
VZ
9157 case "$GTK_CONFIG_2_0" in
9158 /*)
6f72b082
OK
9159 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9160 ;;
698dcdb6
VZ
9161 ?:/*)
9162 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9163 ;;
6f72b082 9164 *)
698dcdb6
VZ
9165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9166 ac_dummy="$PATH"
9167 for ac_dir in $ac_dummy; do
9168 test -z "$ac_dir" && ac_dir=.
9169 if test -f $ac_dir/$ac_word; then
9170 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9171 break
9172 fi
9173 done
9174 IFS="$ac_save_ifs"
6f72b082
OK
9175 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9176 ;;
9177esac
9178fi
698dcdb6 9179GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 9180if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 9181 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 9182else
698dcdb6 9183 echo "$ac_t""no" 1>&6
6f72b082
OK
9184fi
9185
9186 min_gtk_version=1.3.1
698dcdb6 9187 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1a4f0015 9188echo "configure:9189: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
9189 no_gtk=""
9190 if test "$GTK_CONFIG_2_0" = "no" ; then
9191 no_gtk=yes
9192 else
9193 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9194 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9195 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9196 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9197 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9198 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9199 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9200 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9201 if test "x$enable_gtktest" = "xyes" ; then
9202 ac_save_CFLAGS="$CFLAGS"
9203 ac_save_LIBS="$LIBS"
9204 CFLAGS="$CFLAGS $GTK_CFLAGS"
9205 LIBS="$GTK_LIBS $LIBS"
9206 rm -f conf.gtktest
9207 if test "$cross_compiling" = yes; then
9208 echo $ac_n "cross compiling; assumed OK... $ac_c"
9209else
698dcdb6 9210 cat > conftest.$ac_ext <<EOF
1a4f0015 9211#line 9212 "configure"
6f72b082
OK
9212#include "confdefs.h"
9213
9214#include <gtk/gtk.h>
9215#include <stdio.h>
9216#include <stdlib.h>
9217
8168de4c 9218int
6f72b082
OK
9219main ()
9220{
9221 int major, minor, micro;
9222 char *tmp_version;
9223
9224 system ("touch conf.gtktest");
9225
9226 /* HP/UX 9 (%@#!) writes to sscanf strings */
9227 tmp_version = g_strdup("$min_gtk_version");
9228 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9229 printf("%s, bad version string\n", "$min_gtk_version");
9230 exit(1);
9231 }
9232
9233 if ((gtk_major_version != $gtk_config_major_version) ||
9234 (gtk_minor_version != $gtk_config_minor_version) ||
9235 (gtk_micro_version != $gtk_config_micro_version))
9236 {
8168de4c 9237 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
9238 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9239 gtk_major_version, gtk_minor_version, gtk_micro_version);
9240 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9241 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9242 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9243 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9244 printf("*** required on your system.\n");
9245 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9246 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9247 printf("*** before re-running configure\n");
8168de4c 9248 }
6f72b082
OK
9249#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9250 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 9251 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
9252 (gtk_micro_version != GTK_MICRO_VERSION))
9253 {
9254 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 9255 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 9256 printf("*** library (version %d.%d.%d)\n",
8168de4c 9257 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
9258 }
9259#endif /* defined (GTK_MAJOR_VERSION) ... */
9260 else
9261 {
9262 if ((gtk_major_version > major) ||
9263 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9264 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9265 {
9266 return 0;
9267 }
9268 else
9269 {
9270 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9271 gtk_major_version, gtk_minor_version, gtk_micro_version);
9272 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 9273 major, minor, micro);
6f72b082
OK
9274 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9275 printf("***\n");
9276 printf("*** If you have already installed a sufficiently new version, this error\n");
9277 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9278 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9279 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9280 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9281 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9282 printf("*** so that the correct libraries are found at run-time))\n");
9283 }
9284 }
9285 return 1;
9286}
9287
698dcdb6 9288EOF
1a4f0015 9289if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9290then
6f72b082
OK
9291 :
9292else
698dcdb6
VZ
9293 echo "configure: failed program was:" >&5
9294 cat conftest.$ac_ext >&5
9295 rm -fr conftest*
9296 no_gtk=yes
6f72b082 9297fi
698dcdb6 9298rm -fr conftest*
6f72b082 9299fi
698dcdb6 9300
6f72b082
OK
9301 CFLAGS="$ac_save_CFLAGS"
9302 LIBS="$ac_save_LIBS"
9303 fi
9304 fi
9305 if test "x$no_gtk" = x ; then
698dcdb6 9306 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 9307 wx_cv_lib_gtk=2.0
6f72b082 9308 else
698dcdb6 9309 echo "$ac_t""no" 1>&6
6f72b082
OK
9310 if test "$GTK_CONFIG_2_0" = "no" ; then
9311 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9312 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9313 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9314 echo "*** full path to gtk-config-2.0."
9315 else
9316 if test -f conf.gtktest ; then
9317 :
9318 else
9319 echo "*** Could not run GTK test program, checking why..."
9320 CFLAGS="$CFLAGS $GTK_CFLAGS"
9321 LIBS="$LIBS $GTK_LIBS"
698dcdb6 9322 cat > conftest.$ac_ext <<EOF
1a4f0015 9323#line 9324 "configure"
6f72b082
OK
9324#include "confdefs.h"
9325
9326#include <gtk/gtk.h>
9327#include <stdio.h>
9328
698dcdb6
VZ
9329int main() {
9330 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9331; return 0; }
9332EOF
1a4f0015 9333if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9334 rm -rf conftest*
6f72b082
OK
9335 echo "*** The test program compiled, but did not run. This usually means"
9336 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9337 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9338 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9339 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9340 echo "*** is required on your system"
8168de4c 9341 echo "***"
6f72b082
OK
9342 echo "*** If you have an old version installed, it is best to remove it, although"
9343 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9344 echo "***"
9345 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9346 echo "*** came with the system with the command"
9347 echo "***"
698dcdb6 9348 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 9349else
698dcdb6
VZ
9350 echo "configure: failed program was:" >&5
9351 cat conftest.$ac_ext >&5
9352 rm -rf conftest*
9353 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
9354 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9355 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 9356 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 9357fi
698dcdb6 9358rm -f conftest*
6f72b082
OK
9359 CFLAGS="$ac_save_CFLAGS"
9360 LIBS="$ac_save_LIBS"
9361 fi
9362 fi
9363 GTK_CFLAGS=""
9364 GTK_LIBS=""
8168de4c
VZ
9365 gthread
9366 fi
9367
9368
9369 rm -f conf.gtktest
9370
9371 fi
9372
9373 if test -z "$wx_cv_lib_gtk"; then
9374
10f2d63a
VZ
9375 if test x$gtk_config_exec_prefix != x ; then
9376 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9377 if test x${GTK_CONFIG+set} != xset ; then
9378 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9379 fi
9380 fi
9381 if test x$gtk_config_prefix != x ; then
9382 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9383 if test x${GTK_CONFIG+set} != xset ; then
9384 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9385 fi
9386 fi
9387
9388 # Extract the first word of "gtk-config", so it can be a program name with args.
9389set dummy gtk-config; ac_word=$2
698dcdb6 9390echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1a4f0015 9391echo "configure:9392: checking for $ac_word" >&5
698dcdb6
VZ
9392if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9393 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 9394else
698dcdb6
VZ
9395 case "$GTK_CONFIG" in
9396 /*)
f6bcfd97
BP
9397 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9398 ;;
698dcdb6
VZ
9399 ?:/*)
9400 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9401 ;;
f6bcfd97 9402 *)
698dcdb6
VZ
9403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9404 ac_dummy="$PATH"
9405 for ac_dir in $ac_dummy; do
9406 test -z "$ac_dir" && ac_dir=.
9407 if test -f $ac_dir/$ac_word; then
9408 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9409 break
9410 fi
9411 done
9412 IFS="$ac_save_ifs"
f6bcfd97
BP
9413 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9414 ;;
9415esac
9416fi
698dcdb6 9417GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 9418if test -n "$GTK_CONFIG"; then
698dcdb6 9419 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 9420else
698dcdb6 9421 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9422fi
9423
9424 min_gtk_version=1.2.7
698dcdb6 9425 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1a4f0015 9426echo "configure:9427: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
9427 no_gtk=""
9428 if test "$GTK_CONFIG" != "no" ; then
9429 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9430 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9431 ac_save_CFLAGS="$CFLAGS"
9432 ac_save_LIBS="$LIBS"
9433 CFLAGS="$CFLAGS $GTK_CFLAGS"
9434 LIBS="$LIBS $GTK_LIBS"
9435 if test "$cross_compiling" = yes; then
9436 echo $ac_n "cross compiling; assumed OK... $ac_c"
9437else
698dcdb6 9438 cat > conftest.$ac_ext <<EOF
1a4f0015 9439#line 9440 "configure"
f6bcfd97
BP
9440#include "confdefs.h"
9441
9442#include <gtk/gtk.h>
9443#include <gtk/gtkfeatures.h>
9444#include <stdio.h>
9445#include <stdlib.h>
9446
9447int
9448main ()
9449{
9450 int major, minor, micro;
9451
9452 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9453 printf("%s, bad version string\n", "$min_gtk_version");
9454 exit(1);
9455 }
9456
9457 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9458 (GTK_MINOR_VERSION != gtk_minor_version) ||
9459 (GTK_MICRO_VERSION != gtk_micro_version)) {
9460 printf("Headers vs. library version mismatch!\n");
9461 exit(1);
9462 }
9463
9464 if (gtk_minor_version == 1) return FALSE;
9465
9466 return !((gtk_major_version > major) ||
9467 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9468 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9469}
9470
698dcdb6 9471EOF
1a4f0015 9472if { (eval echo configure:9473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9473then
f6bcfd97
BP
9474 :
9475else
698dcdb6
VZ
9476 echo "configure: failed program was:" >&5
9477 cat conftest.$ac_ext >&5
9478 rm -fr conftest*
9479 no_gtk=yes
f6bcfd97 9480fi
698dcdb6 9481rm -fr conftest*
f6bcfd97 9482fi
698dcdb6 9483
f6bcfd97
BP
9484 CFLAGS="$ac_save_CFLAGS"
9485 LIBS="$ac_save_LIBS"
9486 else
9487 no_gtk=yes
9488 fi
9489 if test "x$no_gtk" = x ; then
698dcdb6 9490 echo "$ac_t""yes" 1>&6
8168de4c 9491 wx_cv_lib_gtk=1.2.7
f6bcfd97 9492 else
698dcdb6 9493 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9494 GTK_CFLAGS=""
9495 GTK_LIBS=""
9496 :
9497 fi
698dcdb6
VZ
9498
9499
f6bcfd97 9500
8168de4c
VZ
9501 fi
9502
9503 if test -z "$wx_cv_lib_gtk"; then
9504
f6bcfd97
BP
9505 if test x$gtk_config_exec_prefix != x ; then
9506 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9507 if test x${GTK_CONFIG+set} != xset ; then
9508 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9509 fi
9510 fi
9511 if test x$gtk_config_prefix != x ; then
9512 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9513 if test x${GTK_CONFIG+set} != xset ; then
9514 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9515 fi
9516 fi
9517
9518 # Extract the first word of "gtk-config", so it can be a program name with args.
9519set dummy gtk-config; ac_word=$2
698dcdb6 9520echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1a4f0015 9521echo "configure:9522: checking for $ac_word" >&5
698dcdb6
VZ
9522if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9523 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9524else
698dcdb6
VZ
9525 case "$GTK_CONFIG" in
9526 /*)
10f2d63a
VZ
9527 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9528 ;;
698dcdb6
VZ
9529 ?:/*)
9530 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9531 ;;
10f2d63a 9532 *)
698dcdb6
VZ
9533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9534 ac_dummy="$PATH"
9535 for ac_dir in $ac_dummy; do
9536 test -z "$ac_dir" && ac_dir=.
9537 if test -f $ac_dir/$ac_word; then
9538 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9539 break
9540 fi
9541 done
9542 IFS="$ac_save_ifs"
10f2d63a
VZ
9543 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9544 ;;
9545esac
9546fi
698dcdb6 9547GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 9548if test -n "$GTK_CONFIG"; then
698dcdb6 9549 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 9550else
698dcdb6 9551 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9552fi
9553
04165bec 9554 min_gtk_version=1.2.3
698dcdb6 9555 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1a4f0015 9556echo "configure:9557: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
9557 no_gtk=""
9558 if test "$GTK_CONFIG" != "no" ; then
9559 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 9560 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
9561 ac_save_CFLAGS="$CFLAGS"
9562 ac_save_LIBS="$LIBS"
9563 CFLAGS="$CFLAGS $GTK_CFLAGS"
9564 LIBS="$LIBS $GTK_LIBS"
9565 if test "$cross_compiling" = yes; then
9566 echo $ac_n "cross compiling; assumed OK... $ac_c"
9567else
698dcdb6 9568 cat > conftest.$ac_ext <<EOF
1a4f0015 9569#line 9570 "configure"
10f2d63a
VZ
9570#include "confdefs.h"
9571
9572#include <gtk/gtk.h>
f49f2b0c 9573#include <gtk/gtkfeatures.h>
10f2d63a 9574#include <stdio.h>
32832908 9575#include <stdlib.h>
10f2d63a
VZ
9576
9577int
9578main ()
9579{
9580 int major, minor, micro;
9581
9582 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9583 printf("%s, bad version string\n", "$min_gtk_version");
9584 exit(1);
9585 }
9586
f49f2b0c
RR
9587 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9588 (GTK_MINOR_VERSION != gtk_minor_version) ||
9589 (GTK_MICRO_VERSION != gtk_micro_version)) {
9590 printf("Headers vs. library version mismatch!\n");
9591 exit(1);
9592 }
9593
10f2d63a
VZ
9594 if (gtk_minor_version == 1) return FALSE;
9595
9596 return !((gtk_major_version > major) ||
9597 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9598 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9599}
9600
698dcdb6 9601EOF
1a4f0015 9602if { (eval echo configure:9603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9603then
10f2d63a
VZ
9604 :
9605else
698dcdb6
VZ
9606 echo "configure: failed program was:" >&5
9607 cat conftest.$ac_ext >&5
9608 rm -fr conftest*
9609 no_gtk=yes
10f2d63a 9610fi
698dcdb6 9611rm -fr conftest*
10f2d63a 9612fi
698dcdb6 9613
10f2d63a
VZ
9614 CFLAGS="$ac_save_CFLAGS"
9615 LIBS="$ac_save_LIBS"
9616 else
9617 no_gtk=yes
9618 fi
9619 if test "x$no_gtk" = x ; then
698dcdb6 9620 echo "$ac_t""yes" 1>&6
8168de4c 9621 wx_cv_lib_gtk=1.2.3
10f2d63a 9622 else
698dcdb6 9623 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9624 GTK_CFLAGS=""
9625 GTK_LIBS=""
7e99ad86 9626 :
10f2d63a 9627 fi
698dcdb6
VZ
9628
9629
10f2d63a 9630
8168de4c
VZ
9631 fi
9632
9633 if test -z "$wx_cv_lib_gtk"; then
9634 wx_cv_lib_gtk=none
138be253
VZ
9635 else
9636 wx_cv_cflags_gtk=$GTK_CFLAGS
9637 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
9638 fi
9639
1e6feb95 9640
8168de4c 9641fi
703e0a69 9642
698dcdb6 9643
8168de4c
VZ
9644 if test "$gtk_version_cached" = 1; then
9645 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 9646 fi
698dcdb6 9647
8168de4c
VZ
9648 case "$wx_cv_lib_gtk" in
9649 2.0) WXGTK20=1
9650 ;;
9651 1.2.7) WXGTK127=1
d1a8d972 9652 WXGTK12=1
8168de4c
VZ
9653 ;;
9654 1.2.3) WXGTK12=1
9655 ;;
9656 *) { echo "configure: error:
9657Please check that gtk-config is in path, the directory
9658where GTK+ libraries are installed (returned by
9659'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9660equivalent variable and GTK+ is version 1.2.3 or above.
9661 " 1>&2; exit 1; }
9662 ;;
9663 esac
2224580a 9664
138be253 9665 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 9666 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 9667
1e6feb95
VZ
9668 AFMINSTALL=afminstall
9669 TOOLKIT=GTK
9670 GUIDIST=GTK_DIST
7ec2881a 9671
1e6feb95 9672 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
1a4f0015 9673echo "configure:9674: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
9674ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9675if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9676 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 9677else
698dcdb6 9678 ac_save_LIBS="$LIBS"
7ec2881a 9679LIBS="-lgdk $LIBS"
698dcdb6 9680cat > conftest.$ac_ext <<EOF
1a4f0015 9681#line 9682 "configure"
7ec2881a
RR
9682#include "confdefs.h"
9683/* Override any gcc2 internal prototype to avoid an error. */
9684/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9685 builtin and then its argument prototype would still apply. */
9686char gdk_im_open();
9687
9688int main() {
9689gdk_im_open()
9690; return 0; }
9691EOF
1a4f0015 9692if { (eval echo configure:9693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9693 rm -rf conftest*
9694 eval "ac_cv_lib_$ac_lib_var=yes"
9695else
9696 echo "configure: failed program was:" >&5
9697 cat conftest.$ac_ext >&5
9698 rm -rf conftest*
9699 eval "ac_cv_lib_$ac_lib_var=no"
9700fi
9701rm -f conftest*
9702LIBS="$ac_save_LIBS"
9703
9704fi
9705if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9706 echo "$ac_t""yes" 1>&6
9707 cat >> confdefs.h <<\EOF
7ec2881a
RR
9708#define HAVE_XIM 1
9709EOF
9710
698dcdb6
VZ
9711else
9712 echo "$ac_t""no" 1>&6
7ec2881a
RR
9713fi
9714
1e6feb95 9715 fi
10f2d63a 9716
1e6feb95
VZ
9717 if test "$wxUSE_MGL" = 1; then
9718
9719 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
1a4f0015 9720echo "configure:9721: checking for SciTech MGL library" >&5
1e6feb95
VZ
9721 if test "x$MGL_ROOT" = x ; then
9722 echo "$ac_t""not found" 1>&6
9723 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9724 else
9725 echo "$ac_t""$MGL_ROOT" 1>&6
9726 fi
9727
3a922bb4
RL
9728 mgl_os=linux/gcc/glibc
9729 mgl_lib_type=""
1e6feb95
VZ
9730
9731 if test "$wxUSE_DEBUG_FLAG" = yes ; then
3a922bb4
RL
9732 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then
9733 mgl_lib_type=debug
1e6feb95
VZ
9734 fi
9735 fi
3a922bb4
RL
9736 if test "x$mgl_lib_type" = x ; then
9737 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then
9738 mgl_lib_type=release
1e6feb95
VZ
9739 else
9740 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9741 fi
9742 fi
9743
9744 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 9745 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
9746
9747 AFMINSTALL=afminstall
9748 TOOLKIT=MGL
9749 GUIDIST=MGL_DIST
9750 fi
9751
9752 if test "$wxUSE_WINE" = 1; then
3a922bb4
RL
9753 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9754echo $ac_n "checking for windows.h""... $ac_c" 1>&6
1a4f0015 9755echo "configure:9756: checking for windows.h" >&5
3a922bb4
RL
9756if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9757 echo $ac_n "(cached) $ac_c" 1>&6
9758else
9759 cat > conftest.$ac_ext <<EOF
1a4f0015 9760#line 9761 "configure"
3a922bb4
RL
9761#include "confdefs.h"
9762#include <windows.h>
9763EOF
9764ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 9765{ (eval echo configure:9766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9766ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9767if test -z "$ac_err"; then
9768 rm -rf conftest*
9769 eval "ac_cv_header_$ac_safe=yes"
9770else
9771 echo "$ac_err" >&5
9772 echo "configure: failed program was:" >&5
9773 cat conftest.$ac_ext >&5
9774 rm -rf conftest*
9775 eval "ac_cv_header_$ac_safe=no"
9776fi
9777rm -f conftest*
9778fi
9779if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9780 echo "$ac_t""yes" 1>&6
9781 :
9782else
9783 echo "$ac_t""no" 1>&6
10f2d63a 9784
1e6feb95 9785 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
3a922bb4
RL
9786
9787fi
9788
10f2d63a 9789
3a922bb4 9790 xpm_link=""
1e6feb95 9791 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
1a4f0015 9792echo "configure:9793: checking for Xpm library" >&5
1e6feb95 9793
10f2d63a
VZ
9794ac_find_libraries=
9795for ac_dir in $SEARCH_LIB;
9796 do
f11bdd03 9797 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9798 if test -f "$ac_dir/libXpm.$ac_extension"; then
9799 ac_find_libraries=$ac_dir
9800 break 2
9801 fi
9802 done
9803 done
9804
1e6feb95
VZ
9805 if test "$ac_find_libraries" != "" ; then
9806 GUI_TK_LIBRARY="-L$ac_find_libraries"
3a922bb4 9807 xpm_link="-lXpm"
1e6feb95 9808 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9809#define wxHAVE_LIB_XPM 1
9810EOF
9811
1e6feb95
VZ
9812 echo "$ac_t""found at $ac_find_libraries" 1>&6
9813 else
9814 echo "$ac_t""no" 1>&6
9815 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9816 fi
10f2d63a 9817
3a922bb4 9818 mesa_link=""
1e6feb95 9819 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
1a4f0015 9820echo "configure:9821: checking for Mesa library" >&5
1e6feb95 9821
10f2d63a
VZ
9822ac_find_libraries=
9823for ac_dir in $SEARCH_LIB;
9824 do
f11bdd03 9825 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9826 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9827 ac_find_libraries=$ac_dir
9828 break 2
9829 fi
9830 done
9831 done
9832
1e6feb95
VZ
9833 if test "$ac_find_libraries" != "" ; then
9834 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
3a922bb4 9835 mesa_link="-lMesaGL"
1e6feb95
VZ
9836 echo "$ac_t""found at $ac_find_libraries" 1>&6
9837 else
9838 { echo "configure: error: no" 1>&2; exit 1; }
9839 fi
10f2d63a 9840
3a922bb4 9841 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
1e6feb95
VZ
9842 TOOLKIT=MSW
9843 GUIDIST=MSW_DIST
3a922bb4 9844 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
1e6feb95 9845 fi
698dcdb6 9846
1e6feb95
VZ
9847
9848 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9849# paths, otherwise set no_x=yes.
9850# Uses ac_ vars as temps to allow command line to override cache and checks.
9851# --without-x overrides everything else, but does not touch the cache.
9852echo $ac_n "checking for X""... $ac_c" 1>&6
1a4f0015 9853echo "configure:9854: checking for X" >&5
ab9b9eab
VZ
9854
9855# Check whether --with-x or --without-x was given.
9856if test "${with_x+set}" = set; then
9857 withval="$with_x"
698dcdb6
VZ
9858 :
9859fi
ba337fe7 9860
ab9b9eab
VZ
9861# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9862if test "x$with_x" = xno; then
9863 # The user explicitly disabled X.
9864 have_x=disabled
9865else
9866 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9867 # Both variables are already set.
9868 have_x=yes
9869 else
698dcdb6
VZ
9870if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9871 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9872else
9873 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9874ac_x_includes=NO ac_x_libraries=NO
9875rm -fr conftestdir
9876if mkdir conftestdir; then
9877 cd conftestdir
ab9b9eab 9878 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9879 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9880acfindx:
9881 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9882EOF
9883 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9884 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9885 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9886 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9887 for ac_extension in a so sl; do
ab9b9eab 9888 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9889 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9890 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9891 fi
9892 done
ab9b9eab
VZ
9893 # Screen out bogus values from the imake configuration. They are
9894 # bogus both because they are the default anyway, and because
9895 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9896 case "$ac_im_incroot" in
ab9b9eab 9897 /usr/include) ;;
698dcdb6 9898 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9899 esac
698dcdb6 9900 case "$ac_im_usrlibdir" in
ab9b9eab 9901 /usr/lib | /lib) ;;
698dcdb6 9902 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9903 esac
ba337fe7 9904 fi
ab9b9eab 9905 cd ..
698dcdb6 9906 rm -fr conftestdir
ab9b9eab 9907fi
10f2d63a 9908
698dcdb6
VZ
9909if test "$ac_x_includes" = NO; then
9910 # Guess where to find include files, by looking for this one X11 .h file.
9911 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9912
ab9b9eab 9913 # First, try using that file with no special directory specified.
698dcdb6 9914cat > conftest.$ac_ext <<EOF
1a4f0015 9915#line 9916 "configure"
ab9b9eab 9916#include "confdefs.h"
698dcdb6
VZ
9917#include <$x_direct_test_include>
9918EOF
9919ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 9920{ (eval echo configure:9921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9921ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9922if test -z "$ac_err"; then
9923 rm -rf conftest*
ab9b9eab
VZ
9924 # We can compile using X headers with no special include directory.
9925ac_x_includes=
9926else
698dcdb6
VZ
9927 echo "$ac_err" >&5
9928 echo "configure: failed program was:" >&5
ab9b9eab 9929 cat conftest.$ac_ext >&5
698dcdb6
VZ
9930 rm -rf conftest*
9931 # Look for the header file in a standard set of common directories.
9932# Check X11 before X11Rn because it is often a symlink to the current release.
9933 for ac_dir in \
9934 /usr/X11/include \
9935 /usr/X11R6/include \
9936 /usr/X11R5/include \
9937 /usr/X11R4/include \
9938 \
9939 /usr/include/X11 \
9940 /usr/include/X11R6 \
9941 /usr/include/X11R5 \
9942 /usr/include/X11R4 \
9943 \
9944 /usr/local/X11/include \
9945 /usr/local/X11R6/include \
9946 /usr/local/X11R5/include \
9947 /usr/local/X11R4/include \
9948 \
9949 /usr/local/include/X11 \
9950 /usr/local/include/X11R6 \
9951 /usr/local/include/X11R5 \
9952 /usr/local/include/X11R4 \
9953 \
9954 /usr/X386/include \
9955 /usr/x386/include \
9956 /usr/XFree86/include/X11 \
9957 \
9958 /usr/include \
9959 /usr/local/include \
9960 /usr/unsupported/include \
9961 /usr/athena/include \
9962 /usr/local/x11r5/include \
9963 /usr/lpp/Xamples/include \
9964 \
9965 /usr/openwin/include \
9966 /usr/openwin/share/include \
9967 ; \
9968 do
9969 if test -r "$ac_dir/$x_direct_test_include"; then
9970 ac_x_includes=$ac_dir
9971 break
9972 fi
9973 done
ab9b9eab 9974fi
698dcdb6
VZ
9975rm -f conftest*
9976fi # $ac_x_includes = NO
10f2d63a 9977
698dcdb6 9978if test "$ac_x_libraries" = NO; then
ab9b9eab 9979 # Check for the libraries.
698dcdb6
VZ
9980
9981 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9982 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9983
ab9b9eab
VZ
9984 # See if we find them without any special options.
9985 # Don't add to $LIBS permanently.
698dcdb6
VZ
9986 ac_save_LIBS="$LIBS"
9987 LIBS="-l$x_direct_test_library $LIBS"
9988cat > conftest.$ac_ext <<EOF
1a4f0015 9989#line 9990 "configure"
ab9b9eab 9990#include "confdefs.h"
698dcdb6
VZ
9991
9992int main() {
9993${x_direct_test_function}()
9994; return 0; }
9995EOF
1a4f0015 9996if { (eval echo configure:9997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9997 rm -rf conftest*
9998 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
9999# We can link X programs with no special library path.
10000ac_x_libraries=
10001else
698dcdb6
VZ
10002 echo "configure: failed program was:" >&5
10003 cat conftest.$ac_ext >&5
10004 rm -rf conftest*
10005 LIBS="$ac_save_LIBS"
10006# First see if replacing the include by lib works.
10007# Check X11 before X11Rn because it is often a symlink to the current release.
10008for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10009 /usr/X11/lib \
10010 /usr/X11R6/lib \
10011 /usr/X11R5/lib \
10012 /usr/X11R4/lib \
10013 \
10014 /usr/lib/X11 \
10015 /usr/lib/X11R6 \
10016 /usr/lib/X11R5 \
10017 /usr/lib/X11R4 \
10018 \
10019 /usr/local/X11/lib \
10020 /usr/local/X11R6/lib \
10021 /usr/local/X11R5/lib \
10022 /usr/local/X11R4/lib \
10023 \
10024 /usr/local/lib/X11 \
10025 /usr/local/lib/X11R6 \
10026 /usr/local/lib/X11R5 \
10027 /usr/local/lib/X11R4 \
10028 \
10029 /usr/X386/lib \
10030 /usr/x386/lib \
10031 /usr/XFree86/lib/X11 \
10032 \
10033 /usr/lib \
10034 /usr/local/lib \
10035 /usr/unsupported/lib \
10036 /usr/athena/lib \
10037 /usr/local/x11r5/lib \
10038 /usr/lpp/Xamples/lib \
10039 /lib/usr/lib/X11 \
10040 \
10041 /usr/openwin/lib \
10042 /usr/openwin/share/lib \
10043 ; \
ab9b9eab
VZ
10044do
10045 for ac_extension in a so sl; do
698dcdb6 10046 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
10047 ac_x_libraries=$ac_dir
10048 break 2
10f2d63a 10049 fi
10f2d63a 10050 done
ab9b9eab
VZ
10051done
10052fi
698dcdb6
VZ
10053rm -f conftest*
10054fi # $ac_x_libraries = NO
10f2d63a 10055
698dcdb6 10056if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
10057 # Didn't find X anywhere. Cache the known absence of X.
10058 ac_cv_have_x="have_x=no"
10059else
10060 # Record where we found X for the cache.
10061 ac_cv_have_x="have_x=yes \
10062 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10063fi
10064fi
10f2d63a 10065 fi
ab9b9eab
VZ
10066 eval "$ac_cv_have_x"
10067fi # $with_x != no
10f2d63a 10068
ab9b9eab 10069if test "$have_x" != yes; then
698dcdb6 10070 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
10071 no_x=yes
10072else
10073 # If each of the values was on the command line, it overrides each guess.
10074 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10075 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10076 # Update the cache value to reflect the command line values.
10077 ac_cv_have_x="have_x=yes \
10078 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 10079 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 10080fi
10f2d63a 10081
ab9b9eab
VZ
10082if test "$no_x" = yes; then
10083 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 10084 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10085#define X_DISPLAY_MISSING 1
10086EOF
10f2d63a 10087
ab9b9eab
VZ
10088 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10089else
10090 if test -n "$x_includes"; then
10091 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
10092 fi
10093
ab9b9eab
VZ
10094 # It would also be nice to do this for all -L options, not just this one.
10095 if test -n "$x_libraries"; then
10096 X_LIBS="$X_LIBS -L$x_libraries"
10097 # For Solaris; some versions of Sun CC require a space after -R and
10098 # others require no space. Words are not sufficient . . . .
698dcdb6 10099 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 10100 "SunOS 5"*)
698dcdb6 10101 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1a4f0015 10102echo "configure:10103: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
10103 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10104 cat > conftest.$ac_ext <<EOF
1a4f0015 10105#line 10106 "configure"
ab9b9eab 10106#include "confdefs.h"
10f2d63a 10107
698dcdb6 10108int main() {
788deba1 10109
698dcdb6
VZ
10110; return 0; }
10111EOF
1a4f0015 10112if { (eval echo configure:10113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10113 rm -rf conftest*
ab9b9eab
VZ
10114 ac_R_nospace=yes
10115else
698dcdb6
VZ
10116 echo "configure: failed program was:" >&5
10117 cat conftest.$ac_ext >&5
10118 rm -rf conftest*
10119 ac_R_nospace=no
ab9b9eab 10120fi
698dcdb6 10121rm -f conftest*
ab9b9eab 10122 if test $ac_R_nospace = yes; then
698dcdb6 10123 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10124 X_LIBS="$X_LIBS -R$x_libraries"
10125 else
10126 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 10127 cat > conftest.$ac_ext <<EOF
1a4f0015 10128#line 10129 "configure"
ab9b9eab 10129#include "confdefs.h"
788deba1 10130
698dcdb6 10131int main() {
ab9b9eab 10132
698dcdb6
VZ
10133; return 0; }
10134EOF
1a4f0015 10135if { (eval echo configure:10136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10136 rm -rf conftest*
ab9b9eab
VZ
10137 ac_R_space=yes
10138else
698dcdb6
VZ
10139 echo "configure: failed program was:" >&5
10140 cat conftest.$ac_ext >&5
10141 rm -rf conftest*
10142 ac_R_space=no
ab9b9eab 10143fi
698dcdb6 10144rm -f conftest*
ab9b9eab 10145 if test $ac_R_space = yes; then
698dcdb6 10146 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
10147 X_LIBS="$X_LIBS -R $x_libraries"
10148 else
698dcdb6 10149 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
10150 fi
10151 fi
698dcdb6 10152 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
10153 esac
10154 fi
10155
10156 # Check for system-dependent libraries X programs must link with.
10157 # Do this before checking for the system-independent R6 libraries
10158 # (-lICE), since we may need -lsocket or whatever for X linking.
10159
10160 if test "$ISC" = yes; then
10161 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10162 else
698dcdb6
VZ
10163 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10164 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 10165 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 10166 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1a4f0015 10167echo "configure:10168: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
10168ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10169if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10170 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10171else
698dcdb6 10172 ac_save_LIBS="$LIBS"
ab9b9eab 10173LIBS="-ldnet $LIBS"
698dcdb6 10174cat > conftest.$ac_ext <<EOF
1a4f0015 10175#line 10176 "configure"
ab9b9eab
VZ
10176#include "confdefs.h"
10177/* Override any gcc2 internal prototype to avoid an error. */
10178/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10179 builtin and then its argument prototype would still apply. */
10180char dnet_ntoa();
10181
10182int main() {
10183dnet_ntoa()
10184; return 0; }
10185EOF
1a4f0015 10186if { (eval echo configure:10187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10187 rm -rf conftest*
10188 eval "ac_cv_lib_$ac_lib_var=yes"
10189else
10190 echo "configure: failed program was:" >&5
10191 cat conftest.$ac_ext >&5
10192 rm -rf conftest*
10193 eval "ac_cv_lib_$ac_lib_var=no"
10194fi
10195rm -f conftest*
10196LIBS="$ac_save_LIBS"
10197
10198fi
10199if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10200 echo "$ac_t""yes" 1>&6
ab9b9eab 10201 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
10202else
10203 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10204fi
10205
10206 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 10207 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1a4f0015 10208echo "configure:10209: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
10209ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10210if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10211 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10212else
698dcdb6 10213 ac_save_LIBS="$LIBS"
ab9b9eab 10214LIBS="-ldnet_stub $LIBS"
698dcdb6 10215cat > conftest.$ac_ext <<EOF
1a4f0015 10216#line 10217 "configure"
ab9b9eab
VZ
10217#include "confdefs.h"
10218/* Override any gcc2 internal prototype to avoid an error. */
10219/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10220 builtin and then its argument prototype would still apply. */
10221char dnet_ntoa();
10222
10223int main() {
10224dnet_ntoa()
10225; return 0; }
10226EOF
1a4f0015 10227if { (eval echo configure:10228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10228 rm -rf conftest*
10229 eval "ac_cv_lib_$ac_lib_var=yes"
10230else
10231 echo "configure: failed program was:" >&5
10232 cat conftest.$ac_ext >&5
10233 rm -rf conftest*
10234 eval "ac_cv_lib_$ac_lib_var=no"
10235fi
10236rm -f conftest*
10237LIBS="$ac_save_LIBS"
10238
10239fi
10240if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10241 echo "$ac_t""yes" 1>&6
ab9b9eab 10242 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
10243else
10244 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10245fi
10246
10247 fi
10248
10249 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10250 # to get the SysV transport functions.
698dcdb6 10251 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
10252 # needs -lnsl.
10253 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
10254 # on Irix 5.2, according to dickey@clark.net.
10255 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1a4f0015 10256echo "configure:10257: checking for gethostbyname" >&5
698dcdb6
VZ
10257if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10258 echo $ac_n "(cached) $ac_c" 1>&6
10259else
10260 cat > conftest.$ac_ext <<EOF
1a4f0015 10261#line 10262 "configure"
ab9b9eab
VZ
10262#include "confdefs.h"
10263/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10264 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
10265#include <assert.h>
10266/* Override any gcc2 internal prototype to avoid an error. */
10267/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10268 builtin and then its argument prototype would still apply. */
10269char gethostbyname();
10270
10271int main() {
ab9b9eab
VZ
10272
10273/* The GNU C library defines this for functions which it implements
10274 to always fail with ENOSYS. Some functions are actually named
10275 something starting with __ and the normal name is an alias. */
10276#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10277choke me
10278#else
698dcdb6 10279gethostbyname();
ab9b9eab
VZ
10280#endif
10281
698dcdb6
VZ
10282; return 0; }
10283EOF
1a4f0015 10284if { (eval echo configure:10285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10285 rm -rf conftest*
10286 eval "ac_cv_func_gethostbyname=yes"
10287else
10288 echo "configure: failed program was:" >&5
10289 cat conftest.$ac_ext >&5
10290 rm -rf conftest*
10291 eval "ac_cv_func_gethostbyname=no"
10292fi
10293rm -f conftest*
10294fi
10295
10296if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10297 echo "$ac_t""yes" 1>&6
10298 :
10299else
10300 echo "$ac_t""no" 1>&6
10301fi
ab9b9eab
VZ
10302
10303 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 10304 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1a4f0015 10305echo "configure:10306: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
10306ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10307if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10308 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10309else
698dcdb6 10310 ac_save_LIBS="$LIBS"
ab9b9eab 10311LIBS="-lnsl $LIBS"
698dcdb6 10312cat > conftest.$ac_ext <<EOF
1a4f0015 10313#line 10314 "configure"
ab9b9eab
VZ
10314#include "confdefs.h"
10315/* Override any gcc2 internal prototype to avoid an error. */
10316/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10317 builtin and then its argument prototype would still apply. */
10318char gethostbyname();
6232543b 10319
698dcdb6
VZ
10320int main() {
10321gethostbyname()
10322; return 0; }
10323EOF
1a4f0015 10324if { (eval echo configure:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10325 rm -rf conftest*
10326 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 10327else
698dcdb6
VZ
10328 echo "configure: failed program was:" >&5
10329 cat conftest.$ac_ext >&5
10330 rm -rf conftest*
10331 eval "ac_cv_lib_$ac_lib_var=no"
10332fi
10333rm -f conftest*
10334LIBS="$ac_save_LIBS"
1e487827 10335
698dcdb6
VZ
10336fi
10337if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10338 echo "$ac_t""yes" 1>&6
10339 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10340else
10341 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10342fi
10343
10344 fi
10345
10346 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10347 # socket/setsockopt and other routines are undefined under SCO ODT
10348 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
10349 # on later versions), says simon@lia.di.epfl.ch: it contains
10350 # gethostby* variants that don't use the nameserver (or something).
10351 # -lsocket must be given before -lnsl if both are needed.
10352 # We assume that if connect needs -lnsl, so does gethostbyname.
10353 echo $ac_n "checking for connect""... $ac_c" 1>&6
1a4f0015 10354echo "configure:10355: checking for connect" >&5
698dcdb6
VZ
10355if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10356 echo $ac_n "(cached) $ac_c" 1>&6
10357else
10358 cat > conftest.$ac_ext <<EOF
1a4f0015 10359#line 10360 "configure"
ab9b9eab
VZ
10360#include "confdefs.h"
10361/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10362 which can conflict with char connect(); below. */
ab9b9eab
VZ
10363#include <assert.h>
10364/* Override any gcc2 internal prototype to avoid an error. */
10365/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10366 builtin and then its argument prototype would still apply. */
10367char connect();
10368
10369int main() {
ab9b9eab
VZ
10370
10371/* The GNU C library defines this for functions which it implements
10372 to always fail with ENOSYS. Some functions are actually named
10373 something starting with __ and the normal name is an alias. */
10374#if defined (__stub_connect) || defined (__stub___connect)
10375choke me
10376#else
698dcdb6 10377connect();
ab9b9eab
VZ
10378#endif
10379
698dcdb6
VZ
10380; return 0; }
10381EOF
1a4f0015 10382if { (eval echo configure:10383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10383 rm -rf conftest*
10384 eval "ac_cv_func_connect=yes"
10385else
10386 echo "configure: failed program was:" >&5
10387 cat conftest.$ac_ext >&5
10388 rm -rf conftest*
10389 eval "ac_cv_func_connect=no"
10390fi
10391rm -f conftest*
10392fi
10393
10394if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10395 echo "$ac_t""yes" 1>&6
10396 :
10397else
10398 echo "$ac_t""no" 1>&6
10399fi
ab9b9eab
VZ
10400
10401 if test $ac_cv_func_connect = no; then
698dcdb6 10402 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1a4f0015 10403echo "configure:10404: checking for connect in -lsocket" >&5
698dcdb6
VZ
10404ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10405if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10406 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10407else
698dcdb6 10408 ac_save_LIBS="$LIBS"
ab9b9eab 10409LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 10410cat > conftest.$ac_ext <<EOF
1a4f0015 10411#line 10412 "configure"
ab9b9eab
VZ
10412#include "confdefs.h"
10413/* Override any gcc2 internal prototype to avoid an error. */
10414/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10415 builtin and then its argument prototype would still apply. */
10416char connect();
10417
10418int main() {
10419connect()
10420; return 0; }
10421EOF
1a4f0015 10422if { (eval echo configure:10423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10423 rm -rf conftest*
10424 eval "ac_cv_lib_$ac_lib_var=yes"
10425else
10426 echo "configure: failed program was:" >&5
10427 cat conftest.$ac_ext >&5
10428 rm -rf conftest*
10429 eval "ac_cv_lib_$ac_lib_var=no"
10430fi
10431rm -f conftest*
10432LIBS="$ac_save_LIBS"
10433
10434fi
10435if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10436 echo "$ac_t""yes" 1>&6
ab9b9eab 10437 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
10438else
10439 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10440fi
10441
10442 fi
10443
698dcdb6
VZ
10444 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10445 echo $ac_n "checking for remove""... $ac_c" 1>&6
1a4f0015 10446echo "configure:10447: checking for remove" >&5
698dcdb6
VZ
10447if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10448 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10449else
698dcdb6 10450 cat > conftest.$ac_ext <<EOF
1a4f0015 10451#line 10452 "configure"
ab9b9eab
VZ
10452#include "confdefs.h"
10453/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10454 which can conflict with char remove(); below. */
ab9b9eab
VZ
10455#include <assert.h>
10456/* Override any gcc2 internal prototype to avoid an error. */
10457/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10458 builtin and then its argument prototype would still apply. */
10459char remove();
10460
10461int main() {
ab9b9eab
VZ
10462
10463/* The GNU C library defines this for functions which it implements
10464 to always fail with ENOSYS. Some functions are actually named
10465 something starting with __ and the normal name is an alias. */
10466#if defined (__stub_remove) || defined (__stub___remove)
10467choke me
10468#else
698dcdb6 10469remove();
ab9b9eab
VZ
10470#endif
10471
698dcdb6
VZ
10472; return 0; }
10473EOF
1a4f0015 10474if { (eval echo configure:10475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10475 rm -rf conftest*
10476 eval "ac_cv_func_remove=yes"
10477else
10478 echo "configure: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10480 rm -rf conftest*
10481 eval "ac_cv_func_remove=no"
10482fi
10483rm -f conftest*
10484fi
10485
10486if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10487 echo "$ac_t""yes" 1>&6
10488 :
10489else
10490 echo "$ac_t""no" 1>&6
10491fi
ab9b9eab
VZ
10492
10493 if test $ac_cv_func_remove = no; then
698dcdb6 10494 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1a4f0015 10495echo "configure:10496: checking for remove in -lposix" >&5
698dcdb6
VZ
10496ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10497if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10498 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10499else
698dcdb6 10500 ac_save_LIBS="$LIBS"
ab9b9eab 10501LIBS="-lposix $LIBS"
698dcdb6 10502cat > conftest.$ac_ext <<EOF
1a4f0015 10503#line 10504 "configure"
ab9b9eab
VZ
10504#include "confdefs.h"
10505/* Override any gcc2 internal prototype to avoid an error. */
10506/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10507 builtin and then its argument prototype would still apply. */
10508char remove();
10509
10510int main() {
10511remove()
10512; return 0; }
10513EOF
1a4f0015 10514if { (eval echo configure:10515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10515 rm -rf conftest*
10516 eval "ac_cv_lib_$ac_lib_var=yes"
10517else
10518 echo "configure: failed program was:" >&5
10519 cat conftest.$ac_ext >&5
10520 rm -rf conftest*
10521 eval "ac_cv_lib_$ac_lib_var=no"
10522fi
10523rm -f conftest*
10524LIBS="$ac_save_LIBS"
10525
10526fi
10527if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10528 echo "$ac_t""yes" 1>&6
ab9b9eab 10529 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
10530else
10531 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10532fi
10533
10534 fi
10535
10536 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 10537 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1a4f0015 10538echo "configure:10539: checking for shmat" >&5
698dcdb6
VZ
10539if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10540 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10541else
698dcdb6 10542 cat > conftest.$ac_ext <<EOF
1a4f0015 10543#line 10544 "configure"
ab9b9eab
VZ
10544#include "confdefs.h"
10545/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10546 which can conflict with char shmat(); below. */
ab9b9eab
VZ
10547#include <assert.h>
10548/* Override any gcc2 internal prototype to avoid an error. */
10549/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10550 builtin and then its argument prototype would still apply. */
10551char shmat();
10552
10553int main() {
ab9b9eab
VZ
10554
10555/* The GNU C library defines this for functions which it implements
10556 to always fail with ENOSYS. Some functions are actually named
10557 something starting with __ and the normal name is an alias. */
10558#if defined (__stub_shmat) || defined (__stub___shmat)
10559choke me
10560#else
698dcdb6 10561shmat();
ab9b9eab
VZ
10562#endif
10563
698dcdb6
VZ
10564; return 0; }
10565EOF
1a4f0015 10566if { (eval echo configure:10567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10567 rm -rf conftest*
10568 eval "ac_cv_func_shmat=yes"
10569else
10570 echo "configure: failed program was:" >&5
10571 cat conftest.$ac_ext >&5
10572 rm -rf conftest*
10573 eval "ac_cv_func_shmat=no"
10574fi
10575rm -f conftest*
10576fi
10577
10578if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10579 echo "$ac_t""yes" 1>&6
10580 :
10581else
10582 echo "$ac_t""no" 1>&6
10583fi
ab9b9eab
VZ
10584
10585 if test $ac_cv_func_shmat = no; then
698dcdb6 10586 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1a4f0015 10587echo "configure:10588: checking for shmat in -lipc" >&5
698dcdb6
VZ
10588ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10589if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10590 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10591else
698dcdb6 10592 ac_save_LIBS="$LIBS"
ab9b9eab 10593LIBS="-lipc $LIBS"
698dcdb6 10594cat > conftest.$ac_ext <<EOF
1a4f0015 10595#line 10596 "configure"
ab9b9eab
VZ
10596#include "confdefs.h"
10597/* Override any gcc2 internal prototype to avoid an error. */
10598/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10599 builtin and then its argument prototype would still apply. */
10600char shmat();
10601
10602int main() {
10603shmat()
10604; return 0; }
10605EOF
1a4f0015 10606if { (eval echo configure:10607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10607 rm -rf conftest*
10608 eval "ac_cv_lib_$ac_lib_var=yes"
10609else
10610 echo "configure: failed program was:" >&5
10611 cat conftest.$ac_ext >&5
10612 rm -rf conftest*
10613 eval "ac_cv_lib_$ac_lib_var=no"
10614fi
10615rm -f conftest*
10616LIBS="$ac_save_LIBS"
10617
10618fi
10619if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10620 echo "$ac_t""yes" 1>&6
ab9b9eab 10621 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
10622else
10623 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10624fi
10625
10626 fi
10627 fi
10628
10629 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 10630 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
10631 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10632 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10633 # check for ICE first), but we must link in the order -lSM -lICE or
10634 # we get undefined symbols. So assume we have SM if we have ICE.
10635 # These have to be linked with before -lX11, unlike the other
10636 # libraries we check for below, so use a different variable.
698dcdb6
VZ
10637 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10638 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1a4f0015 10639echo "configure:10640: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
10640ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10641if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10642 echo $ac_n "(cached) $ac_c" 1>&6
10643else
10644 ac_save_LIBS="$LIBS"
ab9b9eab 10645LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 10646cat > conftest.$ac_ext <<EOF
1a4f0015 10647#line 10648 "configure"
ab9b9eab
VZ
10648#include "confdefs.h"
10649/* Override any gcc2 internal prototype to avoid an error. */
10650/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10651 builtin and then its argument prototype would still apply. */
10652char IceConnectionNumber();
10653
10654int main() {
10655IceConnectionNumber()
10656; return 0; }
10657EOF
1a4f0015 10658if { (eval echo configure:10659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10659 rm -rf conftest*
10660 eval "ac_cv_lib_$ac_lib_var=yes"
10661else
10662 echo "configure: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10664 rm -rf conftest*
10665 eval "ac_cv_lib_$ac_lib_var=no"
10666fi
10667rm -f conftest*
10668LIBS="$ac_save_LIBS"
10669
10670fi
10671if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10672 echo "$ac_t""yes" 1>&6
ab9b9eab 10673 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
10674else
10675 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10676fi
10677
698dcdb6 10678 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
10679
10680fi
10681
1e6feb95
VZ
10682 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10683 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 10684
1e6feb95
VZ
10685 if test "$wxUSE_MOTIF" = 1; then
10686 if test "$no_x" = "yes"; then
10687 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10688 fi
ab9b9eab 10689
1e6feb95
VZ
10690 GUI_TK_LIBRARY="$X_LIBS"
10691 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 10692 AFMINSTALL=afminstall
1e6feb95 10693 COMPILED_X_PROGRAM=0
cd6d6d5b 10694
1e6feb95 10695 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
1a4f0015 10696echo "configure:10697: checking for Motif/Lesstif headers" >&5
1e6feb95 10697
ab9b9eab
VZ
10698ac_find_includes=
10699for ac_dir in $SEARCH_INCLUDE;
10700 do
10701 if test -f "$ac_dir/Xm/Xm.h"; then
10702 ac_find_includes=$ac_dir
10703 break
10704 fi
10705 done
10706
1e6feb95
VZ
10707 if test "$ac_find_includes" != "" ; then
10708 echo "$ac_t""found $ac_find_includes" 1>&6
10709 else
10710 cat > conftest.$ac_ext <<EOF
1a4f0015 10711#line 10712 "configure"
cd6d6d5b
VZ
10712#include "confdefs.h"
10713
1e6feb95
VZ
10714 #include <Xm/Xm.h>
10715
698dcdb6 10716int main() {
cd6d6d5b 10717
1e6feb95 10718 int version;
1e6feb95
VZ
10719 version = xmUseVersion;
10720
698dcdb6
VZ
10721; return 0; }
10722EOF
1a4f0015 10723if { (eval echo configure:10724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10724 rm -rf conftest*
10725
1e6feb95
VZ
10726 echo "$ac_t""found in default search path" 1>&6
10727 COMPILED_X_PROGRAM=1
10728
cd6d6d5b 10729else
698dcdb6
VZ
10730 echo "configure: failed program was:" >&5
10731 cat conftest.$ac_ext >&5
10732 rm -rf conftest*
10733
1e6feb95
VZ
10734 echo "$ac_t""no" 1>&6
10735 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10736
698dcdb6 10737
cd6d6d5b 10738fi
698dcdb6 10739rm -f conftest*
1e6feb95 10740 fi
ab9b9eab 10741
1e6feb95
VZ
10742 if test "$COMPILED_X_PROGRAM" = 0; then
10743 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
1a4f0015 10744echo "configure:10745: checking for Motif/Lesstif library" >&5
1e6feb95 10745
ab9b9eab
VZ
10746ac_find_libraries=
10747for ac_dir in $SEARCH_LIB;
10748 do
f11bdd03 10749 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10750 if test -f "$ac_dir/libXm.$ac_extension"; then
10751 ac_find_libraries=$ac_dir
10752 break 2
10753 fi
10754 done
10755 done
10756
1e6feb95
VZ
10757 if test "$ac_find_libraries" != "" ; then
10758
ab9b9eab
VZ
10759 ac_path_to_include=$ac_find_includes
10760 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10761 result=$?
10762 if test $result = 0; then
10763 ac_path_to_include=""
10764 else
10765 ac_path_to_include="-I$ac_find_includes"
10766 fi
10767
1e6feb95 10768
ab9b9eab
VZ
10769 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10770 result=$?
10771 if test $result = 0; then
10772 ac_path_to_link=""
10773 else
10774 ac_path_to_link="-L$ac_find_libraries"
10775 fi
10776
698dcdb6 10777
1e6feb95
VZ
10778 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10779 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10780 echo "$ac_t""found at $ac_find_libraries" 1>&6
10781 else
10782 cat > conftest.$ac_ext <<EOF
1a4f0015 10783#line 10784 "configure"
cd6d6d5b 10784#include "confdefs.h"
ab9b9eab 10785
1e6feb95
VZ
10786 #include <Xm/Xm.h>
10787
698dcdb6 10788int main() {
ab9b9eab 10789
1e6feb95 10790 int version;
1e6feb95
VZ
10791 version = xmUseVersion;
10792
698dcdb6
VZ
10793; return 0; }
10794EOF
1a4f0015 10795if { (eval echo configure:10796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10796 rm -rf conftest*
10797
1e6feb95
VZ
10798 echo "$ac_t""found in default search path" 1>&6
10799 COMPILED_X_PROGRAM=1
10800
cd6d6d5b 10801else
698dcdb6
VZ
10802 echo "configure: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10804 rm -rf conftest*
10805
1e6feb95
VZ
10806 echo "$ac_t""no" 1>&6
10807 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10808
698dcdb6 10809
cd6d6d5b 10810fi
698dcdb6 10811rm -f conftest*
1e6feb95 10812 fi
cd6d6d5b 10813 fi
ab9b9eab 10814
3a922bb4 10815 xpm_link=""
1e6feb95 10816 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
1a4f0015 10817echo "configure:10818: checking for Xpm library" >&5
1e6feb95 10818
ab9b9eab
VZ
10819ac_find_libraries=
10820for ac_dir in $SEARCH_LIB;
10821 do
f11bdd03 10822 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10823 if test -f "$ac_dir/libXpm.$ac_extension"; then
10824 ac_find_libraries=$ac_dir
10825 break 2
10826 fi
10827 done
10828 done
10829
1e6feb95
VZ
10830 if test "$ac_find_libraries" != "" ; then
10831
ab9b9eab
VZ
10832 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10833 result=$?
10834 if test $result = 0; then
10835 ac_path_to_link=""
10836 else
10837 ac_path_to_link="-L$ac_find_libraries"
10838 fi
10839
1e6feb95 10840 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
3a922bb4 10841 xpm_link="-lXpm "
1e6feb95 10842 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10843#define wxHAVE_LIB_XPM 1
10844EOF
10845
1e6feb95
VZ
10846 echo "$ac_t""found at $ac_find_libraries" 1>&6
10847 else
10848 cat > conftest.$ac_ext <<EOF
1a4f0015 10849#line 10850 "configure"
cd6d6d5b
VZ
10850#include "confdefs.h"
10851
1e6feb95
VZ
10852 #include <X11/xpm.h>
10853
698dcdb6 10854int main() {
cd6d6d5b 10855
1e6feb95 10856 int version;
1e6feb95
VZ
10857 version = XpmLibraryVersion();
10858
698dcdb6
VZ
10859; return 0; }
10860EOF
1a4f0015 10861if { (eval echo configure:10862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10862 rm -rf conftest*
10863
3a922bb4
RL
10864 xpm_link="-lXpm "
10865 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10866#define wxHAVE_LIB_XPM 1
10867EOF
10868
1e6feb95
VZ
10869 echo "$ac_t""found in default search path" 1>&6
10870 COMPILED_X_PROGRAM=0
10871
cd6d6d5b 10872else
698dcdb6
VZ
10873 echo "configure: failed program was:" >&5
10874 cat conftest.$ac_ext >&5
10875 rm -rf conftest*
10876
1e6feb95
VZ
10877 echo "$ac_t""no" 1>&6
10878 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10879
698dcdb6 10880
cd6d6d5b 10881fi
698dcdb6 10882rm -f conftest*
1e6feb95
VZ
10883 fi
10884
3a922bb4 10885 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11"
334f0d2c 10886 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
1e6feb95
VZ
10887 TOOLKIT=MOTIF
10888 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10889 fi
10890
3a922bb4 10891 if test "$wxUSE_MAC" = 1; then
d08b457b
GD
10892 CPPFLAGS="${CPPFLAGS} -cpp-precomp"
10893 CFLAGS="${CFLAGS} -fpascal-strings"
10894 CXXFLAGS="${CXXFLAGS} -fpascal-strings"
10895 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON"
10896
1e6feb95 10897 TOOLKIT=MAC
3a922bb4 10898 GUIDIST=MACX_DIST
1e6feb95 10899 fi
10f2d63a 10900
1e6feb95
VZ
10901 if test "$wxUSE_PM" = 1; then
10902 TOOLKIT=PM
10903 GUIDIST=GTK_DIST
10904 fi
b4085ce6 10905
3a922bb4 10906 if test "$TOOLKIT" = "PM" ; then
1e6feb95 10907 TOOLKIT_DIR="os2"
3a922bb4
RL
10908 else
10909 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 10910 fi
e07802fc 10911
3a922bb4 10912 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 10913
3a922bb4 10914 if test "$wxUSE_UNIVERSAL" = "yes"; then
1a4f0015
RL
10915 wxUSE_MDI_ARCHITECTURE=no
10916 echo "configure: warning: MDI is not supported for wxUNIVERSAL yet... disabling" 1>&2
10917
3a922bb4
RL
10918 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10919 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10920 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
10921 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
10922 WIDGET_SET=univ
f6bcfd97 10923 else
3a922bb4 10924 ALL_OBJECTS="\$(GUIOBJS)"
1e6feb95
VZ
10925 fi
10926
10927 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10928
10929 if test "$TOOLKIT" != "MSW"; then
10930 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10931 fi
10932
10933 if test "$wxUSE_HTML" = "yes"; then
10934 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10935 fi
3fcdd07b 10936
3a922bb4
RL
10937 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
10938 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
831b3152 10939 fi
d9d8273d 10940 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10941 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10942 fi
10943 if test "$wxUSE_LIBTIFF" = "yes" ; then
10944 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10945 fi
10946 if test "$wxUSE_LIBPNG" = "yes" ; then
10947 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10948 fi
3fed1840
RR
10949 if test "$wxUSE_FREETYPE" = "yes" ; then
10950 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10951 fi
2224580a 10952
2224580a
VZ
10953 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10954 RPM_SPEC="wx\$(TOOLKIT).spec"
10955
10956 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10957 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 10958else
dad6c0ea
VZ
10959 USE_GUI=0
10960
3a922bb4 10961 TOOLKIT_DIR="base"
f6bcfd97 10962
3a922bb4
RL
10963 if test "$USE_WIN32" = 1 ; then
10964 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
10965 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 10966
3a922bb4 10967 TOOLKIT="MSW"
f6bcfd97 10968 else
3a922bb4
RL
10969 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
10970 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
10971 fi
10972
831b3152 10973 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
10974 RPM_FILES="src/rpmfiles.lst"
10975 RPM_SPEC="wxBase.spec"
10976
10977 GUIDIST="BASE_DIST"
10978 DISTDIR="wxBase"
10f2d63a
VZ
10979fi
10980
3a922bb4
RL
10981if test "x$REGEX_INCLUDE" != "x" ; then
10982 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10983fi
10984if test "$wxUSE_ZLIB" = "yes" ; then
10985 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10986fi
10f2d63a 10987
3a922bb4
RL
10988if test "$wxUSE_OPENGL" = "yes"; then
10989 if test "$wxUSE_MAC" = 1; then
10990 cat >> confdefs.h <<\EOF
10991#define wxUSE_OPENGL 1
10992EOF
10f2d63a 10993
3a922bb4
RL
10994 cat >> confdefs.h <<\EOF
10995#define wxUSE_GLCANVAS 1
10996EOF
10f2d63a 10997
3a922bb4
RL
10998 OPENGL_LIBS="-framework OpenGL -framework AGL"
10999 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11000 else
11001 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11002echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
1a4f0015 11003echo "configure:11004: checking for GL/gl.h" >&5
3a922bb4
RL
11004if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11005 echo $ac_n "(cached) $ac_c" 1>&6
11006else
11007 cat > conftest.$ac_ext <<EOF
1a4f0015 11008#line 11009 "configure"
3a922bb4
RL
11009#include "confdefs.h"
11010#include <GL/gl.h>
11011EOF
11012ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 11013{ (eval echo configure:11014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
11014ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11015if test -z "$ac_err"; then
11016 rm -rf conftest*
11017 eval "ac_cv_header_$ac_safe=yes"
11018else
11019 echo "$ac_err" >&5
11020 echo "configure: failed program was:" >&5
11021 cat conftest.$ac_ext >&5
11022 rm -rf conftest*
11023 eval "ac_cv_header_$ac_safe=no"
11024fi
11025rm -f conftest*
11026fi
11027if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11028 echo "$ac_t""yes" 1>&6
11029
11030 cat >> confdefs.h <<\EOF
11031#define wxUSE_OPENGL 1
11032EOF
10f2d63a 11033
3a922bb4
RL
11034 cat >> confdefs.h <<\EOF
11035#define wxUSE_GLCANVAS 1
11036EOF
10f2d63a 11037
3a922bb4
RL
11038 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11039 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
1a4f0015 11040echo "configure:11041: checking for glFlush in -lGL" >&5
3a922bb4
RL
11041ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
11042if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11043 echo $ac_n "(cached) $ac_c" 1>&6
11044else
11045 ac_save_LIBS="$LIBS"
11046LIBS="-lGL $LIBS"
11047cat > conftest.$ac_ext <<EOF
1a4f0015 11048#line 11049 "configure"
3a922bb4
RL
11049#include "confdefs.h"
11050/* Override any gcc2 internal prototype to avoid an error. */
11051/* We use char because int might match the return type of a gcc2
11052 builtin and then its argument prototype would still apply. */
11053char glFlush();
55e80573 11054
3a922bb4
RL
11055int main() {
11056glFlush()
11057; return 0; }
11058EOF
1a4f0015 11059if { (eval echo configure:11060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4
RL
11060 rm -rf conftest*
11061 eval "ac_cv_lib_$ac_lib_var=yes"
11062else
11063 echo "configure: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11065 rm -rf conftest*
11066 eval "ac_cv_lib_$ac_lib_var=no"
11067fi
11068rm -f conftest*
11069LIBS="$ac_save_LIBS"
55e80573 11070
3a922bb4
RL
11071fi
11072if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11073 echo "$ac_t""yes" 1>&6
11074
11075 OPENGL_LIBS="-lGL -lGLU"
11076
11077else
11078 echo "$ac_t""no" 1>&6
11079
11080 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
1a4f0015 11081echo "configure:11082: checking for glFlush in -lMesaGL" >&5
3a922bb4
RL
11082ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
11083if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11084 echo $ac_n "(cached) $ac_c" 1>&6
11085else
11086 ac_save_LIBS="$LIBS"
11087LIBS="-lMesaGL $LIBS"
11088cat > conftest.$ac_ext <<EOF
1a4f0015 11089#line 11090 "configure"
3a922bb4
RL
11090#include "confdefs.h"
11091/* Override any gcc2 internal prototype to avoid an error. */
11092/* We use char because int might match the return type of a gcc2
11093 builtin and then its argument prototype would still apply. */
11094char glFlush();
11095
11096int main() {
11097glFlush()
11098; return 0; }
11099EOF
1a4f0015 11100if { (eval echo configure:11101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4
RL
11101 rm -rf conftest*
11102 eval "ac_cv_lib_$ac_lib_var=yes"
11103else
11104 echo "configure: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11106 rm -rf conftest*
11107 eval "ac_cv_lib_$ac_lib_var=no"
11108fi
11109rm -f conftest*
11110LIBS="$ac_save_LIBS"
11111
11112fi
11113if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11114 echo "$ac_t""yes" 1>&6
11115
11116 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11117
11118else
11119 echo "$ac_t""no" 1>&6
11120fi
55e80573 11121
3a922bb4
RL
11122
11123fi
11124
11125
11126else
11127 echo "$ac_t""no" 1>&6
11128wxUSE_OPENGL=0
11129fi
11130
11131 fi
11132fi
11133
11134if test -z "$TOOLKIT_VPATH" ; then
11135 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11136fi
11137
11138if test -n "$TOOLKIT" ; then
11139 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11140fi
11141
11142if test "$wxUSE_CYGWIN" = 1 ; then
11143 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11144fi
11145
11146lib_debug_suffix=
11147if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11148 lib_debug_suffix=d
11149 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}d"
11150fi
11151
11152TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}-${WX_RELEASE}"
11153TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}_gl-${WX_RELEASE}"
11154
11155if test "$cross_compiling" = "yes"; then
11156 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11157 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11158fi
11159
11160WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11161WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11162
11163WXCONFIG_LIBS="-l${WX_LIBRARY}"
11164
11165if test "$wxUSE_OPENGL" = "yes"; then
11166 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS"
11167fi
11168
11169WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11170WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11171
11172WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11173WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11174
11175WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11176WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11177WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11178WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11179
d08b457b 11180WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
3a922bb4
RL
11181
11182
11183
11184if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
11185
11186 if test "$wxUSE_OPENGL" = "yes"; then
11187 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 11188 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
11189 else
11190 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 11191 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
11192 fi
11193
dd4f7467 11194 if test "$GCC" = "yes"; then
55e80573 11195 PIC_FLAG="-fPIC"
dd4f7467 11196 fi
55e80573
VZ
11197
11198 SHARED_LD="${CXX} -shared -o"
698dcdb6 11199
10f2d63a
VZ
11200 case "${host}" in
11201 *-hp-hpux* )
55e80573 11202 if test "$GCC" != "yes"; then
f6bcfd97
BP
11203 LDFLAGS="-L/usr/lib"
11204
10f2d63a
VZ
11205 SHARED_LD="${CXX} -b -o"
11206 PIC_FLAG="+Z"
11207 fi
55e80573 11208
7b7a7637
RL
11209 if test "$wxUSE_OPENGL" = "yes"; then
11210 WX_ALL_INSTALLED="preinstall_gl"
11211 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11212 else
11213 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11214 fi
10f2d63a 11215 ;;
b12915c1 11216
55e80573
VZ
11217 *-*-linux* )
11218 if test "$GCC" != "yes"; then
11219 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
1a4f0015 11220echo "configure:11221: checking for Intel compiler" >&5
55e80573
VZ
11221if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11222 echo $ac_n "(cached) $ac_c" 1>&6
11223else
11224
11225 cat > conftest.$ac_ext <<EOF
1a4f0015 11226#line 11227 "configure"
55e80573
VZ
11227#include "confdefs.h"
11228
11229int main() {
11230
11231 #ifndef __INTEL_COMPILER
dd4f7467 11232 #error Not icc
55e80573
VZ
11233 #endif
11234
11235; return 0; }
11236EOF
1a4f0015 11237if { (eval echo configure:11238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
11238 rm -rf conftest*
11239 wx_cv_prog_icc=yes
11240else
11241 echo "configure: failed program was:" >&5
11242 cat conftest.$ac_ext >&5
11243 rm -rf conftest*
11244 wx_cv_prog_icc=no
11245
11246fi
11247rm -f conftest*
11248
11249fi
11250
11251echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
11252 if test "$wx_cv_prog_icc" = "yes"; then
11253 PIC_FLAG="-KPIC"
11254 fi
11255 fi
11256
3a922bb4
RL
11257 if test "$wxUSE_SONAME" = "yes" ; then
11258 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11259 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 11260 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 11261 fi
10f2d63a 11262 ;;
55e80573 11263
10f2d63a
VZ
11264 *-*-solaris2* )
11265 if test "$GCC" = yes ; then
f6bcfd97 11266 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
11267 else
11268 SHARED_LD="${CXX} -G -o"
11269 PIC_FLAG="-KPIC"
7b7a7637
RL
11270 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
11271 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
10f2d63a 11272 fi
10f2d63a 11273 ;;
55e80573 11274
b4085ce6 11275 *-*-darwin* )
d08b457b
GD
11276 CFLAGS="${CFLAGS} -fno-common"
11277 CXXFLAGS="${CXXFLAGS} -fno-common"
ea5999b9
GD
11278 SHARED_LD="${CXX} -dynamiclib -o"
11279 PIC_FLAG="-dynamic -fPIC"
10f2d63a 11280 ;;
55e80573 11281
10f2d63a
VZ
11282 *-*-aix* )
11283 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 11284 ;;
55e80573 11285
7b7a7637 11286 *-*-cygwin* | *-*-mingw32* )
3a922bb4
RL
11287 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_NAME_STATIC} -o"
11288 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1"
18dbb1f6 11289 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
11290
11291 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 11292 WX_ALL_INSTALLED="preinstall_gl"
3a922bb4 11293 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 11294 else
3a922bb4 11295 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 11296 fi
7b7a7637 11297 PIC_FLAG=
10f2d63a 11298 ;;
55e80573 11299
10f2d63a 11300 *-pc-os2_emx )
7b7a7637 11301 wxUSE_SHARED=no
10f2d63a 11302 ;;
55e80573 11303
b12915c1 11304 *-*-beos* )
e2b8b066 11305 SHARED_LD="${LD} -shared -o"
b12915c1 11306 ;;
55e80573
VZ
11307
11308 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
11309 *-*-sunos4* | \
11310 *-*-irix5* | *-*-irix6* | \
11311 *-*-osf* | \
11312 *-*-dgux5* | \
11313 *-*-sysv5* )
11314 ;;
11315
10f2d63a 11316 *)
7b7a7637 11317 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
11318 esac
11319
11320 if test "x$WX_TARGET_LIBRARY" = "x"; then
11321 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 11322 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 11323 fi
55e80573 11324
3711412e 11325 WX_TARGET_LIBRARY_TYPE="so"
3a922bb4 11326fi
f6bcfd97 11327
3a922bb4 11328if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 11329
3a922bb4 11330 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
11331 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11332 fi
11333
3a922bb4
RL
11334 if test "$wxUSE_OPENGL" = "yes"; then
11335 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
11336 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
11337 else
11338 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11339 fi
698dcdb6 11340
3a922bb4
RL
11341 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11342 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11343
11344 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a 11345fi
10f2d63a 11346
d08b457b
GD
11347if test "$wxUSE_MAC" = 1; then
11348 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
11349 # Extract the first word of "Rez", so it can be a program name with args.
11350set dummy Rez; ac_word=$2
11351echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1a4f0015 11352echo "configure:11353: checking for $ac_word" >&5
d08b457b
GD
11353if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
11354 echo $ac_n "(cached) $ac_c" 1>&6
11355else
11356 if test -n "$RESCOMP"; then
11357 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
11358else
11359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11360 ac_dummy="$PATH"
11361 for ac_dir in $ac_dummy; do
11362 test -z "$ac_dir" && ac_dir=.
11363 if test -f $ac_dir/$ac_word; then
11364 ac_cv_prog_RESCOMP="Rez"
11365 break
11366 fi
11367 done
11368 IFS="$ac_save_ifs"
11369 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
11370fi
11371fi
11372RESCOMP="$ac_cv_prog_RESCOMP"
11373if test -n "$RESCOMP"; then
11374 echo "$ac_t""$RESCOMP" 1>&6
11375else
11376 echo "$ac_t""no" 1>&6
11377fi
11378
11379 # Extract the first word of "Derez", so it can be a program name with args.
11380set dummy Derez; ac_word=$2
11381echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1a4f0015 11382echo "configure:11383: checking for $ac_word" >&5
d08b457b
GD
11383if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
11384 echo $ac_n "(cached) $ac_c" 1>&6
11385else
11386 if test -n "$DEREZ"; then
11387 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
11388else
11389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11390 ac_dummy="$PATH"
11391 for ac_dir in $ac_dummy; do
11392 test -z "$ac_dir" && ac_dir=.
11393 if test -f $ac_dir/$ac_word; then
11394 ac_cv_prog_DEREZ="Derez"
11395 break
11396 fi
11397 done
11398 IFS="$ac_save_ifs"
11399 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
11400fi
11401fi
11402DEREZ="$ac_cv_prog_DEREZ"
11403if test -n "$DEREZ"; then
11404 echo "$ac_t""$DEREZ" 1>&6
11405else
11406 echo "$ac_t""no" 1>&6
11407fi
11408
11409 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
11410 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
11411fi
11412
3a922bb4
RL
11413
11414for ac_hdr in strings.h
9cfadba2 11415do
698dcdb6
VZ
11416ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11417echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1a4f0015 11418echo "configure:11419: checking for $ac_hdr" >&5
698dcdb6
VZ
11419if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11420 echo $ac_n "(cached) $ac_c" 1>&6
11421else
11422 cat > conftest.$ac_ext <<EOF
1a4f0015 11423#line 11424 "configure"
9cfadba2 11424#include "confdefs.h"
698dcdb6
VZ
11425#include <$ac_hdr>
11426EOF
11427ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 11428{ (eval echo configure:11429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11429ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11430if test -z "$ac_err"; then
11431 rm -rf conftest*
11432 eval "ac_cv_header_$ac_safe=yes"
6232543b 11433else
698dcdb6
VZ
11434 echo "$ac_err" >&5
11435 echo "configure: failed program was:" >&5
9cfadba2 11436 cat conftest.$ac_ext >&5
698dcdb6
VZ
11437 rm -rf conftest*
11438 eval "ac_cv_header_$ac_safe=no"
9cfadba2 11439fi
698dcdb6 11440rm -f conftest*
9cfadba2 11441fi
698dcdb6
VZ
11442if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11443 echo "$ac_t""yes" 1>&6
11444 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11445 cat >> confdefs.h <<EOF
11446#define $ac_tr_hdr 1
9cfadba2 11447EOF
698dcdb6
VZ
11448
11449else
11450 echo "$ac_t""no" 1>&6
9cfadba2
VZ
11451fi
11452done
10f2d63a 11453
3a922bb4 11454for ac_hdr in stdlib.h
10f2d63a 11455do
698dcdb6
VZ
11456ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11457echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1a4f0015 11458echo "configure:11459: checking for $ac_hdr" >&5
698dcdb6
VZ
11459if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11460 echo $ac_n "(cached) $ac_c" 1>&6
11461else
11462 cat > conftest.$ac_ext <<EOF
1a4f0015 11463#line 11464 "configure"
10f2d63a 11464#include "confdefs.h"
698dcdb6
VZ
11465#include <$ac_hdr>
11466EOF
11467ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 11468{ (eval echo configure:11469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11469ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11470if test -z "$ac_err"; then
11471 rm -rf conftest*
11472 eval "ac_cv_header_$ac_safe=yes"
6232543b 11473else
698dcdb6
VZ
11474 echo "$ac_err" >&5
11475 echo "configure: failed program was:" >&5
10f2d63a 11476 cat conftest.$ac_ext >&5
698dcdb6
VZ
11477 rm -rf conftest*
11478 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11479fi
698dcdb6 11480rm -f conftest*
10f2d63a 11481fi
698dcdb6
VZ
11482if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11483 echo "$ac_t""yes" 1>&6
11484 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11485 cat >> confdefs.h <<EOF
11486#define $ac_tr_hdr 1
10f2d63a 11487EOF
698dcdb6
VZ
11488
11489else
11490 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11491fi
11492done
11493
3a922bb4 11494for ac_hdr in unistd.h
10f2d63a 11495do
698dcdb6
VZ
11496ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11497echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1a4f0015 11498echo "configure:11499: checking for $ac_hdr" >&5
698dcdb6
VZ
11499if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11500 echo $ac_n "(cached) $ac_c" 1>&6
11501else
11502 cat > conftest.$ac_ext <<EOF
1a4f0015 11503#line 11504 "configure"
10f2d63a 11504#include "confdefs.h"
698dcdb6
VZ
11505#include <$ac_hdr>
11506EOF
11507ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 11508{ (eval echo configure:11509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11509ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11510if test -z "$ac_err"; then
11511 rm -rf conftest*
11512 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11513else
698dcdb6
VZ
11514 echo "$ac_err" >&5
11515 echo "configure: failed program was:" >&5
6f72b082 11516 cat conftest.$ac_ext >&5
698dcdb6
VZ
11517 rm -rf conftest*
11518 eval "ac_cv_header_$ac_safe=no"
6f72b082 11519fi
698dcdb6 11520rm -f conftest*
6f72b082 11521fi
698dcdb6
VZ
11522if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11523 echo "$ac_t""yes" 1>&6
11524 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11525 cat >> confdefs.h <<EOF
11526#define $ac_tr_hdr 1
6f72b082 11527EOF
698dcdb6
VZ
11528
11529else
11530 echo "$ac_t""no" 1>&6
6f72b082
OK
11531fi
11532done
11533
3a922bb4 11534for ac_hdr in wchar.h
6f72b082 11535do
698dcdb6
VZ
11536ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11537echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1a4f0015 11538echo "configure:11539: checking for $ac_hdr" >&5
698dcdb6
VZ
11539if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11540 echo $ac_n "(cached) $ac_c" 1>&6
11541else
11542 cat > conftest.$ac_ext <<EOF
1a4f0015 11543#line 11544 "configure"
6f72b082 11544#include "confdefs.h"
698dcdb6
VZ
11545#include <$ac_hdr>
11546EOF
11547ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 11548{ (eval echo configure:11549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11549ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11550if test -z "$ac_err"; then
11551 rm -rf conftest*
11552 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11553else
698dcdb6
VZ
11554 echo "$ac_err" >&5
11555 echo "configure: failed program was:" >&5
6f72b082 11556 cat conftest.$ac_ext >&5
698dcdb6
VZ
11557 rm -rf conftest*
11558 eval "ac_cv_header_$ac_safe=no"
6f72b082 11559fi
698dcdb6 11560rm -f conftest*
6f72b082 11561fi
698dcdb6
VZ
11562if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11563 echo "$ac_t""yes" 1>&6
11564 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11565 cat >> confdefs.h <<EOF
11566#define $ac_tr_hdr 1
6f72b082 11567EOF
698dcdb6
VZ
11568
11569else
11570 echo "$ac_t""no" 1>&6
6f72b082
OK
11571fi
11572done
11573
3a922bb4 11574for ac_hdr in wcstr.h
6f72b082 11575do
698dcdb6
VZ
11576ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11577echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1a4f0015 11578echo "configure:11579: checking for $ac_hdr" >&5
698dcdb6
VZ
11579if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11580 echo $ac_n "(cached) $ac_c" 1>&6
11581else
11582 cat > conftest.$ac_ext <<EOF
1a4f0015 11583#line 11584 "configure"
6f72b082 11584#include "confdefs.h"
698dcdb6
VZ
11585#include <$ac_hdr>
11586EOF
11587ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 11588{ (eval echo configure:11589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11589ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11590if test -z "$ac_err"; then
11591 rm -rf conftest*
11592 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11593else
698dcdb6
VZ
11594 echo "$ac_err" >&5
11595 echo "configure: failed program was:" >&5
10f2d63a 11596 cat conftest.$ac_ext >&5
698dcdb6
VZ
11597 rm -rf conftest*
11598 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11599fi
698dcdb6 11600rm -f conftest*
10f2d63a 11601fi
698dcdb6
VZ
11602if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11603 echo "$ac_t""yes" 1>&6
11604 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11605 cat >> confdefs.h <<EOF
11606#define $ac_tr_hdr 1
10f2d63a 11607EOF
698dcdb6
VZ
11608
11609else
11610 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11611fi
11612done
11613
3a922bb4 11614for ac_hdr in fnmatch.h
0fb0dd83 11615do
698dcdb6
VZ
11616ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11617echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1a4f0015 11618echo "configure:11619: checking for $ac_hdr" >&5
698dcdb6
VZ
11619if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11620 echo $ac_n "(cached) $ac_c" 1>&6
11621else
11622 cat > conftest.$ac_ext <<EOF
1a4f0015 11623#line 11624 "configure"
0fb0dd83 11624#include "confdefs.h"
698dcdb6
VZ
11625#include <$ac_hdr>
11626EOF
11627ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 11628{ (eval echo configure:11629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11629ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11630if test -z "$ac_err"; then
11631 rm -rf conftest*
11632 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 11633else
698dcdb6
VZ
11634 echo "$ac_err" >&5
11635 echo "configure: failed program was:" >&5
0fb0dd83 11636 cat conftest.$ac_ext >&5
698dcdb6
VZ
11637 rm -rf conftest*
11638 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 11639fi
698dcdb6 11640rm -f conftest*
0fb0dd83 11641fi
698dcdb6
VZ
11642if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11643 echo "$ac_t""yes" 1>&6
11644 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11645 cat >> confdefs.h <<EOF
11646#define $ac_tr_hdr 1
0fb0dd83 11647EOF
698dcdb6
VZ
11648
11649else
11650 echo "$ac_t""no" 1>&6
0fb0dd83
RR
11651fi
11652done
11653
3a922bb4 11654for ac_hdr in iconv.h
1f8ae82f 11655do
698dcdb6
VZ
11656ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11657echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1a4f0015 11658echo "configure:11659: checking for $ac_hdr" >&5
698dcdb6
VZ
11659if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11660 echo $ac_n "(cached) $ac_c" 1>&6
11661else
11662 cat > conftest.$ac_ext <<EOF
1a4f0015 11663#line 11664 "configure"
1f8ae82f 11664#include "confdefs.h"
698dcdb6
VZ
11665#include <$ac_hdr>
11666EOF
11667ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 11668{ (eval echo configure:11669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11669ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11670if test -z "$ac_err"; then
11671 rm -rf conftest*
11672 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 11673else
698dcdb6
VZ
11674 echo "$ac_err" >&5
11675 echo "configure: failed program was:" >&5
1f8ae82f 11676 cat conftest.$ac_ext >&5
698dcdb6
VZ
11677 rm -rf conftest*
11678 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 11679fi
698dcdb6 11680rm -f conftest*
1f8ae82f 11681fi
698dcdb6
VZ
11682if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11683 echo "$ac_t""yes" 1>&6
11684 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11685 cat >> confdefs.h <<EOF
11686#define $ac_tr_hdr 1
1f8ae82f 11687EOF
698dcdb6
VZ
11688
11689else
11690 echo "$ac_t""no" 1>&6
1f8ae82f
GD
11691fi
11692done
11693
3a922bb4 11694for ac_hdr in langinfo.h
10f2d63a 11695do
698dcdb6
VZ
11696ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11697echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1a4f0015 11698echo "configure:11699: checking for $ac_hdr" >&5
698dcdb6
VZ
11699if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11700 echo $ac_n "(cached) $ac_c" 1>&6
11701else
11702 cat > conftest.$ac_ext <<EOF
1a4f0015 11703#line 11704 "configure"
10f2d63a 11704#include "confdefs.h"
698dcdb6
VZ
11705#include <$ac_hdr>
11706EOF
11707ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 11708{ (eval echo configure:11709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11709ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11710if test -z "$ac_err"; then
11711 rm -rf conftest*
11712 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11713else
698dcdb6
VZ
11714 echo "$ac_err" >&5
11715 echo "configure: failed program was:" >&5
10f2d63a 11716 cat conftest.$ac_ext >&5
698dcdb6
VZ
11717 rm -rf conftest*
11718 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11719fi
698dcdb6 11720rm -f conftest*
10f2d63a 11721fi
698dcdb6
VZ
11722if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11723 echo "$ac_t""yes" 1>&6
11724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11725 cat >> confdefs.h <<EOF
11726#define $ac_tr_hdr 1
10f2d63a 11727EOF
698dcdb6
VZ
11728
11729else
11730 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11731fi
11732done
11733
10f2d63a 11734
3a922bb4
RL
11735if test "$wxUSE_GUI" = "yes"; then
11736 if test "$wxUSE_UNIX" = "yes"; then
11737 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
11738do
11739ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11740echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1a4f0015 11741echo "configure:11742: checking for $ac_hdr" >&5
29fd3c0c
VS
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
1a4f0015 11746#line 11747 "configure"
29fd3c0c
VS
11747#include "confdefs.h"
11748#include <$ac_hdr>
11749EOF
11750ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 11751{ (eval echo configure:11752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
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"
11756else
11757 echo "$ac_err" >&5
11758 echo "configure: failed program was:" >&5
11759 cat conftest.$ac_ext >&5
11760 rm -rf conftest*
11761 eval "ac_cv_header_$ac_safe=no"
11762fi
11763rm -f conftest*
11764fi
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
11770EOF
11771
11772else
11773 echo "$ac_t""no" 1>&6
11774fi
11775done
11776
3a922bb4 11777 fi
29fd3c0c
VS
11778fi
11779
698dcdb6
VZ
11780
11781echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1a4f0015 11782echo "configure:11783: checking for ANSI C header files" >&5
698dcdb6
VZ
11783if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11784 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11785else
698dcdb6 11786 cat > conftest.$ac_ext <<EOF
1a4f0015 11787#line 11788 "configure"
10f2d63a
VZ
11788#include "confdefs.h"
11789#include <stdlib.h>
11790#include <stdarg.h>
11791#include <string.h>
11792#include <float.h>
698dcdb6
VZ
11793EOF
11794ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 11795{ (eval echo configure:11796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11796ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11797if test -z "$ac_err"; then
11798 rm -rf conftest*
10f2d63a
VZ
11799 ac_cv_header_stdc=yes
11800else
698dcdb6
VZ
11801 echo "$ac_err" >&5
11802 echo "configure: failed program was:" >&5
10f2d63a 11803 cat conftest.$ac_ext >&5
698dcdb6 11804 rm -rf conftest*
10f2d63a
VZ
11805 ac_cv_header_stdc=no
11806fi
698dcdb6 11807rm -f conftest*
10f2d63a
VZ
11808
11809if test $ac_cv_header_stdc = yes; then
11810 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 11811cat > conftest.$ac_ext <<EOF
1a4f0015 11812#line 11813 "configure"
10f2d63a
VZ
11813#include "confdefs.h"
11814#include <string.h>
698dcdb6 11815EOF
10f2d63a
VZ
11816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11817 egrep "memchr" >/dev/null 2>&1; then
11818 :
11819else
698dcdb6 11820 rm -rf conftest*
10f2d63a
VZ
11821 ac_cv_header_stdc=no
11822fi
11823rm -f conftest*
11824
11825fi
11826
11827if test $ac_cv_header_stdc = yes; then
11828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 11829cat > conftest.$ac_ext <<EOF
1a4f0015 11830#line 11831 "configure"
10f2d63a
VZ
11831#include "confdefs.h"
11832#include <stdlib.h>
698dcdb6 11833EOF
10f2d63a
VZ
11834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11835 egrep "free" >/dev/null 2>&1; then
11836 :
11837else
698dcdb6 11838 rm -rf conftest*
10f2d63a
VZ
11839 ac_cv_header_stdc=no
11840fi
11841rm -f conftest*
11842
11843fi
11844
11845if test $ac_cv_header_stdc = yes; then
11846 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 11847if test "$cross_compiling" = yes; then
10f2d63a
VZ
11848 :
11849else
698dcdb6 11850 cat > conftest.$ac_ext <<EOF
1a4f0015 11851#line 11852 "configure"
10f2d63a
VZ
11852#include "confdefs.h"
11853#include <ctype.h>
698dcdb6
VZ
11854#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11855#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 11856#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
11857int main () { int i; for (i = 0; i < 256; i++)
11858if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11859exit (0); }
11860
11861EOF
1a4f0015 11862if { (eval echo configure:11863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11863then
10f2d63a
VZ
11864 :
11865else
698dcdb6
VZ
11866 echo "configure: failed program was:" >&5
11867 cat conftest.$ac_ext >&5
11868 rm -fr conftest*
11869 ac_cv_header_stdc=no
10f2d63a 11870fi
698dcdb6 11871rm -fr conftest*
10f2d63a 11872fi
698dcdb6 11873
10f2d63a
VZ
11874fi
11875fi
1e487827 11876
698dcdb6
VZ
11877echo "$ac_t""$ac_cv_header_stdc" 1>&6
11878if test $ac_cv_header_stdc = yes; then
11879 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11880#define STDC_HEADERS 1
11881EOF
11882
11883fi
11884
698dcdb6 11885echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1a4f0015 11886echo "configure:11887: checking for mode_t" >&5
698dcdb6
VZ
11887if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11888 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11889else
698dcdb6 11890 cat > conftest.$ac_ext <<EOF
1a4f0015 11891#line 11892 "configure"
1e487827 11892#include "confdefs.h"
698dcdb6
VZ
11893#include <sys/types.h>
11894#if STDC_HEADERS
11895#include <stdlib.h>
11896#include <stddef.h>
11897#endif
11898EOF
11899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11900 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11901 rm -rf conftest*
10f2d63a
VZ
11902 ac_cv_type_mode_t=yes
11903else
698dcdb6
VZ
11904 rm -rf conftest*
11905 ac_cv_type_mode_t=no
703e0a69 11906fi
698dcdb6 11907rm -f conftest*
1e487827 11908
698dcdb6
VZ
11909fi
11910echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11911if test $ac_cv_type_mode_t = no; then
11912 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11913#define mode_t int
11914EOF
11915
11916fi
11917
698dcdb6 11918echo $ac_n "checking for off_t""... $ac_c" 1>&6
1a4f0015 11919echo "configure:11920: checking for off_t" >&5
698dcdb6
VZ
11920if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11921 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11922else
698dcdb6 11923 cat > conftest.$ac_ext <<EOF
1a4f0015 11924#line 11925 "configure"
10f2d63a 11925#include "confdefs.h"
698dcdb6
VZ
11926#include <sys/types.h>
11927#if STDC_HEADERS
11928#include <stdlib.h>
11929#include <stddef.h>
11930#endif
11931EOF
11932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11933 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11934 rm -rf conftest*
10f2d63a
VZ
11935 ac_cv_type_off_t=yes
11936else
698dcdb6
VZ
11937 rm -rf conftest*
11938 ac_cv_type_off_t=no
703e0a69 11939fi
698dcdb6 11940rm -f conftest*
1e487827 11941
698dcdb6
VZ
11942fi
11943echo "$ac_t""$ac_cv_type_off_t" 1>&6
11944if test $ac_cv_type_off_t = no; then
11945 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11946#define off_t long
11947EOF
11948
11949fi
11950
698dcdb6 11951echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1a4f0015 11952echo "configure:11953: checking for pid_t" >&5
698dcdb6
VZ
11953if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11954 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11955else
698dcdb6 11956 cat > conftest.$ac_ext <<EOF
1a4f0015 11957#line 11958 "configure"
10f2d63a 11958#include "confdefs.h"
698dcdb6
VZ
11959#include <sys/types.h>
11960#if STDC_HEADERS
11961#include <stdlib.h>
11962#include <stddef.h>
11963#endif
11964EOF
11965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11966 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11967 rm -rf conftest*
10f2d63a
VZ
11968 ac_cv_type_pid_t=yes
11969else
698dcdb6
VZ
11970 rm -rf conftest*
11971 ac_cv_type_pid_t=no
703e0a69 11972fi
698dcdb6 11973rm -f conftest*
1e487827 11974
698dcdb6
VZ
11975fi
11976echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11977if test $ac_cv_type_pid_t = no; then
11978 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11979#define pid_t int
11980EOF
11981
11982fi
11983
698dcdb6 11984echo $ac_n "checking for size_t""... $ac_c" 1>&6
1a4f0015 11985echo "configure:11986: checking for size_t" >&5
698dcdb6
VZ
11986if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11987 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11988else
698dcdb6 11989 cat > conftest.$ac_ext <<EOF
1a4f0015 11990#line 11991 "configure"
10f2d63a 11991#include "confdefs.h"
698dcdb6
VZ
11992#include <sys/types.h>
11993#if STDC_HEADERS
11994#include <stdlib.h>
11995#include <stddef.h>
11996#endif
11997EOF
11998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11999 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12000 rm -rf conftest*
10f2d63a
VZ
12001 ac_cv_type_size_t=yes
12002else
698dcdb6
VZ
12003 rm -rf conftest*
12004 ac_cv_type_size_t=no
703e0a69 12005fi
698dcdb6 12006rm -f conftest*
1e487827 12007
698dcdb6
VZ
12008fi
12009echo "$ac_t""$ac_cv_type_size_t" 1>&6
12010if test $ac_cv_type_size_t = no; then
12011 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12012#define size_t unsigned
12013EOF
12014
12015fi
12016
698dcdb6 12017echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1a4f0015 12018echo "configure:12019: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
12019if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12020 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12021else
698dcdb6 12022 cat > conftest.$ac_ext <<EOF
1a4f0015 12023#line 12024 "configure"
10f2d63a
VZ
12024#include "confdefs.h"
12025#include <sys/types.h>
698dcdb6 12026EOF
10f2d63a
VZ
12027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12028 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 12029 rm -rf conftest*
10f2d63a
VZ
12030 ac_cv_type_uid_t=yes
12031else
698dcdb6 12032 rm -rf conftest*
10f2d63a
VZ
12033 ac_cv_type_uid_t=no
12034fi
12035rm -f conftest*
12036
12037fi
1e487827 12038
698dcdb6
VZ
12039echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12040if test $ac_cv_type_uid_t = no; then
12041 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12042#define uid_t int
12043EOF
12044
698dcdb6 12045 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12046#define gid_t int
12047EOF
12048
12049fi
12050
1e487827 12051
698dcdb6 12052echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
1a4f0015 12053echo "configure:12054: checking for wchar_t" >&5
698dcdb6
VZ
12054if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12055 echo $ac_n "(cached) $ac_c" 1>&6
12056else
12057
12058 cat > conftest.$ac_ext <<EOF
1a4f0015 12059#line 12060 "configure"
0046ff7c
VS
12060#include "confdefs.h"
12061#include <wchar.h>
698dcdb6 12062int main() {
0046ff7c 12063
d836ee96
VZ
12064 wchar_t wc, *ws;
12065 wc = L'a';
12066 ws = L"Hello, world!";
698dcdb6
VZ
12067
12068; return 0; }
12069EOF
1a4f0015 12070if { (eval echo configure:12071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12071 rm -rf conftest*
1f8ae82f
GD
12072 wx_cv_type_wchar_t=yes
12073else
698dcdb6
VZ
12074 echo "configure: failed program was:" >&5
12075 cat conftest.$ac_ext >&5
12076 rm -rf conftest*
12077 cat > conftest.$ac_ext <<EOF
1a4f0015 12078#line 12079 "configure"
1f8ae82f
GD
12079#include "confdefs.h"
12080#include <stdlib.h>
698dcdb6 12081int main() {
1f8ae82f 12082
d836ee96
VZ
12083 wchar_t wc, *ws;
12084 wc = L'a';
12085 ws = L"Hello, world!";
698dcdb6
VZ
12086
12087; return 0; }
12088EOF
1a4f0015 12089if { (eval echo configure:12090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12090 rm -rf conftest*
0046ff7c
VS
12091 wx_cv_type_wchar_t=yes
12092else
698dcdb6
VZ
12093 echo "configure: failed program was:" >&5
12094 cat conftest.$ac_ext >&5
12095 rm -rf conftest*
12096 wx_cv_type_wchar_t=no
0046ff7c 12097fi
698dcdb6 12098rm -f conftest*
d836ee96 12099
6232543b 12100fi
698dcdb6 12101rm -f conftest*
703e0a69 12102
1e487827 12103fi
698dcdb6
VZ
12104
12105echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
12106
12107if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 12108 cat >> confdefs.h <<\EOF
0046ff7c
VS
12109#define wxUSE_WCHAR_T 1
12110EOF
12111
12112fi
12113
19af3b06
VZ
12114
12115ac_ext=C
12116# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12117ac_cpp='$CXXCPP $CPPFLAGS'
12118ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12119ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12120cross_compiling=$ac_cv_prog_cxx_cross
12121
d836ee96 12122echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
1a4f0015 12123echo "configure:12124: checking if size_t is unsigned int" >&5
d836ee96
VZ
12124if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12125 echo $ac_n "(cached) $ac_c" 1>&6
12126else
dd2c8b7c 12127 cat > conftest.$ac_ext <<EOF
1a4f0015 12128#line 12129 "configure"
d836ee96
VZ
12129#include "confdefs.h"
12130#include <stddef.h>
12131int main() {
12132
dd2c8b7c
VZ
12133 return 0; }
12134
d836ee96 12135 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
12136
12137 int bar() {
d836ee96
VZ
12138
12139; return 0; }
12140EOF
1a4f0015 12141if { (eval echo configure:12142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12142 rm -rf conftest*
12143 wx_cv_size_t_is_uint=no
12144else
12145 echo "configure: failed program was:" >&5
12146 cat conftest.$ac_ext >&5
12147 rm -rf conftest*
12148 wx_cv_size_t_is_uint=yes
12149
12150fi
12151rm -f conftest*
12152
12153fi
12154
12155echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12156
12157if test "$wx_cv_size_t_is_uint" = "yes"; then
12158 cat >> confdefs.h <<\EOF
12159#define wxSIZE_T_IS_UINT 1
12160EOF
12161
12162else
12163 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
1a4f0015 12164echo "configure:12165: checking if size_t is unsigned long" >&5
d836ee96
VZ
12165if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12166 echo $ac_n "(cached) $ac_c" 1>&6
12167else
12168 cat > conftest.$ac_ext <<EOF
1a4f0015 12169#line 12170 "configure"
d836ee96
VZ
12170#include "confdefs.h"
12171#include <stddef.h>
12172int main() {
12173
dd2c8b7c
VZ
12174 return 0; }
12175
d836ee96 12176 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
12177
12178 int bar() {
d836ee96
VZ
12179
12180; return 0; }
12181EOF
1a4f0015 12182if { (eval echo configure:12183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12183 rm -rf conftest*
12184 wx_cv_size_t_is_ulong=no
12185else
12186 echo "configure: failed program was:" >&5
12187 cat conftest.$ac_ext >&5
12188 rm -rf conftest*
12189 wx_cv_size_t_is_ulong=yes
12190
12191fi
12192rm -f conftest*
12193
12194fi
12195
12196echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12197
12198 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12199 cat >> confdefs.h <<\EOF
12200#define wxSIZE_T_IS_ULONG 1
12201EOF
12202
12203 fi
12204fi
12205
19af3b06
VZ
12206ac_ext=c
12207# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12208ac_cpp='$CPP $CPPFLAGS'
12209ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12210ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12211cross_compiling=$ac_cv_prog_cc_cross
12212
12213
1e487827 12214
698dcdb6 12215echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
1a4f0015 12216echo "configure:12217: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
12217if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12218 echo $ac_n "(cached) $ac_c" 1>&6
12219else
12220
12221 cat > conftest.$ac_ext <<EOF
1a4f0015 12222#line 12223 "configure"
b12915c1
VZ
12223#include "confdefs.h"
12224#include <pwd.h>
698dcdb6 12225int main() {
b12915c1
VZ
12226
12227 char *p;
12228 struct passwd *pw;
12229 p = pw->pw_gecos;
698dcdb6
VZ
12230
12231; return 0; }
12232EOF
1a4f0015 12233if { (eval echo configure:12234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12234 rm -rf conftest*
12235
b12915c1 12236 wx_cv_struct_pw_gecos=yes
698dcdb6 12237
b12915c1 12238else
698dcdb6
VZ
12239 echo "configure: failed program was:" >&5
12240 cat conftest.$ac_ext >&5
12241 rm -rf conftest*
12242
b12915c1 12243 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
12244
12245
6232543b 12246fi
698dcdb6
VZ
12247rm -f conftest*
12248
703e0a69 12249
1e487827 12250fi
698dcdb6
VZ
12251
12252echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 12253
bd3277fe 12254if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 12255 cat >> confdefs.h <<\EOF
bd3277fe
VZ
12256#define HAVE_PW_GECOS 1
12257EOF
12258
12259fi
12260
698dcdb6
VZ
12261
12262echo $ac_n "checking for working const""... $ac_c" 1>&6
1a4f0015 12263echo "configure:12264: checking for working const" >&5
698dcdb6
VZ
12264if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12265 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12266else
698dcdb6 12267 cat > conftest.$ac_ext <<EOF
1a4f0015 12268#line 12269 "configure"
10f2d63a 12269#include "confdefs.h"
698dcdb6
VZ
12270
12271int main() {
12272
12273/* Ultrix mips cc rejects this. */
12274typedef int charset[2]; const charset x;
12275/* SunOS 4.1.1 cc rejects this. */
12276char const *const *ccp;
12277char **p;
12278/* NEC SVR4.0.2 mips cc rejects this. */
12279struct point {int x, y;};
12280static struct point const zero = {0,0};
12281/* AIX XL C 1.02.0.0 rejects this.
12282 It does not let you subtract one const X* pointer from another in an arm
12283 of an if-expression whose if-part is not a constant expression */
12284const char *g = "string";
12285ccp = &g + (g ? g-g : 0);
12286/* HPUX 7.0 cc rejects these. */
12287++ccp;
12288p = (char**) ccp;
12289ccp = (char const *const *) p;
12290{ /* SCO 3.2v4 cc rejects this. */
12291 char *t;
12292 char const *s = 0 ? (char *) 0 : (char const *) 0;
12293
12294 *t++ = 0;
10f2d63a 12295}
698dcdb6
VZ
12296{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12297 int x[] = {25, 17};
12298 const int *foo = &x[0];
12299 ++foo;
703e0a69 12300}
698dcdb6
VZ
12301{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12302 typedef const int *iptr;
12303 iptr p = 0;
12304 ++p;
6232543b 12305}
698dcdb6
VZ
12306{ /* AIX XL C 1.02.0.0 rejects this saying
12307 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12308 struct s { int j; const int *ap[3]; };
12309 struct s *b; b->j = 5;
1e487827 12310}
698dcdb6
VZ
12311{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12312 const int foo = 10;
12313}
12314
12315; return 0; }
12316EOF
1a4f0015 12317if { (eval echo configure:12318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12318 rm -rf conftest*
10f2d63a
VZ
12319 ac_cv_c_const=yes
12320else
698dcdb6
VZ
12321 echo "configure: failed program was:" >&5
12322 cat conftest.$ac_ext >&5
12323 rm -rf conftest*
12324 ac_cv_c_const=no
10f2d63a 12325fi
698dcdb6 12326rm -f conftest*
10f2d63a 12327fi
1e487827 12328
698dcdb6
VZ
12329echo "$ac_t""$ac_cv_c_const" 1>&6
12330if test $ac_cv_c_const = no; then
12331 cat >> confdefs.h <<\EOF
12332#define const
10f2d63a
VZ
12333EOF
12334
12335fi
12336
698dcdb6 12337echo $ac_n "checking for inline""... $ac_c" 1>&6
1a4f0015 12338echo "configure:12339: checking for inline" >&5
698dcdb6
VZ
12339if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12340 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12341else
12342 ac_cv_c_inline=no
12343for ac_kw in inline __inline__ __inline; do
698dcdb6 12344 cat > conftest.$ac_ext <<EOF
1a4f0015 12345#line 12346 "configure"
10f2d63a
VZ
12346#include "confdefs.h"
12347
698dcdb6
VZ
12348int main() {
12349} $ac_kw foo() {
12350; return 0; }
12351EOF
1a4f0015 12352if { (eval echo configure:12353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12353 rm -rf conftest*
10f2d63a
VZ
12354 ac_cv_c_inline=$ac_kw; break
12355else
698dcdb6
VZ
12356 echo "configure: failed program was:" >&5
12357 cat conftest.$ac_ext >&5
10f2d63a 12358fi
698dcdb6 12359rm -f conftest*
10f2d63a
VZ
12360done
12361
12362fi
698dcdb6
VZ
12363
12364echo "$ac_t""$ac_cv_c_inline" 1>&6
12365case "$ac_cv_c_inline" in
10f2d63a 12366 inline | yes) ;;
698dcdb6
VZ
12367 no) cat >> confdefs.h <<\EOF
12368#define inline
10f2d63a
VZ
12369EOF
12370 ;;
698dcdb6 12371 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
12372#define inline $ac_cv_c_inline
12373EOF
12374 ;;
12375esac
12376
698dcdb6
VZ
12377
12378echo $ac_n "checking size of char""... $ac_c" 1>&6
1a4f0015 12379echo "configure:12380: checking size of char" >&5
698dcdb6
VZ
12380if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12381 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 12382else
1e487827 12383 if test "$cross_compiling" = yes; then
698dcdb6 12384 ac_cv_sizeof_char=1
1e487827 12385else
698dcdb6 12386 cat > conftest.$ac_ext <<EOF
1a4f0015 12387#line 12388 "configure"
1e487827 12388#include "confdefs.h"
698dcdb6 12389#include <stdio.h>
7b7a7637 12390#include <sys/types.h>
698dcdb6 12391main()
1e487827 12392{
698dcdb6
VZ
12393 FILE *f=fopen("conftestval", "w");
12394 if (!f) exit(1);
12395 fprintf(f, "%d\n", sizeof(char));
12396 exit(0);
1e487827 12397}
698dcdb6 12398EOF
1a4f0015 12399if { (eval echo configure:12400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12400then
12401 ac_cv_sizeof_char=`cat conftestval`
1e487827 12402else
698dcdb6
VZ
12403 echo "configure: failed program was:" >&5
12404 cat conftest.$ac_ext >&5
12405 rm -fr conftest*
1e487827
VS
12406 ac_cv_sizeof_char=0
12407fi
698dcdb6 12408rm -fr conftest*
1e487827 12409fi
10f2d63a 12410
1e487827 12411fi
698dcdb6
VZ
12412echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12413cat >> confdefs.h <<EOF
12414#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 12415EOF
6232543b 12416
703e0a69 12417
698dcdb6 12418echo $ac_n "checking size of short""... $ac_c" 1>&6
1a4f0015 12419echo "configure:12420: checking size of short" >&5
698dcdb6
VZ
12420if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12421 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 12422else
1e487827 12423 if test "$cross_compiling" = yes; then
698dcdb6 12424 ac_cv_sizeof_short=2
1e487827 12425else
698dcdb6 12426 cat > conftest.$ac_ext <<EOF
1a4f0015 12427#line 12428 "configure"
1e487827 12428#include "confdefs.h"
698dcdb6 12429#include <stdio.h>
7b7a7637 12430#include <sys/types.h>
698dcdb6 12431main()
1e487827 12432{
698dcdb6
VZ
12433 FILE *f=fopen("conftestval", "w");
12434 if (!f) exit(1);
12435 fprintf(f, "%d\n", sizeof(short));
12436 exit(0);
1e487827 12437}
698dcdb6 12438EOF
1a4f0015 12439if { (eval echo configure:12440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12440then
12441 ac_cv_sizeof_short=`cat conftestval`
1e487827 12442else
698dcdb6
VZ
12443 echo "configure: failed program was:" >&5
12444 cat conftest.$ac_ext >&5
12445 rm -fr conftest*
12446 ac_cv_sizeof_short=0
1e487827 12447fi
698dcdb6 12448rm -fr conftest*
1e487827 12449fi
698dcdb6 12450
1e487827 12451fi
698dcdb6
VZ
12452echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12453cat >> confdefs.h <<EOF
12454#define SIZEOF_SHORT $ac_cv_sizeof_short
12455EOF
12456
12457
12458echo $ac_n "checking size of int *""... $ac_c" 1>&6
1a4f0015 12459echo "configure:12460: checking size of int *" >&5
698dcdb6
VZ
12460if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12461 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12462else
12463 if test "$cross_compiling" = yes; then
698dcdb6 12464 ac_cv_sizeof_int_p=4
10f2d63a 12465else
698dcdb6 12466 cat > conftest.$ac_ext <<EOF
1a4f0015 12467#line 12468 "configure"
10f2d63a 12468#include "confdefs.h"
698dcdb6 12469#include <stdio.h>
7b7a7637 12470#include <sys/types.h>
698dcdb6 12471main()
10f2d63a 12472{
698dcdb6
VZ
12473 FILE *f=fopen("conftestval", "w");
12474 if (!f) exit(1);
12475 fprintf(f, "%d\n", sizeof(int *));
12476 exit(0);
10f2d63a 12477}
698dcdb6 12478EOF
1a4f0015 12479if { (eval echo configure:12480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12480then
12481 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 12482else
698dcdb6
VZ
12483 echo "configure: failed program was:" >&5
12484 cat conftest.$ac_ext >&5
12485 rm -fr conftest*
12486 ac_cv_sizeof_int_p=0
6232543b 12487fi
698dcdb6 12488rm -fr conftest*
1e487827 12489fi
698dcdb6 12490
1e487827 12491fi
698dcdb6
VZ
12492echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12493cat >> confdefs.h <<EOF
12494#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
12495EOF
12496
698dcdb6
VZ
12497
12498echo $ac_n "checking size of int""... $ac_c" 1>&6
1a4f0015 12499echo "configure:12500: checking size of int" >&5
698dcdb6
VZ
12500if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12501 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12502else
12503 if test "$cross_compiling" = yes; then
698dcdb6 12504 ac_cv_sizeof_int=4
703e0a69 12505else
698dcdb6 12506 cat > conftest.$ac_ext <<EOF
1a4f0015 12507#line 12508 "configure"
1e487827 12508#include "confdefs.h"
698dcdb6 12509#include <stdio.h>
7b7a7637 12510#include <sys/types.h>
698dcdb6 12511main()
1e487827 12512{
698dcdb6
VZ
12513 FILE *f=fopen("conftestval", "w");
12514 if (!f) exit(1);
12515 fprintf(f, "%d\n", sizeof(int));
12516 exit(0);
1e487827 12517}
698dcdb6 12518EOF
1a4f0015 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=`cat conftestval`
12522else
12523 echo "configure: failed program was:" >&5
12524 cat conftest.$ac_ext >&5
12525 rm -fr conftest*
12526 ac_cv_sizeof_int=0
703e0a69 12527fi
698dcdb6
VZ
12528rm -fr conftest*
12529fi
12530
12531fi
12532echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12533cat >> confdefs.h <<EOF
12534#define SIZEOF_INT $ac_cv_sizeof_int
12535EOF
12536
12537
12538echo $ac_n "checking size of long""... $ac_c" 1>&6
1a4f0015 12539echo "configure:12540: checking size of long" >&5
698dcdb6
VZ
12540if eval "test \"`echo '$''{'ac_cv_sizeof_long'+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_long=4
10f2d63a 12545else
698dcdb6 12546 cat > conftest.$ac_ext <<EOF
1a4f0015 12547#line 12548 "configure"
10f2d63a 12548#include "confdefs.h"
698dcdb6 12549#include <stdio.h>
7b7a7637 12550#include <sys/types.h>
698dcdb6 12551main()
10f2d63a 12552{
698dcdb6
VZ
12553 FILE *f=fopen("conftestval", "w");
12554 if (!f) exit(1);
12555 fprintf(f, "%d\n", sizeof(long));
12556 exit(0);
10f2d63a 12557}
698dcdb6 12558EOF
1a4f0015 12559if { (eval echo configure:12560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12560then
12561 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 12562else
698dcdb6
VZ
12563 echo "configure: failed program was:" >&5
12564 cat conftest.$ac_ext >&5
12565 rm -fr conftest*
12566 ac_cv_sizeof_long=0
10f2d63a 12567fi
698dcdb6 12568rm -fr conftest*
10f2d63a 12569fi
698dcdb6 12570
10f2d63a 12571fi
698dcdb6
VZ
12572echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12573cat >> confdefs.h <<EOF
12574#define SIZEOF_LONG $ac_cv_sizeof_long
12575EOF
12576
12577
12578echo $ac_n "checking size of long long""... $ac_c" 1>&6
1a4f0015 12579echo "configure:12580: checking size of long long" >&5
698dcdb6
VZ
12580if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12581 echo $ac_n "(cached) $ac_c" 1>&6
12582else
12583 if test "$cross_compiling" = yes; then
12584 ac_cv_sizeof_long_long=0
12585else
12586 cat > conftest.$ac_ext <<EOF
1a4f0015 12587#line 12588 "configure"
698dcdb6
VZ
12588#include "confdefs.h"
12589#include <stdio.h>
7b7a7637 12590#include <sys/types.h>
698dcdb6
VZ
12591main()
12592{
12593 FILE *f=fopen("conftestval", "w");
12594 if (!f) exit(1);
12595 fprintf(f, "%d\n", sizeof(long long));
12596 exit(0);
12597}
12598EOF
1a4f0015 12599if { (eval echo configure:12600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12600then
12601 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 12602else
698dcdb6
VZ
12603 echo "configure: failed program was:" >&5
12604 cat conftest.$ac_ext >&5
12605 rm -fr conftest*
6232543b
VS
12606 ac_cv_sizeof_long_long=0
12607fi
698dcdb6
VZ
12608rm -fr conftest*
12609fi
12610
703e0a69 12611fi
698dcdb6
VZ
12612echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12613cat >> confdefs.h <<EOF
10f2d63a
VZ
12614#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12615EOF
12616
1e487827 12617
698dcdb6
VZ
12618
12619echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
1a4f0015 12620echo "configure:12621: checking size of wchar_t" >&5
698dcdb6
VZ
12621if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12622 echo $ac_n "(cached) $ac_c" 1>&6
12623else
12624
b93d0d08
VS
12625 if test "$cross_compiling" = yes; then
12626 wx_cv_sizeof_wchar_t=4
1e6feb95 12627
b93d0d08 12628else
698dcdb6 12629 cat > conftest.$ac_ext <<EOF
1a4f0015 12630#line 12631 "configure"
b93d0d08
VS
12631#include "confdefs.h"
12632
1e6feb95
VZ
12633 #ifdef HAVE_WCHAR_H
12634 # include <wchar.h>
12635 #endif
12636 #ifdef HAVE_STDLIB_H
12637 # include <stdlib.h>
12638 #endif
12639 #include <stdio.h>
12640 int main()
12641 {
12642 FILE *f=fopen("conftestval", "w");
12643 if (!f) exit(1);
12644 fprintf(f, "%i", sizeof(wchar_t));
12645 exit(0);
12646 }
698dcdb6
VZ
12647
12648EOF
1a4f0015 12649if { (eval echo configure:12650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12650then
b93d0d08
VS
12651 wx_cv_sizeof_wchar_t=`cat conftestval`
12652else
698dcdb6
VZ
12653 echo "configure: failed program was:" >&5
12654 cat conftest.$ac_ext >&5
12655 rm -fr conftest*
12656 wx_cv_sizeof_wchar_t=0
b93d0d08 12657fi
698dcdb6 12658rm -fr conftest*
b93d0d08
VS
12659fi
12660
698dcdb6 12661
b93d0d08
VS
12662fi
12663
698dcdb6
VZ
12664echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12665
12666cat >> confdefs.h <<EOF
28c6addc 12667#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
12668EOF
12669
698dcdb6 12670
698dcdb6 12671echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1a4f0015 12672echo "configure:12673: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
12673if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12674 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12675else
12676 ac_cv_c_bigendian=unknown
12677# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 12678cat > conftest.$ac_ext <<EOF
1a4f0015 12679#line 12680 "configure"
10f2d63a
VZ
12680#include "confdefs.h"
12681#include <sys/types.h>
12682#include <sys/param.h>
698dcdb6 12683int main() {
10f2d63a
VZ
12684
12685#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12686 bogus endian macros
12687#endif
698dcdb6
VZ
12688; return 0; }
12689EOF
1a4f0015 12690if { (eval echo configure:12691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12691 rm -rf conftest*
10f2d63a 12692 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 12693cat > conftest.$ac_ext <<EOF
1a4f0015 12694#line 12695 "configure"
10f2d63a
VZ
12695#include "confdefs.h"
12696#include <sys/types.h>
12697#include <sys/param.h>
698dcdb6 12698int main() {
10f2d63a
VZ
12699
12700#if BYTE_ORDER != BIG_ENDIAN
12701 not big endian
12702#endif
698dcdb6
VZ
12703; return 0; }
12704EOF
1a4f0015 12705if { (eval echo configure:12706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12706 rm -rf conftest*
10f2d63a
VZ
12707 ac_cv_c_bigendian=yes
12708else
698dcdb6
VZ
12709 echo "configure: failed program was:" >&5
12710 cat conftest.$ac_ext >&5
12711 rm -rf conftest*
12712 ac_cv_c_bigendian=no
10f2d63a 12713fi
698dcdb6 12714rm -f conftest*
10f2d63a 12715else
698dcdb6
VZ
12716 echo "configure: failed program was:" >&5
12717 cat conftest.$ac_ext >&5
10f2d63a 12718fi
698dcdb6 12719rm -f conftest*
10f2d63a
VZ
12720if test $ac_cv_c_bigendian = unknown; then
12721if test "$cross_compiling" = yes; then
12722 ac_cv_c_bigendian=unknown
12723else
698dcdb6 12724 cat > conftest.$ac_ext <<EOF
1a4f0015 12725#line 12726 "configure"
10f2d63a
VZ
12726#include "confdefs.h"
12727main () {
12728 /* Are we little or big endian? From Harbison&Steele. */
12729 union
12730 {
12731 long l;
12732 char c[sizeof (long)];
12733 } u;
12734 u.l = 1;
12735 exit (u.c[sizeof (long) - 1] == 1);
12736}
698dcdb6 12737EOF
1a4f0015 12738if { (eval echo configure:12739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12739then
10f2d63a
VZ
12740 ac_cv_c_bigendian=no
12741else
698dcdb6
VZ
12742 echo "configure: failed program was:" >&5
12743 cat conftest.$ac_ext >&5
12744 rm -fr conftest*
12745 ac_cv_c_bigendian=yes
10f2d63a 12746fi
698dcdb6 12747rm -fr conftest*
10f2d63a 12748fi
698dcdb6 12749
10f2d63a
VZ
12750fi
12751fi
698dcdb6
VZ
12752
12753echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 12754if test $ac_cv_c_bigendian = unknown; then
698dcdb6 12755 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
12756fi
12757if test $ac_cv_c_bigendian = yes; then
698dcdb6 12758 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12759#define WORDS_BIGENDIAN 1
12760EOF
12761
12762fi
12763
698dcdb6 12764
3a922bb4 12765echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1a4f0015 12766echo "configure:12767: checking how to run the C++ preprocessor" >&5
3a922bb4
RL
12767if test -z "$CXXCPP"; then
12768if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
12769 echo $ac_n "(cached) $ac_c" 1>&6
12770else
12771 ac_ext=C
12772# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12773ac_cpp='$CXXCPP $CPPFLAGS'
12774ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12775ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12776cross_compiling=$ac_cv_prog_cxx_cross
12777 CXXCPP="${CXX-g++} -E"
12778 cat > conftest.$ac_ext <<EOF
1a4f0015 12779#line 12780 "configure"
3a922bb4
RL
12780#include "confdefs.h"
12781#include <stdlib.h>
12782EOF
12783ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 12784{ (eval echo configure:12785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
12785ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12786if test -z "$ac_err"; then
12787 :
12788else
12789 echo "$ac_err" >&5
12790 echo "configure: failed program was:" >&5
12791 cat conftest.$ac_ext >&5
12792 rm -rf conftest*
12793 CXXCPP=/lib/cpp
12794fi
12795rm -f conftest*
12796 ac_cv_prog_CXXCPP="$CXXCPP"
12797ac_ext=C
12798# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12799ac_cpp='$CXXCPP $CPPFLAGS'
12800ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12801ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12802cross_compiling=$ac_cv_prog_cxx_cross
12803fi
12804fi
12805CXXCPP="$ac_cv_prog_CXXCPP"
12806echo "$ac_t""$CXXCPP" 1>&6
12807
698dcdb6 12808
10f2d63a 12809 if test "$cross_compiling" = "yes"; then
698dcdb6 12810 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12811#define wxUSE_IOSTREAMH 1
12812EOF
12813
12814 else
698dcdb6
VZ
12815
12816 ac_ext=C
12817# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12818ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12819ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12820ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12821cross_compiling=$ac_cv_prog_cxx_cross
12822
703e0a69 12823
698dcdb6 12824 for ac_hdr in iostream
10f2d63a 12825do
698dcdb6
VZ
12826ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12827echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1a4f0015 12828echo "configure:12829: checking for $ac_hdr" >&5
698dcdb6
VZ
12829if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12830 echo $ac_n "(cached) $ac_c" 1>&6
12831else
12832 cat > conftest.$ac_ext <<EOF
1a4f0015 12833#line 12834 "configure"
10f2d63a 12834#include "confdefs.h"
698dcdb6
VZ
12835#include <$ac_hdr>
12836EOF
12837ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 12838{ (eval echo configure:12839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12839ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12840if test -z "$ac_err"; then
12841 rm -rf conftest*
12842 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12843else
698dcdb6
VZ
12844 echo "$ac_err" >&5
12845 echo "configure: failed program was:" >&5
10f2d63a 12846 cat conftest.$ac_ext >&5
698dcdb6
VZ
12847 rm -rf conftest*
12848 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12849fi
698dcdb6 12850rm -f conftest*
10f2d63a 12851fi
698dcdb6
VZ
12852if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12853 echo "$ac_t""yes" 1>&6
12854 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12855 cat >> confdefs.h <<EOF
12856#define $ac_tr_hdr 1
10f2d63a 12857EOF
698dcdb6
VZ
12858
12859else
12860 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12861fi
12862done
12863
698dcdb6 12864
57fe5ed0
VZ
12865 if test "$ac_cv_header_iostream" = "yes" ; then
12866 :
12867 else
698dcdb6 12868 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12869#define wxUSE_IOSTREAMH 1
12870EOF
12871
10f2d63a
VZ
12872 fi
12873
12874 ac_ext=c
698dcdb6 12875# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12876ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12877ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12878ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12879cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
12880
12881 fi
12882
703e0a69 12883
698dcdb6
VZ
12884
12885 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
1a4f0015 12886echo "configure:12887: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
12887if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12888 echo $ac_n "(cached) $ac_c" 1>&6
12889else
12890
12891
12892 ac_ext=C
12893# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12894ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12895ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12896ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12897cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 12898
698dcdb6
VZ
12899
12900 cat > conftest.$ac_ext <<EOF
1a4f0015 12901#line 12902 "configure"
10f2d63a
VZ
12902#include "confdefs.h"
12903
698dcdb6
VZ
12904
12905int main() {
10f2d63a
VZ
12906
12907 bool b = true;
12908
12909 return 0;
698dcdb6
VZ
12910
12911; return 0; }
12912EOF
1a4f0015 12913if { (eval echo configure:12914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12914 rm -rf conftest*
12915
10f2d63a 12916 wx_cv_cpp_bool=yes
698dcdb6 12917
10f2d63a 12918else
698dcdb6
VZ
12919 echo "configure: failed program was:" >&5
12920 cat conftest.$ac_ext >&5
12921 rm -rf conftest*
12922
10f2d63a 12923 wx_cv_cpp_bool=no
698dcdb6
VZ
12924
12925
10f2d63a 12926fi
698dcdb6 12927rm -f conftest*
10f2d63a
VZ
12928
12929 ac_ext=c
698dcdb6 12930# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12931ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12932ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12933ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12934cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12935
698dcdb6 12936
10f2d63a 12937fi
698dcdb6
VZ
12938
12939echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
12940
12941 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 12942 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12943#define HAVE_BOOL 1
12944EOF
12945
12946 fi
12947
1e487827 12948
698dcdb6 12949
698dcdb6 12950echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
1a4f0015 12951echo "configure:12952: checking for wcslen in -lc" >&5
698dcdb6
VZ
12952ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12953if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12954 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12955else
698dcdb6 12956 ac_save_LIBS="$LIBS"
10f2d63a 12957LIBS="-lc $LIBS"
698dcdb6 12958cat > conftest.$ac_ext <<EOF
1a4f0015 12959#line 12960 "configure"
10f2d63a
VZ
12960#include "confdefs.h"
12961/* Override any gcc2 internal prototype to avoid an error. */
12962/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12963 builtin and then its argument prototype would still apply. */
12964char wcslen();
12965
12966int main() {
12967wcslen()
12968; return 0; }
12969EOF
1a4f0015 12970if { (eval echo configure:12971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12971 rm -rf conftest*
12972 eval "ac_cv_lib_$ac_lib_var=yes"
12973else
12974 echo "configure: failed program was:" >&5
12975 cat conftest.$ac_ext >&5
12976 rm -rf conftest*
12977 eval "ac_cv_lib_$ac_lib_var=no"
12978fi
12979rm -f conftest*
12980LIBS="$ac_save_LIBS"
12981
12982fi
12983if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12984 echo "$ac_t""yes" 1>&6
12985
12986 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12987#define HAVE_WCSLEN 1
12988EOF
12989
12990 WCHAR_LINK=""
698dcdb6 12991
10f2d63a 12992else
698dcdb6 12993 echo "$ac_t""no" 1>&6
10f2d63a 12994
698dcdb6 12995 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
1a4f0015 12996echo "configure:12997: checking for wcslen in -lw" >&5
698dcdb6
VZ
12997ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12998if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12999 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13000else
698dcdb6 13001 ac_save_LIBS="$LIBS"
10f2d63a 13002LIBS="-lw $LIBS"
698dcdb6 13003cat > conftest.$ac_ext <<EOF
1a4f0015 13004#line 13005 "configure"
10f2d63a
VZ
13005#include "confdefs.h"
13006/* Override any gcc2 internal prototype to avoid an error. */
13007/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13008 builtin and then its argument prototype would still apply. */
13009char wcslen();
13010
13011int main() {
13012wcslen()
13013; return 0; }
13014EOF
1a4f0015 13015if { (eval echo configure:13016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13016 rm -rf conftest*
13017 eval "ac_cv_lib_$ac_lib_var=yes"
13018else
13019 echo "configure: failed program was:" >&5
13020 cat conftest.$ac_ext >&5
13021 rm -rf conftest*
13022 eval "ac_cv_lib_$ac_lib_var=no"
13023fi
13024rm -f conftest*
13025LIBS="$ac_save_LIBS"
13026
13027fi
13028if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13029 echo "$ac_t""yes" 1>&6
13030
13031 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13032#define HAVE_WCSLEN 1
13033EOF
13034
13035 WCHAR_LINK="-lw"
698dcdb6 13036
18dbb1f6
VZ
13037else
13038 echo "$ac_t""no" 1>&6
13039
13040 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
1a4f0015 13041echo "configure:13042: checking for wcslen in -lmsvcrt" >&5
18dbb1f6
VZ
13042ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13043if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13044 echo $ac_n "(cached) $ac_c" 1>&6
13045else
13046 ac_save_LIBS="$LIBS"
13047LIBS="-lmsvcrt $LIBS"
13048cat > conftest.$ac_ext <<EOF
1a4f0015 13049#line 13050 "configure"
18dbb1f6
VZ
13050#include "confdefs.h"
13051/* Override any gcc2 internal prototype to avoid an error. */
13052/* We use char because int might match the return type of a gcc2
13053 builtin and then its argument prototype would still apply. */
13054char wcslen();
13055
13056int main() {
13057wcslen()
13058; return 0; }
13059EOF
1a4f0015 13060if { (eval echo configure:13061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
13061 rm -rf conftest*
13062 eval "ac_cv_lib_$ac_lib_var=yes"
13063else
13064 echo "configure: failed program was:" >&5
13065 cat conftest.$ac_ext >&5
13066 rm -rf conftest*
13067 eval "ac_cv_lib_$ac_lib_var=no"
13068fi
13069rm -f conftest*
13070LIBS="$ac_save_LIBS"
13071
13072fi
13073if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13074 echo "$ac_t""yes" 1>&6
13075
13076 cat >> confdefs.h <<\EOF
13077#define HAVE_WCSLEN 1
13078EOF
13079
13080 WCHAR_LINK=""
13081
698dcdb6
VZ
13082else
13083 echo "$ac_t""no" 1>&6
6232543b 13084fi
10f2d63a 13085
18dbb1f6
VZ
13086
13087fi
13088
698dcdb6 13089
1e487827 13090fi
703e0a69 13091
698dcdb6 13092
b3e8d00a
VZ
13093for ac_func in wcsrtombs
13094do
13095echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 13096echo "configure:13097: checking for $ac_func" >&5
b3e8d00a
VZ
13097if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13098 echo $ac_n "(cached) $ac_c" 1>&6
13099else
13100 cat > conftest.$ac_ext <<EOF
1a4f0015 13101#line 13102 "configure"
b3e8d00a
VZ
13102#include "confdefs.h"
13103/* System header to define __stub macros and hopefully few prototypes,
13104 which can conflict with char $ac_func(); below. */
13105#include <assert.h>
13106/* Override any gcc2 internal prototype to avoid an error. */
13107/* We use char because int might match the return type of a gcc2
13108 builtin and then its argument prototype would still apply. */
13109char $ac_func();
13110
13111int main() {
13112
13113/* The GNU C library defines this for functions which it implements
13114 to always fail with ENOSYS. Some functions are actually named
13115 something starting with __ and the normal name is an alias. */
13116#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13117choke me
13118#else
13119$ac_func();
13120#endif
13121
13122; return 0; }
13123EOF
1a4f0015 13124if { (eval echo configure:13125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b3e8d00a
VZ
13125 rm -rf conftest*
13126 eval "ac_cv_func_$ac_func=yes"
13127else
13128 echo "configure: failed program was:" >&5
13129 cat conftest.$ac_ext >&5
13130 rm -rf conftest*
13131 eval "ac_cv_func_$ac_func=no"
13132fi
13133rm -f conftest*
13134fi
13135
13136if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13137 echo "$ac_t""yes" 1>&6
13138 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13139 cat >> confdefs.h <<EOF
13140#define $ac_tr_func 1
13141EOF
13142
13143else
13144 echo "$ac_t""no" 1>&6
13145fi
13146done
13147
13148
698dcdb6 13149echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1a4f0015 13150echo "configure:13151: checking for vprintf" >&5
698dcdb6
VZ
13151if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
13152 echo $ac_n "(cached) $ac_c" 1>&6
13153else
13154 cat > conftest.$ac_ext <<EOF
1a4f0015 13155#line 13156 "configure"
10f2d63a
VZ
13156#include "confdefs.h"
13157/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13158 which can conflict with char vprintf(); below. */
10f2d63a
VZ
13159#include <assert.h>
13160/* Override any gcc2 internal prototype to avoid an error. */
13161/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13162 builtin and then its argument prototype would still apply. */
13163char vprintf();
13164
13165int main() {
10f2d63a
VZ
13166
13167/* The GNU C library defines this for functions which it implements
13168 to always fail with ENOSYS. Some functions are actually named
13169 something starting with __ and the normal name is an alias. */
698dcdb6 13170#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
13171choke me
13172#else
698dcdb6 13173vprintf();
10f2d63a
VZ
13174#endif
13175
698dcdb6
VZ
13176; return 0; }
13177EOF
1a4f0015 13178if { (eval echo configure:13179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13179 rm -rf conftest*
13180 eval "ac_cv_func_vprintf=yes"
13181else
13182 echo "configure: failed program was:" >&5
13183 cat conftest.$ac_ext >&5
13184 rm -rf conftest*
13185 eval "ac_cv_func_vprintf=no"
13186fi
13187rm -f conftest*
13188fi
13189
13190if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13191 echo "$ac_t""yes" 1>&6
13192 cat >> confdefs.h <<\EOF
13193#define HAVE_VPRINTF 1
13194EOF
13195
13196else
13197 echo "$ac_t""no" 1>&6
13198fi
13199
13200if test "$ac_cv_func_vprintf" != yes; then
13201echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1a4f0015 13202echo "configure:13203: checking for _doprnt" >&5
698dcdb6
VZ
13203if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
13204 echo $ac_n "(cached) $ac_c" 1>&6
13205else
13206 cat > conftest.$ac_ext <<EOF
1a4f0015 13207#line 13208 "configure"
10f2d63a
VZ
13208#include "confdefs.h"
13209/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13210 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
13211#include <assert.h>
13212/* Override any gcc2 internal prototype to avoid an error. */
13213/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13214 builtin and then its argument prototype would still apply. */
13215char _doprnt();
13216
13217int main() {
10f2d63a
VZ
13218
13219/* The GNU C library defines this for functions which it implements
13220 to always fail with ENOSYS. Some functions are actually named
13221 something starting with __ and the normal name is an alias. */
13222#if defined (__stub__doprnt) || defined (__stub____doprnt)
13223choke me
13224#else
698dcdb6 13225_doprnt();
10f2d63a
VZ
13226#endif
13227
698dcdb6
VZ
13228; return 0; }
13229EOF
1a4f0015 13230if { (eval echo configure:13231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13231 rm -rf conftest*
13232 eval "ac_cv_func__doprnt=yes"
13233else
13234 echo "configure: failed program was:" >&5
13235 cat conftest.$ac_ext >&5
13236 rm -rf conftest*
13237 eval "ac_cv_func__doprnt=no"
13238fi
13239rm -f conftest*
13240fi
13241
13242if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13243 echo "$ac_t""yes" 1>&6
13244 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13245#define HAVE_DOPRNT 1
13246EOF
13247
698dcdb6
VZ
13248else
13249 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13250fi
13251
13252fi
13253
1e487827 13254
698dcdb6
VZ
13255
13256
13257
13258
698dcdb6 13259echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
1a4f0015 13260echo "configure:13261: checking for vsnprintf" >&5
698dcdb6
VZ
13261if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
13262 echo $ac_n "(cached) $ac_c" 1>&6
13263else
13264
13265 cat > conftest.$ac_ext <<EOF
1a4f0015 13266#line 13267 "configure"
f6bcfd97
BP
13267#include "confdefs.h"
13268
13269 #include <stdio.h>
698dcdb6
VZ
13270 #include <stdarg.h>
13271
13272int main() {
10f2d63a 13273
f6bcfd97 13274 int wx_test_vsnprintf(const char *, ...);
10f2d63a 13275
f6bcfd97
BP
13276 wx_test_vsnprintf("%s");
13277 return 0;
13278 }
13279
13280 int wx_test_vsnprintf(const char *fmt, ...)
13281 {
13282 char *s;
13283
13284 va_list argp;
13285 va_start(argp, fmt);
13286 vsnprintf(s, 42, fmt, argp);
13287 va_end(argp);
698dcdb6
VZ
13288
13289; return 0; }
13290EOF
1a4f0015 13291if { (eval echo configure:13292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13292 rm -rf conftest*
13293
f6bcfd97 13294 wx_cv_func_vsnprintf=yes
698dcdb6 13295
10f2d63a 13296else
698dcdb6
VZ
13297 echo "configure: failed program was:" >&5
13298 cat conftest.$ac_ext >&5
13299 rm -rf conftest*
13300
13301 cat > conftest.$ac_ext <<EOF
1a4f0015 13302#line 13303 "configure"
c521c494
RL
13303#include "confdefs.h"
13304
13305 #include <stdio.h>
13306 #include <stdarg.h>
698dcdb6
VZ
13307
13308int main() {
c521c494
RL
13309
13310 int wx_test_vsnprintf(const char *, ...);
13311
13312 wx_test_vsnprintf("%s");
13313 return 0;
13314 }
13315
13316 int wx_test_vsnprintf(const char *fmt, ...)
13317 {
13318 char *s;
13319
13320 va_list argp;
13321 va_start(argp, fmt);
13322 _vsnprintf(s, 42, fmt, argp);
13323 va_end(argp);
698dcdb6
VZ
13324
13325; return 0; }
13326EOF
1a4f0015 13327if { (eval echo configure:13328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13328 rm -rf conftest*
13329
c521c494 13330 wx_cv_func_vsnprintf=yes
698dcdb6 13331
c521c494 13332else
698dcdb6
VZ
13333 echo "configure: failed program was:" >&5
13334 cat conftest.$ac_ext >&5
13335 rm -rf conftest*
13336
c521c494 13337 wx_cv_func_vsnprintf=no
698dcdb6 13338
10f2d63a 13339fi
698dcdb6
VZ
13340rm -f conftest*
13341
6232543b 13342fi
698dcdb6 13343rm -f conftest*
703e0a69 13344
1e487827 13345fi
698dcdb6
VZ
13346
13347echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 13348
9d8deca0 13349if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 13350 cat >> confdefs.h <<\EOF
9d8deca0
VZ
13351#define HAVE_VSNPRINTF 1
13352EOF
13353
13354else
698dcdb6 13355 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
13356fi
13357
698dcdb6 13358echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
1a4f0015 13359echo "configure:13360: checking for vsscanf" >&5
698dcdb6
VZ
13360if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13361 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13362else
698dcdb6
VZ
13363
13364 cat > conftest.$ac_ext <<EOF
1a4f0015 13365#line 13366 "configure"
10f2d63a 13366#include "confdefs.h"
10f2d63a 13367
f6bcfd97
BP
13368 #include <stdio.h>
13369 #include <stdarg.h>
698dcdb6
VZ
13370
13371int main() {
10f2d63a 13372
f6bcfd97 13373 int wx_test_vsscanf(const char *, ...);
10f2d63a 13374
f6bcfd97
BP
13375 wx_test_vsscanf("%d");
13376 return 0;
10f2d63a
VZ
13377 }
13378
f6bcfd97 13379 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 13380 {
f6bcfd97
BP
13381 va_list argp;
13382 va_start(argp, fmt);
13383 vsscanf("42", fmt, argp);
13384 va_end(argp);
698dcdb6
VZ
13385
13386; return 0; }
13387EOF
1a4f0015 13388if { (eval echo configure:13389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13389 rm -rf conftest*
13390
f6bcfd97 13391 wx_cv_func_vsscanf=yes
698dcdb6 13392
10f2d63a 13393else
698dcdb6
VZ
13394 echo "configure: failed program was:" >&5
13395 cat conftest.$ac_ext >&5
13396 rm -rf conftest*
13397
f6bcfd97 13398 wx_cv_func_vsscanf=no
698dcdb6 13399
6232543b 13400fi
698dcdb6 13401rm -f conftest*
703e0a69 13402
1e487827 13403fi
698dcdb6
VZ
13404
13405echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 13406
9d8deca0 13407if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 13408 cat >> confdefs.h <<\EOF
9d8deca0
VZ
13409#define HAVE_VSSCANF 1
13410EOF
13411
13412fi
13413
95c8801c
VS
13414if test "$TOOLKIT" != "MSW"; then
13415
13416
13417
698dcdb6
VZ
13418ac_ext=C
13419# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13420ac_cpp='$CXXCPP $CPPFLAGS'
13421ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13422ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13423cross_compiling=$ac_cv_prog_cxx_cross
13424
13425echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
1a4f0015 13426echo "configure:13427: checking if iconv() takes char**" >&5
698dcdb6
VZ
13427if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
13428 echo $ac_n "(cached) $ac_c" 1>&6
13429else
13430
13431 cat > conftest.$ac_ext <<EOF
1a4f0015 13432#line 13433 "configure"
95c8801c
VS
13433#include "confdefs.h"
13434#include <iconv.h>
698dcdb6 13435int main() {
95c8801c
VS
13436
13437 char **inbuf, **outbuf;
19af3b06
VZ
13438 iconv_t cd;
13439 size_t insz, outsz;
13440 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
13441
13442; return 0; }
13443EOF
1a4f0015 13444if { (eval echo configure:13445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 13445 rm -rf conftest*
95c8801c
VS
13446 wx_cv_iconv_takes_char=yes
13447else
698dcdb6
VZ
13448 echo "configure: failed program was:" >&5
13449 cat conftest.$ac_ext >&5
13450 rm -rf conftest*
13451 wx_cv_iconv_takes_char=no
95c8801c 13452fi
698dcdb6 13453rm -f conftest*
95c8801c
VS
13454
13455fi
698dcdb6
VZ
13456
13457echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 13458ac_ext=c
698dcdb6 13459# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 13460ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13461ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13462ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13463cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 13464
95c8801c 13465if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 13466 cat >> confdefs.h <<\EOF
95c8801c
VS
13467#define WX_ICONV_TAKES_CHAR 1
13468EOF
13469
13470fi
10f2d63a 13471
1e487827 13472
698dcdb6
VZ
13473if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13474 for ac_func in sigaction
eb4efbdc 13475do
698dcdb6 13476echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 13477echo "configure:13478: checking for $ac_func" >&5
698dcdb6
VZ
13478if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13479 echo $ac_n "(cached) $ac_c" 1>&6
13480else
13481 cat > conftest.$ac_ext <<EOF
1a4f0015 13482#line 13483 "configure"
eb4efbdc
VZ
13483#include "confdefs.h"
13484/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13485 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
13486#include <assert.h>
13487/* Override any gcc2 internal prototype to avoid an error. */
13488/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13489 builtin and then its argument prototype would still apply. */
13490char $ac_func();
13491
13492int main() {
eb4efbdc
VZ
13493
13494/* The GNU C library defines this for functions which it implements
13495 to always fail with ENOSYS. Some functions are actually named
13496 something starting with __ and the normal name is an alias. */
13497#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13498choke me
13499#else
698dcdb6 13500$ac_func();
eb4efbdc
VZ
13501#endif
13502
698dcdb6 13503; return 0; }
eb4efbdc 13504EOF
1a4f0015 13505if { (eval echo configure:13506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13506 rm -rf conftest*
13507 eval "ac_cv_func_$ac_func=yes"
13508else
13509 echo "configure: failed program was:" >&5
13510 cat conftest.$ac_ext >&5
13511 rm -rf conftest*
13512 eval "ac_cv_func_$ac_func=no"
13513fi
13514rm -f conftest*
13515fi
eb4efbdc 13516
698dcdb6
VZ
13517if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13518 echo "$ac_t""yes" 1>&6
13519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13520 cat >> confdefs.h <<EOF
13521#define $ac_tr_func 1
13522EOF
13523
13524else
13525 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
13526fi
13527done
13528
698dcdb6 13529
eb4efbdc 13530 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 13531 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
13532 wxUSE_ON_FATAL_EXCEPTION=no
13533 fi
f6bcfd97
BP
13534
13535 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
13536
13537 ac_ext=C
13538# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 13539ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13540ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13541ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13542cross_compiling=$ac_cv_prog_cxx_cross
6232543b 13543
1e487827 13544
698dcdb6 13545 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
1a4f0015 13546echo "configure:13547: checking for sa_handler type" >&5
698dcdb6
VZ
13547if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13548 echo $ac_n "(cached) $ac_c" 1>&6
13549else
13550
13551 cat > conftest.$ac_ext <<EOF
1a4f0015 13552#line 13553 "configure"
f6bcfd97
BP
13553#include "confdefs.h"
13554#include <signal.h>
698dcdb6 13555int main() {
f6bcfd97
BP
13556
13557 extern void testSigHandler(int);
13558
13559 struct sigaction sa;
13560 sa.sa_handler = testSigHandler;
698dcdb6
VZ
13561
13562; return 0; }
13563EOF
1a4f0015 13564if { (eval echo configure:13565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13565 rm -rf conftest*
13566
f6bcfd97 13567 wx_cv_type_sa_handler=int
698dcdb6 13568
f6bcfd97 13569else
698dcdb6
VZ
13570 echo "configure: failed program was:" >&5
13571 cat conftest.$ac_ext >&5
13572 rm -rf conftest*
13573
f6bcfd97 13574 wx_cv_type_sa_handler=void
698dcdb6 13575
6232543b 13576fi
698dcdb6
VZ
13577rm -f conftest*
13578
1e487827 13579fi
698dcdb6
VZ
13580
13581echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
13582
13583 ac_ext=c
698dcdb6 13584# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 13585ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13586ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13587ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13588cross_compiling=$ac_cv_prog_cc_cross
13589
703e0a69 13590
698dcdb6 13591 cat >> confdefs.h <<EOF
f6bcfd97
BP
13592#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13593EOF
13594
13595 fi
eb4efbdc
VZ
13596fi
13597
10f2d63a
VZ
13598for ac_func in vfork
13599do
698dcdb6 13600echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 13601echo "configure:13602: checking for $ac_func" >&5
698dcdb6
VZ
13602if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13603 echo $ac_n "(cached) $ac_c" 1>&6
13604else
13605 cat > conftest.$ac_ext <<EOF
1a4f0015 13606#line 13607 "configure"
10f2d63a
VZ
13607#include "confdefs.h"
13608/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13609 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13610#include <assert.h>
13611/* Override any gcc2 internal prototype to avoid an error. */
13612/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13613 builtin and then its argument prototype would still apply. */
13614char $ac_func();
13615
13616int main() {
10f2d63a
VZ
13617
13618/* The GNU C library defines this for functions which it implements
13619 to always fail with ENOSYS. Some functions are actually named
13620 something starting with __ and the normal name is an alias. */
13621#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13622choke me
13623#else
698dcdb6 13624$ac_func();
10f2d63a
VZ
13625#endif
13626
698dcdb6 13627; return 0; }
10f2d63a 13628EOF
1a4f0015 13629if { (eval echo configure:13630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13630 rm -rf conftest*
13631 eval "ac_cv_func_$ac_func=yes"
13632else
13633 echo "configure: failed program was:" >&5
13634 cat conftest.$ac_ext >&5
13635 rm -rf conftest*
13636 eval "ac_cv_func_$ac_func=no"
13637fi
13638rm -f conftest*
13639fi
270a909e 13640
698dcdb6
VZ
13641if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13642 echo "$ac_t""yes" 1>&6
13643 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13644 cat >> confdefs.h <<EOF
13645#define $ac_tr_func 1
13646EOF
13647
13648else
13649 echo "$ac_t""no" 1>&6
270a909e
VZ
13650fi
13651done
13652
1e487827 13653
52e8b690 13654echo $ac_n "checking for statfs""... $ac_c" 1>&6
1a4f0015 13655echo "configure:13656: checking for statfs" >&5
52e8b690
VZ
13656if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
13657 echo $ac_n "(cached) $ac_c" 1>&6
13658else
13659 cat > conftest.$ac_ext <<EOF
1a4f0015 13660#line 13661 "configure"
52e8b690
VZ
13661#include "confdefs.h"
13662
d08b457b
GD
13663 #ifdef __DARWIN__
13664 #include <sys/param.h>
13665 #include <sys/mount.h>
13666 #else
13667 #include <sys/vfs.h>
13668 #endif
52e8b690
VZ
13669
13670int main() {
13671
13672 long l;
13673 struct statfs fs;
13674 statfs("/", &fs);
13675 l = fs.f_bsize;
13676 l += fs.f_blocks;
13677 l += fs.f_bavail;
13678
13679; return 0; }
13680EOF
1a4f0015 13681if { (eval echo configure:13682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
52e8b690
VZ
13682 rm -rf conftest*
13683
13684 wx_cv_func_statfs=yes
13685
13686else
13687 echo "configure: failed program was:" >&5
13688 cat conftest.$ac_ext >&5
13689 rm -rf conftest*
13690
13691 wx_cv_func_statfs=no
13692
13693
13694fi
13695rm -f conftest*
13696
13697fi
13698
13699echo "$ac_t""$wx_cv_func_statfs" 1>&6
13700
13701if test "$wx_cv_func_statfs" = "yes"; then
13702 cat >> confdefs.h <<\EOF
13703#define HAVE_STATFS 1
13704EOF
13705
13706else
13707 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
13708fi
13709
698dcdb6
VZ
13710if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13711 for ac_func in fcntl flock
4f3c5f06 13712do
698dcdb6 13713echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 13714echo "configure:13715: checking for $ac_func" >&5
698dcdb6
VZ
13715if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13716 echo $ac_n "(cached) $ac_c" 1>&6
13717else
13718 cat > conftest.$ac_ext <<EOF
1a4f0015 13719#line 13720 "configure"
4f3c5f06
VZ
13720#include "confdefs.h"
13721/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13722 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
13723#include <assert.h>
13724/* Override any gcc2 internal prototype to avoid an error. */
13725/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13726 builtin and then its argument prototype would still apply. */
13727char $ac_func();
13728
13729int main() {
4f3c5f06
VZ
13730
13731/* The GNU C library defines this for functions which it implements
13732 to always fail with ENOSYS. Some functions are actually named
13733 something starting with __ and the normal name is an alias. */
13734#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13735choke me
13736#else
698dcdb6 13737$ac_func();
4f3c5f06
VZ
13738#endif
13739
698dcdb6
VZ
13740; return 0; }
13741EOF
1a4f0015 13742if { (eval echo configure:13743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13743 rm -rf conftest*
13744 eval "ac_cv_func_$ac_func=yes"
13745else
13746 echo "configure: failed program was:" >&5
13747 cat conftest.$ac_ext >&5
13748 rm -rf conftest*
13749 eval "ac_cv_func_$ac_func=no"
13750fi
13751rm -f conftest*
13752fi
13753
13754if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13755 echo "$ac_t""yes" 1>&6
13756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13757 cat >> confdefs.h <<EOF
13758#define $ac_tr_func 1
4f3c5f06
VZ
13759EOF
13760 break
698dcdb6
VZ
13761else
13762 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
13763fi
13764done
13765
698dcdb6 13766
4f3c5f06 13767 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 13768 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
13769 wxUSE_SNGLINST_CHECKER=no
13770 fi
13771fi
13772
270a909e
VZ
13773for ac_func in timegm
13774do
698dcdb6 13775echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 13776echo "configure:13777: checking for $ac_func" >&5
698dcdb6
VZ
13777if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13778 echo $ac_n "(cached) $ac_c" 1>&6
13779else
13780 cat > conftest.$ac_ext <<EOF
1a4f0015 13781#line 13782 "configure"
270a909e
VZ
13782#include "confdefs.h"
13783/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13784 which can conflict with char $ac_func(); below. */
270a909e
VZ
13785#include <assert.h>
13786/* Override any gcc2 internal prototype to avoid an error. */
13787/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13788 builtin and then its argument prototype would still apply. */
13789char $ac_func();
13790
13791int main() {
270a909e
VZ
13792
13793/* The GNU C library defines this for functions which it implements
13794 to always fail with ENOSYS. Some functions are actually named
13795 something starting with __ and the normal name is an alias. */
13796#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13797choke me
13798#else
698dcdb6 13799$ac_func();
270a909e
VZ
13800#endif
13801
698dcdb6 13802; return 0; }
270a909e 13803EOF
1a4f0015 13804if { (eval echo configure:13805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13805 rm -rf conftest*
13806 eval "ac_cv_func_$ac_func=yes"
13807else
13808 echo "configure: failed program was:" >&5
13809 cat conftest.$ac_ext >&5
13810 rm -rf conftest*
13811 eval "ac_cv_func_$ac_func=no"
13812fi
13813rm -f conftest*
13814fi
10f2d63a 13815
698dcdb6
VZ
13816if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13817 echo "$ac_t""yes" 1>&6
13818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13819 cat >> confdefs.h <<EOF
13820#define $ac_tr_func 1
13821EOF
13822
13823else
13824 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13825fi
13826done
13827
698dcdb6 13828
8fd0d89b
VZ
13829for ac_func in putenv setenv
13830do
698dcdb6 13831echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 13832echo "configure:13833: checking for $ac_func" >&5
698dcdb6
VZ
13833if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13834 echo $ac_n "(cached) $ac_c" 1>&6
13835else
13836 cat > conftest.$ac_ext <<EOF
1a4f0015 13837#line 13838 "configure"
8fd0d89b
VZ
13838#include "confdefs.h"
13839/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13840 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
13841#include <assert.h>
13842/* Override any gcc2 internal prototype to avoid an error. */
13843/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13844 builtin and then its argument prototype would still apply. */
13845char $ac_func();
13846
13847int main() {
8fd0d89b
VZ
13848
13849/* The GNU C library defines this for functions which it implements
13850 to always fail with ENOSYS. Some functions are actually named
13851 something starting with __ and the normal name is an alias. */
13852#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13853choke me
13854#else
698dcdb6 13855$ac_func();
8fd0d89b
VZ
13856#endif
13857
698dcdb6
VZ
13858; return 0; }
13859EOF
1a4f0015 13860if { (eval echo configure:13861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13861 rm -rf conftest*
13862 eval "ac_cv_func_$ac_func=yes"
13863else
13864 echo "configure: failed program was:" >&5
13865 cat conftest.$ac_ext >&5
13866 rm -rf conftest*
13867 eval "ac_cv_func_$ac_func=no"
13868fi
13869rm -f conftest*
13870fi
13871
13872if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13873 echo "$ac_t""yes" 1>&6
13874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13875 cat >> confdefs.h <<EOF
13876#define $ac_tr_func 1
8fd0d89b
VZ
13877EOF
13878 break
698dcdb6
VZ
13879else
13880 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
13881fi
13882done
13883
698dcdb6 13884
b12915c1
VZ
13885HAVE_SOME_SLEEP_FUNC=0
13886if test "$USE_BEOS" = 1; then
698dcdb6 13887 cat >> confdefs.h <<\EOF
b12915c1
VZ
13888#define HAVE_SLEEP 1
13889EOF
13890
13891 HAVE_SOME_SLEEP_FUNC=1
13892fi
13893
f11bdd03 13894if test "$USE_DARWIN" = 1; then
698dcdb6 13895 cat >> confdefs.h <<\EOF
b4085ce6
GD
13896#define HAVE_USLEEP 1
13897EOF
13898
13899 HAVE_SOME_SLEEP_FUNC=1
13900fi
13901
b12915c1
VZ
13902if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13903 POSIX4_LINK=
698dcdb6 13904 for ac_func in nanosleep
10f2d63a 13905do
698dcdb6 13906echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 13907echo "configure:13908: checking for $ac_func" >&5
698dcdb6
VZ
13908if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13909 echo $ac_n "(cached) $ac_c" 1>&6
13910else
13911 cat > conftest.$ac_ext <<EOF
1a4f0015 13912#line 13913 "configure"
10f2d63a
VZ
13913#include "confdefs.h"
13914/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13915 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13916#include <assert.h>
13917/* Override any gcc2 internal prototype to avoid an error. */
13918/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13919 builtin and then its argument prototype would still apply. */
13920char $ac_func();
13921
13922int main() {
10f2d63a
VZ
13923
13924/* The GNU C library defines this for functions which it implements
13925 to always fail with ENOSYS. Some functions are actually named
13926 something starting with __ and the normal name is an alias. */
13927#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13928choke me
13929#else
698dcdb6 13930$ac_func();
10f2d63a
VZ
13931#endif
13932
698dcdb6
VZ
13933; return 0; }
13934EOF
1a4f0015 13935if { (eval echo configure:13936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13936 rm -rf conftest*
13937 eval "ac_cv_func_$ac_func=yes"
13938else
13939 echo "configure: failed program was:" >&5
13940 cat conftest.$ac_ext >&5
13941 rm -rf conftest*
13942 eval "ac_cv_func_$ac_func=no"
13943fi
13944rm -f conftest*
13945fi
13946
13947if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13948 echo "$ac_t""yes" 1>&6
13949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13950 cat >> confdefs.h <<EOF
13951#define $ac_tr_func 1
13952EOF
13953 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13954#define HAVE_NANOSLEEP 1
13955EOF
13956
13957else
698dcdb6
VZ
13958 echo "$ac_t""no" 1>&6
13959echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1a4f0015 13960echo "configure:13961: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
13961ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13962if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13963 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13964else
698dcdb6 13965 ac_save_LIBS="$LIBS"
10f2d63a 13966LIBS="-lposix4 $LIBS"
698dcdb6 13967cat > conftest.$ac_ext <<EOF
1a4f0015 13968#line 13969 "configure"
10f2d63a
VZ
13969#include "confdefs.h"
13970/* Override any gcc2 internal prototype to avoid an error. */
13971/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13972 builtin and then its argument prototype would still apply. */
13973char nanosleep();
13974
13975int main() {
13976nanosleep()
13977; return 0; }
13978EOF
1a4f0015 13979if { (eval echo configure:13980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13980 rm -rf conftest*
13981 eval "ac_cv_lib_$ac_lib_var=yes"
13982else
13983 echo "configure: failed program was:" >&5
13984 cat conftest.$ac_ext >&5
13985 rm -rf conftest*
13986 eval "ac_cv_lib_$ac_lib_var=no"
13987fi
13988rm -f conftest*
13989LIBS="$ac_save_LIBS"
13990
13991fi
13992if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13993 echo "$ac_t""yes" 1>&6
13994
13995 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13996#define HAVE_NANOSLEEP 1
13997EOF
13998
b12915c1 13999 POSIX4_LINK="-lposix4"
698dcdb6 14000
10f2d63a 14001else
698dcdb6 14002 echo "$ac_t""no" 1>&6
10f2d63a 14003
698dcdb6 14004 for ac_func in usleep
10f2d63a 14005do
698dcdb6 14006echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 14007echo "configure:14008: checking for $ac_func" >&5
698dcdb6
VZ
14008if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14009 echo $ac_n "(cached) $ac_c" 1>&6
14010else
14011 cat > conftest.$ac_ext <<EOF
1a4f0015 14012#line 14013 "configure"
10f2d63a
VZ
14013#include "confdefs.h"
14014/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14015 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14016#include <assert.h>
14017/* Override any gcc2 internal prototype to avoid an error. */
14018/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14019 builtin and then its argument prototype would still apply. */
14020char $ac_func();
14021
14022int main() {
10f2d63a
VZ
14023
14024/* The GNU C library defines this for functions which it implements
14025 to always fail with ENOSYS. Some functions are actually named
14026 something starting with __ and the normal name is an alias. */
14027#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14028choke me
14029#else
698dcdb6 14030$ac_func();
10f2d63a
VZ
14031#endif
14032
698dcdb6
VZ
14033; return 0; }
14034EOF
1a4f0015 14035if { (eval echo configure:14036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14036 rm -rf conftest*
14037 eval "ac_cv_func_$ac_func=yes"
14038else
14039 echo "configure: failed program was:" >&5
14040 cat conftest.$ac_ext >&5
14041 rm -rf conftest*
14042 eval "ac_cv_func_$ac_func=no"
14043fi
14044rm -f conftest*
14045fi
14046
14047if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14048 echo "$ac_t""yes" 1>&6
14049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14050 cat >> confdefs.h <<EOF
14051#define $ac_tr_func 1
14052EOF
14053 cat >> confdefs.h <<\EOF
b4085ce6
GD
14054#define HAVE_USLEEP 1
14055EOF
14056
10f2d63a 14057else
698dcdb6
VZ
14058 echo "$ac_t""no" 1>&6
14059echo "configure: warning: wxSleep() function will not work" 1>&2
14060
10f2d63a
VZ
14061fi
14062done
14063
698dcdb6
VZ
14064
14065
10f2d63a
VZ
14066fi
14067
698dcdb6
VZ
14068
14069
10f2d63a
VZ
14070fi
14071done
14072
b12915c1 14073fi
10f2d63a
VZ
14074
14075for ac_func in uname gethostname
14076do
698dcdb6 14077echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 14078echo "configure:14079: checking for $ac_func" >&5
698dcdb6
VZ
14079if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14080 echo $ac_n "(cached) $ac_c" 1>&6
14081else
14082 cat > conftest.$ac_ext <<EOF
1a4f0015 14083#line 14084 "configure"
10f2d63a
VZ
14084#include "confdefs.h"
14085/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14086 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14087#include <assert.h>
14088/* Override any gcc2 internal prototype to avoid an error. */
14089/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14090 builtin and then its argument prototype would still apply. */
14091char $ac_func();
14092
14093int main() {
10f2d63a
VZ
14094
14095/* The GNU C library defines this for functions which it implements
14096 to always fail with ENOSYS. Some functions are actually named
14097 something starting with __ and the normal name is an alias. */
14098#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14099choke me
14100#else
698dcdb6 14101$ac_func();
10f2d63a
VZ
14102#endif
14103
698dcdb6
VZ
14104; return 0; }
14105EOF
1a4f0015 14106if { (eval echo configure:14107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14107 rm -rf conftest*
14108 eval "ac_cv_func_$ac_func=yes"
14109else
14110 echo "configure: failed program was:" >&5
14111 cat conftest.$ac_ext >&5
14112 rm -rf conftest*
14113 eval "ac_cv_func_$ac_func=no"
14114fi
14115rm -f conftest*
14116fi
14117
14118if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14119 echo "$ac_t""yes" 1>&6
14120 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14121 cat >> confdefs.h <<EOF
14122#define $ac_tr_func 1
10f2d63a
VZ
14123EOF
14124 break
698dcdb6
VZ
14125else
14126 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14127fi
14128done
14129
698dcdb6
VZ
14130
14131
14132ac_ext=C
14133# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 14134ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
14135ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14136ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14137cross_compiling=$ac_cv_prog_cxx_cross
14138
6098c7f9 14139
10f2d63a
VZ
14140for ac_func in strtok_r
14141do
698dcdb6 14142echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 14143echo "configure:14144: checking for $ac_func" >&5
698dcdb6
VZ
14144if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14145 echo $ac_n "(cached) $ac_c" 1>&6
14146else
14147 cat > conftest.$ac_ext <<EOF
1a4f0015 14148#line 14149 "configure"
10f2d63a
VZ
14149#include "confdefs.h"
14150/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14151 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14152#include <assert.h>
14153/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
14154#ifdef __cplusplus
14155extern "C"
14156#endif
10f2d63a 14157/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14158 builtin and then its argument prototype would still apply. */
14159char $ac_func();
14160
14161int main() {
10f2d63a
VZ
14162
14163/* The GNU C library defines this for functions which it implements
14164 to always fail with ENOSYS. Some functions are actually named
14165 something starting with __ and the normal name is an alias. */
14166#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14167choke me
14168#else
698dcdb6 14169$ac_func();
10f2d63a
VZ
14170#endif
14171
698dcdb6 14172; return 0; }
10f2d63a 14173EOF
1a4f0015 14174if { (eval echo configure:14175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14175 rm -rf conftest*
14176 eval "ac_cv_func_$ac_func=yes"
14177else
14178 echo "configure: failed program was:" >&5
14179 cat conftest.$ac_ext >&5
14180 rm -rf conftest*
14181 eval "ac_cv_func_$ac_func=no"
14182fi
14183rm -f conftest*
14184fi
10f2d63a 14185
698dcdb6
VZ
14186if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14187 echo "$ac_t""yes" 1>&6
14188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14189 cat >> confdefs.h <<EOF
14190#define $ac_tr_func 1
14191EOF
14192
14193else
14194 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14195fi
14196done
14197
698dcdb6 14198
6098c7f9 14199ac_ext=c
698dcdb6 14200# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 14201ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
14202ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14203ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14204cross_compiling=$ac_cv_prog_cc_cross
6232543b 14205
1e487827 14206
698dcdb6 14207INET_LINK=
10f2d63a
VZ
14208for ac_func in inet_addr
14209do
698dcdb6 14210echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 14211echo "configure:14212: checking for $ac_func" >&5
698dcdb6
VZ
14212if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14213 echo $ac_n "(cached) $ac_c" 1>&6
14214else
14215 cat > conftest.$ac_ext <<EOF
1a4f0015 14216#line 14217 "configure"
10f2d63a
VZ
14217#include "confdefs.h"
14218/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
14219 which can conflict with char $ac_func(); below. */
14220#include <assert.h>
14221/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 14222/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14223 builtin and then its argument prototype would still apply. */
14224char $ac_func();
14225
14226int main() {
10f2d63a
VZ
14227
14228/* The GNU C library defines this for functions which it implements
14229 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
14230 something starting with __ and the normal name is an alias. */
14231#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14232choke me
14233#else
698dcdb6 14234$ac_func();
1e487827 14235#endif
703e0a69 14236
698dcdb6
VZ
14237; return 0; }
14238EOF
1a4f0015 14239if { (eval echo configure:14240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14240 rm -rf conftest*
14241 eval "ac_cv_func_$ac_func=yes"
14242else
14243 echo "configure: failed program was:" >&5
14244 cat conftest.$ac_ext >&5
14245 rm -rf conftest*
14246 eval "ac_cv_func_$ac_func=no"
14247fi
14248rm -f conftest*
14249fi
14250
14251if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14252 echo "$ac_t""yes" 1>&6
14253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14254 cat >> confdefs.h <<EOF
14255#define $ac_tr_func 1
14256EOF
14257 cat >> confdefs.h <<\EOF
c63c7106
VZ
14258#define HAVE_INET_ADDR 1
14259EOF
14260
10f2d63a 14261else
698dcdb6
VZ
14262 echo "$ac_t""no" 1>&6
14263echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
1a4f0015 14264echo "configure:14265: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
14265ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
14266if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14267 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14268else
698dcdb6 14269 ac_save_LIBS="$LIBS"
c63c7106 14270LIBS="-lnsl $LIBS"
698dcdb6 14271cat > conftest.$ac_ext <<EOF
1a4f0015 14272#line 14273 "configure"
c63c7106
VZ
14273#include "confdefs.h"
14274/* Override any gcc2 internal prototype to avoid an error. */
14275/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14276 builtin and then its argument prototype would still apply. */
14277char inet_addr();
14278
14279int main() {
14280inet_addr()
14281; return 0; }
14282EOF
1a4f0015 14283if { (eval echo configure:14284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14284 rm -rf conftest*
14285 eval "ac_cv_lib_$ac_lib_var=yes"
14286else
14287 echo "configure: failed program was:" >&5
14288 cat conftest.$ac_ext >&5
14289 rm -rf conftest*
14290 eval "ac_cv_lib_$ac_lib_var=no"
14291fi
14292rm -f conftest*
14293LIBS="$ac_save_LIBS"
14294
14295fi
14296if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14297 echo "$ac_t""yes" 1>&6
c63c7106
VZ
14298 INET_LINK="nsl"
14299else
698dcdb6
VZ
14300 echo "$ac_t""no" 1>&6
14301echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
1a4f0015 14302echo "configure:14303: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
14303ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
14304if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14305 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14306else
698dcdb6 14307 ac_save_LIBS="$LIBS"
c63c7106 14308LIBS="-lresolv $LIBS"
698dcdb6 14309cat > conftest.$ac_ext <<EOF
1a4f0015 14310#line 14311 "configure"
c63c7106
VZ
14311#include "confdefs.h"
14312/* Override any gcc2 internal prototype to avoid an error. */
14313/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14314 builtin and then its argument prototype would still apply. */
14315char inet_addr();
14316
14317int main() {
14318inet_addr()
14319; return 0; }
14320EOF
1a4f0015 14321if { (eval echo configure:14322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14322 rm -rf conftest*
14323 eval "ac_cv_lib_$ac_lib_var=yes"
14324else
14325 echo "configure: failed program was:" >&5
14326 cat conftest.$ac_ext >&5
14327 rm -rf conftest*
14328 eval "ac_cv_lib_$ac_lib_var=no"
14329fi
14330rm -f conftest*
14331LIBS="$ac_save_LIBS"
c63c7106 14332
6232543b 14333fi
698dcdb6
VZ
14334if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14335 echo "$ac_t""yes" 1>&6
14336 INET_LINK="resolv"
14337
14338else
14339 echo "$ac_t""no" 1>&6
14340fi
c63c7106 14341
698dcdb6 14342
1e487827 14343fi
703e0a69 14344
698dcdb6
VZ
14345
14346
10f2d63a
VZ
14347fi
14348done
14349
698dcdb6 14350
10f2d63a
VZ
14351for ac_func in inet_aton
14352do
698dcdb6 14353echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 14354echo "configure:14355: checking for $ac_func" >&5
698dcdb6
VZ
14355if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14356 echo $ac_n "(cached) $ac_c" 1>&6
14357else
14358 cat > conftest.$ac_ext <<EOF
1a4f0015 14359#line 14360 "configure"
10f2d63a
VZ
14360#include "confdefs.h"
14361/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14362 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14363#include <assert.h>
14364/* Override any gcc2 internal prototype to avoid an error. */
14365/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14366 builtin and then its argument prototype would still apply. */
14367char $ac_func();
14368
14369int main() {
10f2d63a
VZ
14370
14371/* The GNU C library defines this for functions which it implements
14372 to always fail with ENOSYS. Some functions are actually named
14373 something starting with __ and the normal name is an alias. */
14374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14375choke me
14376#else
698dcdb6 14377$ac_func();
10f2d63a
VZ
14378#endif
14379
698dcdb6
VZ
14380; return 0; }
14381EOF
1a4f0015 14382if { (eval echo configure:14383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14383 rm -rf conftest*
14384 eval "ac_cv_func_$ac_func=yes"
14385else
14386 echo "configure: failed program was:" >&5
14387 cat conftest.$ac_ext >&5
14388 rm -rf conftest*
14389 eval "ac_cv_func_$ac_func=no"
14390fi
14391rm -f conftest*
14392fi
14393
14394if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14395 echo "$ac_t""yes" 1>&6
14396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14397 cat >> confdefs.h <<EOF
14398#define $ac_tr_func 1
14399EOF
14400 cat >> confdefs.h <<\EOF
c63c7106
VZ
14401#define HAVE_INET_ATON 1
14402EOF
14403
10f2d63a 14404else
698dcdb6
VZ
14405 echo "$ac_t""no" 1>&6
14406 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
1a4f0015 14407echo "configure:14408: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
14408ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
14409if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14410 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14411else
698dcdb6 14412 ac_save_LIBS="$LIBS"
c63c7106 14413LIBS="-l$INET_LINK $LIBS"
698dcdb6 14414cat > conftest.$ac_ext <<EOF
1a4f0015 14415#line 14416 "configure"
10f2d63a
VZ
14416#include "confdefs.h"
14417/* Override any gcc2 internal prototype to avoid an error. */
14418/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14419 builtin and then its argument prototype would still apply. */
14420char inet_aton();
14421
14422int main() {
14423inet_aton()
14424; return 0; }
14425EOF
1a4f0015 14426if { (eval echo configure:14427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14427 rm -rf conftest*
14428 eval "ac_cv_lib_$ac_lib_var=yes"
14429else
14430 echo "configure: failed program was:" >&5
14431 cat conftest.$ac_ext >&5
14432 rm -rf conftest*
14433 eval "ac_cv_lib_$ac_lib_var=no"
14434fi
14435rm -f conftest*
14436LIBS="$ac_save_LIBS"
14437
14438fi
14439if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14440 echo "$ac_t""yes" 1>&6
14441 cat >> confdefs.h <<\EOF
c63c7106 14442#define HAVE_INET_ATON 1
10f2d63a
VZ
14443EOF
14444
698dcdb6
VZ
14445else
14446 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14447fi
14448
698dcdb6 14449
c63c7106
VZ
14450fi
14451done
14452
698dcdb6 14453
c63c7106 14454if test "x$INET_LINK" != "x"; then
698dcdb6 14455 cat >> confdefs.h <<\EOF
c63c7106
VZ
14456#define HAVE_INET_ADDR 1
14457EOF
14458
14459 INET_LINK="-l$INET_LINK"
14460fi
10f2d63a
VZ
14461
14462fi
14463
698dcdb6
VZ
14464
14465cat > confcache <<\EOF
10f2d63a
VZ
14466# This file is a shell script that caches the results of configure
14467# tests run on this system so they can be shared between configure
698dcdb6
VZ
14468# scripts and configure runs. It is not useful on other systems.
14469# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 14470#
698dcdb6
VZ
14471# By default, configure uses ./config.cache as the cache file,
14472# creating it if it does not exist already. You can give configure
14473# the --cache-file=FILE option to use a different cache file; that is
14474# what configure does when it calls configure scripts in
14475# subdirectories, so they share the cache.
14476# Giving --cache-file=/dev/null disables caching, for debugging configure.
14477# config.status only pays attention to the cache file if you give it the
14478# --recheck option to rerun configure.
10f2d63a 14479#
698dcdb6 14480EOF
10f2d63a
VZ
14481# The following way of writing the cache mishandles newlines in values,
14482# but we know of no workaround that is simple, portable, and efficient.
14483# So, don't put newlines in cache variables' values.
14484# Ultrix sh set writes to stderr and can't be redirected directly,
14485# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
14486(set) 2>&1 |
14487 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14488 *ac_space=\ *)
14489 # `set' does not quote correctly, so add quotes (double-quote substitution
14490 # turns \\\\ into \\, and sed turns \\ into \).
14491 sed -n \
14492 -e "s/'/'\\\\''/g" \
14493 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14494 ;;
14495 *)
14496 # `set' quotes correctly as required by POSIX, so do not add quotes.
14497 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14498 ;;
14499 esac >> confcache
14500if cmp -s $cache_file confcache; then
14501 :
14502else
10f2d63a 14503 if test -w $cache_file; then
698dcdb6
VZ
14504 echo "updating cache $cache_file"
14505 cat confcache > $cache_file
10f2d63a
VZ
14506 else
14507 echo "not updating unwritable cache $cache_file"
14508 fi
14509fi
14510rm -f confcache
14511
698dcdb6
VZ
14512
14513
b089607b 14514if test "$TOOLKIT" != "MSW"; then
10f2d63a 14515
698dcdb6 14516
3a922bb4
RL
14517THREADS_LINK=
14518THREADS_OBJ=
14519CODE_GEN_FLAGS=
14520CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
14521
14522if test "$wxUSE_THREADS" = "yes" ; then
14523 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 14524 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 14525 wxUSE_THREADS="no"
b12915c1 14526 elif test "$USE_BEOS" = 1; then
698dcdb6 14527 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 14528 wxUSE_THREADS="no"
10f2d63a
VZ
14529 fi
14530fi
14531
14532if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14533
186837b0 14534 if test "$USE_AIX" = 1; then
f6bcfd97
BP
14535 THREADS_LIB=pthreads
14536 else
14537 THREADS_LIB=pthread
14538 fi
14539
698dcdb6 14540 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
1a4f0015 14541echo "configure:14542: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
14542ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14543if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14544 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14545else
698dcdb6 14546 ac_save_LIBS="$LIBS"
f6bcfd97 14547LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 14548cat > conftest.$ac_ext <<EOF
1a4f0015 14549#line 14550 "configure"
10f2d63a
VZ
14550#include "confdefs.h"
14551/* Override any gcc2 internal prototype to avoid an error. */
14552/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14553 builtin and then its argument prototype would still apply. */
14554char pthread_create();
14555
14556int main() {
14557pthread_create()
14558; return 0; }
14559EOF
1a4f0015 14560if { (eval echo configure:14561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14561 rm -rf conftest*
14562 eval "ac_cv_lib_$ac_lib_var=yes"
14563else
14564 echo "configure: failed program was:" >&5
14565 cat conftest.$ac_ext >&5
14566 rm -rf conftest*
14567 eval "ac_cv_lib_$ac_lib_var=no"
14568fi
14569rm -f conftest*
14570LIBS="$ac_save_LIBS"
10f2d63a 14571
698dcdb6
VZ
14572fi
14573if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14574 echo "$ac_t""yes" 1>&6
14575
10f2d63a 14576 THREADS_OBJ="threadpsx.lo"
f6bcfd97 14577 THREADS_LINK=$THREADS_LIB
698dcdb6 14578
10f2d63a 14579else
698dcdb6 14580 echo "$ac_t""no" 1>&6
10f2d63a 14581
698dcdb6 14582 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
1a4f0015 14583echo "configure:14584: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
14584ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14585if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14586 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14587else
698dcdb6 14588 ac_save_LIBS="$LIBS"
10f2d63a 14589LIBS="-lc_r $LIBS"
698dcdb6 14590cat > conftest.$ac_ext <<EOF
1a4f0015 14591#line 14592 "configure"
10f2d63a
VZ
14592#include "confdefs.h"
14593/* Override any gcc2 internal prototype to avoid an error. */
14594/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14595 builtin and then its argument prototype would still apply. */
14596char pthread_create();
14597
14598int main() {
14599pthread_create()
14600; return 0; }
14601EOF
1a4f0015 14602if { (eval echo configure:14603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14603 rm -rf conftest*
14604 eval "ac_cv_lib_$ac_lib_var=yes"
14605else
14606 echo "configure: failed program was:" >&5
14607 cat conftest.$ac_ext >&5
14608 rm -rf conftest*
14609 eval "ac_cv_lib_$ac_lib_var=no"
14610fi
14611rm -f conftest*
14612LIBS="$ac_save_LIBS"
10f2d63a 14613
698dcdb6
VZ
14614fi
14615if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14616 echo "$ac_t""yes" 1>&6
14617
10f2d63a
VZ
14618 THREADS_OBJ="threadpsx.lo"
14619 THREADS_LINK="c_r"
698dcdb6 14620
10f2d63a 14621else
698dcdb6 14622 echo "$ac_t""no" 1>&6
10f2d63a 14623
698dcdb6
VZ
14624 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14625echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
1a4f0015 14626echo "configure:14627: checking for sys/prctl.h" >&5
698dcdb6
VZ
14627if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14628 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14629else
698dcdb6 14630 cat > conftest.$ac_ext <<EOF
1a4f0015 14631#line 14632 "configure"
10f2d63a
VZ
14632#include "confdefs.h"
14633#include <sys/prctl.h>
698dcdb6
VZ
14634EOF
14635ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 14636{ (eval echo configure:14637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14637ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14638if test -z "$ac_err"; then
14639 rm -rf conftest*
14640 eval "ac_cv_header_$ac_safe=yes"
1e487827 14641else
698dcdb6
VZ
14642 echo "$ac_err" >&5
14643 echo "configure: failed program was:" >&5
10f2d63a 14644 cat conftest.$ac_ext >&5
698dcdb6
VZ
14645 rm -rf conftest*
14646 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14647fi
698dcdb6 14648rm -f conftest*
10f2d63a 14649fi
698dcdb6
VZ
14650if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14651 echo "$ac_t""yes" 1>&6
14652
1f8ae82f 14653 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
14654
14655else
14656 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14657fi
14658
698dcdb6 14659
6232543b 14660fi
10f2d63a 14661
698dcdb6 14662
1e487827 14663fi
703e0a69 14664
698dcdb6 14665
10f2d63a
VZ
14666 if test -z "$THREADS_OBJ" ; then
14667 wxUSE_THREADS=no
698dcdb6 14668 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
14669 fi
14670fi
14671
14672if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14673 for ac_func in thr_setconcurrency
70846f0a 14674do
698dcdb6 14675echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 14676echo "configure:14677: checking for $ac_func" >&5
698dcdb6
VZ
14677if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14678 echo $ac_n "(cached) $ac_c" 1>&6
14679else
14680 cat > conftest.$ac_ext <<EOF
1a4f0015 14681#line 14682 "configure"
70846f0a
VZ
14682#include "confdefs.h"
14683/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14684 which can conflict with char $ac_func(); below. */
70846f0a
VZ
14685#include <assert.h>
14686/* Override any gcc2 internal prototype to avoid an error. */
14687/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14688 builtin and then its argument prototype would still apply. */
14689char $ac_func();
14690
14691int main() {
70846f0a
VZ
14692
14693/* The GNU C library defines this for functions which it implements
14694 to always fail with ENOSYS. Some functions are actually named
14695 something starting with __ and the normal name is an alias. */
14696#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14697choke me
14698#else
698dcdb6 14699$ac_func();
70846f0a
VZ
14700#endif
14701
698dcdb6 14702; return 0; }
70846f0a 14703EOF
1a4f0015 14704if { (eval echo configure:14705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14705 rm -rf conftest*
14706 eval "ac_cv_func_$ac_func=yes"
14707else
14708 echo "configure: failed program was:" >&5
14709 cat conftest.$ac_ext >&5
14710 rm -rf conftest*
14711 eval "ac_cv_func_$ac_func=no"
14712fi
14713rm -f conftest*
14714fi
70846f0a 14715
698dcdb6
VZ
14716if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14717 echo "$ac_t""yes" 1>&6
14718 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14719 cat >> confdefs.h <<EOF
14720#define $ac_tr_func 1
14721EOF
14722
14723else
14724 echo "$ac_t""no" 1>&6
70846f0a
VZ
14725fi
14726done
14727
698dcdb6
VZ
14728
14729
14730 for ac_hdr in sched.h
10f2d63a 14731do
698dcdb6
VZ
14732ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14733echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1a4f0015 14734echo "configure:14735: checking for $ac_hdr" >&5
698dcdb6
VZ
14735if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14736 echo $ac_n "(cached) $ac_c" 1>&6
14737else
14738 cat > conftest.$ac_ext <<EOF
1a4f0015 14739#line 14740 "configure"
10f2d63a 14740#include "confdefs.h"
698dcdb6
VZ
14741#include <$ac_hdr>
14742EOF
14743ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 14744{ (eval echo configure:14745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14745ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14746if test -z "$ac_err"; then
14747 rm -rf conftest*
14748 eval "ac_cv_header_$ac_safe=yes"
1e487827 14749else
698dcdb6
VZ
14750 echo "$ac_err" >&5
14751 echo "configure: failed program was:" >&5
10f2d63a 14752 cat conftest.$ac_ext >&5
698dcdb6
VZ
14753 rm -rf conftest*
14754 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14755fi
698dcdb6 14756rm -f conftest*
10f2d63a 14757fi
698dcdb6
VZ
14758if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14759 echo "$ac_t""yes" 1>&6
14760 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14761 cat >> confdefs.h <<EOF
14762#define $ac_tr_hdr 1
10f2d63a 14763EOF
698dcdb6
VZ
14764
14765else
14766 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14767fi
14768done
14769
698dcdb6
VZ
14770
14771 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
1a4f0015 14772echo "configure:14773: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
14773ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14774if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14775 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14776else
698dcdb6 14777 ac_save_LIBS="$LIBS"
10f2d63a 14778LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14779cat > conftest.$ac_ext <<EOF
1a4f0015 14780#line 14781 "configure"
10f2d63a
VZ
14781#include "confdefs.h"
14782/* Override any gcc2 internal prototype to avoid an error. */
14783/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14784 builtin and then its argument prototype would still apply. */
14785char sched_yield();
14786
14787int main() {
14788sched_yield()
14789; return 0; }
14790EOF
1a4f0015 14791if { (eval echo configure:14792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14792 rm -rf conftest*
14793 eval "ac_cv_lib_$ac_lib_var=yes"
14794else
14795 echo "configure: failed program was:" >&5
14796 cat conftest.$ac_ext >&5
14797 rm -rf conftest*
14798 eval "ac_cv_lib_$ac_lib_var=no"
14799fi
14800rm -f conftest*
14801LIBS="$ac_save_LIBS"
14802
14803fi
14804if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14805 echo "$ac_t""yes" 1>&6
14806 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14807#define HAVE_SCHED_YIELD 1
14808EOF
14809
14810else
698dcdb6
VZ
14811 echo "$ac_t""no" 1>&6
14812echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
1a4f0015 14813echo "configure:14814: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
14814ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14815if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14816 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14817else
698dcdb6 14818 ac_save_LIBS="$LIBS"
1e487827 14819LIBS="-lposix4 $LIBS"
698dcdb6 14820cat > conftest.$ac_ext <<EOF
1a4f0015 14821#line 14822 "configure"
10f2d63a
VZ
14822#include "confdefs.h"
14823/* Override any gcc2 internal prototype to avoid an error. */
14824/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14825 builtin and then its argument prototype would still apply. */
14826char sched_yield();
14827
14828int main() {
14829sched_yield()
14830; return 0; }
14831EOF
1a4f0015 14832if { (eval echo configure:14833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14833 rm -rf conftest*
14834 eval "ac_cv_lib_$ac_lib_var=yes"
14835else
14836 echo "configure: failed program was:" >&5
14837 cat conftest.$ac_ext >&5
14838 rm -rf conftest*
14839 eval "ac_cv_lib_$ac_lib_var=no"
14840fi
14841rm -f conftest*
14842LIBS="$ac_save_LIBS"
14843
14844fi
14845if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14846 echo "$ac_t""yes" 1>&6
14847 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14848#define HAVE_SCHED_YIELD 1
14849EOF
14850 POSIX4_LINK="-lposix4"
14851else
698dcdb6
VZ
14852 echo "$ac_t""no" 1>&6
14853echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14854
6232543b 14855fi
10f2d63a 14856
698dcdb6 14857
1e487827 14858fi
703e0a69 14859
698dcdb6 14860
f6bcfd97 14861 HAVE_PRIOR_FUNCS=0
698dcdb6 14862 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
1a4f0015 14863echo "configure:14864: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
14864ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14865if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14866 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14867else
698dcdb6 14868 ac_save_LIBS="$LIBS"
10f2d63a 14869LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14870cat > conftest.$ac_ext <<EOF
1a4f0015 14871#line 14872 "configure"
10f2d63a
VZ
14872#include "confdefs.h"
14873/* Override any gcc2 internal prototype to avoid an error. */
14874/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14875 builtin and then its argument prototype would still apply. */
14876char pthread_attr_getschedpolicy();
14877
14878int main() {
14879pthread_attr_getschedpolicy()
14880; return 0; }
14881EOF
1a4f0015 14882if { (eval echo configure:14883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14883 rm -rf conftest*
14884 eval "ac_cv_lib_$ac_lib_var=yes"
14885else
14886 echo "configure: failed program was:" >&5
14887 cat conftest.$ac_ext >&5
14888 rm -rf conftest*
14889 eval "ac_cv_lib_$ac_lib_var=no"
14890fi
14891rm -f conftest*
14892LIBS="$ac_save_LIBS"
14893
14894fi
14895if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14896 echo "$ac_t""yes" 1>&6
14897 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
1a4f0015 14898echo "configure:14899: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
14899ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14900if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14901 echo $ac_n "(cached) $ac_c" 1>&6
14902else
14903 ac_save_LIBS="$LIBS"
f6bcfd97 14904LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14905cat > conftest.$ac_ext <<EOF
1a4f0015 14906#line 14907 "configure"
f6bcfd97
BP
14907#include "confdefs.h"
14908/* Override any gcc2 internal prototype to avoid an error. */
14909/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14910 builtin and then its argument prototype would still apply. */
14911char pthread_attr_setschedparam();
14912
14913int main() {
14914pthread_attr_setschedparam()
14915; return 0; }
14916EOF
1a4f0015 14917if { (eval echo configure:14918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14918 rm -rf conftest*
14919 eval "ac_cv_lib_$ac_lib_var=yes"
14920else
14921 echo "configure: failed program was:" >&5
14922 cat conftest.$ac_ext >&5
14923 rm -rf conftest*
14924 eval "ac_cv_lib_$ac_lib_var=no"
14925fi
14926rm -f conftest*
14927LIBS="$ac_save_LIBS"
14928
14929fi
14930if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14931 echo "$ac_t""yes" 1>&6
14932 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
1a4f0015 14933echo "configure:14934: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
14934ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14935if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14936 echo $ac_n "(cached) $ac_c" 1>&6
14937else
14938 ac_save_LIBS="$LIBS"
f6bcfd97 14939LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14940cat > conftest.$ac_ext <<EOF
1a4f0015 14941#line 14942 "configure"
f6bcfd97
BP
14942#include "confdefs.h"
14943/* Override any gcc2 internal prototype to avoid an error. */
14944/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14945 builtin and then its argument prototype would still apply. */
14946char sched_get_priority_max();
14947
14948int main() {
14949sched_get_priority_max()
14950; return 0; }
14951EOF
1a4f0015 14952if { (eval echo configure:14953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14953 rm -rf conftest*
14954 eval "ac_cv_lib_$ac_lib_var=yes"
14955else
14956 echo "configure: failed program was:" >&5
14957 cat conftest.$ac_ext >&5
14958 rm -rf conftest*
14959 eval "ac_cv_lib_$ac_lib_var=no"
14960fi
14961rm -f conftest*
14962LIBS="$ac_save_LIBS"
14963
14964fi
14965if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14966 echo "$ac_t""yes" 1>&6
f6bcfd97 14967 HAVE_PRIOR_FUNCS=1
10f2d63a 14968else
698dcdb6
VZ
14969 echo "$ac_t""no" 1>&6
14970echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
1a4f0015 14971echo "configure:14972: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
14972ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14973if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14974 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 14975else
698dcdb6 14976 ac_save_LIBS="$LIBS"
1e487827 14977LIBS="-lposix4 $LIBS"
698dcdb6 14978cat > conftest.$ac_ext <<EOF
1a4f0015 14979#line 14980 "configure"
10f2d63a 14980#include "confdefs.h"
6232543b 14981/* Override any gcc2 internal prototype to avoid an error. */
6232543b 14982/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14983 builtin and then its argument prototype would still apply. */
14984char sched_get_priority_max();
14985
14986int main() {
14987sched_get_priority_max()
14988; return 0; }
14989EOF
1a4f0015 14990if { (eval echo configure:14991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14991 rm -rf conftest*
14992 eval "ac_cv_lib_$ac_lib_var=yes"
14993else
14994 echo "configure: failed program was:" >&5
14995 cat conftest.$ac_ext >&5
14996 rm -rf conftest*
14997 eval "ac_cv_lib_$ac_lib_var=no"
14998fi
14999rm -f conftest*
15000LIBS="$ac_save_LIBS"
10f2d63a 15001
698dcdb6
VZ
15002fi
15003if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15004 echo "$ac_t""yes" 1>&6
15005
f6bcfd97
BP
15006 HAVE_PRIOR_FUNCS=1
15007 POSIX4_LINK="-lposix4"
698dcdb6
VZ
15008
15009else
15010 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15011fi
15012
698dcdb6 15013
10f2d63a
VZ
15014fi
15015
698dcdb6
VZ
15016
15017else
15018 echo "$ac_t""no" 1>&6
6232543b 15019fi
10f2d63a 15020
698dcdb6
VZ
15021
15022else
15023 echo "$ac_t""no" 1>&6
1e487827 15024fi
703e0a69 15025
698dcdb6 15026
f6bcfd97 15027 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 15028 cat >> confdefs.h <<\EOF
f6bcfd97
BP
15029#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
15030EOF
15031
15032 else
698dcdb6 15033 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
15034 fi
15035
698dcdb6 15036 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
1a4f0015 15037echo "configure:15038: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
15038ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
15039if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15040 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15041else
698dcdb6 15042 ac_save_LIBS="$LIBS"
10f2d63a 15043LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 15044cat > conftest.$ac_ext <<EOF
1a4f0015 15045#line 15046 "configure"
10f2d63a
VZ
15046#include "confdefs.h"
15047/* Override any gcc2 internal prototype to avoid an error. */
15048/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15049 builtin and then its argument prototype would still apply. */
15050char pthread_cancel();
15051
15052int main() {
15053pthread_cancel()
15054; return 0; }
15055EOF
1a4f0015 15056if { (eval echo configure:15057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15057 rm -rf conftest*
15058 eval "ac_cv_lib_$ac_lib_var=yes"
15059else
15060 echo "configure: failed program was:" >&5
15061 cat conftest.$ac_ext >&5
15062 rm -rf conftest*
15063 eval "ac_cv_lib_$ac_lib_var=no"
15064fi
15065rm -f conftest*
15066LIBS="$ac_save_LIBS"
15067
15068fi
15069if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15070 echo "$ac_t""yes" 1>&6
15071 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15072#define HAVE_PTHREAD_CANCEL 1
15073EOF
15074
15075else
698dcdb6
VZ
15076 echo "$ac_t""no" 1>&6
15077echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
15078fi
15079
1e487827 15080
698dcdb6 15081 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
1a4f0015 15082echo "configure:15083: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
15083if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15084 echo $ac_n "(cached) $ac_c" 1>&6
15085else
15086
15087 cat > conftest.$ac_ext <<EOF
1a4f0015 15088#line 15089 "configure"
10f2d63a
VZ
15089#include "confdefs.h"
15090#include <pthread.h>
698dcdb6 15091int main() {
10f2d63a
VZ
15092
15093 pthread_cleanup_push(NULL, NULL);
15094 pthread_cleanup_pop(0);
698dcdb6
VZ
15095
15096; return 0; }
15097EOF
1a4f0015 15098if { (eval echo configure:15099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15099 rm -rf conftest*
15100
10f2d63a 15101 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 15102
10f2d63a 15103else
698dcdb6
VZ
15104 echo "configure: failed program was:" >&5
15105 cat conftest.$ac_ext >&5
15106 rm -rf conftest*
15107
10f2d63a 15108 wx_cv_func_pthread_cleanup_push=no
698dcdb6 15109
6232543b 15110fi
698dcdb6
VZ
15111rm -f conftest*
15112
1e487827 15113fi
698dcdb6
VZ
15114
15115echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 15116
d9b9876f 15117 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 15118 cat >> confdefs.h <<\EOF
d9b9876f
VZ
15119#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
15120EOF
15121
15122 fi
15123
698dcdb6 15124
b48da802
VZ
15125 if test "x$wx_lib_glibc21" = "xyes"; then
15126 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
ab252f7b
VZ
15127 fi
15128
698dcdb6 15129 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
1a4f0015 15130echo "configure:15131: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
15131if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
15132 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 15133else
698dcdb6
VZ
15134
15135 cat > conftest.$ac_ext <<EOF
1a4f0015 15136#line 15137 "configure"
d9b9876f
VZ
15137#include "confdefs.h"
15138#include <pthread.h>
698dcdb6 15139int main() {
d9b9876f
VZ
15140
15141 pthread_mutexattr_t attr;
15142 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
15143
15144; return 0; }
15145EOF
1a4f0015 15146if { (eval echo configure:15147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15147 rm -rf conftest*
15148
d9b9876f 15149 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 15150
d9b9876f 15151else
698dcdb6
VZ
15152 echo "configure: failed program was:" >&5
15153 cat conftest.$ac_ext >&5
15154 rm -rf conftest*
15155
d9b9876f 15156 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
15157
15158
6232543b 15159fi
698dcdb6
VZ
15160rm -f conftest*
15161
1e487827 15162fi
698dcdb6
VZ
15163
15164echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
15165
15166 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 15167 cat >> confdefs.h <<\EOF
d9b9876f
VZ
15168#define HAVE_PTHREAD_MUTEXATTR_T 1
15169EOF
15170
15171 else
698dcdb6 15172 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
1a4f0015 15173echo "configure:15174: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
15174if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
15175 echo $ac_n "(cached) $ac_c" 1>&6
15176else
15177
15178 cat > conftest.$ac_ext <<EOF
1a4f0015 15179#line 15180 "configure"
d9b9876f
VZ
15180#include "confdefs.h"
15181#include <pthread.h>
698dcdb6 15182int main() {
d9b9876f
VZ
15183
15184 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
15185
15186; return 0; }
15187EOF
1a4f0015 15188if { (eval echo configure:15189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15189 rm -rf conftest*
15190
d9b9876f 15191 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 15192
d9b9876f 15193else
698dcdb6
VZ
15194 echo "configure: failed program was:" >&5
15195 cat conftest.$ac_ext >&5
15196 rm -rf conftest*
15197
d9b9876f 15198 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
15199
15200
6232543b 15201fi
698dcdb6
VZ
15202rm -f conftest*
15203
1e487827 15204fi
698dcdb6
VZ
15205
15206echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 15207 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 15208 cat >> confdefs.h <<\EOF
d9b9876f
VZ
15209#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15210EOF
15211
15212 else
698dcdb6 15213 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
15214 fi
15215 fi
15216
10f2d63a 15217 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
15218
15219 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
a3cb1afc 15220 CPPFLAGS="${CFLAGS} -mt"
186837b0
VZ
15221 CXXFLAGS="${CXXFLAGS} -mt"
15222 LDFLAGS="${LDFLAGS} -mt"
15223 fi
10f2d63a
VZ
15224fi
15225
15226fi
15227
15228if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 15229 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15230#define wxUSE_THREADS 1
15231EOF
15232
698dcdb6 15233
7b6058cd 15234 if test "$USE_DARWIN" != 1; then
3a922bb4 15235 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
2c6025bc 15236 fi
10f2d63a
VZ
15237
15238 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
15239else
15240 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 15241 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
1a4f0015 15242echo "configure:15243: checking if -D_REENTRANT is needed" >&5
ab9b9eab 15243 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
3a922bb4 15244 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
698dcdb6 15245 echo "$ac_t""yes" 1>&6
ab9b9eab 15246 else
698dcdb6 15247 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15248 fi
15249 fi
15250fi
15251
6f72b082 15252if test "$WXGTK20" = 1 ; then
698dcdb6 15253 cat >> confdefs.h <<EOF
6f72b082 15254#define __WXGTK20__ $WXGTK20
13111b2a
VZ
15255EOF
15256
15257 WXGTK12=1
15258fi
15259
10f2d63a 15260if test "$WXGTK12" = 1 ; then
698dcdb6 15261 cat >> confdefs.h <<EOF
10f2d63a
VZ
15262#define __WXGTK12__ $WXGTK12
15263EOF
15264
15265fi
15266
f6bcfd97 15267if test "$WXGTK127" = 1 ; then
698dcdb6 15268 cat >> confdefs.h <<EOF
f6bcfd97
BP
15269#define __WXGTK127__ $WXGTK127
15270EOF
15271
15272fi
15273
10f2d63a
VZ
15274WXDEBUG=
15275
15276if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15277 WXDEBUG="-g"
15278 wxUSE_OPTIMISE=no
15279fi
15280
15281if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15282 wxUSE_DEBUG_INFO=yes
15283 WXDEBUG="-ggdb"
15284fi
15285
15286if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 15287 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15288#define WXDEBUG 1
15289EOF
15290
15291 WXDEBUG_DEFINE="-D__WXDEBUG__"
15292else
15293 if test "$wxUSE_GTK" = 1 ; then
15294 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15295 fi
15296fi
15297
15298if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 15299 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15300#define wxUSE_MEMORY_TRACING 1
15301EOF
15302
698dcdb6 15303 cat >> confdefs.h <<\EOF
10f2d63a 15304#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
15305EOF
15306
698dcdb6 15307 cat >> confdefs.h <<\EOF
47c13eb7 15308#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
15309EOF
15310
15311 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15312fi
15313
15314if test "$wxUSE_DMALLOC" = "yes" ; then
15315 DMALLOC_LINK="-ldmalloc"
15316fi
15317
15318PROFILE=
15319if test "$wxUSE_PROFILE" = "yes" ; then
15320 PROFILE="-pg"
15321fi
15322
10f2d63a
VZ
15323if test "$GCC" = yes ; then
15324 if test "$wxUSE_NO_RTTI" = "yes" ; then
3a922bb4 15325 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
10f2d63a
VZ
15326 fi
15327 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
3a922bb4 15328 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
10f2d63a
VZ
15329 fi
15330 if test "$wxUSE_PERMISSIVE" = "yes" ; then
d08b457b 15331 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
15332 fi
15333 if test "$wxUSE_NO_DEPS" = "no" ; then
077c5642
GD
15334 CFLAGS="-MMD ${CFLAGS}"
15335 CXXFLAGS="-MMD ${CXXFLAGS}"
3a922bb4
RL
15336 fi
15337 if test "$USE_WIN32" = 1 ; then
15338 # I'm not even really sure what this was ever added to solve,
15339 # but someone added it for mingw native builds, so I guess
15340 # they had a reason, right??
15341 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
10f2d63a
VZ
15342 fi
15343fi
15344
698dcdb6 15345
10f2d63a
VZ
15346CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15347CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15348if test "$wxUSE_OPTIMISE" = "no" ; then
15349 OPTIMISE=
15350else
15351 if test "$GCC" = yes ; then
15352 OPTIMISE="-O2"
15353 case "${host}" in
15354 i586-*-*|i686-*-* )
15355 OPTIMISE="${OPTIMISE} "
15356 ;;
15357 esac
15358 else
15359 OPTIMISE="-O"
15360 fi
15361fi
15362
54276ccf
VZ
15363if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
15364 cat >> confdefs.h <<\EOF
15365#define WXWIN_COMPATIBILITY_2 1
15366EOF
15367
15368
15369 WXWIN_COMPATIBILITY_2_2="yes"
15370fi
15371
15372if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
15373 cat >> confdefs.h <<\EOF
15374#define WXWIN_COMPATIBILITY_2_2 1
15375EOF
15376
15377fi
15378
698dcdb6 15379
10f2d63a 15380ZLIB_INCLUDE=
422107f9 15381if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 15382 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15383#define wxUSE_ZLIB 1
15384EOF
15385
422107f9
VZ
15386 if test "$wxUSE_ZLIB" = "yes" ; then
15387 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15388 else
15389 ZLIB_LINK=
698dcdb6
VZ
15390 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15391echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
1a4f0015 15392echo "configure:15393: checking for zlib.h" >&5
698dcdb6
VZ
15393if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15394 echo $ac_n "(cached) $ac_c" 1>&6
15395else
15396 cat > conftest.$ac_ext <<EOF
1a4f0015 15397#line 15398 "configure"
422107f9
VZ
15398#include "confdefs.h"
15399#include <zlib.h>
698dcdb6
VZ
15400EOF
15401ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 15402{ (eval echo configure:15403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15403ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15404if test -z "$ac_err"; then
15405 rm -rf conftest*
15406 eval "ac_cv_header_$ac_safe=yes"
422107f9 15407else
698dcdb6
VZ
15408 echo "$ac_err" >&5
15409 echo "configure: failed program was:" >&5
422107f9 15410 cat conftest.$ac_ext >&5
698dcdb6
VZ
15411 rm -rf conftest*
15412 eval "ac_cv_header_$ac_safe=no"
422107f9 15413fi
698dcdb6 15414rm -f conftest*
422107f9 15415fi
698dcdb6
VZ
15416if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15417 echo "$ac_t""yes" 1>&6
15418 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
1a4f0015 15419echo "configure:15420: checking for deflate in -lz" >&5
698dcdb6
VZ
15420ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15421if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15422 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15423else
698dcdb6 15424 ac_save_LIBS="$LIBS"
422107f9 15425LIBS="-lz $LIBS"
698dcdb6 15426cat > conftest.$ac_ext <<EOF
1a4f0015 15427#line 15428 "configure"
422107f9
VZ
15428#include "confdefs.h"
15429/* Override any gcc2 internal prototype to avoid an error. */
15430/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15431 builtin and then its argument prototype would still apply. */
15432char deflate();
15433
15434int main() {
15435deflate()
15436; return 0; }
15437EOF
1a4f0015 15438if { (eval echo configure:15439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15439 rm -rf conftest*
15440 eval "ac_cv_lib_$ac_lib_var=yes"
15441else
15442 echo "configure: failed program was:" >&5
15443 cat conftest.$ac_ext >&5
15444 rm -rf conftest*
15445 eval "ac_cv_lib_$ac_lib_var=no"
15446fi
15447rm -f conftest*
15448LIBS="$ac_save_LIBS"
15449
15450fi
15451if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15452 echo "$ac_t""yes" 1>&6
422107f9 15453 ZLIB_LINK="-lz"
698dcdb6
VZ
15454else
15455 echo "$ac_t""no" 1>&6
422107f9
VZ
15456fi
15457
698dcdb6
VZ
15458else
15459 echo "$ac_t""no" 1>&6
422107f9
VZ
15460fi
15461
15462 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 15463 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
15464 fi
15465 fi
10f2d63a
VZ
15466fi
15467
15468PNG_INCLUDE=
422107f9 15469if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 15470 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15471#define wxUSE_LIBPNG 1
15472EOF
15473
41fd4136 15474 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 15475 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
15476 wxUSE_LIBPNG=yes
15477 fi
15478
15479 if test "$wxUSE_LIBPNG" = "yes" ; then
15480 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15481 else
15482 PNG_LINK=
698dcdb6
VZ
15483 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15484echo $ac_n "checking for png.h""... $ac_c" 1>&6
1a4f0015 15485echo "configure:15486: checking for png.h" >&5
698dcdb6
VZ
15486if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15487 echo $ac_n "(cached) $ac_c" 1>&6
15488else
15489 cat > conftest.$ac_ext <<EOF
1a4f0015 15490#line 15491 "configure"
422107f9
VZ
15491#include "confdefs.h"
15492#include <png.h>
698dcdb6
VZ
15493EOF
15494ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 15495{ (eval echo configure:15496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15496ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15497if test -z "$ac_err"; then
15498 rm -rf conftest*
15499 eval "ac_cv_header_$ac_safe=yes"
422107f9 15500else
698dcdb6
VZ
15501 echo "$ac_err" >&5
15502 echo "configure: failed program was:" >&5
422107f9 15503 cat conftest.$ac_ext >&5
698dcdb6
VZ
15504 rm -rf conftest*
15505 eval "ac_cv_header_$ac_safe=no"
422107f9 15506fi
698dcdb6 15507rm -f conftest*
422107f9 15508fi
698dcdb6
VZ
15509if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15510 echo "$ac_t""yes" 1>&6
15511 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
1a4f0015 15512echo "configure:15513: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
15513ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15514if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15515 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15516else
698dcdb6 15517 ac_save_LIBS="$LIBS"
422107f9 15518LIBS="-lpng -lz -lm $LIBS"
698dcdb6 15519cat > conftest.$ac_ext <<EOF
1a4f0015 15520#line 15521 "configure"
422107f9
VZ
15521#include "confdefs.h"
15522/* Override any gcc2 internal prototype to avoid an error. */
15523/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15524 builtin and then its argument prototype would still apply. */
15525char png_check_sig();
15526
15527int main() {
15528png_check_sig()
15529; return 0; }
15530EOF
1a4f0015 15531if { (eval echo configure:15532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15532 rm -rf conftest*
15533 eval "ac_cv_lib_$ac_lib_var=yes"
15534else
15535 echo "configure: failed program was:" >&5
15536 cat conftest.$ac_ext >&5
15537 rm -rf conftest*
15538 eval "ac_cv_lib_$ac_lib_var=no"
15539fi
15540rm -f conftest*
15541LIBS="$ac_save_LIBS"
15542
15543fi
15544if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15545 echo "$ac_t""yes" 1>&6
422107f9 15546 PNG_LINK="-lpng"
698dcdb6
VZ
15547else
15548 echo "$ac_t""no" 1>&6
422107f9
VZ
15549fi
15550
698dcdb6
VZ
15551
15552else
15553 echo "$ac_t""no" 1>&6
422107f9
VZ
15554fi
15555
15556 if test "x$PNG_LINK" = "x" ; then
698dcdb6 15557 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
15558 fi
15559 fi
15560
10f2d63a
VZ
15561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15562fi
15563
15564JPEG_INCLUDE=
422107f9 15565if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 15566 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15567#define wxUSE_LIBJPEG 1
15568EOF
15569
422107f9
VZ
15570 if test "$wxUSE_LIBJPEG" = "yes" ; then
15571 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15572 else
15573 JPEG_LINK=
463abc64 15574 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
1a4f0015 15575echo "configure:15576: checking for jpeglib.h" >&5
463abc64 15576 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
698dcdb6
VZ
15577 echo $ac_n "(cached) $ac_c" 1>&6
15578else
15579 cat > conftest.$ac_ext <<EOF
1a4f0015 15580#line 15581 "configure"
422107f9 15581#include "confdefs.h"
463abc64
VZ
15582
15583 #undef HAVE_STDLIB_H
15584 #include <stdio.h>
15585 #include <jpeglib.h>
15586
15587int main() {
15588
15589
15590; return 0; }
698dcdb6 15591EOF
1a4f0015 15592if { (eval echo configure:15593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15593 rm -rf conftest*
463abc64 15594 ac_cv_header_jpeglib_h=yes
6232543b 15595else
698dcdb6 15596 echo "configure: failed program was:" >&5
422107f9 15597 cat conftest.$ac_ext >&5
698dcdb6 15598 rm -rf conftest*
463abc64
VZ
15599 ac_cv_header_jpeglib_h=no
15600
422107f9 15601fi
698dcdb6 15602rm -f conftest*
463abc64 15603
422107f9 15604fi
463abc64
VZ
15605
15606 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15607
15608 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15609 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
1a4f0015 15610echo "configure:15611: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
15611ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15612if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15613 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15614else
698dcdb6 15615 ac_save_LIBS="$LIBS"
422107f9 15616LIBS="-ljpeg $LIBS"
698dcdb6 15617cat > conftest.$ac_ext <<EOF
1a4f0015 15618#line 15619 "configure"
422107f9
VZ
15619#include "confdefs.h"
15620/* Override any gcc2 internal prototype to avoid an error. */
15621/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15622 builtin and then its argument prototype would still apply. */
15623char jpeg_read_header();
15624
15625int main() {
15626jpeg_read_header()
15627; return 0; }
15628EOF
1a4f0015 15629if { (eval echo configure:15630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15630 rm -rf conftest*
15631 eval "ac_cv_lib_$ac_lib_var=yes"
15632else
15633 echo "configure: failed program was:" >&5
15634 cat conftest.$ac_ext >&5
15635 rm -rf conftest*
15636 eval "ac_cv_lib_$ac_lib_var=no"
15637fi
15638rm -f conftest*
15639LIBS="$ac_save_LIBS"
15640
15641fi
15642if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15643 echo "$ac_t""yes" 1>&6
422107f9 15644 JPEG_LINK="-ljpeg"
698dcdb6
VZ
15645else
15646 echo "$ac_t""no" 1>&6
422107f9
VZ
15647fi
15648
463abc64 15649 fi
422107f9
VZ
15650
15651 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 15652 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
15653 fi
15654 fi
10f2d63a
VZ
15655fi
15656
c7a2bf27 15657TIFF_INCLUDE=
0dcf9893 15658if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 15659 cat >> confdefs.h <<\EOF
c7a2bf27
RR
15660#define wxUSE_LIBTIFF 1
15661EOF
15662
665bbe97 15663 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
15664 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15665 else
15666 TIFF_LINK=
698dcdb6
VZ
15667 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15668echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
1a4f0015 15669echo "configure:15670: checking for tiffio.h" >&5
698dcdb6
VZ
15670if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15671 echo $ac_n "(cached) $ac_c" 1>&6
15672else
15673 cat > conftest.$ac_ext <<EOF
1a4f0015 15674#line 15675 "configure"
0dcf9893
VZ
15675#include "confdefs.h"
15676#include <tiffio.h>
698dcdb6
VZ
15677EOF
15678ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 15679{ (eval echo configure:15680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15680ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15681if test -z "$ac_err"; then
15682 rm -rf conftest*
15683 eval "ac_cv_header_$ac_safe=yes"
3fed1840 15684else
698dcdb6
VZ
15685 echo "$ac_err" >&5
15686 echo "configure: failed program was:" >&5
3fed1840 15687 cat conftest.$ac_ext >&5
698dcdb6
VZ
15688 rm -rf conftest*
15689 eval "ac_cv_header_$ac_safe=no"
3fed1840 15690fi
698dcdb6 15691rm -f conftest*
3fed1840 15692fi
698dcdb6
VZ
15693if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15694 echo "$ac_t""yes" 1>&6
3a922bb4 15695 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
1a4f0015 15696echo "configure:15697: checking for TIFFError in -ltiff" >&5
3a922bb4 15697ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15698if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15699 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 15700else
698dcdb6 15701 ac_save_LIBS="$LIBS"
3a922bb4 15702LIBS="-ltiff -lm $LIBS"
698dcdb6 15703cat > conftest.$ac_ext <<EOF
1a4f0015 15704#line 15705 "configure"
3fed1840
RR
15705#include "confdefs.h"
15706/* Override any gcc2 internal prototype to avoid an error. */
15707/* We use char because int might match the return type of a gcc2
698dcdb6 15708 builtin and then its argument prototype would still apply. */
3a922bb4 15709char TIFFError();
698dcdb6
VZ
15710
15711int main() {
3a922bb4 15712TIFFError()
698dcdb6
VZ
15713; return 0; }
15714EOF
1a4f0015 15715if { (eval echo configure:15716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15716 rm -rf conftest*
15717 eval "ac_cv_lib_$ac_lib_var=yes"
15718else
15719 echo "configure: failed program was:" >&5
15720 cat conftest.$ac_ext >&5
15721 rm -rf conftest*
15722 eval "ac_cv_lib_$ac_lib_var=no"
15723fi
15724rm -f conftest*
15725LIBS="$ac_save_LIBS"
15726
15727fi
15728if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15729 echo "$ac_t""yes" 1>&6
3a922bb4 15730 TIFF_LINK="-ltiff"
698dcdb6
VZ
15731else
15732 echo "$ac_t""no" 1>&6
3fed1840
RR
15733fi
15734
698dcdb6
VZ
15735else
15736 echo "$ac_t""no" 1>&6
3fed1840
RR
15737fi
15738
3a922bb4
RL
15739 if test "x$TIFF_LINK" = "x" ; then
15740 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
3fed1840
RR
15741 fi
15742 fi
15743fi
15744
3a922bb4
RL
15745FREETYPE_INCLUDE=
15746if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15747 cat >> confdefs.h <<\EOF
15748#define wxUSE_FREETYPE 1
7b6058cd
GD
15749EOF
15750
3a922bb4
RL
15751 if test "$wxUSE_FREETYPE" = "yes" ; then
15752 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
7b6058cd 15753 else
3a922bb4
RL
15754 FREETYPE_LINK=
15755 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15756echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
1a4f0015 15757echo "configure:15758: checking for freetype.h" >&5
698dcdb6
VZ
15758if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15759 echo $ac_n "(cached) $ac_c" 1>&6
15760else
15761 cat > conftest.$ac_ext <<EOF
1a4f0015 15762#line 15763 "configure"
10f2d63a 15763#include "confdefs.h"
3a922bb4 15764#include <freetype.h>
698dcdb6
VZ
15765EOF
15766ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 15767{ (eval echo configure:15768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15768ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15769if test -z "$ac_err"; then
15770 rm -rf conftest*
15771 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15772else
698dcdb6
VZ
15773 echo "$ac_err" >&5
15774 echo "configure: failed program was:" >&5
10f2d63a 15775 cat conftest.$ac_ext >&5
698dcdb6
VZ
15776 rm -rf conftest*
15777 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15778fi
698dcdb6 15779rm -f conftest*
10f2d63a 15780fi
698dcdb6
VZ
15781if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15782 echo "$ac_t""yes" 1>&6
3a922bb4 15783 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
1a4f0015 15784echo "configure:15785: checking for FT_Render_Glyph in -lfreetype" >&5
3a922bb4 15785ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15786if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15787 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15788else
698dcdb6 15789 ac_save_LIBS="$LIBS"
3a922bb4 15790LIBS="-lfreetype -lm $LIBS"
698dcdb6 15791cat > conftest.$ac_ext <<EOF
1a4f0015 15792#line 15793 "configure"
10f2d63a
VZ
15793#include "confdefs.h"
15794/* Override any gcc2 internal prototype to avoid an error. */
15795/* We use char because int might match the return type of a gcc2
698dcdb6 15796 builtin and then its argument prototype would still apply. */
3a922bb4 15797char FT_Render_Glyph();
698dcdb6
VZ
15798
15799int main() {
3a922bb4 15800FT_Render_Glyph()
698dcdb6
VZ
15801; return 0; }
15802EOF
1a4f0015 15803if { (eval echo configure:15804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15804 rm -rf conftest*
15805 eval "ac_cv_lib_$ac_lib_var=yes"
15806else
15807 echo "configure: failed program was:" >&5
15808 cat conftest.$ac_ext >&5
15809 rm -rf conftest*
15810 eval "ac_cv_lib_$ac_lib_var=no"
15811fi
15812rm -f conftest*
15813LIBS="$ac_save_LIBS"
10f2d63a 15814
698dcdb6
VZ
15815fi
15816if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15817 echo "$ac_t""yes" 1>&6
3a922bb4 15818 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
15819else
15820 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15821fi
15822
3a922bb4 15823
10f2d63a 15824else
698dcdb6 15825 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15826fi
15827
3a922bb4
RL
15828 if test "x$FREETYPE_LINK" = "x" ; then
15829 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15830 fi
7b6058cd 15831 fi
10f2d63a
VZ
15832fi
15833
698dcdb6 15834
10f2d63a 15835if test "$wxUSE_GUI" = "yes"; then
698dcdb6 15836 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15837#define wxUSE_GUI 1
15838EOF
15839
698dcdb6 15840
10f2d63a 15841 else
698dcdb6 15842 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15843#define wxUSE_NOGUI 1
15844EOF
15845
15846fi
15847
698dcdb6 15848
10f2d63a 15849if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 15850 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15851#define wxUSE_UNIX 1
15852EOF
15853
15854fi
15855
698dcdb6 15856
10f2d63a 15857if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 15858 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15859#define wxUSE_APPLE_IEEE 1
15860EOF
15861
15862fi
15863
1e6feb95
VZ
15864if test "$wxUSE_TIMER" = "yes"; then
15865 cat >> confdefs.h <<\EOF
15866#define wxUSE_TIMER 1
15867EOF
15868
15869fi
15870
10f2d63a 15871if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 15872 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15873#define wxUSE_WAVE 1
15874EOF
15875
15876fi
15877
1e6feb95
VZ
15878if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15879 cat >> confdefs.h <<\EOF
15880#define wxUSE_CMDLINE_PARSER 1
15881EOF
15882
15883fi
15884
15885if test "$wxUSE_STOPWATCH" = "yes"; then
15886 cat >> confdefs.h <<\EOF
15887#define wxUSE_STOPWATCH 1
15888EOF
15889
15890fi
15891
15892if test "$wxUSE_DATETIME" = "yes"; then
15893 cat >> confdefs.h <<\EOF
15894#define wxUSE_DATETIME 1
15895EOF
15896
15897fi
15898
15899if test "$wxUSE_TIMEDATE" = "yes"; then
15900 cat >> confdefs.h <<\EOF
15901#define wxUSE_TIMEDATE 1
15902EOF
15903
15904fi
15905
10f2d63a 15906if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15907 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15908#define wxUSE_FILE 1
15909EOF
15910
15911fi
15912
1e6feb95
VZ
15913if test "$wxUSE_FFILE" = "yes"; then
15914 cat >> confdefs.h <<\EOF
15915#define wxUSE_FFILE 1
15916EOF
15917
15918fi
15919
24528b0c 15920if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15921 cat >> confdefs.h <<\EOF
24528b0c
VS
15922#define wxUSE_FILESYSTEM 1
15923EOF
15924
15925fi
15926
10f2d63a 15927if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15928 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15929#define wxUSE_FS_INET 1
15930EOF
15931
15932fi
15933
15934if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15935 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15936#define wxUSE_FS_ZIP 1
15937EOF
15938
15939fi
15940
15941if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15942 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15943#define wxUSE_ZIPSTREAM 1
15944EOF
15945
15946fi
15947
eb4efbdc 15948if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 15949 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
15950#define wxUSE_ON_FATAL_EXCEPTION 1
15951EOF
15952
15953fi
15954
4f3c5f06 15955if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 15956 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
15957#define wxUSE_SNGLINST_CHECKER 1
15958EOF
15959
15960fi
15961
10f2d63a 15962if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 15963 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15964#define wxUSE_BUSYINFO 1
15965EOF
15966
15967fi
15968
15969if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 15970 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15971#define wxUSE_STD_IOSTREAM 1
15972EOF
15973
15974fi
15975
15976if test "$wxUSE_TEXTFILE" = "yes"; then
15977 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15978 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15979 else
698dcdb6 15980 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15981#define wxUSE_TEXTFILE 1
15982EOF
15983
15984 fi
15985fi
15986
15987if test "$wxUSE_CONFIG" = "yes" ; then
15988 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 15989 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 15990 else
698dcdb6 15991 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15992#define wxUSE_CONFIG 1
15993EOF
15994
15995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15996 fi
15997fi
15998
15999if test "$wxUSE_INTL" = "yes" ; then
16000 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 16001 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 16002 else
698dcdb6 16003 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16004#define wxUSE_INTL 1
16005EOF
16006
16007 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 16008 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
16009 fi
16010fi
16011
16012if test "$wxUSE_LOG" = "yes"; then
698dcdb6 16013 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16014#define wxUSE_LOG 1
16015EOF
16016
d73be714
VZ
16017
16018 if test "$wxUSE_LOGGUI" = "yes"; then
16019 cat >> confdefs.h <<\EOF
16020#define wxUSE_LOGGUI 1
16021EOF
16022
16023 fi
16024
16025 if test "$wxUSE_LOGWINDOW" = "yes"; then
16026 cat >> confdefs.h <<\EOF
16027#define wxUSE_LOGWINDOW 1
16028EOF
16029
16030 fi
10f2d63a
VZ
16031fi
16032
16033if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 16034 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16035#define wxUSE_LONGLONG 1
16036EOF
16037
16038fi
16039
e8f65ba6 16040if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 16041 cat >> confdefs.h <<\EOF
e8f65ba6
RR
16042#define wxUSE_GEOMETRY 1
16043EOF
16044
16045fi
16046
10f2d63a 16047if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 16048 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16049#define wxUSE_DIALUP_MANAGER 1
16050EOF
16051
70f7a477 16052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
16053fi
16054
16055if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 16056 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16057#define wxUSE_STREAMS 1
16058EOF
16059
16060fi
16061
1e487827 16062
1e6feb95 16063if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 16064 for ac_func in strptime
83307f33 16065do
698dcdb6 16066echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 16067echo "configure:16068: checking for $ac_func" >&5
698dcdb6
VZ
16068if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16069 echo $ac_n "(cached) $ac_c" 1>&6
16070else
16071 cat > conftest.$ac_ext <<EOF
1a4f0015 16072#line 16073 "configure"
83307f33
VZ
16073#include "confdefs.h"
16074/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16075 which can conflict with char $ac_func(); below. */
83307f33
VZ
16076#include <assert.h>
16077/* Override any gcc2 internal prototype to avoid an error. */
16078/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16079 builtin and then its argument prototype would still apply. */
16080char $ac_func();
16081
16082int main() {
83307f33
VZ
16083
16084/* The GNU C library defines this for functions which it implements
16085 to always fail with ENOSYS. Some functions are actually named
16086 something starting with __ and the normal name is an alias. */
16087#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16088choke me
16089#else
698dcdb6 16090$ac_func();
83307f33
VZ
16091#endif
16092
698dcdb6 16093; return 0; }
83307f33 16094EOF
1a4f0015 16095if { (eval echo configure:16096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16096 rm -rf conftest*
16097 eval "ac_cv_func_$ac_func=yes"
16098else
16099 echo "configure: failed program was:" >&5
16100 cat conftest.$ac_ext >&5
16101 rm -rf conftest*
16102 eval "ac_cv_func_$ac_func=no"
16103fi
16104rm -f conftest*
16105fi
83307f33 16106
698dcdb6
VZ
16107if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16108 echo "$ac_t""yes" 1>&6
16109 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16110 cat >> confdefs.h <<EOF
16111#define $ac_tr_func 1
16112EOF
16113
16114else
16115 echo "$ac_t""no" 1>&6
83307f33
VZ
16116fi
16117done
16118
1e487827 16119
698dcdb6 16120 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
1a4f0015 16121echo "configure:16122: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
16122if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16123 echo $ac_n "(cached) $ac_c" 1>&6
16124else
16125
16126 cat > conftest.$ac_ext <<EOF
1a4f0015 16127#line 16128 "configure"
360d6699
VZ
16128#include "confdefs.h"
16129
b4085ce6 16130 #include <time.h>
698dcdb6
VZ
16131
16132int main() {
360d6699
VZ
16133
16134 int tz;
4f11a343 16135 tz = timezone;
698dcdb6
VZ
16136
16137; return 0; }
16138EOF
1a4f0015 16139if { (eval echo configure:16140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16140 rm -rf conftest*
16141
4f11a343 16142 wx_cv_var_timezone=timezone
698dcdb6 16143
360d6699 16144else
698dcdb6
VZ
16145 echo "configure: failed program was:" >&5
16146 cat conftest.$ac_ext >&5
16147 rm -rf conftest*
16148
16149 cat > conftest.$ac_ext <<EOF
1a4f0015 16150#line 16151 "configure"
360d6699
VZ
16151#include "confdefs.h"
16152
b4085ce6 16153 #include <time.h>
698dcdb6
VZ
16154
16155int main() {
360d6699
VZ
16156
16157 int tz;
16158 tz = _timezone;
698dcdb6
VZ
16159
16160; return 0; }
16161EOF
1a4f0015 16162if { (eval echo configure:16163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16163 rm -rf conftest*
16164
360d6699 16165 wx_cv_var_timezone=_timezone
698dcdb6 16166
5357c8e8 16167else
698dcdb6
VZ
16168 echo "configure: failed program was:" >&5
16169 cat conftest.$ac_ext >&5
16170 rm -rf conftest*
16171
16172 cat > conftest.$ac_ext <<EOF
1a4f0015 16173#line 16174 "configure"
5357c8e8
VZ
16174#include "confdefs.h"
16175
b4085ce6 16176 #include <time.h>
698dcdb6
VZ
16177
16178int main() {
5357c8e8
VZ
16179
16180 int tz;
4f11a343 16181 tz = __timezone;
698dcdb6
VZ
16182
16183; return 0; }
16184EOF
1a4f0015 16185if { (eval echo configure:16186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16186 rm -rf conftest*
16187
4f11a343 16188 wx_cv_var_timezone=__timezone
698dcdb6 16189
360d6699 16190else
698dcdb6
VZ
16191 echo "configure: failed program was:" >&5
16192 cat conftest.$ac_ext >&5
16193 rm -rf conftest*
16194 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16195
360d6699 16196fi
698dcdb6
VZ
16197rm -f conftest*
16198
16199
360d6699 16200fi
698dcdb6
VZ
16201rm -f conftest*
16202
16203
6232543b 16204fi
698dcdb6
VZ
16205rm -f conftest*
16206
16207
1e487827 16208fi
703e0a69 16209
698dcdb6
VZ
16210echo "$ac_t""$wx_cv_var_timezone" 1>&6
16211
16212 cat >> confdefs.h <<EOF
360d6699
VZ
16213#define WX_TIMEZONE $wx_cv_var_timezone
16214EOF
16215
698dcdb6
VZ
16216
16217 for ac_func in localtime
afc31813 16218do
698dcdb6 16219echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 16220echo "configure:16221: checking for $ac_func" >&5
698dcdb6
VZ
16221if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16222 echo $ac_n "(cached) $ac_c" 1>&6
16223else
16224 cat > conftest.$ac_ext <<EOF
1a4f0015 16225#line 16226 "configure"
10f2d63a 16226#include "confdefs.h"
afc31813 16227/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16228 which can conflict with char $ac_func(); below. */
afc31813
VZ
16229#include <assert.h>
16230/* Override any gcc2 internal prototype to avoid an error. */
16231/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16232 builtin and then its argument prototype would still apply. */
16233char $ac_func();
16234
16235int main() {
afc31813
VZ
16236
16237/* The GNU C library defines this for functions which it implements
16238 to always fail with ENOSYS. Some functions are actually named
16239 something starting with __ and the normal name is an alias. */
16240#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16241choke me
16242#else
698dcdb6 16243$ac_func();
afc31813
VZ
16244#endif
16245
698dcdb6 16246; return 0; }
10f2d63a 16247EOF
1a4f0015 16248if { (eval echo configure:16249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16249 rm -rf conftest*
16250 eval "ac_cv_func_$ac_func=yes"
16251else
16252 echo "configure: failed program was:" >&5
16253 cat conftest.$ac_ext >&5
16254 rm -rf conftest*
16255 eval "ac_cv_func_$ac_func=no"
16256fi
16257rm -f conftest*
16258fi
afc31813 16259
698dcdb6
VZ
16260if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16261 echo "$ac_t""yes" 1>&6
16262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16263 cat >> confdefs.h <<EOF
16264#define $ac_tr_func 1
16265EOF
16266
16267else
16268 echo "$ac_t""no" 1>&6
afc31813
VZ
16269fi
16270done
16271
1e487827 16272
698dcdb6
VZ
16273 if test "$ac_cv_func_localtime" = "yes"; then
16274 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
1a4f0015 16275echo "configure:16276: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
16276if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16277 echo $ac_n "(cached) $ac_c" 1>&6
16278else
16279
16280 cat > conftest.$ac_ext <<EOF
1a4f0015 16281#line 16282 "configure"
0470b1e6
VZ
16282#include "confdefs.h"
16283
b4085ce6 16284 #include <time.h>
698dcdb6
VZ
16285
16286int main() {
0470b1e6
VZ
16287
16288 struct tm tm;
16289 tm.tm_gmtoff++;
698dcdb6
VZ
16290
16291; return 0; }
16292EOF
1a4f0015 16293if { (eval echo configure:16294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16294 rm -rf conftest*
16295
f03a98d8 16296 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 16297
0470b1e6 16298else
698dcdb6
VZ
16299 echo "configure: failed program was:" >&5
16300 cat conftest.$ac_ext >&5
16301 rm -rf conftest*
16302 wx_cv_struct_tm_has_gmtoff=no
16303
0470b1e6 16304fi
698dcdb6
VZ
16305rm -f conftest*
16306
1e487827 16307fi
698dcdb6
VZ
16308
16309echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
16310 fi
16311
16312 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 16313 cat >> confdefs.h <<\EOF
6232543b
VS
16314#define WX_GMTOFF_IN_TM 1
16315EOF
0470b1e6 16316
3fcdd07b
VZ
16317 fi
16318
698dcdb6 16319 for ac_func in gettimeofday ftime
3fcdd07b 16320do
698dcdb6 16321echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 16322echo "configure:16323: checking for $ac_func" >&5
698dcdb6
VZ
16323if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16324 echo $ac_n "(cached) $ac_c" 1>&6
16325else
16326 cat > conftest.$ac_ext <<EOF
1a4f0015 16327#line 16328 "configure"
3fcdd07b
VZ
16328#include "confdefs.h"
16329/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16330 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
16331#include <assert.h>
16332/* Override any gcc2 internal prototype to avoid an error. */
16333/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16334 builtin and then its argument prototype would still apply. */
16335char $ac_func();
16336
16337int main() {
3fcdd07b
VZ
16338
16339/* The GNU C library defines this for functions which it implements
16340 to always fail with ENOSYS. Some functions are actually named
16341 something starting with __ and the normal name is an alias. */
16342#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16343choke me
16344#else
698dcdb6 16345$ac_func();
3fcdd07b
VZ
16346#endif
16347
698dcdb6
VZ
16348; return 0; }
16349EOF
1a4f0015 16350if { (eval echo configure:16351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16351 rm -rf conftest*
16352 eval "ac_cv_func_$ac_func=yes"
16353else
16354 echo "configure: failed program was:" >&5
16355 cat conftest.$ac_ext >&5
16356 rm -rf conftest*
16357 eval "ac_cv_func_$ac_func=no"
16358fi
16359rm -f conftest*
16360fi
16361
16362if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16363 echo "$ac_t""yes" 1>&6
16364 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16365 cat >> confdefs.h <<EOF
16366#define $ac_tr_func 1
3fcdd07b
VZ
16367EOF
16368 break
698dcdb6
VZ
16369else
16370 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
16371fi
16372done
16373
afc31813 16374
698dcdb6
VZ
16375 if test "$ac_cv_func_gettimeofday" = "yes"; then
16376 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
1a4f0015 16377echo "configure:16378: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
16378if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16379 echo $ac_n "(cached) $ac_c" 1>&6
16380else
16381
16382
16383 ac_ext=C
16384# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16385ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16386ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16387ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16388cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16389
698dcdb6
VZ
16390
16391 cat > conftest.$ac_ext <<EOF
1a4f0015 16392#line 16393 "configure"
10f2d63a 16393#include "confdefs.h"
afc31813
VZ
16394
16395 #include <sys/time.h>
16396 #include <unistd.h>
698dcdb6
VZ
16397
16398int main() {
afc31813
VZ
16399
16400 struct timeval tv;
776862b4 16401 gettimeofday(&tv, NULL);
698dcdb6
VZ
16402
16403; return 0; }
16404EOF
1a4f0015 16405if { (eval echo configure:16406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16406 rm -rf conftest*
afc31813 16407 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 16408else
698dcdb6
VZ
16409 echo "configure: failed program was:" >&5
16410 cat conftest.$ac_ext >&5
16411 rm -rf conftest*
16412 cat > conftest.$ac_ext <<EOF
1a4f0015 16413#line 16414 "configure"
10f2d63a 16414#include "confdefs.h"
afc31813
VZ
16415
16416 #include <sys/time.h>
16417 #include <unistd.h>
698dcdb6
VZ
16418
16419int main() {
afc31813
VZ
16420
16421 struct timeval tv;
16422 gettimeofday(&tv);
698dcdb6
VZ
16423
16424; return 0; }
16425EOF
1a4f0015 16426if { (eval echo configure:16427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16427 rm -rf conftest*
afc31813 16428 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 16429else
698dcdb6
VZ
16430 echo "configure: failed program was:" >&5
16431 cat conftest.$ac_ext >&5
16432 rm -rf conftest*
776862b4
VZ
16433
16434 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16435 wx_cv_func_gettimeofday_has_2_args=unknown
16436
698dcdb6 16437
10f2d63a 16438fi
698dcdb6
VZ
16439rm -f conftest*
16440
10f2d63a 16441fi
698dcdb6 16442rm -f conftest*
afc31813 16443 ac_ext=c
698dcdb6 16444# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 16445ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16446ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16447ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16448cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 16449
698dcdb6 16450
afc31813 16451fi
698dcdb6
VZ
16452
16453echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 16454
afc31813 16455 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 16456 cat >> confdefs.h <<\EOF
afc31813
VZ
16457#define WX_GETTIMEOFDAY_NO_TZ 1
16458EOF
16459
16460 fi
16461 fi
16462
698dcdb6 16463 cat >> confdefs.h <<\EOF
afc31813
VZ
16464#define wxUSE_TIMEDATE 1
16465EOF
16466
16467 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16468fi
16469
698dcdb6 16470
b089607b
VZ
16471if test "$TOOLKIT" != "MSW"; then
16472
3a922bb4
RL
16473 if test "$wxUSE_SOCKETS" = "yes"; then
16474 echo $ac_n "checking for socket""... $ac_c" 1>&6
1a4f0015 16475echo "configure:16476: checking for socket" >&5
698dcdb6
VZ
16476if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16477 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16478else
698dcdb6 16479 cat > conftest.$ac_ext <<EOF
1a4f0015 16480#line 16481 "configure"
c63c7106
VZ
16481#include "confdefs.h"
16482/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16483 which can conflict with char socket(); below. */
c63c7106
VZ
16484#include <assert.h>
16485/* Override any gcc2 internal prototype to avoid an error. */
16486/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16487 builtin and then its argument prototype would still apply. */
16488char socket();
16489
16490int main() {
c63c7106
VZ
16491
16492/* The GNU C library defines this for functions which it implements
16493 to always fail with ENOSYS. Some functions are actually named
16494 something starting with __ and the normal name is an alias. */
16495#if defined (__stub_socket) || defined (__stub___socket)
16496choke me
16497#else
698dcdb6 16498socket();
c63c7106
VZ
16499#endif
16500
698dcdb6
VZ
16501; return 0; }
16502EOF
1a4f0015 16503if { (eval echo configure:16504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16504 rm -rf conftest*
16505 eval "ac_cv_func_socket=yes"
16506else
16507 echo "configure: failed program was:" >&5
16508 cat conftest.$ac_ext >&5
16509 rm -rf conftest*
16510 eval "ac_cv_func_socket=no"
16511fi
16512rm -f conftest*
16513fi
16514
16515if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16516 echo "$ac_t""yes" 1>&6
c63c7106
VZ
16517 :
16518else
698dcdb6
VZ
16519 echo "$ac_t""no" 1>&6
16520echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1a4f0015 16521echo "configure:16522: checking for socket in -lsocket" >&5
698dcdb6
VZ
16522ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16523if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16524 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16525else
698dcdb6 16526 ac_save_LIBS="$LIBS"
c63c7106 16527LIBS="-lsocket $LIBS"
698dcdb6 16528cat > conftest.$ac_ext <<EOF
1a4f0015 16529#line 16530 "configure"
c63c7106
VZ
16530#include "confdefs.h"
16531/* Override any gcc2 internal prototype to avoid an error. */
16532/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16533 builtin and then its argument prototype would still apply. */
16534char socket();
16535
16536int main() {
16537socket()
16538; return 0; }
16539EOF
1a4f0015 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_lib_$ac_lib_var=yes"
16543else
16544 echo "configure: failed program was:" >&5
16545 cat conftest.$ac_ext >&5
16546 rm -rf conftest*
16547 eval "ac_cv_lib_$ac_lib_var=no"
16548fi
16549rm -f conftest*
16550LIBS="$ac_save_LIBS"
16551
16552fi
16553if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16554 echo "$ac_t""yes" 1>&6
c63c7106 16555 INET_LINK="$INET_LINK -lsocket"
c63c7106 16556else
698dcdb6 16557 echo "$ac_t""no" 1>&6
afc31813 16558
3a922bb4
RL
16559 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16560 wxUSE_SOCKETS=no
16561
698dcdb6 16562
6232543b 16563fi
b089607b 16564
3a922bb4 16565
1e487827 16566fi
afc31813 16567
3a922bb4 16568 fi
51a9faba 16569
3a922bb4
RL
16570
16571 if test "$wxUSE_SOCKETS" = "yes" ; then
16572 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
1a4f0015 16573echo "configure:16574: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
16574if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16575 echo $ac_n "(cached) $ac_c" 1>&6
16576else
16577
3a922bb4
RL
16578
16579 ac_ext=C
698dcdb6 16580# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16581ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16582ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16583ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16584cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16585
698dcdb6 16586
3a922bb4 16587 cat > conftest.$ac_ext <<EOF
1a4f0015 16588#line 16589 "configure"
afc31813 16589#include "confdefs.h"
51a9faba 16590
3a922bb4
RL
16591 #include <sys/types.h>
16592 #include <sys/socket.h>
16593
698dcdb6 16594int main() {
51a9faba 16595
3a922bb4
RL
16596 socklen_t len;
16597 getsockname(0, 0, &len);
16598
698dcdb6
VZ
16599; return 0; }
16600EOF
1a4f0015 16601if { (eval echo configure:16602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16602 rm -rf conftest*
51a9faba 16603 wx_cv_type_getsockname3=socklen_t
afc31813 16604else
698dcdb6
VZ
16605 echo "configure: failed program was:" >&5
16606 cat conftest.$ac_ext >&5
16607 rm -rf conftest*
16608 cat > conftest.$ac_ext <<EOF
1a4f0015 16609#line 16610 "configure"
afc31813 16610#include "confdefs.h"
51a9faba 16611
3a922bb4
RL
16612 #include <sys/types.h>
16613 #include <sys/socket.h>
16614
698dcdb6 16615int main() {
51a9faba 16616
3a922bb4
RL
16617 size_t len;
16618 getsockname(0, 0, &len);
16619
698dcdb6
VZ
16620; return 0; }
16621EOF
1a4f0015 16622if { (eval echo configure:16623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16623 rm -rf conftest*
51a9faba 16624 wx_cv_type_getsockname3=size_t
afc31813 16625else
698dcdb6
VZ
16626 echo "configure: failed program was:" >&5
16627 cat conftest.$ac_ext >&5
16628 rm -rf conftest*
16629 cat > conftest.$ac_ext <<EOF
1a4f0015 16630#line 16631 "configure"
afc31813 16631#include "confdefs.h"
51a9faba 16632
3a922bb4
RL
16633 #include <sys/types.h>
16634 #include <sys/socket.h>
16635
698dcdb6 16636int main() {
51a9faba 16637
3a922bb4
RL
16638 int len;
16639 getsockname(0, 0, &len);
16640
698dcdb6
VZ
16641; return 0; }
16642EOF
1a4f0015 16643if { (eval echo configure:16644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16644 rm -rf conftest*
51a9faba 16645 wx_cv_type_getsockname3=int
afc31813 16646else
698dcdb6
VZ
16647 echo "configure: failed program was:" >&5
16648 cat conftest.$ac_ext >&5
16649 rm -rf conftest*
16650 wx_cv_type_getsockname3=unknown
3a922bb4 16651
afc31813 16652fi
698dcdb6 16653rm -f conftest*
3a922bb4 16654
afc31813 16655fi
698dcdb6 16656rm -f conftest*
3a922bb4 16657
afc31813 16658fi
698dcdb6 16659rm -f conftest*
51a9faba 16660
3a922bb4 16661 ac_ext=c
698dcdb6 16662# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 16663ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16664ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16665ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16666cross_compiling=$ac_cv_prog_cc_cross
afc31813 16667
3a922bb4 16668
51a9faba 16669fi
698dcdb6
VZ
16670
16671echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 16672
3a922bb4
RL
16673 if test "$wx_cv_type_getsockname3" = "unknown"; then
16674 wxUSE_SOCKETS=no
16675 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16676 else
16677 cat >> confdefs.h <<EOF
51a9faba
VZ
16678#define SOCKLEN_T $wx_cv_type_getsockname3
16679EOF
16680
3a922bb4 16681 fi
51a9faba
VZ
16682 fi
16683fi
afc31813 16684
51a9faba 16685if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 16686 cat >> confdefs.h <<\EOF
afc31813
VZ
16687#define wxUSE_SOCKETS 1
16688EOF
16689
70f7a477 16690 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
16691fi
16692
698dcdb6 16693
dc3d889d
VZ
16694if test "$wxUSE_GUI" = "yes"; then
16695
3a922bb4
RL
16696 if test "$TOOLKIT" != "MSW"; then
16697 if test "$wxUSE_JOYSTICK" = "yes"; then
16698 for ac_hdr in linux/joystick.h
10f2d63a 16699do
698dcdb6
VZ
16700ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16701echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1a4f0015 16702echo "configure:16703: checking for $ac_hdr" >&5
698dcdb6
VZ
16703if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16704 echo $ac_n "(cached) $ac_c" 1>&6
16705else
16706 cat > conftest.$ac_ext <<EOF
1a4f0015 16707#line 16708 "configure"
10f2d63a 16708#include "confdefs.h"
698dcdb6
VZ
16709#include <$ac_hdr>
16710EOF
16711ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 16712{ (eval echo configure:16713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16713ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16714if test -z "$ac_err"; then
16715 rm -rf conftest*
16716 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 16717else
698dcdb6
VZ
16718 echo "$ac_err" >&5
16719 echo "configure: failed program was:" >&5
10f2d63a 16720 cat conftest.$ac_ext >&5
698dcdb6
VZ
16721 rm -rf conftest*
16722 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16723fi
698dcdb6 16724rm -f conftest*
10f2d63a 16725fi
698dcdb6
VZ
16726if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16727 echo "$ac_t""yes" 1>&6
16728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16729 cat >> confdefs.h <<EOF
16730#define $ac_tr_hdr 1
10f2d63a 16731EOF
698dcdb6
VZ
16732
16733else
16734 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16735fi
16736done
16737
3a922bb4
RL
16738 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16739 wxUSE_JOYSTICK=no
16740 echo "configure: warning: Joystick not supported by this system" 1>&2
16741 fi
16742 fi
16743 fi
b089607b 16744
3a922bb4
RL
16745 if test "$wxUSE_JOYSTICK" = "yes"; then
16746 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16747#define wxUSE_JOYSTICK 1
16748EOF
16749
3a922bb4
RL
16750 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16751 fi
dc3d889d
VZ
16752fi
16753
698dcdb6 16754
b089607b
VZ
16755if test "$TOOLKIT" != "MSW"; then
16756
3a922bb4
RL
16757 HAVE_DL_FUNCS=0
16758 HAVE_SHL_FUNCS=0
16759 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16760 if test "$USE_DARWIN" = 1; then
16761 HAVE_DL_FUNCS=1
16762 else
16763 for ac_func in dlopen
10f2d63a 16764do
698dcdb6 16765echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 16766echo "configure:16767: checking for $ac_func" >&5
698dcdb6
VZ
16767if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16768 echo $ac_n "(cached) $ac_c" 1>&6
16769else
16770 cat > conftest.$ac_ext <<EOF
1a4f0015 16771#line 16772 "configure"
10f2d63a
VZ
16772#include "confdefs.h"
16773/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16774 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16775#include <assert.h>
16776/* Override any gcc2 internal prototype to avoid an error. */
16777/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16778 builtin and then its argument prototype would still apply. */
16779char $ac_func();
16780
16781int main() {
10f2d63a
VZ
16782
16783/* The GNU C library defines this for functions which it implements
16784 to always fail with ENOSYS. Some functions are actually named
16785 something starting with __ and the normal name is an alias. */
16786#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16787choke me
16788#else
698dcdb6 16789$ac_func();
10f2d63a
VZ
16790#endif
16791
698dcdb6
VZ
16792; return 0; }
16793EOF
1a4f0015 16794if { (eval echo configure:16795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16795 rm -rf conftest*
16796 eval "ac_cv_func_$ac_func=yes"
16797else
16798 echo "configure: failed program was:" >&5
16799 cat conftest.$ac_ext >&5
16800 rm -rf conftest*
16801 eval "ac_cv_func_$ac_func=no"
16802fi
16803rm -f conftest*
16804fi
16805
16806if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16807 echo "$ac_t""yes" 1>&6
16808 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16809 cat >> confdefs.h <<EOF
16810#define $ac_tr_func 1
16811EOF
16812
3a922bb4 16813 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16814#define HAVE_DLOPEN 1
16815EOF
16816
3a922bb4
RL
16817 HAVE_DL_FUNCS=1
16818
10f2d63a 16819else
698dcdb6
VZ
16820 echo "$ac_t""no" 1>&6
16821echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1a4f0015 16822echo "configure:16823: checking for dlopen in -ldl" >&5
698dcdb6
VZ
16823ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16824if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16825 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16826else
698dcdb6 16827 ac_save_LIBS="$LIBS"
10f2d63a 16828LIBS="-ldl $LIBS"
698dcdb6 16829cat > conftest.$ac_ext <<EOF
1a4f0015 16830#line 16831 "configure"
10f2d63a
VZ
16831#include "confdefs.h"
16832/* Override any gcc2 internal prototype to avoid an error. */
16833/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16834 builtin and then its argument prototype would still apply. */
16835char dlopen();
16836
16837int main() {
16838dlopen()
16839; return 0; }
16840EOF
1a4f0015 16841if { (eval echo configure:16842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16842 rm -rf conftest*
16843 eval "ac_cv_lib_$ac_lib_var=yes"
16844else
16845 echo "configure: failed program was:" >&5
16846 cat conftest.$ac_ext >&5
16847 rm -rf conftest*
16848 eval "ac_cv_lib_$ac_lib_var=no"
16849fi
16850rm -f conftest*
16851LIBS="$ac_save_LIBS"
16852
16853fi
16854if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16855 echo "$ac_t""yes" 1>&6
16856
3a922bb4 16857 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16858#define HAVE_DLOPEN 1
16859EOF
16860
3a922bb4
RL
16861 HAVE_DL_FUNCS=1
16862 LIBS="$LIBS -ldl"
16863
10f2d63a 16864else
698dcdb6 16865 echo "$ac_t""no" 1>&6
10f2d63a 16866
3a922bb4 16867 for ac_func in shl_load
10f2d63a 16868do
698dcdb6 16869echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 16870echo "configure:16871: checking for $ac_func" >&5
698dcdb6
VZ
16871if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16872 echo $ac_n "(cached) $ac_c" 1>&6
16873else
16874 cat > conftest.$ac_ext <<EOF
1a4f0015 16875#line 16876 "configure"
10f2d63a
VZ
16876#include "confdefs.h"
16877/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16878 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16879#include <assert.h>
16880/* Override any gcc2 internal prototype to avoid an error. */
16881/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16882 builtin and then its argument prototype would still apply. */
16883char $ac_func();
16884
16885int main() {
10f2d63a
VZ
16886
16887/* The GNU C library defines this for functions which it implements
16888 to always fail with ENOSYS. Some functions are actually named
16889 something starting with __ and the normal name is an alias. */
16890#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16891choke me
16892#else
698dcdb6 16893$ac_func();
10f2d63a
VZ
16894#endif
16895
698dcdb6
VZ
16896; return 0; }
16897EOF
1a4f0015 16898if { (eval echo configure:16899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16899 rm -rf conftest*
16900 eval "ac_cv_func_$ac_func=yes"
16901else
16902 echo "configure: failed program was:" >&5
16903 cat conftest.$ac_ext >&5
16904 rm -rf conftest*
16905 eval "ac_cv_func_$ac_func=no"
16906fi
16907rm -f conftest*
16908fi
16909
16910if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16911 echo "$ac_t""yes" 1>&6
16912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16913 cat >> confdefs.h <<EOF
16914#define $ac_tr_func 1
16915EOF
16916
3a922bb4 16917 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16918#define HAVE_SHL_LOAD 1
16919EOF
16920
3a922bb4
RL
16921 HAVE_SHL_FUNCS=1
16922
10f2d63a 16923else
698dcdb6
VZ
16924 echo "$ac_t""no" 1>&6
16925echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
1a4f0015 16926echo "configure:16927: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16927ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16928if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16929 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16930else
698dcdb6 16931 ac_save_LIBS="$LIBS"
f6bcfd97 16932LIBS="-lshl_load $LIBS"
698dcdb6 16933cat > conftest.$ac_ext <<EOF
1a4f0015 16934#line 16935 "configure"
f6bcfd97
BP
16935#include "confdefs.h"
16936/* Override any gcc2 internal prototype to avoid an error. */
16937/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16938 builtin and then its argument prototype would still apply. */
16939char dld();
16940
16941int main() {
16942dld()
16943; return 0; }
16944EOF
1a4f0015 16945if { (eval echo configure:16946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16946 rm -rf conftest*
16947 eval "ac_cv_lib_$ac_lib_var=yes"
16948else
16949 echo "configure: failed program was:" >&5
16950 cat conftest.$ac_ext >&5
16951 rm -rf conftest*
16952 eval "ac_cv_lib_$ac_lib_var=no"
16953fi
16954rm -f conftest*
16955LIBS="$ac_save_LIBS"
f6bcfd97 16956
698dcdb6
VZ
16957fi
16958if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16959 echo "$ac_t""yes" 1>&6
16960
3a922bb4
RL
16961 HAVE_SHL_FUNCS=1
16962 LIBS="$LIBS -ldld"
16963
698dcdb6
VZ
16964else
16965 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16966fi
16967
3a922bb4 16968
10f2d63a
VZ
16969fi
16970done
16971
3a922bb4 16972
10f2d63a
VZ
16973fi
16974
3a922bb4 16975
10f2d63a
VZ
16976fi
16977done
16978
1e487827 16979
3a922bb4
RL
16980 if test "$HAVE_DL_FUNCS" = 1; then
16981 for ac_func in dlerror
f6bcfd97 16982do
698dcdb6 16983echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1a4f0015 16984echo "configure:16985: checking for $ac_func" >&5
698dcdb6
VZ
16985if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16986 echo $ac_n "(cached) $ac_c" 1>&6
16987else
16988 cat > conftest.$ac_ext <<EOF
1a4f0015 16989#line 16990 "configure"
f6bcfd97
BP
16990#include "confdefs.h"
16991/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16992 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
16993#include <assert.h>
16994/* Override any gcc2 internal prototype to avoid an error. */
16995/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16996 builtin and then its argument prototype would still apply. */
16997char $ac_func();
16998
16999int main() {
f6bcfd97
BP
17000
17001/* The GNU C library defines this for functions which it implements
17002 to always fail with ENOSYS. Some functions are actually named
17003 something starting with __ and the normal name is an alias. */
17004#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17005choke me
17006#else
698dcdb6 17007$ac_func();
f6bcfd97
BP
17008#endif
17009
698dcdb6
VZ
17010; return 0; }
17011EOF
1a4f0015 17012if { (eval echo configure:17013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17013 rm -rf conftest*
17014 eval "ac_cv_func_$ac_func=yes"
17015else
17016 echo "configure: failed program was:" >&5
17017 cat conftest.$ac_ext >&5
17018 rm -rf conftest*
17019 eval "ac_cv_func_$ac_func=no"
17020fi
17021rm -f conftest*
17022fi
17023
17024if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17025 echo "$ac_t""yes" 1>&6
17026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17027 cat >> confdefs.h <<EOF
17028#define $ac_tr_func 1
17029EOF
17030 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17031#define HAVE_DLERROR 1
17032EOF
17033
17034else
698dcdb6
VZ
17035 echo "$ac_t""no" 1>&6
17036echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
1a4f0015 17037echo "configure:17038: checking for dlerror in -ldl" >&5
698dcdb6
VZ
17038ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17039if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17040 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17041else
698dcdb6 17042 ac_save_LIBS="$LIBS"
f6bcfd97 17043LIBS="-ldl $LIBS"
698dcdb6 17044cat > conftest.$ac_ext <<EOF
1a4f0015 17045#line 17046 "configure"
f6bcfd97
BP
17046#include "confdefs.h"
17047/* Override any gcc2 internal prototype to avoid an error. */
17048/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17049 builtin and then its argument prototype would still apply. */
17050char dlerror();
17051
17052int main() {
17053dlerror()
17054; return 0; }
17055EOF
1a4f0015 17056if { (eval echo configure:17057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17057 rm -rf conftest*
17058 eval "ac_cv_lib_$ac_lib_var=yes"
17059else
17060 echo "configure: failed program was:" >&5
17061 cat conftest.$ac_ext >&5
17062 rm -rf conftest*
17063 eval "ac_cv_lib_$ac_lib_var=no"
17064fi
17065rm -f conftest*
17066LIBS="$ac_save_LIBS"
17067
17068fi
17069if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17070 echo "$ac_t""yes" 1>&6
17071 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17072#define HAVE_DLERROR 1
17073EOF
17074
698dcdb6
VZ
17075else
17076 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17077fi
17078
17079fi
17080done
17081
3a922bb4
RL
17082 fi
17083 fi
f6bcfd97 17084
3a922bb4
RL
17085 if test "$HAVE_DL_FUNCS" = 0; then
17086 if test "$HAVE_SHL_FUNCS" = 0; then
17087 if test "$USE_UNIX" = 1; then
17088 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17089 wxUSE_DYNLIB_CLASS=no
17090 else
17091 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17092 fi
17093 fi
10f2d63a
VZ
17094 fi
17095 fi
17096fi
17097
17098if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 17099 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17100#define wxUSE_DYNLIB_CLASS 1
17101EOF
17102
b12915c1
VZ
17103else
17104 wxUSE_ODBC=no
17105 wxUSE_SERIAL=no
10f2d63a
VZ
17106fi
17107
698dcdb6 17108
1e6feb95
VZ
17109if test "$wxUSE_FONTMAP" = "yes" ; then
17110 cat >> confdefs.h <<\EOF
17111#define wxUSE_FONTMAP 1
17112EOF
17113
17114fi
17115
10f2d63a 17116if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 17117 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17118#define wxUSE_UNICODE 1
17119EOF
17120
17121fi
17122
10f2d63a 17123if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 17124 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17125#define wxUSE_EXPERIMENTAL_PRINTF 1
17126EOF
17127
17128fi
17129
698dcdb6 17130
b12915c1 17131if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 17132 cat >> confdefs.h <<\EOF
b12915c1
VZ
17133#define wxUSE_SERIAL 1
17134EOF
17135
17136fi
17137
698dcdb6 17138
10f2d63a
VZ
17139IODBC_C_SRC=""
17140if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 17141 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17142#define wxUSE_ODBC 1
17143EOF
17144
17145 WXODBCFLAG="-D_IODBC_"
17146 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
17147fi
17148
698dcdb6 17149
10f2d63a 17150if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 17151 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17152#define wxUSE_POSTSCRIPT 1
17153EOF
17154
17155fi
17156
698dcdb6 17157cat >> confdefs.h <<\EOF
10f2d63a
VZ
17158#define wxUSE_AFM_FOR_POSTSCRIPT 1
17159EOF
17160
698dcdb6
VZ
17161
17162cat >> confdefs.h <<\EOF
10f2d63a
VZ
17163#define wxUSE_NORMALIZED_PS_FONTS 1
17164EOF
17165
698dcdb6
VZ
17166
17167
10f2d63a 17168if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 17169 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17170#define wxUSE_CONSTRAINTS 1
17171EOF
17172
17173 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17174fi
17175
17176if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
698dcdb6 17177 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17178#define wxUSE_MDI_ARCHITECTURE 1
17179EOF
17180
17181 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17182fi
17183
17184if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 17185 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17186#define wxUSE_DOC_VIEW_ARCHITECTURE 1
17187EOF
17188
17189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17190 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17191 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17192 fi
17193fi
17194
17195if test "$wxUSE_HELP" = "yes"; then
698dcdb6 17196 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17197#define wxUSE_HELP 1
17198EOF
17199
17200 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 17201
3e44f09d 17202 if test "$USE_WIN32" = 1; then
031d8228 17203 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
17204 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17205echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
1a4f0015 17206echo "configure:17207: checking for htmlhelp.h" >&5
29fd3c0c
VS
17207if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17208 echo $ac_n "(cached) $ac_c" 1>&6
17209else
17210 cat > conftest.$ac_ext <<EOF
1a4f0015 17211#line 17212 "configure"
29fd3c0c
VS
17212#include "confdefs.h"
17213#include <htmlhelp.h>
17214EOF
17215ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 17216{ (eval echo configure:17217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
17217ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17218if test -z "$ac_err"; then
17219 rm -rf conftest*
17220 eval "ac_cv_header_$ac_safe=yes"
17221else
17222 echo "$ac_err" >&5
17223 echo "configure: failed program was:" >&5
17224 cat conftest.$ac_ext >&5
17225 rm -rf conftest*
17226 eval "ac_cv_header_$ac_safe=no"
17227fi
17228rm -f conftest*
17229fi
17230if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17231 echo "$ac_t""yes" 1>&6
17232
17233 cat >> confdefs.h <<\EOF
17234#define wxUSE_MS_HTML_HELP 1
17235EOF
17236
17237
17238else
17239 echo "$ac_t""no" 1>&6
17240
2b9bdf71 17241 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h, disabled" 1>&2
29fd3c0c
VS
17242 wxUSE_MS_HTML_HELP=no
17243
17244fi
17245
3e44f09d 17246 fi
3379ed37 17247 fi
031d8228
VS
17248
17249 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17250 if test "$wxUSE_HTML" = "yes"; then
17251 cat >> confdefs.h <<\EOF
17252#define wxUSE_WXHTML_HELP 1
17253EOF
17254
17255 else
17256 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17257 wxUSE_WXHTML_HELP=no
17258 fi
17259 fi
10f2d63a
VZ
17260fi
17261
17262if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17263 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 17264 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 17265 else
698dcdb6 17266 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17267#define wxUSE_PRINTING_ARCHITECTURE 1
17268EOF
17269
17270 fi
17271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17272fi
17273
17274if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 17275 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17276#define wxUSE_PROLOGIO 1
17277EOF
17278
17279fi
17280
17281if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 17282 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17283#define wxUSE_RESOURCES 1
17284EOF
17285
3379ed37 17286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
17287fi
17288
17289if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 17290 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17291#define wxUSE_X_RESOURCES 1
17292EOF
17293
17294fi
17295
698dcdb6 17296
3a922bb4
RL
17297if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17298 -o "$wxUSE_CLIPBOARD" = "yes" \
17299 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 17300 for ac_hdr in ole2.h
10f2d63a 17301do
698dcdb6
VZ
17302ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17303echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1a4f0015 17304echo "configure:17305: checking for $ac_hdr" >&5
698dcdb6
VZ
17305if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17306 echo $ac_n "(cached) $ac_c" 1>&6
17307else
17308 cat > conftest.$ac_ext <<EOF
1a4f0015 17309#line 17310 "configure"
10f2d63a 17310#include "confdefs.h"
698dcdb6
VZ
17311#include <$ac_hdr>
17312EOF
17313ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1a4f0015 17314{ (eval echo configure:17315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17315ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17316if test -z "$ac_err"; then
17317 rm -rf conftest*
17318 eval "ac_cv_header_$ac_safe=yes"
1e487827 17319else
698dcdb6
VZ
17320 echo "$ac_err" >&5
17321 echo "configure: failed program was:" >&5
10f2d63a 17322 cat conftest.$ac_ext >&5
698dcdb6
VZ
17323 rm -rf conftest*
17324 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17325fi
698dcdb6 17326rm -f conftest*
10f2d63a 17327fi
698dcdb6
VZ
17328if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17329 echo "$ac_t""yes" 1>&6
17330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17331 cat >> confdefs.h <<EOF
17332#define $ac_tr_hdr 1
10f2d63a 17333EOF
698dcdb6
VZ
17334
17335else
17336 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17337fi
17338done
17339
698dcdb6 17340
2b9bdf71
VZ
17341 if test "$ac_cv_header_ole2_h" = "yes" ; then
17342 if test "$GCC" = yes ; then
17343 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71
VZ
17344 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17345 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17346 cat >> confdefs.h <<\EOF
4f11a343
VS
17347#define wxUSE_OLE 1
17348EOF
17349
b64f0a5f 17350
2b9bdf71
VZ
17351 fi
17352
17353 cat >> confdefs.h <<\EOF
17354#define wxUSE_DATAOBJ 1
17355EOF
17356
17357 else
17358 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17359
17360 wxUSE_CLIPBOARD=no
17361 wxUSE_DRAG_AND_DROP=no
17362 wxUSE_DATAOBJ=no
17363 fi
17364
17365 if test "$wxUSE_METAFILE" = "yes"; then
17366 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17367#define wxUSE_METAFILE 1
17368EOF
17369
2b9bdf71
VZ
17370
17371 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17372#define wxUSE_ENH_METAFILE 1
17373EOF
17374
2b9bdf71
VZ
17375 fi
17376fi
17377
17378if test "$wxUSE_IPC" = "yes"; then
17379 if test "$wxUSE_SOCKETS" != "yes"; then
17380 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17381 fi
17382
17383 cat >> confdefs.h <<\EOF
17384#define wxUSE_IPC 1
17385EOF
17386
17387fi
17388
17389if test "$wxUSE_CLIPBOARD" = "yes"; then
17390 cat >> confdefs.h <<\EOF
17391#define wxUSE_CLIPBOARD 1
17392EOF
17393
673f4220 17394
e33ef661 17395 cat >> confdefs.h <<\EOF
673f4220
VZ
17396#define wxUSE_DATAOBJ 1
17397EOF
17398
2b9bdf71
VZ
17399fi
17400
17401if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17402 if test "$wxUSE_GTK" = 1; then
17403 if test "$WXGTK12" != 1; then
17404 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
17405 wxUSE_DRAG_AND_DROP=no
17406 fi
17407 fi
17408
2b9bdf71
VZ
17409 if test "$wxUSE_MOTIF" = 1; then
17410 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17411 wxUSE_DRAG_AND_DROP=no
17412 fi
17413
17414 if test "$wxUSE_MAC" = 1; then
17415 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17416 wxUSE_DRAG_AND_DROP=no
17417 fi
17418
10f2d63a 17419 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 17420 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17421#define wxUSE_DRAG_AND_DROP 1
17422EOF
17423
17424 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17425 fi
17426
17427fi
17428
17429if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 17430 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17431#define wxUSE_SPLINES 1
17432EOF
17433
17434fi
17435
698dcdb6 17436
1e6feb95
VZ
17437USES_CONTROLS=0
17438if test "$wxUSE_CONTROLS" = "yes"; then
17439 USES_CONTROLS=1
17440fi
17441
10f2d63a 17442if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 17443 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17444#define wxUSE_ACCEL 1
17445EOF
17446
1e6feb95
VZ
17447 USES_CONTROLS=1
17448fi
17449
17450if test "$wxUSE_BUTTON" = "yes"; then
17451 cat >> confdefs.h <<\EOF
17452#define wxUSE_BUTTON 1
17453EOF
17454
17455 USES_CONTROLS=1
17456fi
17457
17458if test "$wxUSE_BMPBUTTON" = "yes"; then
17459 cat >> confdefs.h <<\EOF
17460#define wxUSE_BMPBUTTON 1
17461EOF
17462
17463 USES_CONTROLS=1
17464fi
17465
17466if test "$wxUSE_CALCTRL" = "yes"; then
17467 cat >> confdefs.h <<\EOF
17468#define wxUSE_CALENDARCTRL 1
17469EOF
17470
17471 USES_CONTROLS=1
17472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
17473fi
17474
17475if test "$wxUSE_CARET" = "yes"; then
698dcdb6 17476 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17477#define wxUSE_CARET 1
17478EOF
17479
1e6feb95 17480 USES_CONTROLS=1
10f2d63a
VZ
17481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17482fi
17483
17484if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 17485 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17486#define wxUSE_COMBOBOX 1
17487EOF
17488
1e6feb95 17489 USES_CONTROLS=1
10f2d63a
VZ
17490fi
17491
17492if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 17493 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17494#define wxUSE_CHOICE 1
17495EOF
17496
1e6feb95 17497 USES_CONTROLS=1
10f2d63a
VZ
17498fi
17499
17500if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 17501 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17502#define wxUSE_CHECKBOX 1
17503EOF
17504
1e6feb95 17505 USES_CONTROLS=1
10f2d63a
VZ
17506fi
17507
17508if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 17509 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17510#define wxUSE_CHECKLISTBOX 1
17511EOF
17512
1e6feb95 17513 USES_CONTROLS=1
10f2d63a
VZ
17514 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17515fi
17516
17517if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 17518 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17519#define wxUSE_GAUGE 1
17520EOF
17521
1e6feb95 17522 USES_CONTROLS=1
10f2d63a
VZ
17523fi
17524
d6a55c4b
VZ
17525if test "$wxUSE_NEW_GRID" = "yes"; then
17526 wxUSE_GRID="yes"
698dcdb6 17527 cat >> confdefs.h <<\EOF
d6a55c4b 17528#define wxUSE_NEW_GRID 1
10f2d63a
VZ
17529EOF
17530
1e6feb95 17531 USES_CONTROLS=1
d6a55c4b 17532 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
17533fi
17534
d6a55c4b 17535if test "$wxUSE_GRID" = "yes"; then
698dcdb6 17536 cat >> confdefs.h <<\EOF
d6a55c4b 17537#define wxUSE_GRID 1
10f2d63a
VZ
17538EOF
17539
1e6feb95 17540 USES_CONTROLS=1
d6a55c4b 17541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
17542fi
17543
17544if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17545 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17546#define wxUSE_IMAGLIST 1
17547EOF
17548
17549fi
17550
17551if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 17552 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17553#define wxUSE_LISTBOX 1
17554EOF
17555
1e6feb95 17556 USES_CONTROLS=1
10f2d63a
VZ
17557fi
17558
17559if test "$wxUSE_LISTCTRL" = "yes"; then
17560 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17561 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17562#define wxUSE_LISTCTRL 1
17563EOF
17564
1e6feb95 17565 USES_CONTROLS=1
10f2d63a
VZ
17566 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17567 else
698dcdb6 17568 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17569 fi
17570fi
17571
17572if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 17573 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17574#define wxUSE_NOTEBOOK 1
17575EOF
17576
1e6feb95 17577 USES_CONTROLS=1
10f2d63a
VZ
17578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17579fi
17580
24176f2c
GD
17581if test "$wxUSE_PROPSHEET" = "yes"; then
17582 cat >> confdefs.h <<\EOF
17583#define wxUSE_PROPSHEET 1
17584EOF
17585
17586 USES_CONTROLS=1
17587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17588fi
17589
10f2d63a 17590if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 17591 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17592#define wxUSE_RADIOBOX 1
17593EOF
17594
1e6feb95 17595 USES_CONTROLS=1
10f2d63a
VZ
17596fi
17597
17598if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 17599 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17600#define wxUSE_RADIOBTN 1
17601EOF
17602
1e6feb95 17603 USES_CONTROLS=1
10f2d63a
VZ
17604fi
17605
17606if test "$wxUSE_SASH" = "yes"; then
698dcdb6 17607 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17608#define wxUSE_SASH 1
17609EOF
17610
17611 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17612fi
17613
17614if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 17615 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17616#define wxUSE_SCROLLBAR 1
17617EOF
17618
1e6feb95 17619 USES_CONTROLS=1
741a9306 17620 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
17621fi
17622
17623if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 17624 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17625#define wxUSE_SLIDER 1
17626EOF
17627
1e6feb95 17628 USES_CONTROLS=1
10f2d63a
VZ
17629fi
17630
17631if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 17632 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17633#define wxUSE_SPINBTN 1
17634EOF
17635
1e6feb95 17636 USES_CONTROLS=1
10f2d63a
VZ
17637fi
17638
56cfaa52 17639if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 17640 cat >> confdefs.h <<\EOF
56cfaa52
RR
17641#define wxUSE_SPINCTRL 1
17642EOF
17643
1e6feb95 17644 USES_CONTROLS=1
56cfaa52
RR
17645fi
17646
10f2d63a 17647if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 17648 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17649#define wxUSE_SPLITTER 1
17650EOF
17651
17652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17653fi
17654
17655if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 17656 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17657#define wxUSE_STATBMP 1
17658EOF
17659
1e6feb95 17660 USES_CONTROLS=1
10f2d63a
VZ
17661fi
17662
17663if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 17664 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17665#define wxUSE_STATBOX 1
17666EOF
17667
1e6feb95
VZ
17668 USES_CONTROLS=1
17669fi
17670
17671if test "$wxUSE_STATTEXT" = "yes"; then
17672 cat >> confdefs.h <<\EOF
17673#define wxUSE_STATTEXT 1
17674EOF
17675
17676 USES_CONTROLS=1
10f2d63a
VZ
17677fi
17678
17679if test "$wxUSE_STATLINE" = "yes"; then
17680 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 17681 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 17682 else
698dcdb6 17683 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17684#define wxUSE_STATLINE 1
17685EOF
17686
1e6feb95 17687 USES_CONTROLS=1
10f2d63a
VZ
17688 fi
17689fi
17690
17691if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 17692 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17693#define wxUSE_STATUSBAR 1
17694EOF
17695
1e6feb95 17696 USES_CONTROLS=1
698dcdb6 17697
2286341c 17698 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
17699fi
17700
17701if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 17702 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17703#define wxUSE_TAB_DIALOG 1
17704EOF
17705
17706 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17707fi
17708
1e6feb95
VZ
17709if test "$wxUSE_TEXTCTRL" = "yes"; then
17710 cat >> confdefs.h <<\EOF
17711#define wxUSE_TEXTCTRL 1
17712EOF
17713
17714 USES_CONTROLS=1
17715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17716fi
17717
1db8dc4a 17718if test "$wxUSE_TOGGLEBTN" = "yes"; then
a45d7ab7
GD
17719 if test "$wxUSE_MAC" = 1; then
17720 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17721 wxUSE_TOGGLEBTN=no
17722 fi
17723
17724 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17725 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
17726#define wxUSE_TOGGLEBTN 1
17727EOF
17728
1e6feb95 17729 USES_CONTROLS=1
a45d7ab7 17730 fi
1db8dc4a
VZ
17731fi
17732
360d6699 17733if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 17734 cat >> confdefs.h <<\EOF
360d6699
VZ
17735#define wxUSE_TOOLBAR_SIMPLE 1
17736EOF
17737
17738 wxUSE_TOOLBAR="yes"
1e6feb95 17739 USES_CONTROLS=1
360d6699
VZ
17740fi
17741
10f2d63a 17742if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 17743 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17744#define wxUSE_TOOLBAR 1
17745EOF
17746
1e6feb95 17747 USES_CONTROLS=1
698dcdb6 17748
360d6699
VZ
17749 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17750 wxUSE_TOOLBAR_NATIVE="yes"
17751 fi
17752
1e6feb95
VZ
17753 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17754 cat >> confdefs.h <<\EOF
360d6699
VZ
17755#define wxUSE_TOOLBAR_NATIVE 1
17756EOF
17757
1e6feb95
VZ
17758 USES_CONTROLS=1
17759 fi
17760
17761 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
17762fi
17763
10f2d63a
VZ
17764if test "$wxUSE_TOOLTIPS" = "yes"; then
17765 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17766 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
17767 else
17768 if test "$wxUSE_WINE" = 1; then
698dcdb6 17769 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 17770 else
698dcdb6 17771 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17772#define wxUSE_TOOLTIPS 1
17773EOF
17774
17775 fi
17776 fi
17777fi
17778
17779if test "$wxUSE_TREECTRL" = "yes"; then
17780 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17781 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17782#define wxUSE_TREECTRL 1
17783EOF
17784
1e6feb95 17785 USES_CONTROLS=1
10f2d63a
VZ
17786 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17787 else
698dcdb6 17788 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17789 fi
17790fi
17791
9f41d601 17792if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65
GD
17793 if test "$wxUSE_MAC" = 1; then
17794 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17795 else
17796 cat >> confdefs.h <<\EOF
9f41d601
RR
17797#define wxUSE_POPUPWIN 1
17798EOF
17799
6abe4b65
GD
17800 USES_CONTROLS=1
17801 fi
9f41d601
RR
17802fi
17803
1e6feb95
VZ
17804if test "$USES_CONTROLS" = 1; then
17805 cat >> confdefs.h <<\EOF
17806#define wxUSE_CONTROLS 1
10f2d63a
VZ
17807EOF
17808
10f2d63a
VZ
17809fi
17810
1e6feb95 17811
24176f2c
GD
17812if test "$wxUSE_TREELAYOUT" = "yes"; then
17813 cat >> confdefs.h <<\EOF
17814#define wxUSE_TREELAYOUT 1
17815EOF
17816
17817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17818fi
1e6feb95 17819
24fd6d87
VZ
17820if test "$wxUSE_DRAGIMAGE" = "yes"; then
17821 cat >> confdefs.h <<\EOF
17822#define wxUSE_DRAGIMAGE 1
17823EOF
17824
17825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17826fi
17827
1e6feb95 17828if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 17829 cat >> confdefs.h <<\EOF
1e6feb95 17830#define wxUSE_MENUS 1
10f2d63a
VZ
17831EOF
17832
1e6feb95 17833 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
17834fi
17835
1e6feb95
VZ
17836if test "$wxUSE_METAFILE" = "yes"; then
17837 cat >> confdefs.h <<\EOF
17838#define wxUSE_METAFILE 1
10f2d63a
VZ
17839EOF
17840
10f2d63a
VZ
17841fi
17842
1e6feb95
VZ
17843if test "$wxUSE_MIMETYPE" = "yes"; then
17844 cat >> confdefs.h <<\EOF
17845#define wxUSE_MIMETYPE 1
10f2d63a
VZ
17846EOF
17847
10f2d63a
VZ
17848fi
17849
3e44f09d
VZ
17850if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17851 cat >> confdefs.h <<\EOF
17852#define wxUSE_SYSTEM_OPTIONS 1
17853EOF
17854
17855fi
17856
10f2d63a 17857if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 17858 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17859#define wxUSE_MINIFRAME 1
17860EOF
17861
17862 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17863fi
17864
17865if test "$wxUSE_HTML" = "yes"; then
698dcdb6 17866 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17867#define wxUSE_HTML 1
17868EOF
17869
17870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
17871fi
17872
17873if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 17874 cat >> confdefs.h <<\EOF
1e487827
VS
17875#define wxUSE_VALIDATORS 1
17876EOF
703e0a69 17877
698dcdb6
VZ
17878 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17879fi
17880
edae8572
VZ
17881if test "$wxUSE_PALETTE" = "yes" ; then
17882 cat >> confdefs.h <<\EOF
17883#define wxUSE_PALETTE 1
17884EOF
17885
17886fi
17887
698dcdb6
VZ
17888if test "$wxUSE_IMAGE" = "yes" ; then
17889 cat >> confdefs.h <<\EOF
17890#define wxUSE_IMAGE 1
17891EOF
17892
17893fi
17894
17895if test "$wxUSE_GIF" = "yes" ; then
17896 cat >> confdefs.h <<\EOF
17897#define wxUSE_GIF 1
17898EOF
17899
17900fi
17901
17902if test "$wxUSE_PCX" = "yes" ; then
17903 cat >> confdefs.h <<\EOF
17904#define wxUSE_PCX 1
17905EOF
17906
17907fi
17908
17909if test "$wxUSE_PNM" = "yes" ; then
17910 cat >> confdefs.h <<\EOF
17911#define wxUSE_PNM 1
17912EOF
17913
17914fi
17915
17916if test "$wxUSE_XPM" = "yes" ; then
17917 cat >> confdefs.h <<\EOF
17918#define wxUSE_XPM 1
17919EOF
17920
17921fi
17922
17923
1e6feb95
VZ
17924if test "$wxUSE_CHOICEDLG" = "yes"; then
17925 cat >> confdefs.h <<\EOF
17926#define wxUSE_CHOICEDLG 1
17927EOF
17928
17929fi
17930
17931if test "$wxUSE_COLOURDLG" = "yes"; then
17932 cat >> confdefs.h <<\EOF
17933#define wxUSE_COLOURDLG 1
17934EOF
17935
17936fi
17937
17938if test "$wxUSE_FILEDLG" = "yes"; then
17939 cat >> confdefs.h <<\EOF
17940#define wxUSE_FILEDLG 1
17941EOF
17942
17943fi
17944
8db37e06
VZ
17945if test "$wxUSE_FINDREPLDLG" = "yes"; then
17946 cat >> confdefs.h <<\EOF
17947#define wxUSE_FINDREPLDLG 1
17948EOF
17949
17950fi
17951
1e6feb95
VZ
17952if test "$wxUSE_FONTDLG" = "yes"; then
17953 cat >> confdefs.h <<\EOF
17954#define wxUSE_FONTDLG 1
17955EOF
17956
17957fi
17958
17959if test "$wxUSE_DIRDLG" = "yes"; then
17960 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17961 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17962 else
17963 if test "$wxUSE_TREECTRL" != "yes"; then
17964 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17965 else
17966 cat >> confdefs.h <<\EOF
17967#define wxUSE_DIRDLG 1
17968EOF
17969
17970 fi
17971 fi
17972fi
17973
17974if test "$wxUSE_MSGDLG" = "yes"; then
17975 cat >> confdefs.h <<\EOF
17976#define wxUSE_MSGDLG 1
17977EOF
17978
17979fi
17980
17981if test "$wxUSE_NUMBERDLG" = "yes"; then
17982 cat >> confdefs.h <<\EOF
17983#define wxUSE_NUMBERDLG 1
17984EOF
17985
17986fi
17987
17988if test "$wxUSE_PROGRESSDLG" = "yes"; then
17989 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17990 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17991 else
17992 cat >> confdefs.h <<\EOF
17993#define wxUSE_PROGRESSDLG 1
17994EOF
17995
17996 fi
17997fi
17998
cbca9943
VZ
17999if test "$wxUSE_SPLASH" = "yes"; then
18000 cat >> confdefs.h <<\EOF
18001#define wxUSE_SPLASH 1
18002EOF
18003
18004fi
18005
1e6feb95
VZ
18006if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18007 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18008 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18009 else
18010 cat >> confdefs.h <<\EOF
18011#define wxUSE_STARTUP_TIPS 1
18012EOF
18013
18014 fi
18015fi
18016
18017if test "$wxUSE_TEXTDLG" = "yes"; then
18018 cat >> confdefs.h <<\EOF
18019#define wxUSE_TEXTDLG 1
18020EOF
18021
18022fi
18023
b1f5d087
VZ
18024if test "$wxUSE_WIZARDDLG" = "yes"; then
18025 cat >> confdefs.h <<\EOF
18026#define wxUSE_WIZARDDLG 1
18027EOF
18028
18029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18030fi
18031
1e6feb95 18032
698dcdb6
VZ
18033if test "$cross_compiling" = "yes"; then
18034 OSINFO="\"$host\""
18035else
18036 OSINFO=`uname -s -r -m`
18037 OSINFO="\"$OSINFO\""
18038fi
18039
18040cat >> confdefs.h <<EOF
18041#define WXWIN_OS_DESCRIPTION $OSINFO
18042EOF
18043
18044
18045
06dda230
VZ
18046if test "x$prefix" != "xNONE"; then
18047 wxPREFIX=$prefix
18048else
18049 wxPREFIX=$ac_default_prefix
18050fi
18051
7e67ed0d 18052cat >> confdefs.h <<EOF
06dda230 18053#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
18054EOF
18055
18056
18057
698dcdb6 18058GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
698dcdb6
VZ
18059
18060EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
3a922bb4 18061
f11bdd03 18062if test "$wxUSE_MAC" = 1 ; then
698dcdb6
VZ
18063 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
18064fi
3a922bb4 18065
698dcdb6
VZ
18066if test "$wxUSE_GUI" = "yes"; then
18067 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
3a922bb4
RL
18068
18069
18070 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18071 drawing dynamic erase event exec font image \
18072 minimal richedit rotate widgets"
18073
18074 if test "$wxUSE_UNIVERSAL" = "yes" ; then
18075 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
18076 fi
18077
18078 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18079else
18080 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
18081fi
18082
18083LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
18084
3a922bb4 18085INCLUDES="-I. -I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
3e44f09d
VZ
18086$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18087$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6
VZ
18088
18089if test "$wxUSE_GTK" = 1; then
18090 WXCONFIG_INCLUDE=""
18091else
18092 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18093fi
18094
18095if test "$GXX" = yes ; then
18096 CXXWARNINGS="-Wall"
18097 fi
18098EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
18099
18100CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18101CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18102
18103LDFLAGS="$LDFLAGS $PROFILE"
18104
698dcdb6
VZ
18105SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
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
32832908 18173
2f51a9ec
GD
18174
18175
18176
18177
f6bcfd97 18178
dad6c0ea 18179
caa2c79b 18180
3711412e 18181
1e6feb95
VZ
18182
18183
0f3f1cbc 18184
18dbb1f6 18185
10f2d63a
VZ
18186
18187
698dcdb6 18188echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1a4f0015 18189echo "configure:18190: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
18190set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18191if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18192 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18193else
698dcdb6 18194 cat > conftestmake <<\EOF
10f2d63a
VZ
18195all:
18196 @echo 'ac_maketemp="${MAKE}"'
18197EOF
18198# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 18199eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
18200if test -n "$ac_maketemp"; then
18201 eval ac_cv_prog_make_${ac_make}_set=yes
18202else
18203 eval ac_cv_prog_make_${ac_make}_set=no
18204fi
698dcdb6 18205rm -f conftestmake
10f2d63a
VZ
18206fi
18207if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 18208 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
18209 SET_MAKE=
18210else
698dcdb6 18211 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18212 SET_MAKE="MAKE=${MAKE-make}"
18213fi
18214
698dcdb6 18215
3a922bb4
RL
18216if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18217 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 18218fi
665bbe97 18219
698dcdb6 18220
10f2d63a 18221
2224580a 18222if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 18223 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
18224 wx_cv_path_ifs=$PATH_IFS
18225 wx_cv_program_ext=$PROGRAM_EXT
18226 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 18227 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 18228 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 18229 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 18230 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 18231 subdirs="demos samples utils contrib"
2224580a
VZ
18232
18233fi
10f2d63a 18234
698dcdb6
VZ
18235trap '' 1 2 15
18236cat > confcache <<\EOF
10f2d63a
VZ
18237# This file is a shell script that caches the results of configure
18238# tests run on this system so they can be shared between configure
698dcdb6
VZ
18239# scripts and configure runs. It is not useful on other systems.
18240# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 18241#
698dcdb6
VZ
18242# By default, configure uses ./config.cache as the cache file,
18243# creating it if it does not exist already. You can give configure
18244# the --cache-file=FILE option to use a different cache file; that is
18245# what configure does when it calls configure scripts in
18246# subdirectories, so they share the cache.
18247# Giving --cache-file=/dev/null disables caching, for debugging configure.
18248# config.status only pays attention to the cache file if you give it the
18249# --recheck option to rerun configure.
10f2d63a 18250#
698dcdb6 18251EOF
10f2d63a
VZ
18252# The following way of writing the cache mishandles newlines in values,
18253# but we know of no workaround that is simple, portable, and efficient.
18254# So, don't put newlines in cache variables' values.
18255# Ultrix sh set writes to stderr and can't be redirected directly,
18256# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
18257(set) 2>&1 |
18258 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18259 *ac_space=\ *)
18260 # `set' does not quote correctly, so add quotes (double-quote substitution
18261 # turns \\\\ into \\, and sed turns \\ into \).
18262 sed -n \
18263 -e "s/'/'\\\\''/g" \
18264 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18265 ;;
18266 *)
18267 # `set' quotes correctly as required by POSIX, so do not add quotes.
18268 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18269 ;;
18270 esac >> confcache
18271if cmp -s $cache_file confcache; then
18272 :
18273else
10f2d63a 18274 if test -w $cache_file; then
698dcdb6
VZ
18275 echo "updating cache $cache_file"
18276 cat confcache > $cache_file
10f2d63a
VZ
18277 else
18278 echo "not updating unwritable cache $cache_file"
18279 fi
18280fi
18281rm -f confcache
18282
698dcdb6
VZ
18283trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18284
10f2d63a
VZ
18285test "x$prefix" = xNONE && prefix=$ac_default_prefix
18286# Let make expand exec_prefix.
18287test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18288
698dcdb6
VZ
18289# Any assignment to VPATH causes Sun make to only execute
18290# the first set of double-colon rules, so remove it if not needed.
18291# If there is a colon in the path, we need to keep it.
10f2d63a 18292if test "x$srcdir" = x.; then
698dcdb6 18293 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
18294fi
18295
698dcdb6
VZ
18296trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18297
10f2d63a
VZ
18298DEFS=-DHAVE_CONFIG_H
18299
698dcdb6 18300# Without the "./", some shells look in PATH for config.status.
10f2d63a 18301: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
18302
18303echo creating $CONFIG_STATUS
18304rm -f $CONFIG_STATUS
18305cat > $CONFIG_STATUS <<EOF
18306#! /bin/sh
10f2d63a
VZ
18307# Generated automatically by configure.
18308# Run this file to recreate the current configuration.
698dcdb6
VZ
18309# This directory was configured as follows,
18310# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18311#
18312# $0 $ac_configure_args
18313#
10f2d63a 18314# Compiler output produced by configure, useful for debugging
698dcdb6 18315# configure, is in ./config.log if it exists.
1e487827 18316
698dcdb6
VZ
18317ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18318for ac_option
10f2d63a 18319do
698dcdb6 18320 case "\$ac_option" in
10f2d63a 18321 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
18322 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18323 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18324 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18325 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18326 exit 0 ;;
18327 -help | --help | --hel | --he | --h)
18328 echo "\$ac_cs_usage"; exit 0 ;;
18329 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
18330 esac
18331done
18332
698dcdb6
VZ
18333ac_given_srcdir=$srcdir
18334ac_given_INSTALL="$INSTALL"
703e0a69 18335
698dcdb6
VZ
18336trap 'rm -fr `echo "
18337 wx-config
18338 src/make.env
18339 src/makeprog.env
18340 src/makelib.env
18341 Makefile
18342 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 18343EOF
698dcdb6 18344cat >> $CONFIG_STATUS <<EOF
1e487827 18345
698dcdb6
VZ
18346# Protect against being on the right side of a sed subst in config.status.
18347sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18348 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18349$ac_vpsub
18350$extrasub
18351s%@SHELL@%$SHELL%g
18352s%@CFLAGS@%$CFLAGS%g
18353s%@CPPFLAGS@%$CPPFLAGS%g
18354s%@CXXFLAGS@%$CXXFLAGS%g
18355s%@FFLAGS@%$FFLAGS%g
18356s%@DEFS@%$DEFS%g
18357s%@LDFLAGS@%$LDFLAGS%g
18358s%@LIBS@%$LIBS%g
18359s%@exec_prefix@%$exec_prefix%g
18360s%@prefix@%$prefix%g
18361s%@program_transform_name@%$program_transform_name%g
18362s%@bindir@%$bindir%g
18363s%@sbindir@%$sbindir%g
18364s%@libexecdir@%$libexecdir%g
18365s%@datadir@%$datadir%g
18366s%@sysconfdir@%$sysconfdir%g
18367s%@sharedstatedir@%$sharedstatedir%g
18368s%@localstatedir@%$localstatedir%g
18369s%@libdir@%$libdir%g
18370s%@includedir@%$includedir%g
18371s%@oldincludedir@%$oldincludedir%g
18372s%@infodir@%$infodir%g
18373s%@mandir@%$mandir%g
18374s%@host@%$host%g
18375s%@host_alias@%$host_alias%g
18376s%@host_cpu@%$host_cpu%g
18377s%@host_vendor@%$host_vendor%g
18378s%@host_os@%$host_os%g
18379s%@target@%$target%g
18380s%@target_alias@%$target_alias%g
18381s%@target_cpu@%$target_cpu%g
18382s%@target_vendor@%$target_vendor%g
18383s%@target_os@%$target_os%g
18384s%@build@%$build%g
18385s%@build_alias@%$build_alias%g
18386s%@build_cpu@%$build_cpu%g
18387s%@build_vendor@%$build_vendor%g
18388s%@build_os@%$build_os%g
18389s%@CC@%$CC%g
18390s%@CPP@%$CPP%g
18391s%@CXX@%$CXX%g
698dcdb6
VZ
18392s%@RANLIB@%$RANLIB%g
18393s%@AR@%$AR%g
18394s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18395s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18396s%@INSTALL_DATA@%$INSTALL_DATA%g
18397s%@STRIP@%$STRIP%g
18398s%@YACC@%$YACC%g
18399s%@LEX@%$LEX%g
18400s%@LEXLIB@%$LEXLIB%g
18401s%@LN_S@%$LN_S%g
18402s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
18403s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18404s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 18405s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
18406s%@X_CFLAGS@%$X_CFLAGS%g
18407s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18408s%@X_LIBS@%$X_LIBS%g
18409s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 18410s%@RESCOMP@%$RESCOMP%g
698dcdb6 18411s%@DEREZ@%$DEREZ%g
3a922bb4 18412s%@CXXCPP@%$CXXCPP%g
698dcdb6
VZ
18413s%@LEX_STEM@%$LEX_STEM%g
18414s%@PATH_IFS@%$PATH_IFS%g
18415s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18416s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18417s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
18418s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18419s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
698dcdb6
VZ
18420s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18421s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18422s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 18423s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
18424s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18425s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
18426s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18427s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18428s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
18429s%@WX_ALL@%$WX_ALL%g
18430s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18431s%@SHARED_LD@%$SHARED_LD%g
18432s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
18433s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18434s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
18435s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18436s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
18437s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18438s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18439s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18440s%@USE_GUI@%$USE_GUI%g
18441s%@AFMINSTALL@%$AFMINSTALL%g
18442s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 18443s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 18444s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
18445s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18446s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18447s%@cross_compiling@%$cross_compiling%g
18448s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18449s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
698dcdb6
VZ
18450s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18451s%@ALL_OBJECTS@%$ALL_OBJECTS%g
698dcdb6
VZ
18452s%@GUIDIST@%$GUIDIST%g
18453s%@PORT_FILES@%$PORT_FILES%g
18454s%@DISTDIR@%$DISTDIR%g
18455s%@RPM_SPEC@%$RPM_SPEC%g
18456s%@RPM_FILES@%$RPM_FILES%g
698dcdb6 18457s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
698dcdb6
VZ
18458s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18459s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18460s%@EXTRADEFS@%$EXTRADEFS%g
18461s%@LD_LIBS@%$LD_LIBS%g
18dbb1f6 18462s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
698dcdb6 18463s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 18464s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
d08b457b 18465s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
698dcdb6
VZ
18466s%@LIBWXMACRES@%$LIBWXMACRES%g
18467s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18468s%@DLLTOOL@%$DLLTOOL%g
18469s%@AS@%$AS%g
18470s%@NM@%$NM%g
18471s%@LD@%$LD%g
18472s%@MAKEINFO@%$MAKEINFO%g
18473s%@SET_MAKE@%$SET_MAKE%g
18474s%@subdirs@%$subdirs%g
1e487827 18475
1e487827 18476CEOF
1e487827
VS
18477EOF
18478
698dcdb6
VZ
18479cat >> $CONFIG_STATUS <<\EOF
18480
18481# Split the substitutions into bite-sized pieces for seds with
18482# small command number limits, like on Digital OSF/1 and HP-UX.
18483ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18484ac_file=1 # Number of current file.
18485ac_beg=1 # First line for current file.
18486ac_end=$ac_max_sed_cmds # Line after last line for current file.
18487ac_more_lines=:
18488ac_sed_cmds=""
18489while $ac_more_lines; do
18490 if test $ac_beg -gt 1; then
18491 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18492 else
18493 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18494 fi
18495 if test ! -s conftest.s$ac_file; then
18496 ac_more_lines=false
18497 rm -f conftest.s$ac_file
18498 else
18499 if test -z "$ac_sed_cmds"; then
18500 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 18501 else
698dcdb6 18502 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 18503 fi
698dcdb6
VZ
18504 ac_file=`expr $ac_file + 1`
18505 ac_beg=$ac_end
18506 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 18507 fi
698dcdb6
VZ
18508done
18509if test -z "$ac_sed_cmds"; then
18510 ac_sed_cmds=cat
18511fi
18512EOF
10f2d63a 18513
698dcdb6
VZ
18514cat >> $CONFIG_STATUS <<EOF
18515
18516CONFIG_FILES=\${CONFIG_FILES-"wx-config
18517 src/make.env
18518 src/makeprog.env
18519 src/makelib.env
18520 Makefile
18521 "}
10f2d63a 18522EOF
698dcdb6
VZ
18523cat >> $CONFIG_STATUS <<\EOF
18524for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 18525 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18526 case "$ac_file" in
18527 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18528 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18529 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18530 esac
18531
698dcdb6 18532 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 18533
698dcdb6
VZ
18534 # Remove last slash and all that follows it. Not all systems have dirname.
18535 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18536 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18537 # The file is in a subdirectory.
18538 test ! -d "$ac_dir" && mkdir "$ac_dir"
18539 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 18540 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 18541 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
18542 else
18543 ac_dir_suffix= ac_dots=
18544 fi
18545
698dcdb6
VZ
18546 case "$ac_given_srcdir" in
18547 .) srcdir=.
18548 if test -z "$ac_dots"; then top_srcdir=.
18549 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18550 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 18551 *) # Relative path.
698dcdb6
VZ
18552 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18553 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
18554 esac
18555
698dcdb6
VZ
18556 case "$ac_given_INSTALL" in
18557 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18558 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
18559 esac
18560
698dcdb6
VZ
18561 echo creating "$ac_file"
18562 rm -f "$ac_file"
18563 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18564 case "$ac_file" in
18565 *Makefile*) ac_comsub="1i\\
18566# $configure_input" ;;
18567 *) ac_comsub= ;;
18568 esac
10f2d63a 18569
698dcdb6
VZ
18570 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18571 sed -e "$ac_comsub
18572s%@configure_input@%$configure_input%g
18573s%@srcdir@%$srcdir%g
18574s%@top_srcdir@%$top_srcdir%g
18575s%@INSTALL@%$INSTALL%g
18576" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18577fi; done
18578rm -f conftest.s*
10f2d63a
VZ
18579
18580# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18581# NAME is the cpp macro being defined and VALUE is the value it is being given.
18582#
18583# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
18584ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18585ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18586ac_dC='\3'
18587ac_dD='%g'
18588# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18589ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18590ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 18591ac_uC=' '
698dcdb6
VZ
18592ac_uD='\4%g'
18593# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18594ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18595ac_eB='$%\1#\2define\3'
18596ac_eC=' '
18597ac_eD='%g'
10f2d63a 18598
698dcdb6
VZ
18599if test "${CONFIG_HEADERS+set}" != set; then
18600EOF
18601cat >> $CONFIG_STATUS <<EOF
18602 CONFIG_HEADERS="setup.h:setup.h.in"
18603EOF
18604cat >> $CONFIG_STATUS <<\EOF
18605fi
18606for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 18607 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18608 case "$ac_file" in
18609 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18610 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18611 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18612 esac
18613
698dcdb6
VZ
18614 echo creating $ac_file
18615
18616 rm -f conftest.frag conftest.in conftest.out
18617 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18618 cat $ac_file_inputs > conftest.in
18619
18620EOF
18621
18622# Transform confdefs.h into a sed script conftest.vals that substitutes
18623# the proper values into config.h.in to produce config.h. And first:
18624# Protect against being on the right side of a sed subst in config.status.
18625# Protect against being in an unquoted here document in config.status.
18626rm -f conftest.vals
18627cat > conftest.hdr <<\EOF
18628s/[\\&%]/\\&/g
18629s%[\\$`]%\\&%g
18630s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18631s%ac_d%ac_u%gp
18632s%ac_u%ac_e%gp
18633EOF
18634sed -n -f conftest.hdr confdefs.h > conftest.vals
18635rm -f conftest.hdr
10f2d63a
VZ
18636
18637# This sed command replaces #undef with comments. This is necessary, for
18638# example, in the case of _POSIX_SOURCE, which is predefined and required
18639# on some systems where configure will not decide to define it.
698dcdb6
VZ
18640cat >> conftest.vals <<\EOF
18641s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
18642EOF
18643
698dcdb6
VZ
18644# Break up conftest.vals because some shells have a limit on
18645# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
18646
18647rm -f conftest.tail
698dcdb6 18648while :
10f2d63a 18649do
698dcdb6
VZ
18650 ac_lines=`grep -c . conftest.vals`
18651 # grep -c gives empty output for an empty file on some AIX systems.
18652 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18653 # Write a limited-size here document to conftest.frag.
18654 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18655 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 18656 echo 'CEOF
698dcdb6
VZ
18657 sed -f conftest.frag conftest.in > conftest.out
18658 rm -f conftest.in
18659 mv conftest.out conftest.in
18660' >> $CONFIG_STATUS
18661 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18662 rm -f conftest.vals
18663 mv conftest.tail conftest.vals
10f2d63a 18664done
698dcdb6
VZ
18665rm -f conftest.vals
18666
18667cat >> $CONFIG_STATUS <<\EOF
18668 rm -f conftest.frag conftest.h
18669 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18670 cat conftest.in >> conftest.h
18671 rm -f conftest.in
18672 if cmp -s $ac_file conftest.h 2>/dev/null; then
18673 echo "$ac_file is unchanged"
18674 rm -f conftest.h
10f2d63a 18675 else
698dcdb6
VZ
18676 # Remove last slash and all that follows it. Not all systems have dirname.
18677 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 18678 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
18679 # The file is in a subdirectory.
18680 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 18681 fi
698dcdb6
VZ
18682 rm -f $ac_file
18683 mv conftest.h $ac_file
10f2d63a 18684 fi
698dcdb6
VZ
18685fi; done
18686
10f2d63a 18687EOF
698dcdb6 18688cat >> $CONFIG_STATUS <<EOF
10f2d63a 18689
3a922bb4 18690 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
18691 LN_S="${LN_S}"
18692
18693
18694EOF
18695cat >> $CONFIG_STATUS <<\EOF
10f2d63a 18696
3a922bb4 18697 if test ! -L wx-config; then
991a5759 18698 chmod +x wx-config
3a922bb4
RL
18699 mv wx-config wx${TOOLCHAIN_NAME}-config
18700 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 18701 fi
665bbe97 18702
00cf1208
RR
18703 if test ! -d lib; then
18704 mkdir lib
18705 fi
18706 if test ! -d lib/wx; then
18707 mkdir lib/wx
18708 fi
18709 if test ! -d lib/wx/include; then
18710 mkdir lib/wx/include
18711 fi
3a922bb4
RL
18712 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
18713 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 18714 fi
3a922bb4
RL
18715 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
18716 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
18717 fi
18718 if test -f setup.h; then
3a922bb4 18719 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 18720 fi
698dcdb6
VZ
18721
18722exit 0
10f2d63a
VZ
18723EOF
18724chmod +x $CONFIG_STATUS
698dcdb6
VZ
18725rm -fr confdefs* $ac_clean_files
18726test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 18727
2224580a
VZ
18728if test "$no_recursion" != yes; then
18729
18730 # Remove --cache-file and --srcdir arguments so they do not pile up.
18731 ac_sub_configure_args=
18732 ac_prev=
18733 for ac_arg in $ac_configure_args; do
18734 if test -n "$ac_prev"; then
18735 ac_prev=
18736 continue
18737 fi
698dcdb6 18738 case "$ac_arg" in
2224580a
VZ
18739 -cache-file | --cache-file | --cache-fil | --cache-fi \
18740 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18741 ac_prev=cache_file ;;
18742 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 18743 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
18744 ;;
18745 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18746 ac_prev=srcdir ;;
18747 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18748 ;;
18749 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18750 esac
18751 done
18752
698dcdb6 18753 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
18754
18755 # Do not complain, so a configure script can configure whichever
18756 # parts of a large source tree are present.
698dcdb6
VZ
18757 if test ! -d $srcdir/$ac_config_dir; then
18758 continue
18759 fi
18760
18761 echo configuring in $ac_config_dir
2224580a 18762
698dcdb6 18763 case "$srcdir" in
2224580a
VZ
18764 .) ;;
18765 *)
698dcdb6
VZ
18766 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18767 else
18768 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18769 fi
18770 ;;
2224580a
VZ
18771 esac
18772
18773 ac_popdir=`pwd`
698dcdb6 18774 cd $ac_config_dir
2224580a 18775
698dcdb6
VZ
18776 # A "../" for each directory in /$ac_config_dir.
18777 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 18778
698dcdb6 18779 case "$srcdir" in
2224580a
VZ
18780 .) # No --srcdir option. We are building in place.
18781 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
18782 /*) # Absolute path.
18783 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 18784 *) # Relative path.
698dcdb6 18785 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
18786 esac
18787
18788 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
18789 if test -f $ac_sub_srcdir/configure; then
18790 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
18791 elif test -f $ac_sub_srcdir/configure.in; then
18792 ac_sub_configure=$ac_configure
18793 else
698dcdb6 18794 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
18795 ac_sub_configure=
18796 fi
18797
18798 # The recursion is here.
18799 if test -n "$ac_sub_configure"; then
698dcdb6 18800
2224580a 18801 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
18802 case "$cache_file" in
18803 /*) ac_sub_cache_file=$cache_file ;;
2224580a 18804 *) # Relative path.
698dcdb6 18805 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 18806 esac
698dcdb6
VZ
18807 case "$ac_given_INSTALL" in
18808 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18809 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18810 esac
2224580a 18811
698dcdb6 18812 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 18813 # The eval makes quoting arguments work.
698dcdb6
VZ
18814 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18815 then :
18816 else
18817 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18818 fi
2224580a
VZ
18819 fi
18820
18821 cd $ac_popdir
18822 done
18823fi
18824
698dcdb6 18825