]> git.saurik.com Git - wxWidgets.git/blame - configure
oops, last check in undone - there is a problem somewhere there...
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
698dcdb6 3# From configure.in Id: configure.in
703e0a69
VZ
4
5
6
7
8
703e0a69
VZ
9
10
1e487827 11
1e487827 12
698dcdb6
VZ
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
8168de4c
VZ
38
39# Configure paths for GTK+
40# Owen Taylor 97-11-3
698dcdb6
VZ
41
42
43
44
698dcdb6
VZ
45
46
47# Guess values for system-dependent variables and create Makefiles.
48# Generated automatically using autoconf version 2.13
49# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50#
51# This configure script is free software; the Free Software Foundation
52# gives unlimited permission to copy, distribute and modify it.
53
54# Defaults:
55ac_help=
56ac_default_prefix=/usr/local
57# Any additions from configure.in:
58ac_help="$ac_help
8168de4c 59 --enable-gui use GUI classes"
1e6feb95 60ac_help="$ac_help
8168de4c 61 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
62ac_help="$ac_help
63 --with-gtk use GTK+"
64ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66ac_help="$ac_help
67 --with-mac use Mac OS X"
68ac_help="$ac_help
69 --with-wine use WINE"
70ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
1e6feb95
VZ
76ac_help="$ac_help
77 --with-mgl use MGL"
698dcdb6 78ac_help="$ac_help
8168de4c 79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 80ac_help="$ac_help
8168de4c 81 --with-libpng use libpng (PNG image format)"
698dcdb6 82ac_help="$ac_help
8168de4c 83 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 84ac_help="$ac_help
8168de4c 85 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 86ac_help="$ac_help
8168de4c 87 --with-freetype use freetype (font rasterizer)"
698dcdb6 88ac_help="$ac_help
8168de4c 89 --with-opengl use OpenGL (or Mesa)"
698dcdb6 90ac_help="$ac_help
8168de4c 91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
3e44f09d
VZ
92ac_help="$ac_help
93 --with-regex enable support for wxRegEx class"
698dcdb6 94ac_help="$ac_help
8168de4c 95 --with-zlib use zlib for LZW compression"
698dcdb6 96ac_help="$ac_help
8168de4c 97 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 98ac_help="$ac_help
8168de4c 99 --enable-shared create shared library code"
698dcdb6 100ac_help="$ac_help
8168de4c 101 --enable-burnt_name create set name in shared library "
698dcdb6 102ac_help="$ac_help
8168de4c 103 --enable-optimise create optimised code"
698dcdb6 104ac_help="$ac_help
8168de4c 105 --enable-debug same as debug_flag and debug_info"
698dcdb6 106ac_help="$ac_help
8168de4c 107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --enable-debug_info create code with debugging information"
698dcdb6 110ac_help="$ac_help
8168de4c 111 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 112ac_help="$ac_help
8168de4c 113 --enable-debug_cntxt use wxDebugContext"
698dcdb6 114ac_help="$ac_help
8168de4c 115 --enable-mem_tracing create code with memory tracing"
698dcdb6 116ac_help="$ac_help
8168de4c 117 --enable-profile create code with profiling information"
698dcdb6 118ac_help="$ac_help
8168de4c 119 --enable-no_rtti create code without RTTI information"
698dcdb6 120ac_help="$ac_help
8168de4c 121 --enable-no_exceptions create code without exceptions information"
698dcdb6 122ac_help="$ac_help
8168de4c 123 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 124ac_help="$ac_help
8168de4c 125 --enable-no_deps create code without dependency information"
54276ccf
VZ
126ac_help="$ac_help
127 --enable-compat20 enable wxWin 2.0 compatibility"
128ac_help="$ac_help
129 --enable-compat22 enable wxWin 2.2 compatibility"
698dcdb6 130ac_help="$ac_help
8168de4c 131 --enable-intl use internationalization system"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-config use wxConfig (and derived) classes"
698dcdb6 134ac_help="$ac_help
8168de4c 135 --enable-sockets use socket/network classes"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 138ac_help="$ac_help
8168de4c 139 --enable-cmdline use wxCmdLineParser class"
1e6feb95 140ac_help="$ac_help
8168de4c 141 --enable-datetime use wxDateTime class"
1e6feb95 142ac_help="$ac_help
8168de4c 143 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 144ac_help="$ac_help
8168de4c 145 --enable-stopwatch use wxStopWatch class"
1e6feb95 146ac_help="$ac_help
8168de4c 147 --enable-dialupman use dialup network classes"
698dcdb6 148ac_help="$ac_help
8168de4c 149 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 150ac_help="$ac_help
8168de4c 151 --enable-timer use wxTimer class"
698dcdb6 152ac_help="$ac_help
8168de4c 153 --enable-wave use wxWave class"
698dcdb6 154ac_help="$ac_help
8168de4c 155 --enable-fraction use wxFraction class"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-dynlib use wxLibrary class for DLL loading"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-longlong use wxLongLong class"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-geometry use geometry class"
698dcdb6 162ac_help="$ac_help
8168de4c 163 --enable-log use logging system"
698dcdb6 164ac_help="$ac_help
8168de4c 165 --enable-streams use wxStream etc classes"
698dcdb6 166ac_help="$ac_help
8168de4c 167 --enable-file use wxFile classes"
698dcdb6 168ac_help="$ac_help
8168de4c 169 --enable-ffile use wxFFile classes"
1e6feb95 170ac_help="$ac_help
8168de4c 171 --enable-textfile use wxTextFile classes"
698dcdb6 172ac_help="$ac_help
8168de4c 173 --enable-fontmap use font encodings conversion classes"
1e6feb95 174ac_help="$ac_help
8168de4c 175 --enable-unicode compile wxString with Unicode support"
698dcdb6 176ac_help="$ac_help
8168de4c 177 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
698dcdb6 178ac_help="$ac_help
8168de4c 179 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 180ac_help="$ac_help
8168de4c 181 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-filesystem use virtual file systems classes"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-zipstream use wxZipInputStream"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 192ac_help="$ac_help
8168de4c 193 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 194ac_help="$ac_help
8168de4c 195 --enable-mimetypes use wxMimeTypesManager"
3e44f09d
VZ
196ac_help="$ac_help
197 --enable-sysoptions use wxSystemOptions"
1e6feb95 198ac_help="$ac_help
8168de4c 199 --enable-threads use threads"
698dcdb6 200ac_help="$ac_help
8168de4c 201 --enable-serial use class serialization"
698dcdb6 202ac_help="$ac_help
8168de4c 203 --enable-docview use document view architecture"
698dcdb6 204ac_help="$ac_help
3379ed37 205 --enable-help use help subsystem"
29fd3c0c
VS
206ac_help="$ac_help
207 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
208ac_help="$ac_help
209 --enable-html use wxHTML sub-library"
210ac_help="$ac_help
211 --enable-htmlhelp use wxHTML-based help"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-constraints use layout-constraints system"
698dcdb6 214ac_help="$ac_help
8168de4c 215 --enable-printarch use printing architecture"
698dcdb6 216ac_help="$ac_help
8168de4c 217 --enable-mdi use multiple document interface architecture"
698dcdb6 218ac_help="$ac_help
8168de4c 219 --enable-loggui use standard GUI logger"
1e6feb95 220ac_help="$ac_help
8168de4c 221 --enable-logwin use wxLogWindow"
1e6feb95 222ac_help="$ac_help
8168de4c 223 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-prologio use Prolog IO library"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-resources use wxWindows resources"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-clipboard use wxClipboard classes"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-dnd use Drag'n'Drop classes"
698dcdb6 234ac_help="$ac_help
8168de4c 235 --enable-metafile use win32 metafiles"
698dcdb6 236ac_help="$ac_help
24176f2c 237 --enable-treelayout use wxTreeLayout classes"
698dcdb6 238ac_help="$ac_help
8168de4c 239 --enable-controls use all usual controls"
698dcdb6 240ac_help="$ac_help
8168de4c 241 --enable-accel use accelerators"
698dcdb6 242ac_help="$ac_help
8168de4c 243 --enable-button use wxButton class"
698dcdb6 244ac_help="$ac_help
8168de4c 245 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 246ac_help="$ac_help
8168de4c 247 --enable-calendar use wxCalendarCtrl class"
1e6feb95 248ac_help="$ac_help
8168de4c 249 --enable-caret use wxCaret class"
1e6feb95 250ac_help="$ac_help
8168de4c 251 --enable-checkbox use wxCheckBox class"
698dcdb6 252ac_help="$ac_help
8168de4c 253 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 254ac_help="$ac_help
8168de4c 255 --enable-choice use wxChoice class"
698dcdb6 256ac_help="$ac_help
8168de4c 257 --enable-combobox use wxComboBox classes"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-gauge use wxGauge class"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-grid use wxGrid class"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-newgrid use new wxGrid class"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-imaglist use wxImageList class"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-listbox use wxListBox class"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-listctrl use wxListCtrl class"
698dcdb6 270ac_help="$ac_help
8168de4c 271 --enable-notebook use wxNotebook class"
24176f2c
GD
272ac_help="$ac_help
273 --enable-propsheet use wxPropertySheet class"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-radiobox use wxRadioBox class"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-radiobtn use wxRadioButton class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-sash use wxSashWindow class"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-slider use wxSlider class"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-spinbtn use wxSpinButton class"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-splitter use wxSplitterWindow class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-statbmp use wxStaticBitmap class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-statbox use wxStaticBox class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-statline use wxStaticLine class"
698dcdb6 296ac_help="$ac_help
8168de4c 297 --enable-stattext use wxStaticText class"
1e6feb95 298ac_help="$ac_help
8168de4c 299 --enable-statusbar use wxStatusBar class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-tabdialog use wxTabControl class"
698dcdb6 302ac_help="$ac_help
8168de4c 303 --enable-textctrl use wxTextCtrl class"
1e6feb95 304ac_help="$ac_help
8168de4c 305 --enable-togglebtn use wxToggleButton class"
698dcdb6 306ac_help="$ac_help
8168de4c 307 --enable-toolbar use wxToolBar class"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-tbarnative use native wxToolBar class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 312ac_help="$ac_help
8168de4c 313 --enable-treectrl use wxTreeCtrl class"
9f41d601
RR
314ac_help="$ac_help
315 --enable-popupwin use wxPopUpWindow class"
698dcdb6 316ac_help="$ac_help
8168de4c 317 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
698dcdb6 318ac_help="$ac_help
8168de4c 319 --enable-choicedlg use wxChoiceDialog"
1e6feb95 320ac_help="$ac_help
8168de4c 321 --enable-coldlg use wxColourDialog"
1e6feb95 322ac_help="$ac_help
8168de4c 323 --enable-filedlg use wxFileDialog"
8db37e06
VZ
324ac_help="$ac_help
325 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 326ac_help="$ac_help
8168de4c 327 --enable-fontdlg use wxFontDialog"
1e6feb95 328ac_help="$ac_help
8168de4c 329 --enable-dirdlg use wxDirDialog"
698dcdb6 330ac_help="$ac_help
8168de4c 331 --enable-msgdlg use wxMessageDialog"
1e6feb95 332ac_help="$ac_help
8168de4c 333 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
334ac_help="$ac_help
335 --enable-splash use wxSplashScreen"
1e6feb95 336ac_help="$ac_help
8168de4c 337 --enable-textdlg use wxTextDialog"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-tipdlg use startup tips"
698dcdb6 340ac_help="$ac_help
8168de4c 341 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
342ac_help="$ac_help
343 --enable-wizarddlg use wxWizard"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 346ac_help="$ac_help
8168de4c 347 --enable-miniframe use wxMiniFrame class"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-tooltips use wxToolTip class"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-splines use spline drawing code"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-validators use wxValidator and derived classes"
698dcdb6 354ac_help="$ac_help
8168de4c 355 --enable-busyinfo use wxBusyInfo"
698dcdb6 356ac_help="$ac_help
8168de4c 357 --enable-joystick compile in joystick support (Linux only)"
698dcdb6 358ac_help="$ac_help
8168de4c 359 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
360ac_help="$ac_help
361 --enable-dragimage use wxDragImage"
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
cbca9943 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
cbca9943 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
cbca9943 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
VZ
1061PROGRAM_EXT=
1062
10f2d63a
VZ
1063case "${host}" in
1064 *-hp-hpux* )
1065 USE_HPUX=1
1066 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1067 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
698dcdb6 1068 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1069#define __HPUX__ 1
1070EOF
1071
1072 ;;
1073 *-*-linux* )
1074 USE_LINUX=1
698dcdb6 1075 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1076#define __LINUX__ 1
1077EOF
1078
1079 TMP=`uname -m`
1080 if test "x$TMP" = "xalpha"; then
1081 USE_ALPHA=1
698dcdb6 1082 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1083#define __ALPHA__ 1
1084EOF
1085
1086 fi
1087 DEFAULT_DEFAULT_wxUSE_GTK=1
1088 ;;
1089 *-*-irix5* | *-*-irix6* )
1090 USE_SGI=1
1091 USE_SVR4=1
698dcdb6 1092 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1093#define __SGI__ 1
1094EOF
1095
698dcdb6 1096 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1097#define __SVR4__ 1
1098EOF
1099
1100 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1101 ;;
1102 *-*-solaris2* )
1103 USE_SUN=1
1104 USE_SOLARIS=1
1105 USE_SVR4=1
698dcdb6 1106 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1107#define __SUN__ 1
1108EOF
1109
698dcdb6 1110 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1111#define __SOLARIS__ 1
1112EOF
1113
698dcdb6 1114 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1115#define __SVR4__ 1
1116EOF
1117
1118 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1119 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1120 ;;
1121 *-*-sunos4* )
1122 USE_SUN=1
1123 USE_SUNOS=1
1124 USE_BSD=1
698dcdb6 1125 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1126#define __SUN__ 1
1127EOF
1128
698dcdb6 1129 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1130#define __SUNOS__ 1
1131EOF
1132
698dcdb6 1133 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1134#define __BSD__ 1
1135EOF
1136
1137 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1138 ;;
f6bcfd97 1139 *-*-freebsd*)
10f2d63a
VZ
1140 USE_BSD=1
1141 USE_FREEBSD=1
698dcdb6 1142 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1143#define __FREEBSD__ 1
1144EOF
1145
698dcdb6 1146 cat >> confdefs.h <<\EOF
10f2d63a 1147#define __BSD__ 1
95c8801c
VS
1148EOF
1149
1150 DEFAULT_DEFAULT_wxUSE_GTK=1
1151 ;;
1152 *-*-openbsd*)
1153 USE_BSD=1
1154 USE_OPENBSD=1
698dcdb6 1155 cat >> confdefs.h <<\EOF
95c8801c
VS
1156#define __FREEBSD__ 1
1157EOF
1158
698dcdb6 1159 cat >> confdefs.h <<\EOF
95c8801c 1160#define __OPENBSD__ 1
f6bcfd97
BP
1161EOF
1162
1163 DEFAULT_DEFAULT_wxUSE_GTK=1
1164 ;;
1165 *-*-netbsd*)
1166 USE_BSD=1
1167 USE_NETBSD=1
698dcdb6 1168 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1169#define __FREEBSD__ 1
1170EOF
1171
698dcdb6 1172 cat >> confdefs.h <<\EOF
f6bcfd97 1173#define __NETBSD__ 1
10f2d63a
VZ
1174EOF
1175
1176 DEFAULT_DEFAULT_wxUSE_GTK=1
1177 ;;
1178 *-*-osf* )
1179 USE_ALPHA=1
1180 USE_OSF=1
698dcdb6 1181 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1182#define __ALPHA__ 1
1183EOF
1184
698dcdb6 1185 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1186#define __OSF__ 1
1187EOF
1188
1189 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1190 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1191 ;;
1192 *-*-dgux5* )
1193 USE_ALPHA=1
1194 USE_SVR4=1
698dcdb6 1195 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1196#define __ALPHA__ 1
1197EOF
1198
698dcdb6 1199 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1200#define __SVR4__ 1
1201EOF
1202
1203 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1204 ;;
1205 *-*-sysv5* )
1206 USE_SYSV=1
1207 USE_SVR4=1
698dcdb6 1208 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1209#define __SYSV__ 1
1210EOF
1211
698dcdb6 1212 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1213#define __SVR4__ 1
1214EOF
1215
1216 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1217 ;;
1218 *-*-aix* )
1219 USE_AIX=1
1220 USE_SYSV=1
1221 USE_SVR4=1
698dcdb6 1222 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1223#define __AIX__ 1
1224EOF
1225
698dcdb6 1226 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1227#define __SYSV__ 1
1228EOF
1229
698dcdb6 1230 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1231#define __SVR4__ 1
1232EOF
1233
1234 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1235 ;;
1236
1c8183e2 1237 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1238 USE_UNIX=0
1239 USE_WIN32=1
698dcdb6 1240 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1241#define __WIN32__ 1
1242EOF
1243
698dcdb6 1244 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1245#define __WIN95__ 1
1246EOF
1247
698dcdb6 1248 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1249#define __WINDOWS__ 1
1250EOF
1251
698dcdb6 1252 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1253#define __GNUWIN32__ 1
1254EOF
1255
698dcdb6 1256 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1257#define STRICT 1
1258EOF
1259
698dcdb6 1260 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1261#define WINVER 0x0400
1262EOF
1263
cf27ef00 1264 PROGRAM_EXT=".exe"
10f2d63a
VZ
1265 DEFAULT_DEFAULT_wxUSE_MSW=1
1266 ;;
1267
1268 *-pc-os2_emx )
698dcdb6 1269 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1270#define __EMX__ 1
1271EOF
1272
cf27ef00 1273 PROGRAM_EXT=".exe"
e07802fc 1274 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1275 ;;
1276
b4085ce6
GD
1277 *-*-darwin* )
1278 USE_BSD=1
f11bdd03 1279 USE_DARWIN=1
698dcdb6 1280 cat >> confdefs.h <<\EOF
f11bdd03 1281#define __BSD__ 1
b4085ce6
GD
1282EOF
1283
698dcdb6 1284 cat >> confdefs.h <<\EOF
f11bdd03 1285#define __DARWIN__ 1
b4085ce6
GD
1286EOF
1287
698dcdb6 1288 cat >> confdefs.h <<\EOF
b4085ce6
GD
1289#define __UNIX__ 1
1290EOF
1291
1292 DEFAULT_DEFAULT_wxUSE_MAC=1
1293 ;;
1294
b12915c1
VZ
1295 *-*-beos* )
1296 USE_BEOS=1
698dcdb6 1297 cat >> confdefs.h <<\EOF
b12915c1
VZ
1298#define __BEOS__ 1
1299EOF
1300
1301 ;;
1302
10f2d63a 1303 *)
698dcdb6 1304 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1305esac
1306
1307if test "$USE_UNIX" = 1 ; then
b12915c1 1308 wxUSE_UNIX=yes
698dcdb6 1309 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1310#define __UNIX__ 1
1311EOF
1312
698dcdb6 1313
b12915c1
VZ
1314 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1315 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1316fi
1317
1318if test "$USE_BEOS" = 1; then
1319 SRC_SUBDIRS="$SRC_SUBDIRS be"
1320 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1321fi
1322
10f2d63a 1323
1e487827 1324
1e487827 1325
6232543b 1326
10f2d63a
VZ
1327 wx_arg_cache_file="configarg.cache"
1328 echo "loading argument cache $wx_arg_cache_file"
1329 rm -f ${wx_arg_cache_file}.tmp
1330 touch ${wx_arg_cache_file}.tmp
1331 touch ${wx_arg_cache_file}
698dcdb6 1332
10f2d63a
VZ
1333
1334DEBUG_CONFIGURE=0
1335if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1336 DEFAULT_wxUSE_UNIVERSAL=no
1337
10f2d63a
VZ
1338 DEFAULT_wxUSE_THREADS=yes
1339
1340 DEFAULT_wxUSE_SHARED=yes
00cf1208 1341 DEFAULT_wxUSE_BURNT_NAME=no
1e6feb95 1342 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1343 DEFAULT_wxUSE_PROFILE=no
1344 DEFAULT_wxUSE_NO_DEPS=no
1345 DEFAULT_wxUSE_NO_RTTI=no
1346 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1347 DEFAULT_wxUSE_PERMISSIVE=no
1348 DEFAULT_wxUSE_DEBUG_FLAG=yes
1349 DEFAULT_wxUSE_DEBUG_INFO=yes
1350 DEFAULT_wxUSE_DEBUG_GDB=yes
1351 DEFAULT_wxUSE_MEM_TRACING=no
1352 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1353 DEFAULT_wxUSE_DMALLOC=no
1354 DEFAULT_wxUSE_APPLE_IEEE=no
1355
1356 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1357 DEFAULT_wxUSE_LOGWINDOW=no
1358 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1359
1360 DEFAULT_wxUSE_GUI=yes
1e6feb95 1361 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1362
3e44f09d 1363 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1364 DEFAULT_wxUSE_ZLIB=no
1365 DEFAULT_wxUSE_LIBPNG=no
1366 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1367 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1368 DEFAULT_wxUSE_ODBC=no
3fed1840 1369 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1370 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1371
eb4efbdc 1372 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1373 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1374 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1375 DEFAULT_wxUSE_CMDLINE_PARSER=no
1376 DEFAULT_wxUSE_DATETIME=no
1377 DEFAULT_wxUSE_TIMEDATE=no
1378 DEFAULT_wxUSE_TIMER=no
1379 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1380 DEFAULT_wxUSE_FILE=no
1e6feb95 1381 DEFAULT_wxUSE_FFILE=no
10f2d63a 1382 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1383 DEFAULT_wxUSE_WAVE=no
1384 DEFAULT_wxUSE_INTL=no
1385 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1386 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1387 DEFAULT_wxUSE_STREAMS=no
1388 DEFAULT_wxUSE_SOCKETS=no
1389 DEFAULT_wxUSE_DIALUP_MANAGER=no
1390 DEFAULT_wxUSE_SERIAL=no
1391 DEFAULT_wxUSE_JOYSTICK=no
1392 DEFAULT_wxUSE_DYNLIB_CLASS=no
1393 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1394 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1395
1396 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1397 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1398 DEFAULT_wxUSE_POSTSCRIPT=no
1399
1400 DEFAULT_wxUSE_X_RESOURCES=no
1401 DEFAULT_wxUSE_CLIPBOARD=no
1402 DEFAULT_wxUSE_TOOLTIPS=no
1403 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1404 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1405 DEFAULT_wxUSE_SPLINES=no
1406
1407 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1408 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1409 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1410
1411 DEFAULT_wxUSE_PROLOGIO=no
1412 DEFAULT_wxUSE_RESOURCES=no
1413 DEFAULT_wxUSE_CONSTRAINTS=no
1414 DEFAULT_wxUSE_IPC=no
1415 DEFAULT_wxUSE_HELP=no
29fd3c0c 1416 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1417 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1418 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1419 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1420 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1421 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1422
1423 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1424 DEFAULT_wxUSE_CHOICEDLG=no
1425 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1426 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1427 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1428 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1429 DEFAULT_wxUSE_FONTDLG=no
1430 DEFAULT_wxUSE_MSGDLG=no
1431 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1432 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1433 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1434 DEFAULT_wxUSE_STARTUP_TIPS=no
1435 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1436 DEFAULT_wxUSE_WIZARDDLG=no
1437
1e6feb95 1438 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1439 DEFAULT_wxUSE_MINIFRAME=no
1440 DEFAULT_wxUSE_HTML=no
24528b0c 1441 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1442 DEFAULT_wxUSE_FS_INET=no
1443 DEFAULT_wxUSE_FS_ZIP=no
1444 DEFAULT_wxUSE_BUSYINFO=no
1445 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1446 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1447
1448 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1449 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1450 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1451 DEFAULT_wxUSE_CALCTRL=no
1452 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1453 DEFAULT_wxUSE_CHECKBOX=no
1454 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1455 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1456 DEFAULT_wxUSE_COMBOBOX=no
1457 DEFAULT_wxUSE_GAUGE=no
1458 DEFAULT_wxUSE_GRID=no
1459 DEFAULT_wxUSE_NEW_GRID=no
1460 DEFAULT_wxUSE_IMAGLIST=no
1461 DEFAULT_wxUSE_LISTBOX=no
1462 DEFAULT_wxUSE_LISTCTRL=no
1463 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1464 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1465 DEFAULT_wxUSE_RADIOBOX=no
1466 DEFAULT_wxUSE_RADIOBTN=no
1467 DEFAULT_wxUSE_SASH=no
1468 DEFAULT_wxUSE_SCROLLBAR=no
1469 DEFAULT_wxUSE_SLIDER=no
1470 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1471 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1472 DEFAULT_wxUSE_SPLITTER=no
1473 DEFAULT_wxUSE_STATBMP=no
1474 DEFAULT_wxUSE_STATBOX=no
1475 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1476 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1477 DEFAULT_wxUSE_STATUSBAR=yes
1478 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1479 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1480 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1481 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1482 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1483 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1484 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1485 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
1486
1487 DEFAULT_wxUSE_UNICODE=no
1488 DEFAULT_wxUSE_WCSRTOMBS=no
1489
0046ff7c 1490 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1491 DEFAULT_wxUSE_GIF=no
1492 DEFAULT_wxUSE_PCX=no
1493 DEFAULT_wxUSE_PNM=no
0046ff7c 1494 DEFAULT_wxUSE_XPM=no
10f2d63a 1495else
1e6feb95
VZ
1496 DEFAULT_wxUSE_UNIVERSAL=no
1497
10f2d63a
VZ
1498 DEFAULT_wxUSE_THREADS=yes
1499
1500 DEFAULT_wxUSE_SHARED=yes
00cf1208 1501 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1502 DEFAULT_wxUSE_OPTIMISE=yes
1503 DEFAULT_wxUSE_PROFILE=no
1504 DEFAULT_wxUSE_NO_DEPS=no
1505 DEFAULT_wxUSE_NO_RTTI=no
1506 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1507 DEFAULT_wxUSE_PERMISSIVE=no
1508 DEFAULT_wxUSE_DEBUG_FLAG=no
1509 DEFAULT_wxUSE_DEBUG_INFO=no
1510 DEFAULT_wxUSE_DEBUG_GDB=no
1511 DEFAULT_wxUSE_MEM_TRACING=no
1512 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1513 DEFAULT_wxUSE_DMALLOC=no
1514 DEFAULT_wxUSE_APPLE_IEEE=yes
1515
1516 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1517 DEFAULT_wxUSE_LOGWINDOW=yes
1518 DEFAULT_wxUSE_LOGGUI=yes
10f2d63a
VZ
1519
1520 DEFAULT_wxUSE_GUI=yes
1521
831b3152 1522 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1523 DEFAULT_wxUSE_ZLIB=yes
1524 DEFAULT_wxUSE_LIBPNG=yes
1525 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1526 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1527 DEFAULT_wxUSE_ODBC=no
3fed1840 1528 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1529 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1530
eb4efbdc 1531 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1532 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1533 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1534 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1535 DEFAULT_wxUSE_DATETIME=yes
1536 DEFAULT_wxUSE_TIMEDATE=no
1537 DEFAULT_wxUSE_TIMER=yes
1538 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1539 DEFAULT_wxUSE_FILE=yes
1e6feb95 1540 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1541 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1542 DEFAULT_wxUSE_WAVE=no
1543 DEFAULT_wxUSE_INTL=yes
1544 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1545 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1546 DEFAULT_wxUSE_STREAMS=yes
1547 DEFAULT_wxUSE_SOCKETS=yes
1548 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1549 DEFAULT_wxUSE_SERIAL=yes
1550 DEFAULT_wxUSE_JOYSTICK=yes
1551 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1552 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1553 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1554
1555 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1556 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1557 DEFAULT_wxUSE_POSTSCRIPT=yes
1558
1559 DEFAULT_wxUSE_X_RESOURCES=no
1560 DEFAULT_wxUSE_CLIPBOARD=yes
1561 DEFAULT_wxUSE_TOOLTIPS=yes
1562 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1563 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1564 DEFAULT_wxUSE_SPLINES=yes
1565
1566 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1567 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1568 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1569
1570 DEFAULT_wxUSE_PROLOGIO=yes
1571 DEFAULT_wxUSE_RESOURCES=yes
1572 DEFAULT_wxUSE_CONSTRAINTS=yes
1573 DEFAULT_wxUSE_IPC=yes
1574 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1575 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1576 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1577 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1578 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1579 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1580 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1581
1582 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1583 DEFAULT_wxUSE_CHOICEDLG=yes
1584 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1585 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1586 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1587 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1588 DEFAULT_wxUSE_FONTDLG=yes
1589 DEFAULT_wxUSE_MSGDLG=yes
1590 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1591 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1592 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1593 DEFAULT_wxUSE_STARTUP_TIPS=yes
1594 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1595 DEFAULT_wxUSE_WIZARDDLG=yes
1596
1e6feb95 1597 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1598 DEFAULT_wxUSE_MINIFRAME=yes
1599 DEFAULT_wxUSE_HTML=yes
24528b0c 1600 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1601 DEFAULT_wxUSE_FS_INET=yes
1602 DEFAULT_wxUSE_FS_ZIP=yes
1603 DEFAULT_wxUSE_BUSYINFO=yes
1604 DEFAULT_wxUSE_ZIPSTREAM=yes
1605 DEFAULT_wxUSE_VALIDATORS=yes
1606
1607 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1608 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1609 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1610 DEFAULT_wxUSE_CALCTRL=yes
1611 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1612 DEFAULT_wxUSE_CHECKBOX=yes
1613 DEFAULT_wxUSE_CHECKLST=yes
1614 DEFAULT_wxUSE_CHOICE=yes
1615 DEFAULT_wxUSE_COMBOBOX=yes
1616 DEFAULT_wxUSE_GAUGE=yes
1617 DEFAULT_wxUSE_GRID=yes
cc977e5f 1618 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1619 DEFAULT_wxUSE_IMAGLIST=yes
1620 DEFAULT_wxUSE_LISTBOX=yes
1621 DEFAULT_wxUSE_LISTCTRL=yes
1622 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1623 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1624 DEFAULT_wxUSE_RADIOBOX=yes
1625 DEFAULT_wxUSE_RADIOBTN=yes
1626 DEFAULT_wxUSE_SASH=yes
1627 DEFAULT_wxUSE_SCROLLBAR=yes
1628 DEFAULT_wxUSE_SLIDER=yes
1629 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1630 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1631 DEFAULT_wxUSE_SPLITTER=yes
1632 DEFAULT_wxUSE_STATBMP=yes
1633 DEFAULT_wxUSE_STATBOX=yes
1634 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1635 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1636 DEFAULT_wxUSE_STATUSBAR=yes
1637 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1638 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1639 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1640 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1641 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1642 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1643 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1644 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
1645
1646 DEFAULT_wxUSE_UNICODE=no
1647 DEFAULT_wxUSE_WCSRTOMBS=no
1648
0046ff7c 1649 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1650 DEFAULT_wxUSE_GIF=yes
1651 DEFAULT_wxUSE_PCX=yes
1652 DEFAULT_wxUSE_PNM=yes
0046ff7c 1653 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1654fi
1655
698dcdb6
VZ
1656
1657
10f2d63a
VZ
1658for toolkit in `echo $ALL_TOOLKITS`; do
1659 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1660 if test "x$LINE" != x ; then
1661 has_toolkit_in_cache=1
1662 eval "DEFAULT_$LINE"
1663 eval "CACHE_$toolkit=1"
1664 fi
1665done
1666
698dcdb6
VZ
1667
1668
1669 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
c39c53e9 1670echo "configure:1671: checking for --enable-gui" >&5
10f2d63a
VZ
1671 no_cache=0
1672 # Check whether --enable-gui or --disable-gui was given.
1673if test "${enable_gui+set}" = set; then
1674 enableval="$enable_gui"
698dcdb6 1675
10f2d63a
VZ
1676 if test "$enableval" = yes; then
1677 ac_cv_use_gui='wxUSE_GUI=yes'
1678 else
1679 ac_cv_use_gui='wxUSE_GUI=no'
1680 fi
698dcdb6 1681
10f2d63a 1682else
698dcdb6 1683
10f2d63a
VZ
1684 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1685 if test "x$LINE" != x ; then
1686 eval "DEFAULT_$LINE"
1687 else
1688 no_cache=1
1689 fi
1690
1691 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1692
1693fi
10f2d63a
VZ
1694
1695
1696 eval "$ac_cv_use_gui"
1697 if test "$no_cache" != 1; then
1698 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1699 fi
1700
1701 if test "$wxUSE_GUI" = yes; then
698dcdb6 1702 echo "$ac_t""yes" 1>&6
10f2d63a 1703 else
698dcdb6 1704 echo "$ac_t""no" 1>&6
10f2d63a 1705 fi
698dcdb6 1706
10f2d63a 1707
b12915c1 1708if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1709
1e6feb95
VZ
1710
1711 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
c39c53e9 1712echo "configure:1713: checking for --enable-universal" >&5
1e6feb95
VZ
1713 no_cache=0
1714 # Check whether --enable-universal or --disable-universal was given.
1715if test "${enable_universal+set}" = set; then
1716 enableval="$enable_universal"
1717
1718 if test "$enableval" = yes; then
1719 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1720 else
1721 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1722 fi
1723
1724else
1725
1726 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1727 if test "x$LINE" != x ; then
1728 eval "DEFAULT_$LINE"
1729 else
1730 no_cache=1
1731 fi
1732
1733 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1734
1735fi
1736
1737
1738 eval "$ac_cv_use_universal"
1739 if test "$no_cache" != 1; then
1740 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1741 fi
1742
1743 if test "$wxUSE_UNIVERSAL" = yes; then
1744 echo "$ac_t""yes" 1>&6
1745 else
1746 echo "$ac_t""no" 1>&6
1747 fi
1748
10f2d63a
VZ
1749# Check whether --with-gtk or --without-gtk was given.
1750if test "${with_gtk+set}" = set; then
1751 withval="$with_gtk"
1752 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1753fi
10f2d63a
VZ
1754
1755# Check whether --with-motif or --without-motif was given.
1756if test "${with_motif+set}" = set; then
1757 withval="$with_motif"
1758 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1759fi
10f2d63a 1760
b4085ce6
GD
1761# Check whether --with-mac or --without-mac was given.
1762if test "${with_mac+set}" = set; then
1763 withval="$with_mac"
1764 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1765fi
b4085ce6 1766
10f2d63a
VZ
1767# Check whether --with-wine or --without-wine was given.
1768if test "${with_wine+set}" = set; then
1769 withval="$with_wine"
1770 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1771fi
10f2d63a
VZ
1772
1773# Check whether --with-cygwin or --without-cygwin was given.
1774if test "${with_cygwin+set}" = set; then
1775 withval="$with_cygwin"
1776 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
698dcdb6 1777fi
10f2d63a
VZ
1778
1779# Check whether --with-mingw or --without-mingw was given.
1780if test "${with_mingw+set}" = set; then
1781 withval="$with_mingw"
1782 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
698dcdb6 1783fi
10f2d63a 1784
e07802fc
VZ
1785# Check whether --with-pm or --without-pm was given.
1786if test "${with_pm+set}" = set; then
1787 withval="$with_pm"
1788 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1789fi
1790
1e6feb95
VZ
1791# Check whether --with-mgl or --without-mgl was given.
1792if test "${with_mgl+set}" = set; then
1793 withval="$with_mgl"
1794 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1795fi
1796
10f2d63a 1797
8168de4c
VZ
1798# Check whether --enable-gtk2 or --disable-gtk2 was given.
1799if test "${enable_gtk2+set}" = set; then
1800 enableval="$enable_gtk2"
1801 wxUSE_GTK2=1
10f2d63a 1802else
8168de4c 1803 wxUSE_GTK2=0
698dcdb6
VZ
1804fi
1805
703e0a69 1806
1e487827 1807
698dcdb6 1808 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
c39c53e9 1809echo "configure:1810: checking for --with-libpng" >&5
698dcdb6
VZ
1810 no_cache=0
1811 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1812if test "${with_libpng+set}" = set; then
1813 withval="$with_libpng"
698dcdb6 1814
10f2d63a 1815 if test "$withval" = yes; then
b12915c1 1816 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1817 elif test "$withval" = no; then
b12915c1 1818 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1819 elif test "$withval" = sys; then
1820 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1821 else
698dcdb6 1822 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1823 fi
698dcdb6 1824
10f2d63a 1825else
698dcdb6 1826
b12915c1 1827 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1828 if test "x$LINE" != x ; then
1829 eval "DEFAULT_$LINE"
1830 else
1831 no_cache=1
1832 fi
1833
b12915c1 1834 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1835
1836fi
10f2d63a
VZ
1837
1838
b12915c1 1839 eval "$ac_cv_use_libpng"
10f2d63a 1840 if test "$no_cache" != 1; then
b12915c1 1841 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1842 fi
1843
b12915c1 1844 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1845 echo "$ac_t""yes" 1>&6
422107f9 1846 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1847 echo "$ac_t""no" 1>&6
422107f9 1848 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1849 echo "$ac_t""system version" 1>&6
422107f9 1850 else
698dcdb6 1851 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1852 fi
698dcdb6 1853
10f2d63a 1854
698dcdb6 1855 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
c39c53e9 1856echo "configure:1857: checking for --with-libjpeg" >&5
10f2d63a 1857 no_cache=0
698dcdb6 1858 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1859if test "${with_libjpeg+set}" = set; then
1860 withval="$with_libjpeg"
698dcdb6 1861
10f2d63a 1862 if test "$withval" = yes; then
b12915c1 1863 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1864 elif test "$withval" = no; then
b12915c1 1865 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1866 elif test "$withval" = sys; then
1867 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1868 else
698dcdb6 1869 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1870 fi
698dcdb6 1871
10f2d63a 1872else
698dcdb6 1873
b12915c1 1874 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1875 if test "x$LINE" != x ; then
1876 eval "DEFAULT_$LINE"
1877 else
1878 no_cache=1
1879 fi
1880
b12915c1 1881 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1882
1883fi
10f2d63a
VZ
1884
1885
b12915c1 1886 eval "$ac_cv_use_libjpeg"
10f2d63a 1887 if test "$no_cache" != 1; then
b12915c1 1888 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1889 fi
1890
b12915c1 1891 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1892 echo "$ac_t""yes" 1>&6
422107f9 1893 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1894 echo "$ac_t""no" 1>&6
422107f9 1895 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1896 echo "$ac_t""system version" 1>&6
422107f9 1897 else
698dcdb6 1898 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1899 fi
698dcdb6 1900
10f2d63a 1901
698dcdb6 1902 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
c39c53e9 1903echo "configure:1904: checking for --with-libtiff" >&5
10f2d63a 1904 no_cache=0
698dcdb6 1905 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1906if test "${with_libtiff+set}" = set; then
1907 withval="$with_libtiff"
698dcdb6 1908
10f2d63a 1909 if test "$withval" = yes; then
b12915c1 1910 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1911 elif test "$withval" = no; then
b12915c1 1912 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1913 elif test "$withval" = sys; then
1914 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1915 else
698dcdb6 1916 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1917 fi
698dcdb6 1918
10f2d63a 1919else
698dcdb6 1920
b12915c1 1921 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1922 if test "x$LINE" != x ; then
1923 eval "DEFAULT_$LINE"
1924 else
1925 no_cache=1
1926 fi
1927
b12915c1 1928 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1929
1930fi
10f2d63a
VZ
1931
1932
b12915c1 1933 eval "$ac_cv_use_libtiff"
10f2d63a 1934 if test "$no_cache" != 1; then
b12915c1 1935 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1936 fi
1937
b12915c1 1938 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1939 echo "$ac_t""yes" 1>&6
0dcf9893 1940 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1941 echo "$ac_t""no" 1>&6
0dcf9893 1942 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1943 echo "$ac_t""system version" 1>&6
0dcf9893 1944 else
698dcdb6 1945 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1946 fi
698dcdb6 1947
10f2d63a 1948
698dcdb6 1949 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
c39c53e9 1950echo "configure:1951: checking for --with-freetype" >&5
3fed1840 1951 no_cache=0
698dcdb6 1952 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
1953if test "${with_freetype+set}" = set; then
1954 withval="$with_freetype"
698dcdb6 1955
3fed1840
RR
1956 if test "$withval" = yes; then
1957 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1958 elif test "$withval" = no; then
1959 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1960 elif test "$withval" = sys; then
1961 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1962 else
698dcdb6 1963 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 1964 fi
698dcdb6 1965
3fed1840 1966else
698dcdb6 1967
3fed1840
RR
1968 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1969 if test "x$LINE" != x ; then
1970 eval "DEFAULT_$LINE"
1971 else
1972 no_cache=1
1973 fi
1974
1975 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
1976
1977fi
3fed1840
RR
1978
1979
1980 eval "$ac_cv_use_freetype"
1981 if test "$no_cache" != 1; then
1982 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1983 fi
1984
1985 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 1986 echo "$ac_t""yes" 1>&6
3fed1840 1987 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 1988 echo "$ac_t""no" 1>&6
3fed1840 1989 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 1990 echo "$ac_t""system version" 1>&6
3fed1840 1991 else
698dcdb6 1992 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 1993 fi
698dcdb6 1994
3fed1840 1995
698dcdb6 1996 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
c39c53e9 1997echo "configure:1998: checking for --with-opengl" >&5
10f2d63a 1998 no_cache=0
698dcdb6 1999 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2000if test "${with_opengl+set}" = set; then
2001 withval="$with_opengl"
698dcdb6 2002
10f2d63a 2003 if test "$withval" = yes; then
b12915c1 2004 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2005 else
b12915c1 2006 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2007 fi
698dcdb6 2008
10f2d63a 2009else
698dcdb6 2010
b12915c1 2011 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2012 if test "x$LINE" != x ; then
2013 eval "DEFAULT_$LINE"
2014 else
2015 no_cache=1
2016 fi
2017
b12915c1 2018 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2019
2020fi
10f2d63a
VZ
2021
2022
b12915c1 2023 eval "$ac_cv_use_opengl"
10f2d63a 2024 if test "$no_cache" != 1; then
b12915c1 2025 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2026 fi
2027
b12915c1 2028 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2029 echo "$ac_t""yes" 1>&6
10f2d63a 2030 else
698dcdb6 2031 echo "$ac_t""no" 1>&6
10f2d63a 2032 fi
698dcdb6 2033
10f2d63a 2034
b12915c1
VZ
2035fi
2036
1e487827 2037
698dcdb6 2038 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
c39c53e9 2039echo "configure:2040: checking for --with-dmalloc" >&5
698dcdb6
VZ
2040 no_cache=0
2041 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2042if test "${with_dmalloc+set}" = set; then
2043 withval="$with_dmalloc"
698dcdb6 2044
c7a2bf27 2045 if test "$withval" = yes; then
b12915c1 2046 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2047 else
b12915c1 2048 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2049 fi
698dcdb6 2050
c7a2bf27 2051else
698dcdb6 2052
b12915c1 2053 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2054 if test "x$LINE" != x ; then
2055 eval "DEFAULT_$LINE"
2056 else
2057 no_cache=1
2058 fi
2059
b12915c1 2060 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2061
2062fi
c7a2bf27
RR
2063
2064
b12915c1 2065 eval "$ac_cv_use_dmalloc"
c7a2bf27 2066 if test "$no_cache" != 1; then
b12915c1 2067 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2068 fi
2069
b12915c1 2070 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2071 echo "$ac_t""yes" 1>&6
c7a2bf27 2072 else
698dcdb6 2073 echo "$ac_t""no" 1>&6
c7a2bf27 2074 fi
698dcdb6 2075
c7a2bf27 2076
3e44f09d 2077 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
c39c53e9 2078echo "configure:2079: checking for --with-regex" >&5
3e44f09d
VZ
2079 no_cache=0
2080 # Check whether --with-regex or --without-regex was given.
2081if test "${with_regex+set}" = set; then
2082 withval="$with_regex"
2083
2084 if test "$withval" = yes; then
2085 ac_cv_use_regex='wxUSE_REGEX=yes'
2086 elif test "$withval" = no; then
2087 ac_cv_use_regex='wxUSE_REGEX=no'
2088 elif test "$withval" = sys; then
2089 ac_cv_use_regex='wxUSE_REGEX=sys'
2090 else
2091 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2092 fi
2093
2094else
2095
2096 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2097 if test "x$LINE" != x ; then
2098 eval "DEFAULT_$LINE"
2099 else
2100 no_cache=1
2101 fi
2102
2103 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2104
2105fi
2106
2107
2108 eval "$ac_cv_use_regex"
2109 if test "$no_cache" != 1; then
2110 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2111 fi
2112
2113 if test "$wxUSE_REGEX" = yes; then
2114 echo "$ac_t""yes" 1>&6
2115 elif test "$wxUSE_REGEX" = no; then
2116 echo "$ac_t""no" 1>&6
2117 elif test "$wxUSE_REGEX" = sys; then
2118 echo "$ac_t""system version" 1>&6
2119 else
2120 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2121 fi
2122
2123
698dcdb6 2124 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
c39c53e9 2125echo "configure:2126: checking for --with-zlib" >&5
10f2d63a 2126 no_cache=0
698dcdb6 2127 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2128if test "${with_zlib+set}" = set; then
2129 withval="$with_zlib"
698dcdb6 2130
10f2d63a 2131 if test "$withval" = yes; then
b12915c1 2132 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2133 elif test "$withval" = no; then
b12915c1 2134 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2135 elif test "$withval" = sys; then
2136 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2137 else
698dcdb6 2138 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2139 fi
698dcdb6 2140
10f2d63a 2141else
698dcdb6 2142
b12915c1 2143 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2144 if test "x$LINE" != x ; then
2145 eval "DEFAULT_$LINE"
2146 else
2147 no_cache=1
2148 fi
2149
b12915c1 2150 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2151
2152fi
10f2d63a
VZ
2153
2154
b12915c1 2155 eval "$ac_cv_use_zlib"
10f2d63a 2156 if test "$no_cache" != 1; then
b12915c1 2157 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2158 fi
2159
b12915c1 2160 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2161 echo "$ac_t""yes" 1>&6
422107f9 2162 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2163 echo "$ac_t""no" 1>&6
422107f9 2164 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2165 echo "$ac_t""system version" 1>&6
422107f9 2166 else
698dcdb6 2167 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2168 fi
698dcdb6 2169
10f2d63a 2170
698dcdb6 2171 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
c39c53e9 2172echo "configure:2173: checking for --with-odbc" >&5
10f2d63a 2173 no_cache=0
698dcdb6 2174 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2175if test "${with_odbc+set}" = set; then
2176 withval="$with_odbc"
698dcdb6 2177
10f2d63a
VZ
2178 if test "$withval" = yes; then
2179 ac_cv_use_odbc='wxUSE_ODBC=yes'
2180 else
2181 ac_cv_use_odbc='wxUSE_ODBC=no'
2182 fi
698dcdb6 2183
10f2d63a 2184else
698dcdb6 2185
10f2d63a
VZ
2186 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2187 if test "x$LINE" != x ; then
2188 eval "DEFAULT_$LINE"
2189 else
2190 no_cache=1
2191 fi
2192
2193 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2194
2195fi
10f2d63a
VZ
2196
2197
2198 eval "$ac_cv_use_odbc"
2199 if test "$no_cache" != 1; then
2200 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2201 fi
2202
2203 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2204 echo "$ac_t""yes" 1>&6
10f2d63a 2205 else
698dcdb6 2206 echo "$ac_t""no" 1>&6
10f2d63a 2207 fi
698dcdb6
VZ
2208
2209
10f2d63a 2210
698dcdb6
VZ
2211
2212
2213 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
c39c53e9 2214echo "configure:2215: checking for --enable-shared" >&5
10f2d63a
VZ
2215 no_cache=0
2216 # Check whether --enable-shared or --disable-shared was given.
2217if test "${enable_shared+set}" = set; then
2218 enableval="$enable_shared"
698dcdb6 2219
10f2d63a
VZ
2220 if test "$enableval" = yes; then
2221 ac_cv_use_shared='wxUSE_SHARED=yes'
2222 else
2223 ac_cv_use_shared='wxUSE_SHARED=no'
2224 fi
698dcdb6 2225
10f2d63a 2226else
698dcdb6 2227
10f2d63a
VZ
2228 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2229 if test "x$LINE" != x ; then
2230 eval "DEFAULT_$LINE"
2231 else
2232 no_cache=1
2233 fi
2234
2235 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2236
2237fi
10f2d63a
VZ
2238
2239
2240 eval "$ac_cv_use_shared"
2241 if test "$no_cache" != 1; then
2242 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2243 fi
2244
2245 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2246 echo "$ac_t""yes" 1>&6
10f2d63a 2247 else
698dcdb6 2248 echo "$ac_t""no" 1>&6
10f2d63a 2249 fi
698dcdb6 2250
10f2d63a 2251
698dcdb6 2252 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
c39c53e9 2253echo "configure:2254: checking for --enable-burnt_name" >&5
00cf1208
RR
2254 no_cache=0
2255 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2256if test "${enable_burnt_name+set}" = set; then
2257 enableval="$enable_burnt_name"
698dcdb6 2258
00cf1208
RR
2259 if test "$enableval" = yes; then
2260 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2261 else
2262 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2263 fi
698dcdb6 2264
00cf1208 2265else
698dcdb6 2266
00cf1208
RR
2267 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2268 if test "x$LINE" != x ; then
2269 eval "DEFAULT_$LINE"
2270 else
2271 no_cache=1
2272 fi
2273
2274 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
698dcdb6
VZ
2275
2276fi
00cf1208
RR
2277
2278
2279 eval "$ac_cv_use_burnt_name"
2280 if test "$no_cache" != 1; then
2281 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2282 fi
2283
2284 if test "$wxUSE_BURNT_NAME" = yes; then
698dcdb6 2285 echo "$ac_t""yes" 1>&6
00cf1208 2286 else
698dcdb6 2287 echo "$ac_t""no" 1>&6
00cf1208 2288 fi
698dcdb6 2289
00cf1208 2290
698dcdb6 2291 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
c39c53e9 2292echo "configure:2293: checking for --enable-optimise" >&5
10f2d63a
VZ
2293 no_cache=0
2294 # Check whether --enable-optimise or --disable-optimise was given.
2295if test "${enable_optimise+set}" = set; then
2296 enableval="$enable_optimise"
698dcdb6 2297
10f2d63a
VZ
2298 if test "$enableval" = yes; then
2299 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2300 else
2301 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2302 fi
698dcdb6 2303
10f2d63a 2304else
698dcdb6 2305
10f2d63a
VZ
2306 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2307 if test "x$LINE" != x ; then
2308 eval "DEFAULT_$LINE"
2309 else
2310 no_cache=1
2311 fi
2312
2313 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2314
2315fi
10f2d63a
VZ
2316
2317
2318 eval "$ac_cv_use_optimise"
2319 if test "$no_cache" != 1; then
2320 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2321 fi
2322
2323 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2324 echo "$ac_t""yes" 1>&6
10f2d63a 2325 else
698dcdb6 2326 echo "$ac_t""no" 1>&6
10f2d63a 2327 fi
698dcdb6 2328
10f2d63a 2329
698dcdb6 2330 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
c39c53e9 2331echo "configure:2332: checking for --enable-debug" >&5
10f2d63a
VZ
2332 no_cache=0
2333 # Check whether --enable-debug or --disable-debug was given.
2334if test "${enable_debug+set}" = set; then
2335 enableval="$enable_debug"
698dcdb6 2336
10f2d63a
VZ
2337 if test "$enableval" = yes; then
2338 ac_cv_use_debug='wxUSE_DEBUG=yes'
2339 else
2340 ac_cv_use_debug='wxUSE_DEBUG=no'
2341 fi
698dcdb6 2342
10f2d63a 2343else
698dcdb6 2344
10f2d63a
VZ
2345 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2346 if test "x$LINE" != x ; then
2347 eval "DEFAULT_$LINE"
2348 else
2349 no_cache=1
2350 fi
2351
2352 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2353
2354fi
10f2d63a
VZ
2355
2356
2357 eval "$ac_cv_use_debug"
2358 if test "$no_cache" != 1; then
2359 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2360 fi
2361
2362 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2363 echo "$ac_t""yes" 1>&6
10f2d63a 2364 else
698dcdb6 2365 echo "$ac_t""no" 1>&6
10f2d63a 2366 fi
698dcdb6 2367
10f2d63a
VZ
2368
2369if test "$wxUSE_DEBUG" = "yes"; then
2370 DEFAULT_wxUSE_DEBUG_FLAG=yes
2371 DEFAULT_wxUSE_DEBUG_INFO=yes
2372elif test "$wxUSE_DEBUG" = "no"; then
2373 DEFAULT_wxUSE_DEBUG_FLAG=no
2374 DEFAULT_wxUSE_DEBUG_INFO=no
2375fi
2376
698dcdb6
VZ
2377
2378 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
c39c53e9 2379echo "configure:2380: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2380 no_cache=0
2381 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2382if test "${enable_debug_flag+set}" = set; then
2383 enableval="$enable_debug_flag"
698dcdb6 2384
10f2d63a
VZ
2385 if test "$enableval" = yes; then
2386 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2387 else
2388 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2389 fi
698dcdb6 2390
10f2d63a 2391else
698dcdb6 2392
10f2d63a
VZ
2393 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2394 if test "x$LINE" != x ; then
2395 eval "DEFAULT_$LINE"
2396 else
2397 no_cache=1
2398 fi
2399
2400 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2401
2402fi
10f2d63a
VZ
2403
2404
2405 eval "$ac_cv_use_debug_flag"
2406 if test "$no_cache" != 1; then
2407 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2408 fi
2409
2410 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2411 echo "$ac_t""yes" 1>&6
10f2d63a 2412 else
698dcdb6 2413 echo "$ac_t""no" 1>&6
10f2d63a 2414 fi
698dcdb6 2415
10f2d63a 2416
698dcdb6 2417 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
c39c53e9 2418echo "configure:2419: checking for --enable-debug_info" >&5
10f2d63a
VZ
2419 no_cache=0
2420 # Check whether --enable-debug_info or --disable-debug_info was given.
2421if test "${enable_debug_info+set}" = set; then
2422 enableval="$enable_debug_info"
698dcdb6 2423
10f2d63a
VZ
2424 if test "$enableval" = yes; then
2425 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2426 else
2427 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2428 fi
698dcdb6 2429
10f2d63a 2430else
698dcdb6 2431
10f2d63a
VZ
2432 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2433 if test "x$LINE" != x ; then
2434 eval "DEFAULT_$LINE"
2435 else
2436 no_cache=1
2437 fi
2438
2439 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2440
2441fi
10f2d63a
VZ
2442
2443
2444 eval "$ac_cv_use_debug_info"
2445 if test "$no_cache" != 1; then
2446 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2447 fi
2448
2449 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2450 echo "$ac_t""yes" 1>&6
10f2d63a 2451 else
698dcdb6 2452 echo "$ac_t""no" 1>&6
10f2d63a 2453 fi
698dcdb6 2454
10f2d63a 2455
698dcdb6 2456 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
c39c53e9 2457echo "configure:2458: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2458 no_cache=0
2459 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2460if test "${enable_debug_gdb+set}" = set; then
2461 enableval="$enable_debug_gdb"
698dcdb6 2462
10f2d63a
VZ
2463 if test "$enableval" = yes; then
2464 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2465 else
2466 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2467 fi
698dcdb6 2468
10f2d63a 2469else
698dcdb6 2470
10f2d63a
VZ
2471 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2472 if test "x$LINE" != x ; then
2473 eval "DEFAULT_$LINE"
2474 else
2475 no_cache=1
2476 fi
2477
2478 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2479
2480fi
10f2d63a
VZ
2481
2482
2483 eval "$ac_cv_use_debug_gdb"
2484 if test "$no_cache" != 1; then
2485 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2486 fi
2487
2488 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2489 echo "$ac_t""yes" 1>&6
10f2d63a 2490 else
698dcdb6 2491 echo "$ac_t""no" 1>&6
10f2d63a 2492 fi
698dcdb6 2493
10f2d63a 2494
698dcdb6 2495 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
c39c53e9 2496echo "configure:2497: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2497 no_cache=0
2498 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2499if test "${enable_debug_cntxt+set}" = set; then
2500 enableval="$enable_debug_cntxt"
698dcdb6 2501
10f2d63a
VZ
2502 if test "$enableval" = yes; then
2503 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2504 else
2505 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2506 fi
698dcdb6 2507
10f2d63a 2508else
698dcdb6 2509
10f2d63a
VZ
2510 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2511 if test "x$LINE" != x ; then
2512 eval "DEFAULT_$LINE"
2513 else
2514 no_cache=1
2515 fi
2516
2517 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2518
2519fi
10f2d63a
VZ
2520
2521
2522 eval "$ac_cv_use_debug_cntxt"
2523 if test "$no_cache" != 1; then
2524 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2525 fi
2526
2527 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2528 echo "$ac_t""yes" 1>&6
10f2d63a 2529 else
698dcdb6 2530 echo "$ac_t""no" 1>&6
10f2d63a 2531 fi
698dcdb6 2532
10f2d63a 2533
698dcdb6 2534 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
c39c53e9 2535echo "configure:2536: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2536 no_cache=0
2537 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2538if test "${enable_mem_tracing+set}" = set; then
2539 enableval="$enable_mem_tracing"
698dcdb6 2540
10f2d63a
VZ
2541 if test "$enableval" = yes; then
2542 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2543 else
2544 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2545 fi
698dcdb6 2546
10f2d63a 2547else
698dcdb6 2548
10f2d63a
VZ
2549 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2550 if test "x$LINE" != x ; then
2551 eval "DEFAULT_$LINE"
2552 else
2553 no_cache=1
2554 fi
2555
2556 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2557
2558fi
10f2d63a
VZ
2559
2560
2561 eval "$ac_cv_use_mem_tracing"
2562 if test "$no_cache" != 1; then
2563 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2564 fi
2565
2566 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2567 echo "$ac_t""yes" 1>&6
10f2d63a 2568 else
698dcdb6 2569 echo "$ac_t""no" 1>&6
10f2d63a 2570 fi
698dcdb6 2571
10f2d63a 2572
698dcdb6 2573 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
c39c53e9 2574echo "configure:2575: checking for --enable-profile" >&5
10f2d63a
VZ
2575 no_cache=0
2576 # Check whether --enable-profile or --disable-profile was given.
2577if test "${enable_profile+set}" = set; then
2578 enableval="$enable_profile"
698dcdb6 2579
10f2d63a
VZ
2580 if test "$enableval" = yes; then
2581 ac_cv_use_profile='wxUSE_PROFILE=yes'
2582 else
2583 ac_cv_use_profile='wxUSE_PROFILE=no'
2584 fi
698dcdb6 2585
10f2d63a 2586else
698dcdb6 2587
10f2d63a
VZ
2588 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2589 if test "x$LINE" != x ; then
2590 eval "DEFAULT_$LINE"
2591 else
2592 no_cache=1
2593 fi
2594
2595 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2596
2597fi
10f2d63a
VZ
2598
2599
2600 eval "$ac_cv_use_profile"
2601 if test "$no_cache" != 1; then
2602 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2603 fi
2604
2605 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2606 echo "$ac_t""yes" 1>&6
10f2d63a 2607 else
698dcdb6 2608 echo "$ac_t""no" 1>&6
10f2d63a 2609 fi
698dcdb6 2610
10f2d63a 2611
698dcdb6 2612 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
c39c53e9 2613echo "configure:2614: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2614 no_cache=0
2615 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2616if test "${enable_no_rtti+set}" = set; then
2617 enableval="$enable_no_rtti"
698dcdb6 2618
10f2d63a
VZ
2619 if test "$enableval" = yes; then
2620 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2621 else
2622 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2623 fi
698dcdb6 2624
10f2d63a 2625else
698dcdb6 2626
10f2d63a
VZ
2627 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2628 if test "x$LINE" != x ; then
2629 eval "DEFAULT_$LINE"
2630 else
2631 no_cache=1
2632 fi
2633
2634 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2635
2636fi
10f2d63a
VZ
2637
2638
2639 eval "$ac_cv_use_no_rtti"
2640 if test "$no_cache" != 1; then
2641 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2642 fi
2643
2644 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2645 echo "$ac_t""yes" 1>&6
10f2d63a 2646 else
698dcdb6 2647 echo "$ac_t""no" 1>&6
10f2d63a 2648 fi
698dcdb6 2649
10f2d63a 2650
698dcdb6 2651 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
c39c53e9 2652echo "configure:2653: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2653 no_cache=0
2654 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2655if test "${enable_no_exceptions+set}" = set; then
2656 enableval="$enable_no_exceptions"
698dcdb6 2657
10f2d63a
VZ
2658 if test "$enableval" = yes; then
2659 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2660 else
2661 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2662 fi
698dcdb6 2663
10f2d63a 2664else
698dcdb6 2665
10f2d63a
VZ
2666 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2667 if test "x$LINE" != x ; then
2668 eval "DEFAULT_$LINE"
2669 else
2670 no_cache=1
2671 fi
2672
2673 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2674
2675fi
10f2d63a
VZ
2676
2677
2678 eval "$ac_cv_use_no_exceptions"
2679 if test "$no_cache" != 1; then
2680 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2681 fi
2682
2683 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2684 echo "$ac_t""yes" 1>&6
10f2d63a 2685 else
698dcdb6 2686 echo "$ac_t""no" 1>&6
10f2d63a 2687 fi
698dcdb6 2688
10f2d63a 2689
698dcdb6 2690 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
c39c53e9 2691echo "configure:2692: checking for --enable-permissive" >&5
10f2d63a
VZ
2692 no_cache=0
2693 # Check whether --enable-permissive or --disable-permissive was given.
2694if test "${enable_permissive+set}" = set; then
2695 enableval="$enable_permissive"
698dcdb6 2696
10f2d63a
VZ
2697 if test "$enableval" = yes; then
2698 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2699 else
2700 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2701 fi
698dcdb6 2702
10f2d63a 2703else
698dcdb6 2704
10f2d63a
VZ
2705 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2706 if test "x$LINE" != x ; then
2707 eval "DEFAULT_$LINE"
2708 else
2709 no_cache=1
2710 fi
2711
2712 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2713
2714fi
10f2d63a
VZ
2715
2716
2717 eval "$ac_cv_use_permissive"
2718 if test "$no_cache" != 1; then
2719 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2720 fi
2721
2722 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2723 echo "$ac_t""yes" 1>&6
10f2d63a 2724 else
698dcdb6 2725 echo "$ac_t""no" 1>&6
10f2d63a 2726 fi
698dcdb6 2727
10f2d63a 2728
698dcdb6 2729 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
c39c53e9 2730echo "configure:2731: checking for --enable-no_deps" >&5
10f2d63a
VZ
2731 no_cache=0
2732 # Check whether --enable-no_deps or --disable-no_deps was given.
2733if test "${enable_no_deps+set}" = set; then
2734 enableval="$enable_no_deps"
698dcdb6 2735
10f2d63a
VZ
2736 if test "$enableval" = yes; then
2737 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2738 else
2739 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2740 fi
698dcdb6 2741
10f2d63a 2742else
698dcdb6 2743
10f2d63a
VZ
2744 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2745 if test "x$LINE" != x ; then
2746 eval "DEFAULT_$LINE"
2747 else
2748 no_cache=1
2749 fi
2750
2751 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2752
2753fi
10f2d63a
VZ
2754
2755
2756 eval "$ac_cv_use_no_deps"
2757 if test "$no_cache" != 1; then
2758 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2759 fi
2760
2761 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2762 echo "$ac_t""yes" 1>&6
10f2d63a 2763 else
698dcdb6 2764 echo "$ac_t""no" 1>&6
10f2d63a 2765 fi
698dcdb6
VZ
2766
2767
10f2d63a 2768
54276ccf 2769 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
c39c53e9 2770echo "configure:2771: checking for --enable-compat20" >&5
54276ccf
VZ
2771 no_cache=0
2772 # Check whether --enable-compat20 or --disable-compat20 was given.
2773if test "${enable_compat20+set}" = set; then
2774 enableval="$enable_compat20"
2775
2776 if test "$enableval" = yes; then
2777 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2778 else
2779 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2780 fi
2781
2782else
2783
2784 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2785 if test "x$LINE" != x ; then
2786 eval "DEFAULT_$LINE"
2787 else
2788 no_cache=1
2789 fi
2790
2791 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2792
2793fi
2794
2795
2796 eval "$ac_cv_use_compat20"
2797 if test "$no_cache" != 1; then
2798 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2799 fi
2800
2801 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2802 echo "$ac_t""yes" 1>&6
2803 else
2804 echo "$ac_t""no" 1>&6
2805 fi
2806
2807
2808 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
c39c53e9 2809echo "configure:2810: checking for --enable-compat22" >&5
54276ccf
VZ
2810 no_cache=0
2811 # Check whether --enable-compat22 or --disable-compat22 was given.
2812if test "${enable_compat22+set}" = set; then
2813 enableval="$enable_compat22"
2814
2815 if test "$enableval" = yes; then
2816 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2817 else
2818 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2819 fi
2820
2821else
2822
2823 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2824 if test "x$LINE" != x ; then
2825 eval "DEFAULT_$LINE"
2826 else
2827 no_cache=1
2828 fi
2829
2830 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2831
2832fi
2833
2834
2835 eval "$ac_cv_use_compat22"
2836 if test "$no_cache" != 1; then
2837 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2838 fi
2839
2840 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2841 echo "$ac_t""yes" 1>&6
2842 else
2843 echo "$ac_t""no" 1>&6
2844 fi
2845
2846
2847
698dcdb6
VZ
2848
2849 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
c39c53e9 2850echo "configure:2851: checking for --enable-intl" >&5
10f2d63a
VZ
2851 no_cache=0
2852 # Check whether --enable-intl or --disable-intl was given.
2853if test "${enable_intl+set}" = set; then
2854 enableval="$enable_intl"
698dcdb6 2855
10f2d63a
VZ
2856 if test "$enableval" = yes; then
2857 ac_cv_use_intl='wxUSE_INTL=yes'
2858 else
2859 ac_cv_use_intl='wxUSE_INTL=no'
2860 fi
698dcdb6 2861
10f2d63a 2862else
698dcdb6 2863
10f2d63a
VZ
2864 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2865 if test "x$LINE" != x ; then
2866 eval "DEFAULT_$LINE"
2867 else
2868 no_cache=1
2869 fi
2870
2871 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2872
2873fi
10f2d63a
VZ
2874
2875
2876 eval "$ac_cv_use_intl"
2877 if test "$no_cache" != 1; then
2878 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2879 fi
2880
2881 if test "$wxUSE_INTL" = yes; then
698dcdb6 2882 echo "$ac_t""yes" 1>&6
10f2d63a 2883 else
698dcdb6 2884 echo "$ac_t""no" 1>&6
10f2d63a 2885 fi
698dcdb6 2886
10f2d63a 2887
698dcdb6 2888 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
c39c53e9 2889echo "configure:2890: checking for --enable-config" >&5
10f2d63a
VZ
2890 no_cache=0
2891 # Check whether --enable-config or --disable-config was given.
2892if test "${enable_config+set}" = set; then
2893 enableval="$enable_config"
698dcdb6 2894
10f2d63a
VZ
2895 if test "$enableval" = yes; then
2896 ac_cv_use_config='wxUSE_CONFIG=yes'
2897 else
2898 ac_cv_use_config='wxUSE_CONFIG=no'
2899 fi
698dcdb6 2900
10f2d63a 2901else
698dcdb6 2902
10f2d63a
VZ
2903 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2904 if test "x$LINE" != x ; then
2905 eval "DEFAULT_$LINE"
2906 else
2907 no_cache=1
2908 fi
2909
2910 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
2911
2912fi
10f2d63a
VZ
2913
2914
2915 eval "$ac_cv_use_config"
2916 if test "$no_cache" != 1; then
2917 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2918 fi
2919
2920 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 2921 echo "$ac_t""yes" 1>&6
10f2d63a 2922 else
698dcdb6 2923 echo "$ac_t""no" 1>&6
10f2d63a 2924 fi
698dcdb6
VZ
2925
2926
b12915c1 2927
698dcdb6 2928 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
c39c53e9 2929echo "configure:2930: checking for --enable-sockets" >&5
10f2d63a
VZ
2930 no_cache=0
2931 # Check whether --enable-sockets or --disable-sockets was given.
2932if test "${enable_sockets+set}" = set; then
2933 enableval="$enable_sockets"
698dcdb6 2934
10f2d63a
VZ
2935 if test "$enableval" = yes; then
2936 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2937 else
2938 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2939 fi
698dcdb6 2940
10f2d63a 2941else
698dcdb6 2942
10f2d63a
VZ
2943 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2944 if test "x$LINE" != x ; then
2945 eval "DEFAULT_$LINE"
2946 else
2947 no_cache=1
2948 fi
2949
2950 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
2951
2952fi
10f2d63a
VZ
2953
2954
2955 eval "$ac_cv_use_sockets"
2956 if test "$no_cache" != 1; then
2957 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2958 fi
2959
2960 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 2961 echo "$ac_t""yes" 1>&6
10f2d63a 2962 else
698dcdb6 2963 echo "$ac_t""no" 1>&6
10f2d63a 2964 fi
698dcdb6 2965
b12915c1 2966
698dcdb6
VZ
2967
2968 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
c39c53e9 2969echo "configure:2970: checking for --enable-ipc" >&5
10f2d63a 2970 no_cache=0
eb4efbdc
VZ
2971 # Check whether --enable-ipc or --disable-ipc was given.
2972if test "${enable_ipc+set}" = set; then
2973 enableval="$enable_ipc"
698dcdb6 2974
10f2d63a 2975 if test "$enableval" = yes; then
eb4efbdc 2976 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2977 else
eb4efbdc 2978 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 2979 fi
698dcdb6 2980
10f2d63a 2981else
698dcdb6 2982
eb4efbdc 2983 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2984 if test "x$LINE" != x ; then
2985 eval "DEFAULT_$LINE"
2986 else
2987 no_cache=1
2988 fi
2989
eb4efbdc 2990 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
2991
2992fi
10f2d63a
VZ
2993
2994
eb4efbdc 2995 eval "$ac_cv_use_ipc"
10f2d63a 2996 if test "$no_cache" != 1; then
eb4efbdc 2997 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2998 fi
2999
eb4efbdc 3000 if test "$wxUSE_IPC" = yes; then
698dcdb6 3001 echo "$ac_t""yes" 1>&6
10f2d63a 3002 else
698dcdb6 3003 echo "$ac_t""no" 1>&6
10f2d63a 3004 fi
698dcdb6
VZ
3005
3006
eb4efbdc 3007
1e6feb95 3008 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
c39c53e9 3009echo "configure:3010: checking for --enable-cmdline" >&5
1e6feb95
VZ
3010 no_cache=0
3011 # Check whether --enable-cmdline or --disable-cmdline was given.
3012if test "${enable_cmdline+set}" = set; then
3013 enableval="$enable_cmdline"
3014
3015 if test "$enableval" = yes; then
3016 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3017 else
3018 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3019 fi
3020
3021else
3022
3023 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3024 if test "x$LINE" != x ; then
3025 eval "DEFAULT_$LINE"
3026 else
3027 no_cache=1
3028 fi
3029
3030 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3031
3032fi
3033
3034
3035 eval "$ac_cv_use_cmdline"
3036 if test "$no_cache" != 1; then
3037 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3038 fi
3039
3040 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3041 echo "$ac_t""yes" 1>&6
3042 else
3043 echo "$ac_t""no" 1>&6
3044 fi
3045
3046
3047 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
c39c53e9 3048echo "configure:3049: checking for --enable-datetime" >&5
1e6feb95
VZ
3049 no_cache=0
3050 # Check whether --enable-datetime or --disable-datetime was given.
3051if test "${enable_datetime+set}" = set; then
3052 enableval="$enable_datetime"
3053
3054 if test "$enableval" = yes; then
3055 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3056 else
3057 ac_cv_use_datetime='wxUSE_DATETIME=no'
3058 fi
3059
3060else
3061
3062 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3063 if test "x$LINE" != x ; then
3064 eval "DEFAULT_$LINE"
3065 else
3066 no_cache=1
3067 fi
3068
3069 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3070
3071fi
3072
3073
3074 eval "$ac_cv_use_datetime"
3075 if test "$no_cache" != 1; then
3076 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3077 fi
3078
3079 if test "$wxUSE_DATETIME" = yes; then
3080 echo "$ac_t""yes" 1>&6
3081 else
3082 echo "$ac_t""no" 1>&6
3083 fi
3084
3085
3086 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
c39c53e9 3087echo "configure:3088: checking for --enable-timedate" >&5
1e6feb95
VZ
3088 no_cache=0
3089 # Check whether --enable-timedate or --disable-timedate was given.
3090if test "${enable_timedate+set}" = set; then
3091 enableval="$enable_timedate"
3092
3093 if test "$enableval" = yes; then
3094 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3095 else
3096 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3097 fi
3098
3099else
3100
3101 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3102 if test "x$LINE" != x ; then
3103 eval "DEFAULT_$LINE"
3104 else
3105 no_cache=1
3106 fi
3107
3108 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3109
3110fi
3111
3112
3113 eval "$ac_cv_use_timedate"
3114 if test "$no_cache" != 1; then
3115 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3116 fi
3117
3118 if test "$wxUSE_TIMEDATE" = yes; then
3119 echo "$ac_t""yes" 1>&6
3120 else
3121 echo "$ac_t""no" 1>&6
3122 fi
3123
3124
3125 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
c39c53e9 3126echo "configure:3127: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3127 no_cache=0
3128 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3129if test "${enable_stopwatch+set}" = set; then
3130 enableval="$enable_stopwatch"
3131
3132 if test "$enableval" = yes; then
3133 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3134 else
3135 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3136 fi
3137
3138else
3139
3140 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3141 if test "x$LINE" != x ; then
3142 eval "DEFAULT_$LINE"
3143 else
3144 no_cache=1
3145 fi
3146
3147 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3148
3149fi
3150
3151
3152 eval "$ac_cv_use_stopwatch"
3153 if test "$no_cache" != 1; then
3154 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3155 fi
3156
3157 if test "$wxUSE_STOPWATCH" = yes; then
3158 echo "$ac_t""yes" 1>&6
3159 else
3160 echo "$ac_t""no" 1>&6
3161 fi
3162
3163
698dcdb6 3164 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
c39c53e9 3165echo "configure:3166: checking for --enable-dialupman" >&5
10f2d63a 3166 no_cache=0
eb4efbdc
VZ
3167 # Check whether --enable-dialupman or --disable-dialupman was given.
3168if test "${enable_dialupman+set}" = set; then
3169 enableval="$enable_dialupman"
698dcdb6 3170
10f2d63a 3171 if test "$enableval" = yes; then
eb4efbdc 3172 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3173 else
eb4efbdc 3174 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3175 fi
698dcdb6 3176
10f2d63a 3177else
698dcdb6 3178
eb4efbdc 3179 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3180 if test "x$LINE" != x ; then
3181 eval "DEFAULT_$LINE"
3182 else
3183 no_cache=1
3184 fi
3185
eb4efbdc 3186 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3187
3188fi
10f2d63a
VZ
3189
3190
eb4efbdc 3191 eval "$ac_cv_use_dialupman"
10f2d63a 3192 if test "$no_cache" != 1; then
eb4efbdc 3193 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3194 fi
3195
eb4efbdc 3196 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3197 echo "$ac_t""yes" 1>&6
10f2d63a 3198 else
698dcdb6 3199 echo "$ac_t""no" 1>&6
10f2d63a 3200 fi
698dcdb6 3201
10f2d63a 3202
698dcdb6 3203 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
c39c53e9 3204echo "configure:3205: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3205 no_cache=0
3206 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3207if test "${enable_apple_ieee+set}" = set; then
3208 enableval="$enable_apple_ieee"
698dcdb6 3209
10f2d63a
VZ
3210 if test "$enableval" = yes; then
3211 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3212 else
3213 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3214 fi
698dcdb6 3215
10f2d63a 3216else
698dcdb6 3217
10f2d63a
VZ
3218 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3219 if test "x$LINE" != x ; then
3220 eval "DEFAULT_$LINE"
3221 else
3222 no_cache=1
3223 fi
3224
3225 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3226
3227fi
10f2d63a
VZ
3228
3229
3230 eval "$ac_cv_use_apple_ieee"
3231 if test "$no_cache" != 1; then
3232 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3233 fi
3234
3235 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3236 echo "$ac_t""yes" 1>&6
10f2d63a 3237 else
698dcdb6 3238 echo "$ac_t""no" 1>&6
10f2d63a 3239 fi
698dcdb6 3240
10f2d63a 3241
1e6feb95 3242 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
c39c53e9 3243echo "configure:3244: checking for --enable-timer" >&5
10f2d63a 3244 no_cache=0
1e6feb95
VZ
3245 # Check whether --enable-timer or --disable-timer was given.
3246if test "${enable_timer+set}" = set; then
3247 enableval="$enable_timer"
698dcdb6 3248
10f2d63a 3249 if test "$enableval" = yes; then
1e6feb95 3250 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3251 else
1e6feb95 3252 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3253 fi
698dcdb6 3254
10f2d63a 3255else
698dcdb6 3256
1e6feb95 3257 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3258 if test "x$LINE" != x ; then
3259 eval "DEFAULT_$LINE"
3260 else
3261 no_cache=1
3262 fi
3263
1e6feb95 3264 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3265
3266fi
10f2d63a
VZ
3267
3268
1e6feb95 3269 eval "$ac_cv_use_timer"
10f2d63a 3270 if test "$no_cache" != 1; then
1e6feb95 3271 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3272 fi
3273
1e6feb95 3274 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3275 echo "$ac_t""yes" 1>&6
10f2d63a 3276 else
698dcdb6 3277 echo "$ac_t""no" 1>&6
10f2d63a 3278 fi
698dcdb6 3279
10f2d63a 3280
698dcdb6 3281 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
c39c53e9 3282echo "configure:3283: checking for --enable-wave" >&5
10f2d63a
VZ
3283 no_cache=0
3284 # Check whether --enable-wave or --disable-wave was given.
3285if test "${enable_wave+set}" = set; then
3286 enableval="$enable_wave"
698dcdb6 3287
10f2d63a
VZ
3288 if test "$enableval" = yes; then
3289 ac_cv_use_wave='wxUSE_WAVE=yes'
3290 else
3291 ac_cv_use_wave='wxUSE_WAVE=no'
3292 fi
698dcdb6 3293
10f2d63a 3294else
698dcdb6 3295
10f2d63a
VZ
3296 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3297 if test "x$LINE" != x ; then
3298 eval "DEFAULT_$LINE"
3299 else
3300 no_cache=1
3301 fi
3302
3303 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3304
3305fi
10f2d63a
VZ
3306
3307
3308 eval "$ac_cv_use_wave"
3309 if test "$no_cache" != 1; then
3310 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3311 fi
3312
3313 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3314 echo "$ac_t""yes" 1>&6
10f2d63a 3315 else
698dcdb6 3316 echo "$ac_t""no" 1>&6
10f2d63a 3317 fi
698dcdb6 3318
10f2d63a 3319
698dcdb6 3320 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
c39c53e9 3321echo "configure:3322: checking for --enable-fraction" >&5
10f2d63a
VZ
3322 no_cache=0
3323 # Check whether --enable-fraction or --disable-fraction was given.
3324if test "${enable_fraction+set}" = set; then
3325 enableval="$enable_fraction"
698dcdb6 3326
10f2d63a
VZ
3327 if test "$enableval" = yes; then
3328 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3329 else
3330 ac_cv_use_fraction='wxUSE_FRACTION=no'
3331 fi
698dcdb6 3332
10f2d63a 3333else
698dcdb6 3334
10f2d63a
VZ
3335 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3336 if test "x$LINE" != x ; then
3337 eval "DEFAULT_$LINE"
3338 else
3339 no_cache=1
3340 fi
3341
3342 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3343
3344fi
10f2d63a
VZ
3345
3346
3347 eval "$ac_cv_use_fraction"
3348 if test "$no_cache" != 1; then
3349 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3350 fi
3351
3352 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3353 echo "$ac_t""yes" 1>&6
10f2d63a 3354 else
698dcdb6 3355 echo "$ac_t""no" 1>&6
10f2d63a 3356 fi
698dcdb6 3357
10f2d63a 3358
698dcdb6 3359 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
c39c53e9 3360echo "configure:3361: checking for --enable-dynlib" >&5
10f2d63a
VZ
3361 no_cache=0
3362 # Check whether --enable-dynlib or --disable-dynlib was given.
3363if test "${enable_dynlib+set}" = set; then
3364 enableval="$enable_dynlib"
698dcdb6 3365
10f2d63a
VZ
3366 if test "$enableval" = yes; then
3367 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3368 else
3369 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3370 fi
698dcdb6 3371
10f2d63a 3372else
698dcdb6 3373
10f2d63a
VZ
3374 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3375 if test "x$LINE" != x ; then
3376 eval "DEFAULT_$LINE"
3377 else
3378 no_cache=1
3379 fi
3380
3381 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3382
3383fi
10f2d63a
VZ
3384
3385
3386 eval "$ac_cv_use_dynlib"
3387 if test "$no_cache" != 1; then
3388 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3389 fi
3390
3391 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3392 echo "$ac_t""yes" 1>&6
10f2d63a 3393 else
698dcdb6 3394 echo "$ac_t""no" 1>&6
10f2d63a 3395 fi
698dcdb6 3396
10f2d63a 3397
698dcdb6 3398 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
c39c53e9 3399echo "configure:3400: checking for --enable-longlong" >&5
10f2d63a
VZ
3400 no_cache=0
3401 # Check whether --enable-longlong or --disable-longlong was given.
3402if test "${enable_longlong+set}" = set; then
3403 enableval="$enable_longlong"
698dcdb6 3404
10f2d63a
VZ
3405 if test "$enableval" = yes; then
3406 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3407 else
3408 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3409 fi
698dcdb6 3410
10f2d63a 3411else
698dcdb6 3412
10f2d63a
VZ
3413 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3414 if test "x$LINE" != x ; then
3415 eval "DEFAULT_$LINE"
3416 else
3417 no_cache=1
3418 fi
3419
3420 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3421
3422fi
10f2d63a
VZ
3423
3424
3425 eval "$ac_cv_use_longlong"
3426 if test "$no_cache" != 1; then
3427 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3428 fi
3429
3430 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3431 echo "$ac_t""yes" 1>&6
10f2d63a 3432 else
698dcdb6 3433 echo "$ac_t""no" 1>&6
10f2d63a 3434 fi
698dcdb6 3435
10f2d63a 3436
698dcdb6 3437 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
c39c53e9 3438echo "configure:3439: checking for --enable-geometry" >&5
e8f65ba6
RR
3439 no_cache=0
3440 # Check whether --enable-geometry or --disable-geometry was given.
3441if test "${enable_geometry+set}" = set; then
3442 enableval="$enable_geometry"
698dcdb6 3443
e8f65ba6
RR
3444 if test "$enableval" = yes; then
3445 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3446 else
3447 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3448 fi
698dcdb6 3449
e8f65ba6 3450else
698dcdb6 3451
e8f65ba6
RR
3452 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3453 if test "x$LINE" != x ; then
3454 eval "DEFAULT_$LINE"
3455 else
3456 no_cache=1
3457 fi
3458
3459 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3460
3461fi
e8f65ba6
RR
3462
3463
3464 eval "$ac_cv_use_geometry"
3465 if test "$no_cache" != 1; then
3466 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3467 fi
3468
3469 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3470 echo "$ac_t""yes" 1>&6
e8f65ba6 3471 else
698dcdb6 3472 echo "$ac_t""no" 1>&6
e8f65ba6 3473 fi
698dcdb6 3474
e8f65ba6 3475
698dcdb6 3476 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
c39c53e9 3477echo "configure:3478: checking for --enable-log" >&5
10f2d63a
VZ
3478 no_cache=0
3479 # Check whether --enable-log or --disable-log was given.
3480if test "${enable_log+set}" = set; then
3481 enableval="$enable_log"
698dcdb6 3482
10f2d63a
VZ
3483 if test "$enableval" = yes; then
3484 ac_cv_use_log='wxUSE_LOG=yes'
3485 else
3486 ac_cv_use_log='wxUSE_LOG=no'
3487 fi
698dcdb6 3488
10f2d63a 3489else
698dcdb6 3490
10f2d63a
VZ
3491 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3492 if test "x$LINE" != x ; then
3493 eval "DEFAULT_$LINE"
3494 else
3495 no_cache=1
3496 fi
3497
3498 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3499
3500fi
10f2d63a
VZ
3501
3502
3503 eval "$ac_cv_use_log"
3504 if test "$no_cache" != 1; then
3505 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3506 fi
3507
3508 if test "$wxUSE_LOG" = yes; then
698dcdb6 3509 echo "$ac_t""yes" 1>&6
10f2d63a 3510 else
698dcdb6 3511 echo "$ac_t""no" 1>&6
10f2d63a 3512 fi
698dcdb6 3513
10f2d63a 3514
698dcdb6 3515 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
c39c53e9 3516echo "configure:3517: checking for --enable-streams" >&5
10f2d63a
VZ
3517 no_cache=0
3518 # Check whether --enable-streams or --disable-streams was given.
3519if test "${enable_streams+set}" = set; then
3520 enableval="$enable_streams"
698dcdb6 3521
10f2d63a
VZ
3522 if test "$enableval" = yes; then
3523 ac_cv_use_streams='wxUSE_STREAMS=yes'
3524 else
3525 ac_cv_use_streams='wxUSE_STREAMS=no'
3526 fi
698dcdb6 3527
10f2d63a 3528else
698dcdb6 3529
10f2d63a
VZ
3530 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3531 if test "x$LINE" != x ; then
3532 eval "DEFAULT_$LINE"
3533 else
3534 no_cache=1
3535 fi
3536
3537 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3538
3539fi
10f2d63a
VZ
3540
3541
3542 eval "$ac_cv_use_streams"
3543 if test "$no_cache" != 1; then
3544 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3545 fi
3546
3547 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3548 echo "$ac_t""yes" 1>&6
10f2d63a 3549 else
698dcdb6 3550 echo "$ac_t""no" 1>&6
10f2d63a 3551 fi
698dcdb6 3552
10f2d63a 3553
698dcdb6 3554 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
c39c53e9 3555echo "configure:3556: checking for --enable-file" >&5
10f2d63a
VZ
3556 no_cache=0
3557 # Check whether --enable-file or --disable-file was given.
3558if test "${enable_file+set}" = set; then
3559 enableval="$enable_file"
698dcdb6 3560
10f2d63a
VZ
3561 if test "$enableval" = yes; then
3562 ac_cv_use_file='wxUSE_FILE=yes'
3563 else
3564 ac_cv_use_file='wxUSE_FILE=no'
3565 fi
698dcdb6 3566
10f2d63a 3567else
698dcdb6 3568
10f2d63a
VZ
3569 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3570 if test "x$LINE" != x ; then
3571 eval "DEFAULT_$LINE"
3572 else
3573 no_cache=1
3574 fi
3575
3576 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3577
3578fi
10f2d63a
VZ
3579
3580
3581 eval "$ac_cv_use_file"
3582 if test "$no_cache" != 1; then
3583 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3584 fi
3585
3586 if test "$wxUSE_FILE" = yes; then
698dcdb6 3587 echo "$ac_t""yes" 1>&6
10f2d63a 3588 else
698dcdb6 3589 echo "$ac_t""no" 1>&6
10f2d63a 3590 fi
698dcdb6 3591
10f2d63a 3592
1e6feb95 3593 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
c39c53e9 3594echo "configure:3595: checking for --enable-ffile" >&5
10f2d63a 3595 no_cache=0
1e6feb95
VZ
3596 # Check whether --enable-ffile or --disable-ffile was given.
3597if test "${enable_ffile+set}" = set; then
3598 enableval="$enable_ffile"
698dcdb6 3599
10f2d63a 3600 if test "$enableval" = yes; then
1e6feb95 3601 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3602 else
1e6feb95 3603 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3604 fi
698dcdb6 3605
10f2d63a 3606else
698dcdb6 3607
1e6feb95 3608 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3609 if test "x$LINE" != x ; then
3610 eval "DEFAULT_$LINE"
3611 else
3612 no_cache=1
3613 fi
3614
1e6feb95 3615 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3616
3617fi
10f2d63a
VZ
3618
3619
1e6feb95 3620 eval "$ac_cv_use_ffile"
10f2d63a 3621 if test "$no_cache" != 1; then
1e6feb95 3622 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3623 fi
3624
1e6feb95 3625 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3626 echo "$ac_t""yes" 1>&6
10f2d63a 3627 else
698dcdb6 3628 echo "$ac_t""no" 1>&6
10f2d63a 3629 fi
698dcdb6 3630
10f2d63a 3631
1e6feb95 3632 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
c39c53e9 3633echo "configure:3634: checking for --enable-textfile" >&5
10f2d63a 3634 no_cache=0
1e6feb95
VZ
3635 # Check whether --enable-textfile or --disable-textfile was given.
3636if test "${enable_textfile+set}" = set; then
3637 enableval="$enable_textfile"
698dcdb6 3638
10f2d63a 3639 if test "$enableval" = yes; then
1e6feb95 3640 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3641 else
1e6feb95 3642 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3643 fi
698dcdb6 3644
10f2d63a 3645else
698dcdb6 3646
1e6feb95 3647 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3648 if test "x$LINE" != x ; then
3649 eval "DEFAULT_$LINE"
3650 else
3651 no_cache=1
3652 fi
3653
1e6feb95 3654 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3655
3656fi
10f2d63a
VZ
3657
3658
1e6feb95 3659 eval "$ac_cv_use_textfile"
10f2d63a 3660 if test "$no_cache" != 1; then
1e6feb95 3661 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3662 fi
3663
1e6feb95 3664 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3665 echo "$ac_t""yes" 1>&6
10f2d63a 3666 else
698dcdb6 3667 echo "$ac_t""no" 1>&6
10f2d63a 3668 fi
698dcdb6 3669
10f2d63a 3670
1e6feb95 3671 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
c39c53e9 3672echo "configure:3673: checking for --enable-fontmap" >&5
10f2d63a 3673 no_cache=0
1e6feb95
VZ
3674 # Check whether --enable-fontmap or --disable-fontmap was given.
3675if test "${enable_fontmap+set}" = set; then
3676 enableval="$enable_fontmap"
698dcdb6 3677
10f2d63a 3678 if test "$enableval" = yes; then
1e6feb95 3679 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3680 else
1e6feb95 3681 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3682 fi
698dcdb6 3683
10f2d63a 3684else
698dcdb6 3685
1e6feb95 3686 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3687 if test "x$LINE" != x ; then
3688 eval "DEFAULT_$LINE"
3689 else
3690 no_cache=1
3691 fi
3692
1e6feb95 3693 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3694
3695fi
10f2d63a
VZ
3696
3697
1e6feb95 3698 eval "$ac_cv_use_fontmap"
10f2d63a 3699 if test "$no_cache" != 1; then
1e6feb95 3700 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3701 fi
3702
1e6feb95 3703 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3704 echo "$ac_t""yes" 1>&6
10f2d63a 3705 else
698dcdb6 3706 echo "$ac_t""no" 1>&6
10f2d63a 3707 fi
698dcdb6 3708
10f2d63a 3709
1e6feb95 3710 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
c39c53e9 3711echo "configure:3712: checking for --enable-unicode" >&5
10f2d63a 3712 no_cache=0
1e6feb95
VZ
3713 # Check whether --enable-unicode or --disable-unicode was given.
3714if test "${enable_unicode+set}" = set; then
3715 enableval="$enable_unicode"
3716
3717 if test "$enableval" = yes; then
3718 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3719 else
3720 ac_cv_use_unicode='wxUSE_UNICODE=no'
3721 fi
3722
3723else
3724
3725 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3726 if test "x$LINE" != x ; then
3727 eval "DEFAULT_$LINE"
3728 else
3729 no_cache=1
3730 fi
3731
3732 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3733
3734fi
3735
3736
3737 eval "$ac_cv_use_unicode"
3738 if test "$no_cache" != 1; then
3739 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3740 fi
3741
3742 if test "$wxUSE_UNICODE" = yes; then
3743 echo "$ac_t""yes" 1>&6
3744 else
3745 echo "$ac_t""no" 1>&6
3746 fi
3747
3748
3749 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
c39c53e9 3750echo "configure:3751: checking for --enable-wcsrtombs" >&5
1e6feb95
VZ
3751 no_cache=0
3752 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3753if test "${enable_wcsrtombs+set}" = set; then
3754 enableval="$enable_wcsrtombs"
3755
3756 if test "$enableval" = yes; then
3757 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3758 else
3759 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3760 fi
3761
3762else
3763
3764 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3765 if test "x$LINE" != x ; then
3766 eval "DEFAULT_$LINE"
3767 else
3768 no_cache=1
3769 fi
3770
3771 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3772
3773fi
3774
3775
3776 eval "$ac_cv_use_wcsrtombs"
3777 if test "$no_cache" != 1; then
3778 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3779 fi
3780
3781 if test "$wxUSE_WCSRTOMBS" = yes; then
3782 echo "$ac_t""yes" 1>&6
3783 else
3784 echo "$ac_t""no" 1>&6
3785 fi
3786
3787
3788 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
c39c53e9 3789echo "configure:3790: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3790 no_cache=0
3791 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3792if test "${enable_wxprintfv+set}" = set; then
3793 enableval="$enable_wxprintfv"
3794
3795 if test "$enableval" = yes; then
10f2d63a
VZ
3796 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3797 else
3798 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3799 fi
698dcdb6 3800
10f2d63a 3801else
698dcdb6 3802
10f2d63a
VZ
3803 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3804 if test "x$LINE" != x ; then
3805 eval "DEFAULT_$LINE"
3806 else
3807 no_cache=1
3808 fi
3809
3810 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3811
3812fi
10f2d63a
VZ
3813
3814
3815 eval "$ac_cv_use_wxprintfv"
3816 if test "$no_cache" != 1; then
3817 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3818 fi
3819
3820 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3821 echo "$ac_t""yes" 1>&6
10f2d63a 3822 else
698dcdb6 3823 echo "$ac_t""no" 1>&6
10f2d63a 3824 fi
698dcdb6 3825
10f2d63a 3826
698dcdb6 3827 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
c39c53e9 3828echo "configure:3829: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3829 no_cache=0
3830 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3831if test "${enable_std_iostreams+set}" = set; then
3832 enableval="$enable_std_iostreams"
698dcdb6 3833
10f2d63a
VZ
3834 if test "$enableval" = yes; then
3835 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3836 else
3837 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3838 fi
698dcdb6 3839
10f2d63a 3840else
698dcdb6 3841
10f2d63a
VZ
3842 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3843 if test "x$LINE" != x ; then
3844 eval "DEFAULT_$LINE"
3845 else
3846 no_cache=1
3847 fi
3848
3849 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3850
3851fi
10f2d63a
VZ
3852
3853
3854 eval "$ac_cv_use_std_iostreams"
3855 if test "$no_cache" != 1; then
3856 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3857 fi
3858
3859 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3860 echo "$ac_t""yes" 1>&6
10f2d63a 3861 else
698dcdb6 3862 echo "$ac_t""no" 1>&6
10f2d63a 3863 fi
698dcdb6 3864
10f2d63a 3865
698dcdb6 3866 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
c39c53e9 3867echo "configure:3868: checking for --enable-filesystem" >&5
24528b0c
VS
3868 no_cache=0
3869 # Check whether --enable-filesystem or --disable-filesystem was given.
3870if test "${enable_filesystem+set}" = set; then
3871 enableval="$enable_filesystem"
698dcdb6 3872
24528b0c
VS
3873 if test "$enableval" = yes; then
3874 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3875 else
3876 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3877 fi
698dcdb6 3878
24528b0c 3879else
698dcdb6 3880
24528b0c
VS
3881 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3882 if test "x$LINE" != x ; then
3883 eval "DEFAULT_$LINE"
3884 else
3885 no_cache=1
3886 fi
3887
3888 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3889
3890fi
24528b0c
VS
3891
3892
3893 eval "$ac_cv_use_filesystem"
3894 if test "$no_cache" != 1; then
3895 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3896 fi
3897
3898 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3899 echo "$ac_t""yes" 1>&6
24528b0c 3900 else
698dcdb6 3901 echo "$ac_t""no" 1>&6
24528b0c 3902 fi
698dcdb6 3903
24528b0c 3904
698dcdb6 3905 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
c39c53e9 3906echo "configure:3907: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3907 no_cache=0
3908 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3909if test "${enable_fs_inet+set}" = set; then
3910 enableval="$enable_fs_inet"
698dcdb6 3911
10f2d63a
VZ
3912 if test "$enableval" = yes; then
3913 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3914 else
3915 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3916 fi
698dcdb6 3917
10f2d63a 3918else
698dcdb6 3919
10f2d63a
VZ
3920 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3921 if test "x$LINE" != x ; then
3922 eval "DEFAULT_$LINE"
3923 else
3924 no_cache=1
3925 fi
3926
3927 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3928
3929fi
10f2d63a
VZ
3930
3931
3932 eval "$ac_cv_use_fs_inet"
3933 if test "$no_cache" != 1; then
3934 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3935 fi
3936
3937 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3938 echo "$ac_t""yes" 1>&6
10f2d63a 3939 else
698dcdb6 3940 echo "$ac_t""no" 1>&6
10f2d63a 3941 fi
698dcdb6 3942
10f2d63a 3943
698dcdb6 3944 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
c39c53e9 3945echo "configure:3946: checking for --enable-fs_zip" >&5
10f2d63a
VZ
3946 no_cache=0
3947 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3948if test "${enable_fs_zip+set}" = set; then
3949 enableval="$enable_fs_zip"
698dcdb6 3950
10f2d63a
VZ
3951 if test "$enableval" = yes; then
3952 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3953 else
3954 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3955 fi
698dcdb6 3956
10f2d63a 3957else
698dcdb6 3958
10f2d63a
VZ
3959 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3960 if test "x$LINE" != x ; then
3961 eval "DEFAULT_$LINE"
3962 else
3963 no_cache=1
3964 fi
3965
3966 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
3967
3968fi
10f2d63a
VZ
3969
3970
3971 eval "$ac_cv_use_fs_zip"
3972 if test "$no_cache" != 1; then
3973 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3974 fi
3975
3976 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 3977 echo "$ac_t""yes" 1>&6
10f2d63a 3978 else
698dcdb6 3979 echo "$ac_t""no" 1>&6
10f2d63a 3980 fi
698dcdb6 3981
10f2d63a 3982
698dcdb6 3983 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
c39c53e9 3984echo "configure:3985: checking for --enable-zipstream" >&5
10f2d63a
VZ
3985 no_cache=0
3986 # Check whether --enable-zipstream or --disable-zipstream was given.
3987if test "${enable_zipstream+set}" = set; then
3988 enableval="$enable_zipstream"
698dcdb6 3989
10f2d63a
VZ
3990 if test "$enableval" = yes; then
3991 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3992 else
3993 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3994 fi
698dcdb6 3995
10f2d63a 3996else
698dcdb6 3997
10f2d63a
VZ
3998 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3999 if test "x$LINE" != x ; then
4000 eval "DEFAULT_$LINE"
4001 else
4002 no_cache=1
4003 fi
4004
4005 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4006
4007fi
10f2d63a
VZ
4008
4009
4010 eval "$ac_cv_use_zipstream"
4011 if test "$no_cache" != 1; then
4012 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4013 fi
4014
4015 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4016 echo "$ac_t""yes" 1>&6
10f2d63a 4017 else
698dcdb6 4018 echo "$ac_t""no" 1>&6
10f2d63a 4019 fi
698dcdb6 4020
10f2d63a 4021
698dcdb6
VZ
4022
4023 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
c39c53e9 4024echo "configure:4025: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4025 no_cache=0
4026 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4027if test "${enable_catch_segvs+set}" = set; then
4028 enableval="$enable_catch_segvs"
698dcdb6 4029
eb4efbdc
VZ
4030 if test "$enableval" = yes; then
4031 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4032 else
4033 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4034 fi
698dcdb6 4035
eb4efbdc 4036else
698dcdb6 4037
eb4efbdc
VZ
4038 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4039 if test "x$LINE" != x ; then
4040 eval "DEFAULT_$LINE"
4041 else
4042 no_cache=1
4043 fi
4044
4045 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4046
4047fi
eb4efbdc
VZ
4048
4049
4050 eval "$ac_cv_use_catch_segvs"
4051 if test "$no_cache" != 1; then
4052 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4053 fi
4054
4055 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4056 echo "$ac_t""yes" 1>&6
eb4efbdc 4057 else
698dcdb6 4058 echo "$ac_t""no" 1>&6
eb4efbdc 4059 fi
698dcdb6 4060
eb4efbdc 4061
698dcdb6 4062 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
c39c53e9 4063echo "configure:4064: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4064 no_cache=0
4065 # Check whether --enable-snglinst or --disable-snglinst was given.
4066if test "${enable_snglinst+set}" = set; then
4067 enableval="$enable_snglinst"
698dcdb6 4068
4f3c5f06
VZ
4069 if test "$enableval" = yes; then
4070 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4071 else
4072 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4073 fi
698dcdb6 4074
4f3c5f06 4075else
698dcdb6 4076
4f3c5f06
VZ
4077 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4078 if test "x$LINE" != x ; then
4079 eval "DEFAULT_$LINE"
4080 else
4081 no_cache=1
4082 fi
4083
4084 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4085
4086fi
4f3c5f06
VZ
4087
4088
4089 eval "$ac_cv_use_snglinst"
4090 if test "$no_cache" != 1; then
4091 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4092 fi
4093
4094 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4095 echo "$ac_t""yes" 1>&6
4f3c5f06 4096 else
698dcdb6 4097 echo "$ac_t""no" 1>&6
4f3c5f06 4098 fi
698dcdb6
VZ
4099
4100
eb4efbdc 4101
1e6feb95 4102 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
c39c53e9 4103echo "configure:4104: checking for --enable-mimetype" >&5
1e6feb95
VZ
4104 no_cache=0
4105 # Check whether --enable-mimetype or --disable-mimetype was given.
4106if test "${enable_mimetype+set}" = set; then
4107 enableval="$enable_mimetype"
4108
4109 if test "$enableval" = yes; then
4110 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4111 else
4112 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4113 fi
4114
4115else
4116
4117 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4118 if test "x$LINE" != x ; then
4119 eval "DEFAULT_$LINE"
4120 else
4121 no_cache=1
4122 fi
4123
4124 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4125
4126fi
4127
4128
4129 eval "$ac_cv_use_mimetype"
4130 if test "$no_cache" != 1; then
4131 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4132 fi
4133
4134 if test "$wxUSE_MIMETYPE" = yes; then
4135 echo "$ac_t""yes" 1>&6
4136 else
4137 echo "$ac_t""no" 1>&6
4138 fi
4139
4140
3e44f09d 4141 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
c39c53e9 4142echo "configure:4143: checking for --enable-system_options" >&5
3e44f09d
VZ
4143 no_cache=0
4144 # Check whether --enable-system_options or --disable-system_options was given.
4145if test "${enable_system_options+set}" = set; then
4146 enableval="$enable_system_options"
4147
4148 if test "$enableval" = yes; then
4149 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4150 else
4151 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4152 fi
4153
4154else
4155
4156 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4157 if test "x$LINE" != x ; then
4158 eval "DEFAULT_$LINE"
4159 else
4160 no_cache=1
4161 fi
4162
4163 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4164
4165fi
4166
4167
4168 eval "$ac_cv_use_system_options"
4169 if test "$no_cache" != 1; then
4170 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4171 fi
4172
4173 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4174 echo "$ac_t""yes" 1>&6
4175 else
4176 echo "$ac_t""no" 1>&6
4177 fi
4178
4179
1e6feb95 4180
698dcdb6
VZ
4181
4182 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
c39c53e9 4183echo "configure:4184: checking for --enable-threads" >&5
10f2d63a
VZ
4184 no_cache=0
4185 # Check whether --enable-threads or --disable-threads was given.
4186if test "${enable_threads+set}" = set; then
4187 enableval="$enable_threads"
698dcdb6 4188
10f2d63a
VZ
4189 if test "$enableval" = yes; then
4190 ac_cv_use_threads='wxUSE_THREADS=yes'
4191 else
4192 ac_cv_use_threads='wxUSE_THREADS=no'
4193 fi
698dcdb6 4194
10f2d63a 4195else
698dcdb6 4196
10f2d63a
VZ
4197 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4198 if test "x$LINE" != x ; then
4199 eval "DEFAULT_$LINE"
4200 else
4201 no_cache=1
4202 fi
4203
4204 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4205
4206fi
10f2d63a
VZ
4207
4208
4209 eval "$ac_cv_use_threads"
4210 if test "$no_cache" != 1; then
4211 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4212 fi
4213
4214 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4215 echo "$ac_t""yes" 1>&6
10f2d63a 4216 else
698dcdb6 4217 echo "$ac_t""no" 1>&6
10f2d63a 4218 fi
698dcdb6 4219
10f2d63a 4220
698dcdb6 4221 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
c39c53e9 4222echo "configure:4223: checking for --enable-serial" >&5
10f2d63a
VZ
4223 no_cache=0
4224 # Check whether --enable-serial or --disable-serial was given.
4225if test "${enable_serial+set}" = set; then
4226 enableval="$enable_serial"
698dcdb6 4227
10f2d63a
VZ
4228 if test "$enableval" = yes; then
4229 ac_cv_use_serial='wxUSE_SERIAL=yes'
4230 else
4231 ac_cv_use_serial='wxUSE_SERIAL=no'
4232 fi
698dcdb6 4233
10f2d63a 4234else
698dcdb6 4235
10f2d63a
VZ
4236 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4237 if test "x$LINE" != x ; then
4238 eval "DEFAULT_$LINE"
4239 else
4240 no_cache=1
4241 fi
4242
4243 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4244
4245fi
10f2d63a
VZ
4246
4247
4248 eval "$ac_cv_use_serial"
4249 if test "$no_cache" != 1; then
4250 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4251 fi
4252
4253 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4254 echo "$ac_t""yes" 1>&6
10f2d63a 4255 else
698dcdb6 4256 echo "$ac_t""no" 1>&6
10f2d63a 4257 fi
698dcdb6 4258
10f2d63a 4259
b12915c1
VZ
4260if test "$wxUSE_GUI" = "yes"; then
4261
698dcdb6
VZ
4262
4263
4264 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
c39c53e9 4265echo "configure:4266: checking for --enable-docview" >&5
10f2d63a
VZ
4266 no_cache=0
4267 # Check whether --enable-docview or --disable-docview was given.
4268if test "${enable_docview+set}" = set; then
4269 enableval="$enable_docview"
698dcdb6 4270
10f2d63a
VZ
4271 if test "$enableval" = yes; then
4272 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4273 else
4274 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4275 fi
698dcdb6 4276
10f2d63a 4277else
698dcdb6 4278
10f2d63a
VZ
4279 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4280 if test "x$LINE" != x ; then
4281 eval "DEFAULT_$LINE"
4282 else
4283 no_cache=1
4284 fi
4285
4286 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4287
4288fi
10f2d63a
VZ
4289
4290
4291 eval "$ac_cv_use_docview"
4292 if test "$no_cache" != 1; then
4293 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4294 fi
4295
4296 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4297 echo "$ac_t""yes" 1>&6
10f2d63a 4298 else
698dcdb6 4299 echo "$ac_t""no" 1>&6
10f2d63a 4300 fi
698dcdb6 4301
10f2d63a 4302
698dcdb6 4303 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
c39c53e9 4304echo "configure:4305: checking for --enable-help" >&5
10f2d63a
VZ
4305 no_cache=0
4306 # Check whether --enable-help or --disable-help was given.
4307if test "${enable_help+set}" = set; then
4308 enableval="$enable_help"
698dcdb6 4309
10f2d63a
VZ
4310 if test "$enableval" = yes; then
4311 ac_cv_use_help='wxUSE_HELP=yes'
4312 else
4313 ac_cv_use_help='wxUSE_HELP=no'
4314 fi
698dcdb6 4315
10f2d63a 4316else
698dcdb6 4317
10f2d63a
VZ
4318 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4319 if test "x$LINE" != x ; then
4320 eval "DEFAULT_$LINE"
4321 else
4322 no_cache=1
4323 fi
4324
4325 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4326
4327fi
10f2d63a
VZ
4328
4329
4330 eval "$ac_cv_use_help"
4331 if test "$no_cache" != 1; then
4332 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4333 fi
4334
4335 if test "$wxUSE_HELP" = yes; then
698dcdb6 4336 echo "$ac_t""yes" 1>&6
10f2d63a 4337 else
698dcdb6 4338 echo "$ac_t""no" 1>&6
10f2d63a 4339 fi
698dcdb6 4340
10f2d63a 4341
29fd3c0c 4342 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
c39c53e9 4343echo "configure:4344: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4344 no_cache=0
4345 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4346if test "${enable_mshtmlhelp+set}" = set; then
4347 enableval="$enable_mshtmlhelp"
4348
4349 if test "$enableval" = yes; then
4350 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4351 else
4352 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4353 fi
4354
4355else
4356
4357 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4358 if test "x$LINE" != x ; then
4359 eval "DEFAULT_$LINE"
4360 else
4361 no_cache=1
4362 fi
4363
4364 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4365
4366fi
4367
4368
4369 eval "$ac_cv_use_mshtmlhelp"
4370 if test "$no_cache" != 1; then
4371 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4372 fi
4373
4374 if test "$wxUSE_MS_HTML_HELP" = yes; then
4375 echo "$ac_t""yes" 1>&6
4376 else
4377 echo "$ac_t""no" 1>&6
4378 fi
4379
4380
3379ed37 4381 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
c39c53e9 4382echo "configure:4383: checking for --enable-html" >&5
3379ed37
VZ
4383 no_cache=0
4384 # Check whether --enable-html or --disable-html was given.
4385if test "${enable_html+set}" = set; then
4386 enableval="$enable_html"
4387
4388 if test "$enableval" = yes; then
4389 ac_cv_use_html='wxUSE_HTML=yes'
4390 else
4391 ac_cv_use_html='wxUSE_HTML=no'
4392 fi
4393
4394else
4395
4396 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4397 if test "x$LINE" != x ; then
4398 eval "DEFAULT_$LINE"
4399 else
4400 no_cache=1
4401 fi
4402
4403 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4404
4405fi
4406
4407
4408 eval "$ac_cv_use_html"
4409 if test "$no_cache" != 1; then
4410 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4411 fi
4412
4413 if test "$wxUSE_HTML" = yes; then
4414 echo "$ac_t""yes" 1>&6
4415 else
4416 echo "$ac_t""no" 1>&6
4417 fi
4418
4419
4420 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
c39c53e9 4421echo "configure:4422: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4422 no_cache=0
4423 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4424if test "${enable_htmlhelp+set}" = set; then
4425 enableval="$enable_htmlhelp"
4426
4427 if test "$enableval" = yes; then
4428 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4429 else
4430 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4431 fi
4432
4433else
4434
4435 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4436 if test "x$LINE" != x ; then
4437 eval "DEFAULT_$LINE"
4438 else
4439 no_cache=1
4440 fi
4441
4442 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4443
4444fi
4445
4446
4447 eval "$ac_cv_use_htmlhelp"
4448 if test "$no_cache" != 1; then
4449 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4450 fi
4451
4452 if test "$wxUSE_WXHTML_HELP" = yes; then
4453 echo "$ac_t""yes" 1>&6
4454 else
4455 echo "$ac_t""no" 1>&6
4456 fi
4457
4458
698dcdb6 4459 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
c39c53e9 4460echo "configure:4461: checking for --enable-constraints" >&5
10f2d63a
VZ
4461 no_cache=0
4462 # Check whether --enable-constraints or --disable-constraints was given.
4463if test "${enable_constraints+set}" = set; then
4464 enableval="$enable_constraints"
698dcdb6 4465
10f2d63a
VZ
4466 if test "$enableval" = yes; then
4467 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4468 else
4469 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4470 fi
698dcdb6 4471
10f2d63a 4472else
698dcdb6 4473
10f2d63a
VZ
4474 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4475 if test "x$LINE" != x ; then
4476 eval "DEFAULT_$LINE"
4477 else
4478 no_cache=1
4479 fi
4480
4481 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4482
4483fi
10f2d63a
VZ
4484
4485
4486 eval "$ac_cv_use_constraints"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4492 echo "$ac_t""yes" 1>&6
10f2d63a 4493 else
698dcdb6 4494 echo "$ac_t""no" 1>&6
10f2d63a 4495 fi
698dcdb6 4496
10f2d63a 4497
698dcdb6 4498 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
c39c53e9 4499echo "configure:4500: checking for --enable-printarch" >&5
10f2d63a
VZ
4500 no_cache=0
4501 # Check whether --enable-printarch or --disable-printarch was given.
4502if test "${enable_printarch+set}" = set; then
4503 enableval="$enable_printarch"
698dcdb6 4504
10f2d63a
VZ
4505 if test "$enableval" = yes; then
4506 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4507 else
4508 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4509 fi
698dcdb6 4510
10f2d63a 4511else
698dcdb6 4512
10f2d63a
VZ
4513 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4514 if test "x$LINE" != x ; then
4515 eval "DEFAULT_$LINE"
4516 else
4517 no_cache=1
4518 fi
4519
4520 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4521
4522fi
10f2d63a
VZ
4523
4524
4525 eval "$ac_cv_use_printarch"
4526 if test "$no_cache" != 1; then
4527 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4528 fi
4529
4530 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4531 echo "$ac_t""yes" 1>&6
10f2d63a 4532 else
698dcdb6 4533 echo "$ac_t""no" 1>&6
10f2d63a 4534 fi
698dcdb6 4535
10f2d63a 4536
698dcdb6 4537 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
c39c53e9 4538echo "configure:4539: checking for --enable-mdi" >&5
10f2d63a
VZ
4539 no_cache=0
4540 # Check whether --enable-mdi or --disable-mdi was given.
4541if test "${enable_mdi+set}" = set; then
4542 enableval="$enable_mdi"
698dcdb6 4543
10f2d63a
VZ
4544 if test "$enableval" = yes; then
4545 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4546 else
4547 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4548 fi
698dcdb6 4549
10f2d63a 4550else
698dcdb6 4551
10f2d63a
VZ
4552 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4553 if test "x$LINE" != x ; then
4554 eval "DEFAULT_$LINE"
4555 else
4556 no_cache=1
4557 fi
4558
4559 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4560
4561fi
10f2d63a
VZ
4562
4563
4564 eval "$ac_cv_use_mdi"
4565 if test "$no_cache" != 1; then
4566 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4567 fi
4568
4569 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4570 echo "$ac_t""yes" 1>&6
10f2d63a 4571 else
698dcdb6 4572 echo "$ac_t""no" 1>&6
10f2d63a 4573 fi
698dcdb6
VZ
4574
4575
1e6feb95 4576 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
c39c53e9 4577echo "configure:4578: checking for --enable-loggui" >&5
1e6feb95
VZ
4578 no_cache=0
4579 # Check whether --enable-loggui or --disable-loggui was given.
4580if test "${enable_loggui+set}" = set; then
4581 enableval="$enable_loggui"
4582
4583 if test "$enableval" = yes; then
4584 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4585 else
4586 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4587 fi
4588
4589else
4590
4591 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4592 if test "x$LINE" != x ; then
4593 eval "DEFAULT_$LINE"
4594 else
4595 no_cache=1
4596 fi
4597
4598 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4599
4600fi
4601
4602
4603 eval "$ac_cv_use_loggui"
4604 if test "$no_cache" != 1; then
4605 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4606 fi
4607
4608 if test "$wxUSE_LOGGUI" = yes; then
4609 echo "$ac_t""yes" 1>&6
4610 else
4611 echo "$ac_t""no" 1>&6
4612 fi
4613
4614
4615 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
c39c53e9 4616echo "configure:4617: checking for --enable-logwin" >&5
1e6feb95
VZ
4617 no_cache=0
4618 # Check whether --enable-logwin or --disable-logwin was given.
4619if test "${enable_logwin+set}" = set; then
4620 enableval="$enable_logwin"
4621
4622 if test "$enableval" = yes; then
4623 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4624 else
4625 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4626 fi
4627
4628else
4629
4630 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4631 if test "x$LINE" != x ; then
4632 eval "DEFAULT_$LINE"
4633 else
4634 no_cache=1
4635 fi
4636
4637 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4638
4639fi
4640
4641
4642 eval "$ac_cv_use_logwin"
4643 if test "$no_cache" != 1; then
4644 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4645 fi
4646
4647 if test "$wxUSE_LOGWINDOW" = yes; then
4648 echo "$ac_t""yes" 1>&6
4649 else
4650 echo "$ac_t""no" 1>&6
4651 fi
4652
4653
10f2d63a 4654
698dcdb6 4655 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
c39c53e9 4656echo "configure:4657: checking for --enable-postscript" >&5
10f2d63a
VZ
4657 no_cache=0
4658 # Check whether --enable-postscript or --disable-postscript was given.
4659if test "${enable_postscript+set}" = set; then
4660 enableval="$enable_postscript"
698dcdb6 4661
10f2d63a
VZ
4662 if test "$enableval" = yes; then
4663 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4664 else
4665 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4666 fi
698dcdb6 4667
10f2d63a 4668else
698dcdb6 4669
10f2d63a
VZ
4670 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4671 if test "x$LINE" != x ; then
4672 eval "DEFAULT_$LINE"
4673 else
4674 no_cache=1
4675 fi
4676
4677 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4678
4679fi
10f2d63a
VZ
4680
4681
4682 eval "$ac_cv_use_postscript"
4683 if test "$no_cache" != 1; then
4684 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4685 fi
4686
4687 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4688 echo "$ac_t""yes" 1>&6
10f2d63a 4689 else
698dcdb6 4690 echo "$ac_t""no" 1>&6
10f2d63a 4691 fi
698dcdb6
VZ
4692
4693
4694
10f2d63a 4695
1e6feb95 4696
698dcdb6 4697 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
c39c53e9 4698echo "configure:4699: checking for --enable-prologio" >&5
10f2d63a
VZ
4699 no_cache=0
4700 # Check whether --enable-prologio or --disable-prologio was given.
4701if test "${enable_prologio+set}" = set; then
4702 enableval="$enable_prologio"
698dcdb6 4703
10f2d63a
VZ
4704 if test "$enableval" = yes; then
4705 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4706 else
4707 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4708 fi
698dcdb6 4709
10f2d63a 4710else
698dcdb6 4711
10f2d63a
VZ
4712 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4713 if test "x$LINE" != x ; then
4714 eval "DEFAULT_$LINE"
4715 else
4716 no_cache=1
4717 fi
4718
4719 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4720
4721fi
10f2d63a
VZ
4722
4723
4724 eval "$ac_cv_use_prologio"
4725 if test "$no_cache" != 1; then
4726 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4727 fi
4728
4729 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4730 echo "$ac_t""yes" 1>&6
10f2d63a 4731 else
698dcdb6 4732 echo "$ac_t""no" 1>&6
10f2d63a 4733 fi
698dcdb6 4734
10f2d63a 4735
698dcdb6 4736 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
c39c53e9 4737echo "configure:4738: checking for --enable-resources" >&5
10f2d63a
VZ
4738 no_cache=0
4739 # Check whether --enable-resources or --disable-resources was given.
4740if test "${enable_resources+set}" = set; then
4741 enableval="$enable_resources"
698dcdb6 4742
10f2d63a
VZ
4743 if test "$enableval" = yes; then
4744 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4745 else
4746 ac_cv_use_resources='wxUSE_RESOURCES=no'
4747 fi
698dcdb6 4748
10f2d63a 4749else
698dcdb6 4750
10f2d63a
VZ
4751 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4752 if test "x$LINE" != x ; then
4753 eval "DEFAULT_$LINE"
4754 else
4755 no_cache=1
4756 fi
4757
4758 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4759
4760fi
10f2d63a
VZ
4761
4762
4763 eval "$ac_cv_use_resources"
4764 if test "$no_cache" != 1; then
4765 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4766 fi
4767
4768 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4769 echo "$ac_t""yes" 1>&6
10f2d63a 4770 else
698dcdb6 4771 echo "$ac_t""no" 1>&6
10f2d63a 4772 fi
698dcdb6 4773
10f2d63a 4774
698dcdb6
VZ
4775
4776 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
c39c53e9 4777echo "configure:4778: checking for --enable-xresources" >&5
10f2d63a
VZ
4778 no_cache=0
4779 # Check whether --enable-xresources or --disable-xresources was given.
4780if test "${enable_xresources+set}" = set; then
4781 enableval="$enable_xresources"
698dcdb6 4782
10f2d63a
VZ
4783 if test "$enableval" = yes; then
4784 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4785 else
4786 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4787 fi
698dcdb6 4788
10f2d63a 4789else
698dcdb6 4790
10f2d63a
VZ
4791 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4792 if test "x$LINE" != x ; then
4793 eval "DEFAULT_$LINE"
4794 else
4795 no_cache=1
4796 fi
4797
4798 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4799
4800fi
10f2d63a
VZ
4801
4802
4803 eval "$ac_cv_use_xresources"
4804 if test "$no_cache" != 1; then
4805 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4806 fi
4807
4808 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4809 echo "$ac_t""yes" 1>&6
10f2d63a 4810 else
698dcdb6 4811 echo "$ac_t""no" 1>&6
10f2d63a 4812 fi
698dcdb6
VZ
4813
4814
10f2d63a 4815
698dcdb6
VZ
4816
4817 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
c39c53e9 4818echo "configure:4819: checking for --enable-clipboard" >&5
10f2d63a
VZ
4819 no_cache=0
4820 # Check whether --enable-clipboard or --disable-clipboard was given.
4821if test "${enable_clipboard+set}" = set; then
4822 enableval="$enable_clipboard"
698dcdb6 4823
10f2d63a
VZ
4824 if test "$enableval" = yes; then
4825 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4826 else
4827 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4828 fi
698dcdb6 4829
10f2d63a 4830else
698dcdb6 4831
10f2d63a
VZ
4832 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4833 if test "x$LINE" != x ; then
4834 eval "DEFAULT_$LINE"
4835 else
4836 no_cache=1
4837 fi
4838
4839 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4840
4841fi
10f2d63a
VZ
4842
4843
4844 eval "$ac_cv_use_clipboard"
4845 if test "$no_cache" != 1; then
4846 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4847 fi
4848
4849 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4850 echo "$ac_t""yes" 1>&6
10f2d63a 4851 else
698dcdb6 4852 echo "$ac_t""no" 1>&6
10f2d63a 4853 fi
698dcdb6 4854
10f2d63a 4855
698dcdb6 4856 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
c39c53e9 4857echo "configure:4858: checking for --enable-dnd" >&5
10f2d63a
VZ
4858 no_cache=0
4859 # Check whether --enable-dnd or --disable-dnd was given.
4860if test "${enable_dnd+set}" = set; then
4861 enableval="$enable_dnd"
698dcdb6 4862
10f2d63a
VZ
4863 if test "$enableval" = yes; then
4864 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4865 else
4866 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4867 fi
698dcdb6 4868
10f2d63a 4869else
698dcdb6 4870
10f2d63a
VZ
4871 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4872 if test "x$LINE" != x ; then
4873 eval "DEFAULT_$LINE"
4874 else
4875 no_cache=1
4876 fi
4877
4878 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4879
4880fi
10f2d63a
VZ
4881
4882
4883 eval "$ac_cv_use_dnd"
4884 if test "$no_cache" != 1; then
4885 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4886 fi
4887
4888 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 4889 echo "$ac_t""yes" 1>&6
10f2d63a 4890 else
698dcdb6 4891 echo "$ac_t""no" 1>&6
10f2d63a 4892 fi
698dcdb6 4893
10f2d63a 4894
698dcdb6 4895 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
c39c53e9 4896echo "configure:4897: checking for --enable-metafile" >&5
b64f0a5f
RL
4897 no_cache=0
4898 # Check whether --enable-metafile or --disable-metafile was given.
4899if test "${enable_metafile+set}" = set; then
4900 enableval="$enable_metafile"
698dcdb6 4901
b64f0a5f
RL
4902 if test "$enableval" = yes; then
4903 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4904 else
4905 ac_cv_use_metafile='wxUSE_METAFILE=no'
4906 fi
698dcdb6 4907
b64f0a5f 4908else
698dcdb6 4909
b64f0a5f
RL
4910 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4911 if test "x$LINE" != x ; then
4912 eval "DEFAULT_$LINE"
4913 else
4914 no_cache=1
4915 fi
4916
4917 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4918
4919fi
b64f0a5f
RL
4920
4921
4922 eval "$ac_cv_use_metafile"
4923 if test "$no_cache" != 1; then
4924 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4925 fi
4926
4927 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4928 echo "$ac_t""yes" 1>&6
b64f0a5f 4929 else
698dcdb6 4930 echo "$ac_t""no" 1>&6
b64f0a5f 4931 fi
698dcdb6
VZ
4932
4933
10f2d63a 4934
24176f2c 4935 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
c39c53e9 4936echo "configure:4937: checking for --enable-treelayout" >&5
10f2d63a 4937 no_cache=0
24176f2c
GD
4938 # Check whether --enable-treelayout or --disable-treelayout was given.
4939if test "${enable_treelayout+set}" = set; then
4940 enableval="$enable_treelayout"
698dcdb6 4941
10f2d63a 4942 if test "$enableval" = yes; then
24176f2c 4943 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 4944 else
24176f2c 4945 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 4946 fi
698dcdb6 4947
10f2d63a 4948else
698dcdb6 4949
24176f2c 4950 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
4951 if test "x$LINE" != x ; then
4952 eval "DEFAULT_$LINE"
4953 else
4954 no_cache=1
4955 fi
4956
24176f2c 4957 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
4958
4959fi
10f2d63a
VZ
4960
4961
24176f2c 4962 eval "$ac_cv_use_treelayout"
10f2d63a 4963 if test "$no_cache" != 1; then
24176f2c 4964 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4965 fi
4966
24176f2c 4967 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 4968 echo "$ac_t""yes" 1>&6
10f2d63a 4969 else
698dcdb6 4970 echo "$ac_t""no" 1>&6
10f2d63a 4971 fi
698dcdb6 4972
10f2d63a 4973
698dcdb6
VZ
4974
4975
4976 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
c39c53e9 4977echo "configure:4978: checking for --enable-controls" >&5
10f2d63a
VZ
4978 no_cache=0
4979 # Check whether --enable-controls or --disable-controls was given.
4980if test "${enable_controls+set}" = set; then
4981 enableval="$enable_controls"
698dcdb6 4982
10f2d63a
VZ
4983 if test "$enableval" = yes; then
4984 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4985 else
4986 ac_cv_use_controls='wxUSE_CONTROLS=no'
4987 fi
698dcdb6 4988
10f2d63a 4989else
698dcdb6 4990
10f2d63a
VZ
4991 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4992 if test "x$LINE" != x ; then
4993 eval "DEFAULT_$LINE"
4994 else
4995 no_cache=1
4996 fi
4997
4998 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
4999
5000fi
10f2d63a
VZ
5001
5002
5003 eval "$ac_cv_use_controls"
5004 if test "$no_cache" != 1; then
5005 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5006 fi
5007
5008 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5009 echo "$ac_t""yes" 1>&6
10f2d63a 5010 else
698dcdb6 5011 echo "$ac_t""no" 1>&6
10f2d63a 5012 fi
698dcdb6 5013
10f2d63a
VZ
5014
5015if test "$wxUSE_CONTROLS" = "yes"; then
5016 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5017 DEFAULT_wxUSE_BMPBUTTON=yes
5018 DEFAULT_wxUSE_BUTTON=yes
5019 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5020 DEFAULT_wxUSE_CARET=yes
5021 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5022 DEFAULT_wxUSE_CHECKBOX=yes
5023 DEFAULT_wxUSE_CHECKLISTBOX=yes
5024 DEFAULT_wxUSE_CHOICE=yes
5025 DEFAULT_wxUSE_GAUGE=yes
5026 DEFAULT_wxUSE_GRID=yes
cc977e5f 5027 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5028 DEFAULT_wxUSE_IMAGLIST=yes
5029 DEFAULT_wxUSE_LISTBOX=yes
5030 DEFAULT_wxUSE_LISTCTRL=yes
5031 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5032 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5033 DEFAULT_wxUSE_RADIOBOX=yes
5034 DEFAULT_wxUSE_RADIOBTN=yes
5035 DEFAULT_wxUSE_SASH=yes
5036 DEFAULT_wxUSE_SCROLLBAR=yes
5037 DEFAULT_wxUSE_SLIDER=yes
5038 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5039 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5040 DEFAULT_wxUSE_SPLITTER=yes
5041 DEFAULT_wxUSE_STATBMP=yes
5042 DEFAULT_wxUSE_STATBOX=yes
5043 DEFAULT_wxUSE_STATLINE=yes
5044 DEFAULT_wxUSE_STATUSBAR=yes
5045 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5046 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5047 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5048 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5049 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5050 DEFAULT_wxUSE_TOOLTIPS=yes
5051 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5052 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
5053elif test "$wxUSE_CONTROLS" = "no"; then
5054 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5055 DEFAULT_wxUSE_BMPBUTTON=no
5056 DEFAULT_wxUSE_BUTTON=no
5057 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5058 DEFAULT_wxUSE_CARET=no
5059 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5060 DEFAULT_wxUSE_CHECKBOX=no
5061 DEFAULT_wxUSE_CHECKLISTBOX=no
5062 DEFAULT_wxUSE_CHOICE=no
5063 DEFAULT_wxUSE_GAUGE=no
5064 DEFAULT_wxUSE_GRID=no
5065 DEFAULT_wxUSE_NEW_GRID=no
5066 DEFAULT_wxUSE_IMAGLIST=no
5067 DEFAULT_wxUSE_LISTBOX=no
5068 DEFAULT_wxUSE_LISTCTRL=no
5069 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5070 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5071 DEFAULT_wxUSE_RADIOBOX=no
5072 DEFAULT_wxUSE_RADIOBTN=no
5073 DEFAULT_wxUSE_SASH=no
5074 DEFAULT_wxUSE_SCROLLBAR=no
5075 DEFAULT_wxUSE_SLIDER=no
5076 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5077 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5078 DEFAULT_wxUSE_SPLITTER=no
5079 DEFAULT_wxUSE_STATBMP=no
5080 DEFAULT_wxUSE_STATBOX=no
5081 DEFAULT_wxUSE_STATLINE=no
5082 DEFAULT_wxUSE_STATUSBAR=no
5083 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5084 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5085 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5086 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5087 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5088 DEFAULT_wxUSE_TOOLTIPS=no
5089 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5090 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
5091fi
5092
698dcdb6
VZ
5093
5094 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
c39c53e9 5095echo "configure:5096: checking for --enable-accel" >&5
10f2d63a
VZ
5096 no_cache=0
5097 # Check whether --enable-accel or --disable-accel was given.
5098if test "${enable_accel+set}" = set; then
5099 enableval="$enable_accel"
698dcdb6 5100
10f2d63a
VZ
5101 if test "$enableval" = yes; then
5102 ac_cv_use_accel='wxUSE_ACCEL=yes'
5103 else
5104 ac_cv_use_accel='wxUSE_ACCEL=no'
5105 fi
698dcdb6 5106
10f2d63a 5107else
698dcdb6 5108
10f2d63a
VZ
5109 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5110 if test "x$LINE" != x ; then
5111 eval "DEFAULT_$LINE"
5112 else
5113 no_cache=1
5114 fi
5115
5116 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5117
5118fi
10f2d63a
VZ
5119
5120
5121 eval "$ac_cv_use_accel"
5122 if test "$no_cache" != 1; then
5123 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5124 fi
5125
5126 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5127 echo "$ac_t""yes" 1>&6
10f2d63a 5128 else
698dcdb6 5129 echo "$ac_t""no" 1>&6
10f2d63a 5130 fi
698dcdb6 5131
10f2d63a 5132
1e6feb95 5133 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
c39c53e9 5134echo "configure:5135: checking for --enable-button" >&5
10f2d63a 5135 no_cache=0
1e6feb95
VZ
5136 # Check whether --enable-button or --disable-button was given.
5137if test "${enable_button+set}" = set; then
5138 enableval="$enable_button"
698dcdb6 5139
10f2d63a 5140 if test "$enableval" = yes; then
1e6feb95 5141 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5142 else
1e6feb95 5143 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5144 fi
698dcdb6 5145
10f2d63a 5146else
698dcdb6 5147
1e6feb95 5148 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5149 if test "x$LINE" != x ; then
5150 eval "DEFAULT_$LINE"
5151 else
5152 no_cache=1
5153 fi
5154
1e6feb95 5155 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5156
5157fi
10f2d63a
VZ
5158
5159
1e6feb95 5160 eval "$ac_cv_use_button"
10f2d63a 5161 if test "$no_cache" != 1; then
1e6feb95 5162 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5163 fi
5164
1e6feb95 5165 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5166 echo "$ac_t""yes" 1>&6
10f2d63a 5167 else
698dcdb6 5168 echo "$ac_t""no" 1>&6
10f2d63a 5169 fi
698dcdb6 5170
10f2d63a 5171
698dcdb6 5172 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
c39c53e9 5173echo "configure:5174: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5174 no_cache=0
5175 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5176if test "${enable_bmpbutton+set}" = set; then
5177 enableval="$enable_bmpbutton"
698dcdb6 5178
10f2d63a
VZ
5179 if test "$enableval" = yes; then
5180 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5181 else
5182 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5183 fi
698dcdb6 5184
10f2d63a 5185else
698dcdb6 5186
10f2d63a
VZ
5187 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5188 if test "x$LINE" != x ; then
5189 eval "DEFAULT_$LINE"
5190 else
5191 no_cache=1
5192 fi
5193
5194 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5195
5196fi
10f2d63a
VZ
5197
5198
5199 eval "$ac_cv_use_bmpbutton"
5200 if test "$no_cache" != 1; then
5201 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5202 fi
5203
5204 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5205 echo "$ac_t""yes" 1>&6
10f2d63a 5206 else
698dcdb6 5207 echo "$ac_t""no" 1>&6
10f2d63a 5208 fi
698dcdb6 5209
10f2d63a 5210
1e6feb95 5211 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
c39c53e9 5212echo "configure:5213: checking for --enable-calendar" >&5
1e6feb95
VZ
5213 no_cache=0
5214 # Check whether --enable-calendar or --disable-calendar was given.
5215if test "${enable_calendar+set}" = set; then
5216 enableval="$enable_calendar"
5217
5218 if test "$enableval" = yes; then
5219 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5220 else
5221 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5222 fi
5223
5224else
5225
5226 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5227 if test "x$LINE" != x ; then
5228 eval "DEFAULT_$LINE"
5229 else
5230 no_cache=1
5231 fi
5232
5233 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5234
5235fi
5236
5237
5238 eval "$ac_cv_use_calendar"
5239 if test "$no_cache" != 1; then
5240 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5241 fi
5242
5243 if test "$wxUSE_CALCTRL" = yes; then
5244 echo "$ac_t""yes" 1>&6
5245 else
5246 echo "$ac_t""no" 1>&6
5247 fi
5248
5249
5250 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
c39c53e9 5251echo "configure:5252: checking for --enable-caret" >&5
1e6feb95
VZ
5252 no_cache=0
5253 # Check whether --enable-caret or --disable-caret was given.
5254if test "${enable_caret+set}" = set; then
5255 enableval="$enable_caret"
5256
5257 if test "$enableval" = yes; then
5258 ac_cv_use_caret='wxUSE_CARET=yes'
5259 else
5260 ac_cv_use_caret='wxUSE_CARET=no'
5261 fi
5262
5263else
5264
5265 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5266 if test "x$LINE" != x ; then
5267 eval "DEFAULT_$LINE"
5268 else
5269 no_cache=1
5270 fi
5271
5272 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5273
5274fi
5275
5276
5277 eval "$ac_cv_use_caret"
5278 if test "$no_cache" != 1; then
5279 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5280 fi
5281
5282 if test "$wxUSE_CARET" = yes; then
5283 echo "$ac_t""yes" 1>&6
5284 else
5285 echo "$ac_t""no" 1>&6
5286 fi
5287
5288
698dcdb6 5289 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
c39c53e9 5290echo "configure:5291: checking for --enable-checkbox" >&5
10f2d63a
VZ
5291 no_cache=0
5292 # Check whether --enable-checkbox or --disable-checkbox was given.
5293if test "${enable_checkbox+set}" = set; then
5294 enableval="$enable_checkbox"
698dcdb6 5295
10f2d63a
VZ
5296 if test "$enableval" = yes; then
5297 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5298 else
5299 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5300 fi
698dcdb6 5301
10f2d63a 5302else
698dcdb6 5303
10f2d63a
VZ
5304 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5305 if test "x$LINE" != x ; then
5306 eval "DEFAULT_$LINE"
5307 else
5308 no_cache=1
5309 fi
5310
5311 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5312
5313fi
10f2d63a
VZ
5314
5315
5316 eval "$ac_cv_use_checkbox"
5317 if test "$no_cache" != 1; then
5318 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5319 fi
5320
5321 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5322 echo "$ac_t""yes" 1>&6
10f2d63a 5323 else
698dcdb6 5324 echo "$ac_t""no" 1>&6
10f2d63a 5325 fi
698dcdb6 5326
10f2d63a 5327
698dcdb6 5328 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
c39c53e9 5329echo "configure:5330: checking for --enable-checklst" >&5
10f2d63a
VZ
5330 no_cache=0
5331 # Check whether --enable-checklst or --disable-checklst was given.
5332if test "${enable_checklst+set}" = set; then
5333 enableval="$enable_checklst"
698dcdb6 5334
10f2d63a
VZ
5335 if test "$enableval" = yes; then
5336 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5337 else
5338 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5339 fi
698dcdb6 5340
10f2d63a 5341else
698dcdb6 5342
10f2d63a
VZ
5343 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5344 if test "x$LINE" != x ; then
5345 eval "DEFAULT_$LINE"
5346 else
5347 no_cache=1
5348 fi
5349
5350 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5351
5352fi
10f2d63a
VZ
5353
5354
5355 eval "$ac_cv_use_checklst"
5356 if test "$no_cache" != 1; then
5357 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5358 fi
5359
5360 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5361 echo "$ac_t""yes" 1>&6
10f2d63a 5362 else
698dcdb6 5363 echo "$ac_t""no" 1>&6
10f2d63a 5364 fi
698dcdb6 5365
10f2d63a 5366
698dcdb6 5367 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
c39c53e9 5368echo "configure:5369: checking for --enable-choice" >&5
10f2d63a
VZ
5369 no_cache=0
5370 # Check whether --enable-choice or --disable-choice was given.
5371if test "${enable_choice+set}" = set; then
5372 enableval="$enable_choice"
698dcdb6 5373
10f2d63a
VZ
5374 if test "$enableval" = yes; then
5375 ac_cv_use_choice='wxUSE_CHOICE=yes'
5376 else
5377 ac_cv_use_choice='wxUSE_CHOICE=no'
5378 fi
698dcdb6 5379
10f2d63a 5380else
698dcdb6 5381
10f2d63a
VZ
5382 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5383 if test "x$LINE" != x ; then
5384 eval "DEFAULT_$LINE"
5385 else
5386 no_cache=1
5387 fi
5388
5389 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5390
5391fi
10f2d63a
VZ
5392
5393
5394 eval "$ac_cv_use_choice"
5395 if test "$no_cache" != 1; then
5396 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5397 fi
5398
5399 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5400 echo "$ac_t""yes" 1>&6
10f2d63a 5401 else
698dcdb6 5402 echo "$ac_t""no" 1>&6
10f2d63a 5403 fi
698dcdb6 5404
10f2d63a 5405
698dcdb6 5406 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
c39c53e9 5407echo "configure:5408: checking for --enable-combobox" >&5
10f2d63a
VZ
5408 no_cache=0
5409 # Check whether --enable-combobox or --disable-combobox was given.
5410if test "${enable_combobox+set}" = set; then
5411 enableval="$enable_combobox"
698dcdb6 5412
10f2d63a
VZ
5413 if test "$enableval" = yes; then
5414 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5415 else
5416 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5417 fi
698dcdb6 5418
10f2d63a 5419else
698dcdb6 5420
10f2d63a
VZ
5421 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5422 if test "x$LINE" != x ; then
5423 eval "DEFAULT_$LINE"
5424 else
5425 no_cache=1
5426 fi
5427
5428 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5429
5430fi
10f2d63a
VZ
5431
5432
5433 eval "$ac_cv_use_combobox"
5434 if test "$no_cache" != 1; then
5435 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5436 fi
5437
5438 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5439 echo "$ac_t""yes" 1>&6
10f2d63a 5440 else
698dcdb6 5441 echo "$ac_t""no" 1>&6
10f2d63a 5442 fi
698dcdb6 5443
10f2d63a 5444
698dcdb6 5445 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
c39c53e9 5446echo "configure:5447: checking for --enable-gauge" >&5
10f2d63a
VZ
5447 no_cache=0
5448 # Check whether --enable-gauge or --disable-gauge was given.
5449if test "${enable_gauge+set}" = set; then
5450 enableval="$enable_gauge"
698dcdb6 5451
10f2d63a
VZ
5452 if test "$enableval" = yes; then
5453 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5454 else
5455 ac_cv_use_gauge='wxUSE_GAUGE=no'
5456 fi
698dcdb6 5457
10f2d63a 5458else
698dcdb6 5459
10f2d63a
VZ
5460 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5461 if test "x$LINE" != x ; then
5462 eval "DEFAULT_$LINE"
5463 else
5464 no_cache=1
5465 fi
5466
5467 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5468
5469fi
10f2d63a
VZ
5470
5471
5472 eval "$ac_cv_use_gauge"
5473 if test "$no_cache" != 1; then
5474 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5475 fi
5476
5477 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5478 echo "$ac_t""yes" 1>&6
10f2d63a 5479 else
698dcdb6 5480 echo "$ac_t""no" 1>&6
10f2d63a 5481 fi
698dcdb6 5482
10f2d63a 5483
698dcdb6 5484 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
c39c53e9 5485echo "configure:5486: checking for --enable-grid" >&5
10f2d63a
VZ
5486 no_cache=0
5487 # Check whether --enable-grid or --disable-grid was given.
5488if test "${enable_grid+set}" = set; then
5489 enableval="$enable_grid"
698dcdb6 5490
10f2d63a
VZ
5491 if test "$enableval" = yes; then
5492 ac_cv_use_grid='wxUSE_GRID=yes'
5493 else
5494 ac_cv_use_grid='wxUSE_GRID=no'
5495 fi
698dcdb6 5496
10f2d63a 5497else
698dcdb6 5498
10f2d63a
VZ
5499 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5500 if test "x$LINE" != x ; then
5501 eval "DEFAULT_$LINE"
5502 else
5503 no_cache=1
5504 fi
5505
5506 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5507
5508fi
10f2d63a
VZ
5509
5510
5511 eval "$ac_cv_use_grid"
5512 if test "$no_cache" != 1; then
5513 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5514 fi
5515
5516 if test "$wxUSE_GRID" = yes; then
698dcdb6 5517 echo "$ac_t""yes" 1>&6
10f2d63a 5518 else
698dcdb6 5519 echo "$ac_t""no" 1>&6
10f2d63a 5520 fi
698dcdb6 5521
10f2d63a 5522
698dcdb6 5523 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
c39c53e9 5524echo "configure:5525: checking for --enable-newgrid" >&5
10f2d63a
VZ
5525 no_cache=0
5526 # Check whether --enable-newgrid or --disable-newgrid was given.
5527if test "${enable_newgrid+set}" = set; then
5528 enableval="$enable_newgrid"
698dcdb6 5529
10f2d63a
VZ
5530 if test "$enableval" = yes; then
5531 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5532 else
5533 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5534 fi
698dcdb6 5535
10f2d63a 5536else
698dcdb6 5537
10f2d63a
VZ
5538 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5539 if test "x$LINE" != x ; then
5540 eval "DEFAULT_$LINE"
5541 else
5542 no_cache=1
5543 fi
5544
5545 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5546
5547fi
10f2d63a
VZ
5548
5549
5550 eval "$ac_cv_use_newgrid"
5551 if test "$no_cache" != 1; then
5552 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5553 fi
5554
5555 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5556 echo "$ac_t""yes" 1>&6
10f2d63a 5557 else
698dcdb6 5558 echo "$ac_t""no" 1>&6
10f2d63a 5559 fi
698dcdb6 5560
10f2d63a 5561
698dcdb6 5562 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
c39c53e9 5563echo "configure:5564: checking for --enable-imaglist" >&5
10f2d63a
VZ
5564 no_cache=0
5565 # Check whether --enable-imaglist or --disable-imaglist was given.
5566if test "${enable_imaglist+set}" = set; then
5567 enableval="$enable_imaglist"
698dcdb6 5568
10f2d63a
VZ
5569 if test "$enableval" = yes; then
5570 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5571 else
5572 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5573 fi
698dcdb6 5574
10f2d63a 5575else
698dcdb6 5576
10f2d63a
VZ
5577 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5578 if test "x$LINE" != x ; then
5579 eval "DEFAULT_$LINE"
5580 else
5581 no_cache=1
5582 fi
5583
5584 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5585
5586fi
10f2d63a
VZ
5587
5588
5589 eval "$ac_cv_use_imaglist"
5590 if test "$no_cache" != 1; then
5591 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5592 fi
5593
5594 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5595 echo "$ac_t""yes" 1>&6
10f2d63a 5596 else
698dcdb6 5597 echo "$ac_t""no" 1>&6
10f2d63a 5598 fi
698dcdb6 5599
10f2d63a 5600
698dcdb6 5601 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
c39c53e9 5602echo "configure:5603: checking for --enable-listbox" >&5
10f2d63a
VZ
5603 no_cache=0
5604 # Check whether --enable-listbox or --disable-listbox was given.
5605if test "${enable_listbox+set}" = set; then
5606 enableval="$enable_listbox"
698dcdb6 5607
10f2d63a
VZ
5608 if test "$enableval" = yes; then
5609 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5610 else
5611 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5612 fi
698dcdb6 5613
10f2d63a 5614else
698dcdb6 5615
10f2d63a
VZ
5616 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5617 if test "x$LINE" != x ; then
5618 eval "DEFAULT_$LINE"
5619 else
5620 no_cache=1
5621 fi
5622
5623 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5624
5625fi
10f2d63a
VZ
5626
5627
5628 eval "$ac_cv_use_listbox"
5629 if test "$no_cache" != 1; then
5630 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5631 fi
5632
5633 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5634 echo "$ac_t""yes" 1>&6
10f2d63a 5635 else
698dcdb6 5636 echo "$ac_t""no" 1>&6
10f2d63a 5637 fi
698dcdb6 5638
10f2d63a 5639
698dcdb6 5640 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
c39c53e9 5641echo "configure:5642: checking for --enable-listctrl" >&5
10f2d63a
VZ
5642 no_cache=0
5643 # Check whether --enable-listctrl or --disable-listctrl was given.
5644if test "${enable_listctrl+set}" = set; then
5645 enableval="$enable_listctrl"
698dcdb6 5646
10f2d63a
VZ
5647 if test "$enableval" = yes; then
5648 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5649 else
5650 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5651 fi
698dcdb6 5652
10f2d63a 5653else
698dcdb6 5654
10f2d63a
VZ
5655 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5656 if test "x$LINE" != x ; then
5657 eval "DEFAULT_$LINE"
5658 else
5659 no_cache=1
5660 fi
5661
5662 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5663
5664fi
10f2d63a
VZ
5665
5666
5667 eval "$ac_cv_use_listctrl"
5668 if test "$no_cache" != 1; then
5669 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5670 fi
5671
5672 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5673 echo "$ac_t""yes" 1>&6
10f2d63a 5674 else
698dcdb6 5675 echo "$ac_t""no" 1>&6
10f2d63a 5676 fi
698dcdb6 5677
10f2d63a 5678
698dcdb6 5679 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
c39c53e9 5680echo "configure:5681: checking for --enable-notebook" >&5
10f2d63a
VZ
5681 no_cache=0
5682 # Check whether --enable-notebook or --disable-notebook was given.
5683if test "${enable_notebook+set}" = set; then
5684 enableval="$enable_notebook"
698dcdb6 5685
10f2d63a
VZ
5686 if test "$enableval" = yes; then
5687 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5688 else
5689 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5690 fi
698dcdb6 5691
10f2d63a 5692else
698dcdb6 5693
10f2d63a
VZ
5694 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5695 if test "x$LINE" != x ; then
5696 eval "DEFAULT_$LINE"
5697 else
5698 no_cache=1
5699 fi
5700
5701 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5702
5703fi
10f2d63a
VZ
5704
5705
5706 eval "$ac_cv_use_notebook"
5707 if test "$no_cache" != 1; then
5708 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5709 fi
5710
5711 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5712 echo "$ac_t""yes" 1>&6
10f2d63a 5713 else
698dcdb6 5714 echo "$ac_t""no" 1>&6
10f2d63a 5715 fi
698dcdb6 5716
10f2d63a 5717
24176f2c 5718 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
c39c53e9 5719echo "configure:5720: checking for --enable-propsheet" >&5
24176f2c
GD
5720 no_cache=0
5721 # Check whether --enable-propsheet or --disable-propsheet was given.
5722if test "${enable_propsheet+set}" = set; then
5723 enableval="$enable_propsheet"
5724
5725 if test "$enableval" = yes; then
5726 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5727 else
5728 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5729 fi
5730
5731else
5732
5733 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5734 if test "x$LINE" != x ; then
5735 eval "DEFAULT_$LINE"
5736 else
5737 no_cache=1
5738 fi
5739
5740 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5741
5742fi
5743
5744
5745 eval "$ac_cv_use_propsheet"
5746 if test "$no_cache" != 1; then
5747 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5748 fi
5749
5750 if test "$wxUSE_PROPSHEET" = yes; then
5751 echo "$ac_t""yes" 1>&6
5752 else
5753 echo "$ac_t""no" 1>&6
5754 fi
5755
5756
698dcdb6 5757 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
c39c53e9 5758echo "configure:5759: checking for --enable-radiobox" >&5
10f2d63a
VZ
5759 no_cache=0
5760 # Check whether --enable-radiobox or --disable-radiobox was given.
5761if test "${enable_radiobox+set}" = set; then
5762 enableval="$enable_radiobox"
698dcdb6 5763
10f2d63a
VZ
5764 if test "$enableval" = yes; then
5765 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5766 else
5767 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5768 fi
698dcdb6 5769
10f2d63a 5770else
698dcdb6 5771
10f2d63a
VZ
5772 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5773 if test "x$LINE" != x ; then
5774 eval "DEFAULT_$LINE"
5775 else
5776 no_cache=1
5777 fi
5778
5779 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5780
5781fi
10f2d63a
VZ
5782
5783
5784 eval "$ac_cv_use_radiobox"
5785 if test "$no_cache" != 1; then
5786 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5787 fi
5788
5789 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5790 echo "$ac_t""yes" 1>&6
10f2d63a 5791 else
698dcdb6 5792 echo "$ac_t""no" 1>&6
10f2d63a 5793 fi
698dcdb6 5794
10f2d63a 5795
698dcdb6 5796 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
c39c53e9 5797echo "configure:5798: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5798 no_cache=0
5799 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5800if test "${enable_radiobtn+set}" = set; then
5801 enableval="$enable_radiobtn"
698dcdb6 5802
10f2d63a
VZ
5803 if test "$enableval" = yes; then
5804 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5805 else
5806 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5807 fi
698dcdb6 5808
10f2d63a 5809else
698dcdb6 5810
10f2d63a
VZ
5811 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5812 if test "x$LINE" != x ; then
5813 eval "DEFAULT_$LINE"
5814 else
5815 no_cache=1
5816 fi
5817
5818 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5819
5820fi
10f2d63a
VZ
5821
5822
5823 eval "$ac_cv_use_radiobtn"
5824 if test "$no_cache" != 1; then
5825 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5826 fi
5827
5828 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5829 echo "$ac_t""yes" 1>&6
10f2d63a 5830 else
698dcdb6 5831 echo "$ac_t""no" 1>&6
10f2d63a 5832 fi
698dcdb6 5833
10f2d63a 5834
698dcdb6 5835 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
c39c53e9 5836echo "configure:5837: checking for --enable-sash" >&5
10f2d63a
VZ
5837 no_cache=0
5838 # Check whether --enable-sash or --disable-sash was given.
5839if test "${enable_sash+set}" = set; then
5840 enableval="$enable_sash"
698dcdb6 5841
10f2d63a
VZ
5842 if test "$enableval" = yes; then
5843 ac_cv_use_sash='wxUSE_SASH=yes'
5844 else
5845 ac_cv_use_sash='wxUSE_SASH=no'
5846 fi
698dcdb6 5847
10f2d63a 5848else
698dcdb6 5849
10f2d63a
VZ
5850 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5851 if test "x$LINE" != x ; then
5852 eval "DEFAULT_$LINE"
5853 else
5854 no_cache=1
5855 fi
5856
5857 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5858
5859fi
10f2d63a
VZ
5860
5861
5862 eval "$ac_cv_use_sash"
5863 if test "$no_cache" != 1; then
5864 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5865 fi
5866
5867 if test "$wxUSE_SASH" = yes; then
698dcdb6 5868 echo "$ac_t""yes" 1>&6
10f2d63a 5869 else
698dcdb6 5870 echo "$ac_t""no" 1>&6
10f2d63a 5871 fi
698dcdb6 5872
10f2d63a 5873
698dcdb6 5874 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
c39c53e9 5875echo "configure:5876: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5876 no_cache=0
5877 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5878if test "${enable_scrollbar+set}" = set; then
5879 enableval="$enable_scrollbar"
698dcdb6 5880
10f2d63a
VZ
5881 if test "$enableval" = yes; then
5882 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5883 else
5884 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5885 fi
698dcdb6 5886
10f2d63a 5887else
698dcdb6 5888
10f2d63a
VZ
5889 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5890 if test "x$LINE" != x ; then
5891 eval "DEFAULT_$LINE"
5892 else
5893 no_cache=1
5894 fi
5895
5896 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5897
5898fi
10f2d63a
VZ
5899
5900
5901 eval "$ac_cv_use_scrollbar"
5902 if test "$no_cache" != 1; then
5903 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5904 fi
5905
5906 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5907 echo "$ac_t""yes" 1>&6
10f2d63a 5908 else
698dcdb6 5909 echo "$ac_t""no" 1>&6
10f2d63a 5910 fi
698dcdb6 5911
10f2d63a 5912
698dcdb6 5913 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
c39c53e9 5914echo "configure:5915: checking for --enable-slider" >&5
10f2d63a
VZ
5915 no_cache=0
5916 # Check whether --enable-slider or --disable-slider was given.
5917if test "${enable_slider+set}" = set; then
5918 enableval="$enable_slider"
698dcdb6 5919
10f2d63a
VZ
5920 if test "$enableval" = yes; then
5921 ac_cv_use_slider='wxUSE_SLIDER=yes'
5922 else
5923 ac_cv_use_slider='wxUSE_SLIDER=no'
5924 fi
698dcdb6 5925
10f2d63a 5926else
698dcdb6 5927
10f2d63a
VZ
5928 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5929 if test "x$LINE" != x ; then
5930 eval "DEFAULT_$LINE"
5931 else
5932 no_cache=1
5933 fi
5934
5935 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5936
5937fi
10f2d63a
VZ
5938
5939
5940 eval "$ac_cv_use_slider"
5941 if test "$no_cache" != 1; then
5942 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5943 fi
5944
5945 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 5946 echo "$ac_t""yes" 1>&6
10f2d63a 5947 else
698dcdb6 5948 echo "$ac_t""no" 1>&6
10f2d63a 5949 fi
698dcdb6 5950
10f2d63a 5951
698dcdb6 5952 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
c39c53e9 5953echo "configure:5954: checking for --enable-spinbtn" >&5
10f2d63a
VZ
5954 no_cache=0
5955 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5956if test "${enable_spinbtn+set}" = set; then
5957 enableval="$enable_spinbtn"
698dcdb6 5958
10f2d63a
VZ
5959 if test "$enableval" = yes; then
5960 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5961 else
5962 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5963 fi
698dcdb6 5964
10f2d63a 5965else
698dcdb6 5966
10f2d63a
VZ
5967 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5968 if test "x$LINE" != x ; then
5969 eval "DEFAULT_$LINE"
5970 else
5971 no_cache=1
5972 fi
5973
5974 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
5975
5976fi
10f2d63a
VZ
5977
5978
5979 eval "$ac_cv_use_spinbtn"
5980 if test "$no_cache" != 1; then
5981 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5982 fi
5983
5984 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 5985 echo "$ac_t""yes" 1>&6
10f2d63a 5986 else
698dcdb6 5987 echo "$ac_t""no" 1>&6
10f2d63a 5988 fi
698dcdb6 5989
10f2d63a 5990
698dcdb6 5991 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
c39c53e9 5992echo "configure:5993: checking for --enable-spinctrl" >&5
56cfaa52
RR
5993 no_cache=0
5994 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5995if test "${enable_spinctrl+set}" = set; then
5996 enableval="$enable_spinctrl"
698dcdb6 5997
56cfaa52
RR
5998 if test "$enableval" = yes; then
5999 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6000 else
6001 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6002 fi
698dcdb6 6003
56cfaa52 6004else
698dcdb6 6005
56cfaa52
RR
6006 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6007 if test "x$LINE" != x ; then
6008 eval "DEFAULT_$LINE"
6009 else
6010 no_cache=1
6011 fi
6012
6013 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6014
6015fi
56cfaa52
RR
6016
6017
6018 eval "$ac_cv_use_spinctrl"
6019 if test "$no_cache" != 1; then
6020 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6021 fi
6022
6023 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6024 echo "$ac_t""yes" 1>&6
56cfaa52 6025 else
698dcdb6 6026 echo "$ac_t""no" 1>&6
56cfaa52 6027 fi
698dcdb6 6028
56cfaa52 6029
698dcdb6 6030 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
c39c53e9 6031echo "configure:6032: checking for --enable-splitter" >&5
10f2d63a
VZ
6032 no_cache=0
6033 # Check whether --enable-splitter or --disable-splitter was given.
6034if test "${enable_splitter+set}" = set; then
6035 enableval="$enable_splitter"
698dcdb6 6036
10f2d63a
VZ
6037 if test "$enableval" = yes; then
6038 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6039 else
6040 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6041 fi
698dcdb6 6042
10f2d63a 6043else
698dcdb6 6044
10f2d63a
VZ
6045 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6046 if test "x$LINE" != x ; then
6047 eval "DEFAULT_$LINE"
6048 else
6049 no_cache=1
6050 fi
6051
6052 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6053
6054fi
10f2d63a
VZ
6055
6056
6057 eval "$ac_cv_use_splitter"
6058 if test "$no_cache" != 1; then
6059 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6060 fi
6061
6062 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6063 echo "$ac_t""yes" 1>&6
10f2d63a 6064 else
698dcdb6 6065 echo "$ac_t""no" 1>&6
10f2d63a 6066 fi
698dcdb6 6067
10f2d63a 6068
698dcdb6 6069 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
c39c53e9 6070echo "configure:6071: checking for --enable-statbmp" >&5
10f2d63a
VZ
6071 no_cache=0
6072 # Check whether --enable-statbmp or --disable-statbmp was given.
6073if test "${enable_statbmp+set}" = set; then
6074 enableval="$enable_statbmp"
698dcdb6 6075
10f2d63a
VZ
6076 if test "$enableval" = yes; then
6077 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6078 else
6079 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6080 fi
698dcdb6 6081
10f2d63a 6082else
698dcdb6 6083
10f2d63a
VZ
6084 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6085 if test "x$LINE" != x ; then
6086 eval "DEFAULT_$LINE"
6087 else
6088 no_cache=1
6089 fi
6090
6091 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6092
6093fi
10f2d63a
VZ
6094
6095
6096 eval "$ac_cv_use_statbmp"
6097 if test "$no_cache" != 1; then
6098 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6099 fi
6100
6101 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6102 echo "$ac_t""yes" 1>&6
10f2d63a 6103 else
698dcdb6 6104 echo "$ac_t""no" 1>&6
10f2d63a 6105 fi
698dcdb6 6106
10f2d63a 6107
698dcdb6 6108 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
c39c53e9 6109echo "configure:6110: checking for --enable-statbox" >&5
10f2d63a
VZ
6110 no_cache=0
6111 # Check whether --enable-statbox or --disable-statbox was given.
6112if test "${enable_statbox+set}" = set; then
6113 enableval="$enable_statbox"
698dcdb6 6114
10f2d63a
VZ
6115 if test "$enableval" = yes; then
6116 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6117 else
6118 ac_cv_use_statbox='wxUSE_STATBOX=no'
6119 fi
698dcdb6 6120
10f2d63a 6121else
698dcdb6 6122
10f2d63a
VZ
6123 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6124 if test "x$LINE" != x ; then
6125 eval "DEFAULT_$LINE"
6126 else
6127 no_cache=1
6128 fi
6129
6130 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6131
6132fi
10f2d63a
VZ
6133
6134
6135 eval "$ac_cv_use_statbox"
6136 if test "$no_cache" != 1; then
6137 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6138 fi
6139
6140 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6141 echo "$ac_t""yes" 1>&6
10f2d63a 6142 else
698dcdb6 6143 echo "$ac_t""no" 1>&6
10f2d63a 6144 fi
698dcdb6 6145
10f2d63a 6146
698dcdb6 6147 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
c39c53e9 6148echo "configure:6149: checking for --enable-statline" >&5
10f2d63a
VZ
6149 no_cache=0
6150 # Check whether --enable-statline or --disable-statline was given.
6151if test "${enable_statline+set}" = set; then
6152 enableval="$enable_statline"
698dcdb6 6153
10f2d63a
VZ
6154 if test "$enableval" = yes; then
6155 ac_cv_use_statline='wxUSE_STATLINE=yes'
6156 else
6157 ac_cv_use_statline='wxUSE_STATLINE=no'
6158 fi
698dcdb6 6159
10f2d63a 6160else
698dcdb6 6161
10f2d63a
VZ
6162 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6163 if test "x$LINE" != x ; then
6164 eval "DEFAULT_$LINE"
6165 else
6166 no_cache=1
6167 fi
6168
6169 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6170
6171fi
10f2d63a
VZ
6172
6173
6174 eval "$ac_cv_use_statline"
6175 if test "$no_cache" != 1; then
6176 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6177 fi
6178
6179 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6180 echo "$ac_t""yes" 1>&6
10f2d63a 6181 else
698dcdb6 6182 echo "$ac_t""no" 1>&6
10f2d63a 6183 fi
698dcdb6 6184
10f2d63a 6185
1e6feb95 6186 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
c39c53e9 6187echo "configure:6188: checking for --enable-stattext" >&5
1e6feb95
VZ
6188 no_cache=0
6189 # Check whether --enable-stattext or --disable-stattext was given.
6190if test "${enable_stattext+set}" = set; then
6191 enableval="$enable_stattext"
6192
6193 if test "$enableval" = yes; then
6194 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6195 else
6196 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6197 fi
6198
6199else
6200
6201 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6202 if test "x$LINE" != x ; then
6203 eval "DEFAULT_$LINE"
6204 else
6205 no_cache=1
6206 fi
6207
6208 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6209
6210fi
6211
6212
6213 eval "$ac_cv_use_stattext"
6214 if test "$no_cache" != 1; then
6215 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6216 fi
6217
6218 if test "$wxUSE_STATTEXT" = yes; then
6219 echo "$ac_t""yes" 1>&6
6220 else
6221 echo "$ac_t""no" 1>&6
6222 fi
6223
6224
698dcdb6 6225 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
c39c53e9 6226echo "configure:6227: checking for --enable-statusbar" >&5
10f2d63a
VZ
6227 no_cache=0
6228 # Check whether --enable-statusbar or --disable-statusbar was given.
6229if test "${enable_statusbar+set}" = set; then
6230 enableval="$enable_statusbar"
698dcdb6 6231
10f2d63a
VZ
6232 if test "$enableval" = yes; then
6233 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6234 else
6235 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6236 fi
698dcdb6 6237
10f2d63a 6238else
698dcdb6 6239
10f2d63a
VZ
6240 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6241 if test "x$LINE" != x ; then
6242 eval "DEFAULT_$LINE"
6243 else
6244 no_cache=1
6245 fi
6246
6247 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6248
6249fi
10f2d63a
VZ
6250
6251
6252 eval "$ac_cv_use_statusbar"
6253 if test "$no_cache" != 1; then
6254 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6255 fi
6256
6257 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6258 echo "$ac_t""yes" 1>&6
10f2d63a 6259 else
698dcdb6 6260 echo "$ac_t""no" 1>&6
10f2d63a 6261 fi
698dcdb6 6262
10f2d63a 6263
698dcdb6 6264 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
c39c53e9 6265echo "configure:6266: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6266 no_cache=0
6267 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6268if test "${enable_tabdialog+set}" = set; then
6269 enableval="$enable_tabdialog"
698dcdb6 6270
10f2d63a
VZ
6271 if test "$enableval" = yes; then
6272 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6273 else
6274 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6275 fi
698dcdb6 6276
10f2d63a 6277else
698dcdb6 6278
10f2d63a
VZ
6279 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6280 if test "x$LINE" != x ; then
6281 eval "DEFAULT_$LINE"
6282 else
6283 no_cache=1
6284 fi
6285
6286 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6287
6288fi
10f2d63a
VZ
6289
6290
6291 eval "$ac_cv_use_tabdialog"
6292 if test "$no_cache" != 1; then
6293 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6294 fi
6295
6296 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6297 echo "$ac_t""yes" 1>&6
10f2d63a 6298 else
698dcdb6 6299 echo "$ac_t""no" 1>&6
10f2d63a 6300 fi
698dcdb6 6301
10f2d63a 6302
1e6feb95 6303 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
c39c53e9 6304echo "configure:6305: checking for --enable-textctrl" >&5
1e6feb95
VZ
6305 no_cache=0
6306 # Check whether --enable-textctrl or --disable-textctrl was given.
6307if test "${enable_textctrl+set}" = set; then
6308 enableval="$enable_textctrl"
6309
6310 if test "$enableval" = yes; then
6311 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6312 else
6313 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6314 fi
6315
6316else
6317
6318 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6319 if test "x$LINE" != x ; then
6320 eval "DEFAULT_$LINE"
6321 else
6322 no_cache=1
6323 fi
6324
6325 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6326
6327fi
6328
6329
6330 eval "$ac_cv_use_textctrl"
6331 if test "$no_cache" != 1; then
6332 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6333 fi
6334
6335 if test "$wxUSE_TEXTCTRL" = yes; then
6336 echo "$ac_t""yes" 1>&6
6337 else
6338 echo "$ac_t""no" 1>&6
6339 fi
6340
6341
698dcdb6 6342 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
c39c53e9 6343echo "configure:6344: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6344 no_cache=0
6345 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6346if test "${enable_togglebtn+set}" = set; then
6347 enableval="$enable_togglebtn"
698dcdb6 6348
1db8dc4a
VZ
6349 if test "$enableval" = yes; then
6350 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6351 else
6352 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6353 fi
698dcdb6 6354
1db8dc4a 6355else
698dcdb6 6356
1db8dc4a
VZ
6357 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6358 if test "x$LINE" != x ; then
6359 eval "DEFAULT_$LINE"
6360 else
6361 no_cache=1
6362 fi
6363
6364 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6365
6366fi
1db8dc4a
VZ
6367
6368
6369 eval "$ac_cv_use_togglebtn"
6370 if test "$no_cache" != 1; then
6371 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6372 fi
6373
6374 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6375 echo "$ac_t""yes" 1>&6
1db8dc4a 6376 else
698dcdb6 6377 echo "$ac_t""no" 1>&6
1db8dc4a 6378 fi
698dcdb6 6379
1db8dc4a 6380
698dcdb6 6381 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
c39c53e9 6382echo "configure:6383: checking for --enable-toolbar" >&5
10f2d63a
VZ
6383 no_cache=0
6384 # Check whether --enable-toolbar or --disable-toolbar was given.
6385if test "${enable_toolbar+set}" = set; then
6386 enableval="$enable_toolbar"
698dcdb6 6387
10f2d63a
VZ
6388 if test "$enableval" = yes; then
6389 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6390 else
6391 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6392 fi
698dcdb6 6393
10f2d63a 6394else
698dcdb6 6395
10f2d63a
VZ
6396 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6397 if test "x$LINE" != x ; then
6398 eval "DEFAULT_$LINE"
6399 else
6400 no_cache=1
6401 fi
6402
6403 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6404
6405fi
10f2d63a
VZ
6406
6407
6408 eval "$ac_cv_use_toolbar"
6409 if test "$no_cache" != 1; then
6410 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6411 fi
6412
6413 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6414 echo "$ac_t""yes" 1>&6
10f2d63a 6415 else
698dcdb6 6416 echo "$ac_t""no" 1>&6
10f2d63a 6417 fi
698dcdb6 6418
10f2d63a 6419
698dcdb6 6420 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
c39c53e9 6421echo "configure:6422: checking for --enable-tbarnative" >&5
360d6699
VZ
6422 no_cache=0
6423 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6424if test "${enable_tbarnative+set}" = set; then
6425 enableval="$enable_tbarnative"
698dcdb6 6426
360d6699
VZ
6427 if test "$enableval" = yes; then
6428 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6429 else
6430 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6431 fi
698dcdb6 6432
360d6699 6433else
698dcdb6 6434
360d6699
VZ
6435 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6436 if test "x$LINE" != x ; then
6437 eval "DEFAULT_$LINE"
6438 else
6439 no_cache=1
6440 fi
6441
6442 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6443
6444fi
360d6699
VZ
6445
6446
6447 eval "$ac_cv_use_tbarnative"
6448 if test "$no_cache" != 1; then
6449 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6450 fi
6451
6452 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6453 echo "$ac_t""yes" 1>&6
360d6699 6454 else
698dcdb6 6455 echo "$ac_t""no" 1>&6
360d6699 6456 fi
698dcdb6 6457
360d6699 6458
698dcdb6 6459 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
c39c53e9 6460echo "configure:6461: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6461 no_cache=0
6462 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6463if test "${enable_tbarsmpl+set}" = set; then
6464 enableval="$enable_tbarsmpl"
698dcdb6 6465
360d6699
VZ
6466 if test "$enableval" = yes; then
6467 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6468 else
6469 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6470 fi
698dcdb6 6471
360d6699 6472else
698dcdb6 6473
360d6699
VZ
6474 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6475 if test "x$LINE" != x ; then
6476 eval "DEFAULT_$LINE"
6477 else
6478 no_cache=1
6479 fi
6480
6481 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6482
6483fi
360d6699
VZ
6484
6485
6486 eval "$ac_cv_use_tbarsmpl"
6487 if test "$no_cache" != 1; then
6488 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6489 fi
6490
6491 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6492 echo "$ac_t""yes" 1>&6
360d6699 6493 else
698dcdb6 6494 echo "$ac_t""no" 1>&6
360d6699 6495 fi
698dcdb6 6496
360d6699 6497
698dcdb6 6498 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
c39c53e9 6499echo "configure:6500: checking for --enable-treectrl" >&5
10f2d63a
VZ
6500 no_cache=0
6501 # Check whether --enable-treectrl or --disable-treectrl was given.
6502if test "${enable_treectrl+set}" = set; then
6503 enableval="$enable_treectrl"
698dcdb6 6504
10f2d63a
VZ
6505 if test "$enableval" = yes; then
6506 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6507 else
6508 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6509 fi
698dcdb6 6510
10f2d63a 6511else
698dcdb6 6512
10f2d63a
VZ
6513 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6514 if test "x$LINE" != x ; then
6515 eval "DEFAULT_$LINE"
6516 else
6517 no_cache=1
6518 fi
6519
6520 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6521
6522fi
10f2d63a
VZ
6523
6524
1e6feb95
VZ
6525 eval "$ac_cv_use_treectrl"
6526 if test "$no_cache" != 1; then
6527 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6528 fi
6529
6530 if test "$wxUSE_TREECTRL" = yes; then
6531 echo "$ac_t""yes" 1>&6
6532 else
6533 echo "$ac_t""no" 1>&6
6534 fi
6535
6536
9f41d601 6537 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
c39c53e9 6538echo "configure:6539: checking for --enable-popupwin" >&5
9f41d601
RR
6539 no_cache=0
6540 # Check whether --enable-popupwin or --disable-popupwin was given.
6541if test "${enable_popupwin+set}" = set; then
6542 enableval="$enable_popupwin"
6543
6544 if test "$enableval" = yes; then
6545 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6546 else
6547 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6548 fi
6549
6550else
6551
6552 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6553 if test "x$LINE" != x ; then
6554 eval "DEFAULT_$LINE"
6555 else
6556 no_cache=1
6557 fi
6558
6559 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6560
6561fi
6562
6563
6564 eval "$ac_cv_use_popupwin"
6565 if test "$no_cache" != 1; then
6566 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6567 fi
6568
6569 if test "$wxUSE_POPUPWIN" = yes; then
6570 echo "$ac_t""yes" 1>&6
6571 else
6572 echo "$ac_t""no" 1>&6
6573 fi
6574
6575
1e6feb95
VZ
6576
6577
6578 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
c39c53e9 6579echo "configure:6580: checking for --enable-commondlg" >&5
1e6feb95
VZ
6580 no_cache=0
6581 # Check whether --enable-commondlg or --disable-commondlg was given.
6582if test "${enable_commondlg+set}" = set; then
6583 enableval="$enable_commondlg"
6584
6585 if test "$enableval" = yes; then
6586 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6587 else
6588 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6589 fi
6590
6591else
6592
6593 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6594 if test "x$LINE" != x ; then
6595 eval "DEFAULT_$LINE"
6596 else
6597 no_cache=1
6598 fi
6599
6600 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6601
6602fi
6603
6604
6605 eval "$ac_cv_use_commondlg"
6606 if test "$no_cache" != 1; then
6607 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6608 fi
6609
6610 if test "$wxUSE_COMMONDLGS" = yes; then
6611 echo "$ac_t""yes" 1>&6
6612 else
6613 echo "$ac_t""no" 1>&6
6614 fi
6615
6616
6617 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
c39c53e9 6618echo "configure:6619: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6619 no_cache=0
6620 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6621if test "${enable_choicedlg+set}" = set; then
6622 enableval="$enable_choicedlg"
6623
6624 if test "$enableval" = yes; then
6625 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6626 else
6627 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6628 fi
6629
6630else
6631
6632 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6633 if test "x$LINE" != x ; then
6634 eval "DEFAULT_$LINE"
6635 else
6636 no_cache=1
6637 fi
6638
6639 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6640
6641fi
6642
6643
6644 eval "$ac_cv_use_choicedlg"
6645 if test "$no_cache" != 1; then
6646 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6647 fi
6648
6649 if test "$wxUSE_CHOICEDLG" = yes; then
6650 echo "$ac_t""yes" 1>&6
6651 else
6652 echo "$ac_t""no" 1>&6
6653 fi
6654
6655
6656 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
c39c53e9 6657echo "configure:6658: checking for --enable-coldlg" >&5
1e6feb95
VZ
6658 no_cache=0
6659 # Check whether --enable-coldlg or --disable-coldlg was given.
6660if test "${enable_coldlg+set}" = set; then
6661 enableval="$enable_coldlg"
6662
6663 if test "$enableval" = yes; then
6664 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6665 else
6666 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6667 fi
6668
6669else
6670
6671 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6672 if test "x$LINE" != x ; then
6673 eval "DEFAULT_$LINE"
6674 else
6675 no_cache=1
6676 fi
6677
6678 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6679
6680fi
6681
6682
6683 eval "$ac_cv_use_coldlg"
6684 if test "$no_cache" != 1; then
6685 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6686 fi
6687
6688 if test "$wxUSE_COLOURDLG" = yes; then
6689 echo "$ac_t""yes" 1>&6
6690 else
6691 echo "$ac_t""no" 1>&6
6692 fi
6693
6694
6695 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
c39c53e9 6696echo "configure:6697: checking for --enable-filedlg" >&5
1e6feb95
VZ
6697 no_cache=0
6698 # Check whether --enable-filedlg or --disable-filedlg was given.
6699if test "${enable_filedlg+set}" = set; then
6700 enableval="$enable_filedlg"
6701
6702 if test "$enableval" = yes; then
6703 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6704 else
6705 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6706 fi
6707
6708else
6709
6710 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6711 if test "x$LINE" != x ; then
6712 eval "DEFAULT_$LINE"
6713 else
6714 no_cache=1
6715 fi
6716
6717 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6718
6719fi
6720
6721
6722 eval "$ac_cv_use_filedlg"
6723 if test "$no_cache" != 1; then
6724 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6725 fi
6726
6727 if test "$wxUSE_FILEDLG" = yes; then
6728 echo "$ac_t""yes" 1>&6
6729 else
6730 echo "$ac_t""no" 1>&6
6731 fi
6732
6733
8db37e06 6734 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
c39c53e9 6735echo "configure:6736: checking for --enable-filedlg" >&5
8db37e06
VZ
6736 no_cache=0
6737 # Check whether --enable-filedlg or --disable-filedlg was given.
6738if test "${enable_filedlg+set}" = set; then
6739 enableval="$enable_filedlg"
6740
6741 if test "$enableval" = yes; then
6742 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6743 else
6744 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6745 fi
6746
6747else
6748
6749 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6750 if test "x$LINE" != x ; then
6751 eval "DEFAULT_$LINE"
6752 else
6753 no_cache=1
6754 fi
6755
6756 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6757
6758fi
6759
6760
6761 eval "$ac_cv_use_filedlg"
6762 if test "$no_cache" != 1; then
6763 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6764 fi
6765
6766 if test "$wxUSE_FINDREPLDLG" = yes; then
6767 echo "$ac_t""yes" 1>&6
6768 else
6769 echo "$ac_t""no" 1>&6
6770 fi
6771
6772
1e6feb95 6773 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
c39c53e9 6774echo "configure:6775: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6775 no_cache=0
6776 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6777if test "${enable_fontdlg+set}" = set; then
6778 enableval="$enable_fontdlg"
6779
6780 if test "$enableval" = yes; then
6781 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6782 else
6783 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6784 fi
6785
6786else
6787
6788 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6789 if test "x$LINE" != x ; then
6790 eval "DEFAULT_$LINE"
6791 else
6792 no_cache=1
6793 fi
6794
6795 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6796
6797fi
6798
6799
6800 eval "$ac_cv_use_fontdlg"
6801 if test "$no_cache" != 1; then
6802 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6803 fi
6804
6805 if test "$wxUSE_FONTDLG" = yes; then
6806 echo "$ac_t""yes" 1>&6
6807 else
6808 echo "$ac_t""no" 1>&6
6809 fi
6810
6811
6812 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
c39c53e9 6813echo "configure:6814: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6814 no_cache=0
6815 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6816if test "${enable_dirdlg+set}" = set; then
6817 enableval="$enable_dirdlg"
6818
6819 if test "$enableval" = yes; then
6820 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6821 else
6822 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6823 fi
6824
6825else
6826
6827 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6828 if test "x$LINE" != x ; then
6829 eval "DEFAULT_$LINE"
6830 else
6831 no_cache=1
6832 fi
6833
6834 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6835
6836fi
6837
6838
6839 eval "$ac_cv_use_dirdlg"
10f2d63a 6840 if test "$no_cache" != 1; then
1e6feb95 6841 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6842 fi
6843
1e6feb95 6844 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6845 echo "$ac_t""yes" 1>&6
10f2d63a 6846 else
698dcdb6 6847 echo "$ac_t""no" 1>&6
10f2d63a 6848 fi
698dcdb6
VZ
6849
6850
1e6feb95 6851 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
c39c53e9 6852echo "configure:6853: checking for --enable-msgdlg" >&5
10f2d63a 6853 no_cache=0
1e6feb95
VZ
6854 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6855if test "${enable_msgdlg+set}" = set; then
6856 enableval="$enable_msgdlg"
698dcdb6 6857
10f2d63a 6858 if test "$enableval" = yes; then
1e6feb95 6859 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6860 else
1e6feb95 6861 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6862 fi
698dcdb6 6863
10f2d63a 6864else
698dcdb6 6865
1e6feb95 6866 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6867 if test "x$LINE" != x ; then
6868 eval "DEFAULT_$LINE"
6869 else
6870 no_cache=1
6871 fi
6872
1e6feb95 6873 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6874
6875fi
10f2d63a
VZ
6876
6877
1e6feb95 6878 eval "$ac_cv_use_msgdlg"
10f2d63a 6879 if test "$no_cache" != 1; then
1e6feb95 6880 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6881 fi
6882
1e6feb95 6883 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6884 echo "$ac_t""yes" 1>&6
10f2d63a 6885 else
698dcdb6 6886 echo "$ac_t""no" 1>&6
10f2d63a 6887 fi
698dcdb6 6888
10f2d63a 6889
1e6feb95 6890 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
c39c53e9 6891echo "configure:6892: checking for --enable-numberdlg" >&5
10f2d63a 6892 no_cache=0
1e6feb95
VZ
6893 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6894if test "${enable_numberdlg+set}" = set; then
6895 enableval="$enable_numberdlg"
698dcdb6 6896
10f2d63a 6897 if test "$enableval" = yes; then
1e6feb95 6898 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6899 else
1e6feb95 6900 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6901 fi
698dcdb6 6902
10f2d63a 6903else
698dcdb6 6904
1e6feb95 6905 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6906 if test "x$LINE" != x ; then
6907 eval "DEFAULT_$LINE"
6908 else
6909 no_cache=1
6910 fi
6911
1e6feb95 6912 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6913
6914fi
10f2d63a
VZ
6915
6916
1e6feb95 6917 eval "$ac_cv_use_numberdlg"
10f2d63a 6918 if test "$no_cache" != 1; then
1e6feb95 6919 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6920 fi
6921
1e6feb95 6922 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6923 echo "$ac_t""yes" 1>&6
10f2d63a 6924 else
698dcdb6 6925 echo "$ac_t""no" 1>&6
10f2d63a 6926 fi
698dcdb6 6927
10f2d63a 6928
cbca9943 6929 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
c39c53e9 6930echo "configure:6931: checking for --enable-splash" >&5
cbca9943
VZ
6931 no_cache=0
6932 # Check whether --enable-splash or --disable-splash was given.
6933if test "${enable_splash+set}" = set; then
6934 enableval="$enable_splash"
6935
6936 if test "$enableval" = yes; then
6937 ac_cv_use_splash='wxUSE_SPLASH=yes'
6938 else
6939 ac_cv_use_splash='wxUSE_SPLASH=no'
6940 fi
6941
6942else
6943
6944 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
6945 if test "x$LINE" != x ; then
6946 eval "DEFAULT_$LINE"
6947 else
6948 no_cache=1
6949 fi
6950
6951 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
6952
6953fi
6954
6955
6956 eval "$ac_cv_use_splash"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_SPLASH" = yes; then
6962 echo "$ac_t""yes" 1>&6
6963 else
6964 echo "$ac_t""no" 1>&6
6965 fi
6966
6967
698dcdb6 6968 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
c39c53e9 6969echo "configure:6970: checking for --enable-textdlg" >&5
10f2d63a
VZ
6970 no_cache=0
6971 # Check whether --enable-textdlg or --disable-textdlg was given.
6972if test "${enable_textdlg+set}" = set; then
6973 enableval="$enable_textdlg"
698dcdb6 6974
10f2d63a
VZ
6975 if test "$enableval" = yes; then
6976 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6977 else
6978 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6979 fi
698dcdb6 6980
10f2d63a 6981else
698dcdb6 6982
10f2d63a
VZ
6983 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6984 if test "x$LINE" != x ; then
6985 eval "DEFAULT_$LINE"
6986 else
6987 no_cache=1
6988 fi
6989
6990 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
6991
6992fi
10f2d63a
VZ
6993
6994
6995 eval "$ac_cv_use_textdlg"
6996 if test "$no_cache" != 1; then
6997 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6998 fi
6999
7000 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7001 echo "$ac_t""yes" 1>&6
10f2d63a 7002 else
698dcdb6 7003 echo "$ac_t""no" 1>&6
10f2d63a 7004 fi
698dcdb6 7005
10f2d63a 7006
698dcdb6 7007 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
c39c53e9 7008echo "configure:7009: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7009 no_cache=0
7010 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7011if test "${enable_tipdlg+set}" = set; then
7012 enableval="$enable_tipdlg"
698dcdb6 7013
10f2d63a
VZ
7014 if test "$enableval" = yes; then
7015 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7016 else
7017 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7018 fi
698dcdb6 7019
10f2d63a 7020else
698dcdb6 7021
10f2d63a
VZ
7022 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7023 if test "x$LINE" != x ; then
7024 eval "DEFAULT_$LINE"
7025 else
7026 no_cache=1
7027 fi
7028
7029 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7030
7031fi
10f2d63a
VZ
7032
7033
7034 eval "$ac_cv_use_tipdlg"
7035 if test "$no_cache" != 1; then
7036 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7037 fi
7038
7039 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7040 echo "$ac_t""yes" 1>&6
10f2d63a 7041 else
698dcdb6 7042 echo "$ac_t""no" 1>&6
10f2d63a 7043 fi
698dcdb6 7044
10f2d63a 7045
698dcdb6 7046 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
c39c53e9 7047echo "configure:7048: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7048 no_cache=0
7049 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7050if test "${enable_progressdlg+set}" = set; then
7051 enableval="$enable_progressdlg"
698dcdb6 7052
10f2d63a
VZ
7053 if test "$enableval" = yes; then
7054 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7055 else
7056 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7057 fi
698dcdb6 7058
10f2d63a 7059else
698dcdb6 7060
10f2d63a
VZ
7061 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7062 if test "x$LINE" != x ; then
7063 eval "DEFAULT_$LINE"
7064 else
7065 no_cache=1
7066 fi
7067
7068 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7069
7070fi
10f2d63a
VZ
7071
7072
7073 eval "$ac_cv_use_progressdlg"
7074 if test "$no_cache" != 1; then
7075 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7076 fi
7077
7078 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7079 echo "$ac_t""yes" 1>&6
10f2d63a 7080 else
698dcdb6 7081 echo "$ac_t""no" 1>&6
10f2d63a 7082 fi
698dcdb6 7083
10f2d63a 7084
b1f5d087 7085 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
c39c53e9 7086echo "configure:7087: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7087 no_cache=0
7088 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7089if test "${enable_wizarddlg+set}" = set; then
7090 enableval="$enable_wizarddlg"
7091
7092 if test "$enableval" = yes; then
7093 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7094 else
7095 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7096 fi
7097
7098else
7099
7100 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7101 if test "x$LINE" != x ; then
7102 eval "DEFAULT_$LINE"
7103 else
7104 no_cache=1
7105 fi
7106
7107 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7108
7109fi
7110
7111
7112 eval "$ac_cv_use_wizarddlg"
7113 if test "$no_cache" != 1; then
7114 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7115 fi
7116
7117 if test "$wxUSE_WIZARDDLG" = yes; then
7118 echo "$ac_t""yes" 1>&6
7119 else
7120 echo "$ac_t""no" 1>&6
7121 fi
7122
7123
7124
7125
1e6feb95 7126 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
c39c53e9 7127echo "configure:7128: checking for --enable-menus" >&5
1e6feb95
VZ
7128 no_cache=0
7129 # Check whether --enable-menus or --disable-menus was given.
7130if test "${enable_menus+set}" = set; then
7131 enableval="$enable_menus"
7132
7133 if test "$enableval" = yes; then
7134 ac_cv_use_menus='wxUSE_MENUS=yes'
7135 else
7136 ac_cv_use_menus='wxUSE_MENUS=no'
7137 fi
7138
7139else
7140
7141 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7142 if test "x$LINE" != x ; then
7143 eval "DEFAULT_$LINE"
7144 else
7145 no_cache=1
7146 fi
7147
7148 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7149
7150fi
7151
7152
7153 eval "$ac_cv_use_menus"
7154 if test "$no_cache" != 1; then
7155 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7156 fi
7157
7158 if test "$wxUSE_MENUS" = yes; then
7159 echo "$ac_t""yes" 1>&6
7160 else
7161 echo "$ac_t""no" 1>&6
7162 fi
7163
7164
698dcdb6 7165 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
c39c53e9 7166echo "configure:7167: checking for --enable-miniframe" >&5
10f2d63a
VZ
7167 no_cache=0
7168 # Check whether --enable-miniframe or --disable-miniframe was given.
7169if test "${enable_miniframe+set}" = set; then
7170 enableval="$enable_miniframe"
698dcdb6 7171
10f2d63a
VZ
7172 if test "$enableval" = yes; then
7173 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7174 else
7175 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7176 fi
698dcdb6 7177
10f2d63a 7178else
698dcdb6 7179
10f2d63a
VZ
7180 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7181 if test "x$LINE" != x ; then
7182 eval "DEFAULT_$LINE"
7183 else
7184 no_cache=1
7185 fi
7186
7187 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7188
7189fi
10f2d63a
VZ
7190
7191
7192 eval "$ac_cv_use_miniframe"
7193 if test "$no_cache" != 1; then
7194 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7195 fi
7196
7197 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7198 echo "$ac_t""yes" 1>&6
10f2d63a 7199 else
698dcdb6 7200 echo "$ac_t""no" 1>&6
10f2d63a 7201 fi
698dcdb6 7202
10f2d63a 7203
698dcdb6 7204 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
c39c53e9 7205echo "configure:7206: checking for --enable-tooltips" >&5
10f2d63a
VZ
7206 no_cache=0
7207 # Check whether --enable-tooltips or --disable-tooltips was given.
7208if test "${enable_tooltips+set}" = set; then
7209 enableval="$enable_tooltips"
698dcdb6 7210
10f2d63a
VZ
7211 if test "$enableval" = yes; then
7212 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7213 else
7214 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7215 fi
698dcdb6 7216
10f2d63a 7217else
698dcdb6 7218
10f2d63a
VZ
7219 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7220 if test "x$LINE" != x ; then
7221 eval "DEFAULT_$LINE"
7222 else
7223 no_cache=1
7224 fi
7225
7226 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7227
7228fi
10f2d63a
VZ
7229
7230
7231 eval "$ac_cv_use_tooltips"
7232 if test "$no_cache" != 1; then
7233 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7234 fi
7235
7236 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7237 echo "$ac_t""yes" 1>&6
10f2d63a 7238 else
698dcdb6 7239 echo "$ac_t""no" 1>&6
10f2d63a 7240 fi
698dcdb6 7241
10f2d63a 7242
698dcdb6 7243 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
c39c53e9 7244echo "configure:7245: checking for --enable-splines" >&5
10f2d63a
VZ
7245 no_cache=0
7246 # Check whether --enable-splines or --disable-splines was given.
7247if test "${enable_splines+set}" = set; then
7248 enableval="$enable_splines"
698dcdb6 7249
10f2d63a
VZ
7250 if test "$enableval" = yes; then
7251 ac_cv_use_splines='wxUSE_SPLINES=yes'
7252 else
7253 ac_cv_use_splines='wxUSE_SPLINES=no'
7254 fi
698dcdb6 7255
10f2d63a 7256else
698dcdb6 7257
10f2d63a
VZ
7258 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7259 if test "x$LINE" != x ; then
7260 eval "DEFAULT_$LINE"
7261 else
7262 no_cache=1
7263 fi
7264
7265 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7266
7267fi
10f2d63a
VZ
7268
7269
7270 eval "$ac_cv_use_splines"
7271 if test "$no_cache" != 1; then
7272 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7273 fi
7274
7275 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7276 echo "$ac_t""yes" 1>&6
10f2d63a 7277 else
698dcdb6 7278 echo "$ac_t""no" 1>&6
10f2d63a 7279 fi
698dcdb6 7280
10f2d63a 7281
698dcdb6 7282 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
c39c53e9 7283echo "configure:7284: checking for --enable-validators" >&5
10f2d63a
VZ
7284 no_cache=0
7285 # Check whether --enable-validators or --disable-validators was given.
7286if test "${enable_validators+set}" = set; then
7287 enableval="$enable_validators"
698dcdb6 7288
10f2d63a
VZ
7289 if test "$enableval" = yes; then
7290 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7291 else
7292 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7293 fi
698dcdb6 7294
10f2d63a 7295else
698dcdb6 7296
10f2d63a
VZ
7297 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7298 if test "x$LINE" != x ; then
7299 eval "DEFAULT_$LINE"
7300 else
7301 no_cache=1
7302 fi
7303
7304 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7305
7306fi
10f2d63a
VZ
7307
7308
7309 eval "$ac_cv_use_validators"
7310 if test "$no_cache" != 1; then
7311 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7312 fi
7313
7314 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7315 echo "$ac_t""yes" 1>&6
10f2d63a 7316 else
698dcdb6 7317 echo "$ac_t""no" 1>&6
10f2d63a 7318 fi
698dcdb6 7319
10f2d63a 7320
698dcdb6 7321 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
c39c53e9 7322echo "configure:7323: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7323 no_cache=0
7324 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7325if test "${enable_busyinfo+set}" = set; then
7326 enableval="$enable_busyinfo"
698dcdb6 7327
10f2d63a
VZ
7328 if test "$enableval" = yes; then
7329 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7330 else
7331 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7332 fi
698dcdb6 7333
10f2d63a 7334else
698dcdb6 7335
10f2d63a
VZ
7336 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7337 if test "x$LINE" != x ; then
7338 eval "DEFAULT_$LINE"
7339 else
7340 no_cache=1
7341 fi
7342
7343 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7344
7345fi
10f2d63a
VZ
7346
7347
7348 eval "$ac_cv_use_busyinfo"
7349 if test "$no_cache" != 1; then
7350 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7351 fi
7352
7353 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7354 echo "$ac_t""yes" 1>&6
10f2d63a 7355 else
698dcdb6 7356 echo "$ac_t""no" 1>&6
10f2d63a 7357 fi
698dcdb6 7358
10f2d63a 7359
698dcdb6 7360 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
c39c53e9 7361echo "configure:7362: checking for --enable-joystick" >&5
f6bcfd97
BP
7362 no_cache=0
7363 # Check whether --enable-joystick or --disable-joystick was given.
7364if test "${enable_joystick+set}" = set; then
7365 enableval="$enable_joystick"
698dcdb6 7366
f6bcfd97
BP
7367 if test "$enableval" = yes; then
7368 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7369 else
7370 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7371 fi
698dcdb6 7372
f6bcfd97 7373else
698dcdb6 7374
f6bcfd97
BP
7375 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7376 if test "x$LINE" != x ; then
7377 eval "DEFAULT_$LINE"
7378 else
7379 no_cache=1
7380 fi
7381
7382 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7383
7384fi
f6bcfd97
BP
7385
7386
7387 eval "$ac_cv_use_joystick"
7388 if test "$no_cache" != 1; then
7389 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7390 fi
7391
7392 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7393 echo "$ac_t""yes" 1>&6
f6bcfd97 7394 else
698dcdb6 7395 echo "$ac_t""no" 1>&6
f6bcfd97 7396 fi
698dcdb6
VZ
7397
7398
1e6feb95 7399 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
c39c53e9 7400echo "configure:7401: checking for --enable-metafile" >&5
1e6feb95
VZ
7401 no_cache=0
7402 # Check whether --enable-metafile or --disable-metafile was given.
7403if test "${enable_metafile+set}" = set; then
7404 enableval="$enable_metafile"
7405
7406 if test "$enableval" = yes; then
7407 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7408 else
7409 ac_cv_use_metafile='wxUSE_METAFILE=no'
7410 fi
7411
7412else
7413
7414 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7415 if test "x$LINE" != x ; then
7416 eval "DEFAULT_$LINE"
7417 else
7418 no_cache=1
7419 fi
7420
7421 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7422
7423fi
7424
7425
7426 eval "$ac_cv_use_metafile"
7427 if test "$no_cache" != 1; then
7428 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7429 fi
7430
7431 if test "$wxUSE_METAFILE" = yes; then
7432 echo "$ac_t""yes" 1>&6
7433 else
7434 echo "$ac_t""no" 1>&6
7435 fi
7436
7437
24fd6d87 7438 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
c39c53e9 7439echo "configure:7440: checking for --enable-dragimage" >&5
24fd6d87
VZ
7440 no_cache=0
7441 # Check whether --enable-dragimage or --disable-dragimage was given.
7442if test "${enable_dragimage+set}" = set; then
7443 enableval="$enable_dragimage"
7444
7445 if test "$enableval" = yes; then
7446 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7447 else
7448 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7449 fi
7450
7451else
7452
7453 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7454 if test "x$LINE" != x ; then
7455 eval "DEFAULT_$LINE"
7456 else
7457 no_cache=1
7458 fi
7459
7460 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7461
7462fi
7463
7464
7465 eval "$ac_cv_use_dragimage"
7466 if test "$no_cache" != 1; then
7467 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7468 fi
7469
7470 if test "$wxUSE_DRAGIMAGE" = yes; then
7471 echo "$ac_t""yes" 1>&6
7472 else
7473 echo "$ac_t""no" 1>&6
7474 fi
7475
7476
10f2d63a 7477
698dcdb6
VZ
7478
7479 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
c39c53e9 7480echo "configure:7481: checking for --enable-image" >&5
0046ff7c
VS
7481 no_cache=0
7482 # Check whether --enable-image or --disable-image was given.
7483if test "${enable_image+set}" = set; then
7484 enableval="$enable_image"
698dcdb6 7485
0046ff7c
VS
7486 if test "$enableval" = yes; then
7487 ac_cv_use_image='wxUSE_IMAGE=yes'
7488 else
7489 ac_cv_use_image='wxUSE_IMAGE=no'
7490 fi
698dcdb6 7491
0046ff7c 7492else
698dcdb6 7493
0046ff7c
VS
7494 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7495 if test "x$LINE" != x ; then
7496 eval "DEFAULT_$LINE"
7497 else
7498 no_cache=1
7499 fi
7500
7501 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7502
7503fi
0046ff7c
VS
7504
7505
7506 eval "$ac_cv_use_image"
7507 if test "$no_cache" != 1; then
7508 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7509 fi
7510
7511 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7512 echo "$ac_t""yes" 1>&6
0046ff7c 7513 else
698dcdb6 7514 echo "$ac_t""no" 1>&6
0046ff7c 7515 fi
698dcdb6 7516
0046ff7c 7517
698dcdb6 7518 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
c39c53e9 7519echo "configure:7520: checking for --enable-gif" >&5
10f2d63a
VZ
7520 no_cache=0
7521 # Check whether --enable-gif or --disable-gif was given.
7522if test "${enable_gif+set}" = set; then
7523 enableval="$enable_gif"
698dcdb6 7524
10f2d63a
VZ
7525 if test "$enableval" = yes; then
7526 ac_cv_use_gif='wxUSE_GIF=yes'
7527 else
7528 ac_cv_use_gif='wxUSE_GIF=no'
7529 fi
698dcdb6 7530
10f2d63a 7531else
698dcdb6 7532
10f2d63a
VZ
7533 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7534 if test "x$LINE" != x ; then
7535 eval "DEFAULT_$LINE"
7536 else
7537 no_cache=1
7538 fi
7539
7540 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7541
7542fi
10f2d63a
VZ
7543
7544
7545 eval "$ac_cv_use_gif"
7546 if test "$no_cache" != 1; then
7547 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7548 fi
7549
7550 if test "$wxUSE_GIF" = yes; then
698dcdb6 7551 echo "$ac_t""yes" 1>&6
10f2d63a 7552 else
698dcdb6 7553 echo "$ac_t""no" 1>&6
10f2d63a 7554 fi
698dcdb6 7555
10f2d63a 7556
698dcdb6 7557 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
c39c53e9 7558echo "configure:7559: checking for --enable-pcx" >&5
10f2d63a
VZ
7559 no_cache=0
7560 # Check whether --enable-pcx or --disable-pcx was given.
7561if test "${enable_pcx+set}" = set; then
7562 enableval="$enable_pcx"
698dcdb6 7563
10f2d63a
VZ
7564 if test "$enableval" = yes; then
7565 ac_cv_use_pcx='wxUSE_PCX=yes'
7566 else
7567 ac_cv_use_pcx='wxUSE_PCX=no'
7568 fi
698dcdb6 7569
10f2d63a 7570else
698dcdb6 7571
10f2d63a
VZ
7572 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7573 if test "x$LINE" != x ; then
7574 eval "DEFAULT_$LINE"
7575 else
7576 no_cache=1
7577 fi
7578
7579 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7580
7581fi
10f2d63a
VZ
7582
7583
7584 eval "$ac_cv_use_pcx"
7585 if test "$no_cache" != 1; then
7586 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7587 fi
7588
7589 if test "$wxUSE_PCX" = yes; then
698dcdb6 7590 echo "$ac_t""yes" 1>&6
10f2d63a 7591 else
698dcdb6 7592 echo "$ac_t""no" 1>&6
10f2d63a 7593 fi
698dcdb6 7594
10f2d63a 7595
698dcdb6 7596 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
c39c53e9 7597echo "configure:7598: checking for --enable-pnm" >&5
10f2d63a
VZ
7598 no_cache=0
7599 # Check whether --enable-pnm or --disable-pnm was given.
7600if test "${enable_pnm+set}" = set; then
7601 enableval="$enable_pnm"
698dcdb6 7602
10f2d63a
VZ
7603 if test "$enableval" = yes; then
7604 ac_cv_use_pnm='wxUSE_PNM=yes'
7605 else
7606 ac_cv_use_pnm='wxUSE_PNM=no'
7607 fi
698dcdb6 7608
10f2d63a 7609else
698dcdb6 7610
10f2d63a
VZ
7611 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7612 if test "x$LINE" != x ; then
7613 eval "DEFAULT_$LINE"
7614 else
7615 no_cache=1
7616 fi
7617
7618 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7619
7620fi
10f2d63a
VZ
7621
7622
7623 eval "$ac_cv_use_pnm"
7624 if test "$no_cache" != 1; then
7625 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7626 fi
7627
7628 if test "$wxUSE_PNM" = yes; then
698dcdb6 7629 echo "$ac_t""yes" 1>&6
10f2d63a 7630 else
698dcdb6 7631 echo "$ac_t""no" 1>&6
10f2d63a 7632 fi
698dcdb6 7633
10f2d63a 7634
698dcdb6 7635 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
c39c53e9 7636echo "configure:7637: checking for --enable-pnm" >&5
0046ff7c
VS
7637 no_cache=0
7638 # Check whether --enable-pnm or --disable-pnm was given.
7639if test "${enable_pnm+set}" = set; then
7640 enableval="$enable_pnm"
698dcdb6 7641
0046ff7c
VS
7642 if test "$enableval" = yes; then
7643 ac_cv_use_pnm='wxUSE_XPM=yes'
7644 else
7645 ac_cv_use_pnm='wxUSE_XPM=no'
7646 fi
698dcdb6 7647
0046ff7c 7648else
698dcdb6 7649
0046ff7c
VS
7650 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7651 if test "x$LINE" != x ; then
7652 eval "DEFAULT_$LINE"
7653 else
7654 no_cache=1
7655 fi
7656
7657 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7658
7659fi
0046ff7c
VS
7660
7661
7662 eval "$ac_cv_use_pnm"
7663 if test "$no_cache" != 1; then
7664 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7665 fi
7666
7667 if test "$wxUSE_XPM" = yes; then
698dcdb6 7668 echo "$ac_t""yes" 1>&6
0046ff7c 7669 else
698dcdb6 7670 echo "$ac_t""no" 1>&6
0046ff7c 7671 fi
698dcdb6 7672
0046ff7c 7673
b12915c1
VZ
7674fi
7675
698dcdb6 7676
10f2d63a
VZ
7677 echo "saving argument cache $wx_arg_cache_file"
7678 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7679
10f2d63a 7680
698dcdb6
VZ
7681
7682echo $ac_n "checking for toolkit""... $ac_c" 1>&6
c39c53e9 7683echo "configure:7684: checking for toolkit" >&5
10f2d63a
VZ
7684
7685if test "$wxUSE_GUI" = "yes"; then
7686
b12915c1 7687if test "$USE_BEOS" = 1; then
698dcdb6 7688 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
b12915c1
VZ
7689fi
7690
10f2d63a
VZ
7691if test "$TOOLKIT_GIVEN" = 1; then
7692 for toolkit in `echo $ALL_TOOLKITS`; do
7693 var=wxUSE_$toolkit
7694 eval "value=\$${var}"
7695 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7696 done
7697else
7698 for toolkit in `echo $ALL_TOOLKITS`; do
7699 if test "$has_toolkit_in_cache" != 1; then
7700 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7701 else
7702 var=DEFAULT_wxUSE_$toolkit
7703 fi
7704 eval "wxUSE_$toolkit=\$${var}"
7705 done
7706fi
7707
1e6feb95 7708NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
cf27ef00 7709
ec14dd32
VZ
7710case "${host}" in
7711 *-pc-os2_emx )
7712 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7713 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7714 LEX_STEM="lexyy"
7715 ;;
7716 *)
7717 PATH_IFS=':'
7718 LEX_STEM="lex.yy"
7719 ;;
7720esac
10f2d63a
VZ
7721
7722case "$NUM_TOOLKITS" in
7723 1)
7724 ;;
7725 0)
698dcdb6 7726 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
10f2d63a
VZ
7727 ;;
7728 *)
698dcdb6 7729 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
10f2d63a
VZ
7730esac
7731
7732for toolkit in `echo $ALL_TOOLKITS`; do
7733 var=wxUSE_$toolkit
7734 eval "value=\$${var}"
7735 if test "x$value" != x; then
7736 cache_var=CACHE_$toolkit
7737 eval "cache=\$${cache_var}"
7738 if test "$cache" = 1; then
7739 echo "$var=$value" >> ${wx_arg_cache_file}
7740 fi
7741 if test "$value" = 1; then
8168de4c
VZ
7742 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7743 echo "$ac_t""$toolkit_echo" 1>&6
10f2d63a
VZ
7744 fi
7745 fi
7746done
7747
7748else
cf27ef00 7749 PATH_IFS=':'
698dcdb6 7750 echo "$ac_t""base only" 1>&6
10f2d63a
VZ
7751fi
7752
698dcdb6
VZ
7753
7754cat > confcache <<\EOF
10f2d63a
VZ
7755# This file is a shell script that caches the results of configure
7756# tests run on this system so they can be shared between configure
698dcdb6
VZ
7757# scripts and configure runs. It is not useful on other systems.
7758# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7759#
698dcdb6
VZ
7760# By default, configure uses ./config.cache as the cache file,
7761# creating it if it does not exist already. You can give configure
7762# the --cache-file=FILE option to use a different cache file; that is
7763# what configure does when it calls configure scripts in
7764# subdirectories, so they share the cache.
7765# Giving --cache-file=/dev/null disables caching, for debugging configure.
7766# config.status only pays attention to the cache file if you give it the
7767# --recheck option to rerun configure.
10f2d63a 7768#
698dcdb6 7769EOF
10f2d63a
VZ
7770# The following way of writing the cache mishandles newlines in values,
7771# but we know of no workaround that is simple, portable, and efficient.
7772# So, don't put newlines in cache variables' values.
7773# Ultrix sh set writes to stderr and can't be redirected directly,
7774# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7775(set) 2>&1 |
7776 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7777 *ac_space=\ *)
7778 # `set' does not quote correctly, so add quotes (double-quote substitution
7779 # turns \\\\ into \\, and sed turns \\ into \).
7780 sed -n \
7781 -e "s/'/'\\\\''/g" \
7782 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7783 ;;
7784 *)
7785 # `set' quotes correctly as required by POSIX, so do not add quotes.
7786 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7787 ;;
7788 esac >> confcache
7789if cmp -s $cache_file confcache; then
7790 :
7791else
10f2d63a 7792 if test -w $cache_file; then
698dcdb6
VZ
7793 echo "updating cache $cache_file"
7794 cat confcache > $cache_file
10f2d63a
VZ
7795 else
7796 echo "not updating unwritable cache $cache_file"
7797 fi
7798fi
7799rm -f confcache
7800
698dcdb6 7801
e59890c3 7802if test "$build" != "$host" ; then
10f2d63a
VZ
7803 CC=$host_alias-gcc
7804 CXX=$host_alias-c++
7805 AR=$host_alias-ar
7806 RANLIB=$host_alias-ranlib
7807 DLLTOOL=$host_alias-dlltool
32832908 7808 RESCOMP=$host_alias-windres
10f2d63a
VZ
7809 LD=$host_alias-ld
7810 NM=$host_alias-nm
7811 STRIP=$host_alias-strip
10f2d63a
VZ
7812fi
7813
698dcdb6 7814# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7815set dummy gcc; ac_word=$2
698dcdb6 7816echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c39c53e9 7817echo "configure:7818: checking for $ac_word" >&5
698dcdb6
VZ
7818if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7820else
7821 if test -n "$CC"; then
7822 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7823else
698dcdb6
VZ
7824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7825 ac_dummy="$PATH"
7826 for ac_dir in $ac_dummy; do
7827 test -z "$ac_dir" && ac_dir=.
7828 if test -f $ac_dir/$ac_word; then
7829 ac_cv_prog_CC="gcc"
7830 break
7831 fi
7832 done
7833 IFS="$ac_save_ifs"
10f2d63a 7834fi
6232543b 7835fi
698dcdb6 7836CC="$ac_cv_prog_CC"
6232543b 7837if test -n "$CC"; then
698dcdb6 7838 echo "$ac_t""$CC" 1>&6
1e487827 7839else
698dcdb6 7840 echo "$ac_t""no" 1>&6
1e487827 7841fi
6232543b 7842
1e487827
VS
7843if test -z "$CC"; then
7844 # Extract the first word of "cc", so it can be a program name with args.
7845set dummy cc; ac_word=$2
698dcdb6 7846echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c39c53e9 7847echo "configure:7848: checking for $ac_word" >&5
698dcdb6
VZ
7848if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7849 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7850else
7851 if test -n "$CC"; then
7852 ac_cv_prog_CC="$CC" # Let the user override the test.
7853else
698dcdb6 7854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7855 ac_prog_rejected=no
698dcdb6
VZ
7856 ac_dummy="$PATH"
7857 for ac_dir in $ac_dummy; do
7858 test -z "$ac_dir" && ac_dir=.
7859 if test -f $ac_dir/$ac_word; then
7860 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7861 ac_prog_rejected=yes
7862 continue
7863 fi
7864 ac_cv_prog_CC="cc"
7865 break
7866 fi
7867 done
7868 IFS="$ac_save_ifs"
1e487827
VS
7869if test $ac_prog_rejected = yes; then
7870 # We found a bogon in the path, so make sure we never use it.
7871 set dummy $ac_cv_prog_CC
7872 shift
698dcdb6 7873 if test $# -gt 0; then
1e487827
VS
7874 # We chose a different compiler from the bogus one.
7875 # However, it has the same basename, so the bogon will be chosen
7876 # first if we set CC to just the basename; use the full file name.
7877 shift
698dcdb6 7878 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7879 shift
7880 ac_cv_prog_CC="$@"
703e0a69 7881 fi
1e487827
VS
7882fi
7883fi
7884fi
698dcdb6 7885CC="$ac_cv_prog_CC"
1e487827 7886if test -n "$CC"; then
698dcdb6 7887 echo "$ac_t""$CC" 1>&6
703e0a69 7888else
698dcdb6 7889 echo "$ac_t""no" 1>&6
703e0a69 7890fi
1e487827 7891
698dcdb6
VZ
7892 if test -z "$CC"; then
7893 case "`uname -s`" in
7894 *win32* | *WIN32*)
7895 # Extract the first word of "cl", so it can be a program name with args.
7896set dummy cl; ac_word=$2
7897echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c39c53e9 7898echo "configure:7899: checking for $ac_word" >&5
698dcdb6
VZ
7899if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7900 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7901else
7902 if test -n "$CC"; then
7903 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 7904else
698dcdb6
VZ
7905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7906 ac_dummy="$PATH"
7907 for ac_dir in $ac_dummy; do
7908 test -z "$ac_dir" && ac_dir=.
7909 if test -f $ac_dir/$ac_word; then
7910 ac_cv_prog_CC="cl"
7911 break
7912 fi
7913 done
7914 IFS="$ac_save_ifs"
703e0a69 7915fi
1e487827 7916fi
698dcdb6 7917CC="$ac_cv_prog_CC"
1e487827 7918if test -n "$CC"; then
698dcdb6 7919 echo "$ac_t""$CC" 1>&6
1e487827 7920else
698dcdb6 7921 echo "$ac_t""no" 1>&6
1e487827 7922fi
698dcdb6
VZ
7923 ;;
7924 esac
7925 fi
7926 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
7927fi
7928
698dcdb6 7929echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
c39c53e9 7930echo "configure:7931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 7931
698dcdb6
VZ
7932ac_ext=c
7933# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7934ac_cpp='$CPP $CPPFLAGS'
7935ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7936ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7937cross_compiling=$ac_cv_prog_cc_cross
6232543b 7938
698dcdb6 7939cat > conftest.$ac_ext << EOF
1e487827 7940
c39c53e9 7941#line 7942 "configure"
1e487827
VS
7942#include "confdefs.h"
7943
698dcdb6
VZ
7944main(){return(0);}
7945EOF
c39c53e9 7946if { (eval echo configure:7947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7947 ac_cv_prog_cc_works=yes
7948 # If we can't run a trivial program, we are probably using a cross compiler.
7949 if (./conftest; exit) 2>/dev/null; then
7950 ac_cv_prog_cc_cross=no
7951 else
7952 ac_cv_prog_cc_cross=yes
7953 fi
7954else
7955 echo "configure: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7957 ac_cv_prog_cc_works=no
7958fi
7959rm -fr conftest*
7960ac_ext=c
7961# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7962ac_cpp='$CPP $CPPFLAGS'
7963ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7964ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7965cross_compiling=$ac_cv_prog_cc_cross
7966
7967echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7968if test $ac_cv_prog_cc_works = no; then
7969 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7970fi
7971echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
c39c53e9 7972echo "configure:7973: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
7973echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7974cross_compiling=$ac_cv_prog_cc_cross
7975
7976echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
c39c53e9 7977echo "configure:7978: checking whether we are using GNU C" >&5
698dcdb6
VZ
7978if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7979 echo $ac_n "(cached) $ac_c" 1>&6
7980else
7981 cat > conftest.c <<EOF
7982#ifdef __GNUC__
7983 yes;
1e487827 7984#endif
698dcdb6 7985EOF
c39c53e9 7986if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
7987 ac_cv_prog_gcc=yes
7988else
7989 ac_cv_prog_gcc=no
7990fi
7991fi
1e487827 7992
698dcdb6 7993echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 7994
698dcdb6
VZ
7995if test $ac_cv_prog_gcc = yes; then
7996 GCC=yes
7997else
7998 GCC=
7999fi
1e487827 8000
698dcdb6
VZ
8001ac_test_CFLAGS="${CFLAGS+set}"
8002ac_save_CFLAGS="$CFLAGS"
8003CFLAGS=
8004echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
c39c53e9 8005echo "configure:8006: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8006if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8007 echo $ac_n "(cached) $ac_c" 1>&6
8008else
8009 echo 'void f(){}' > conftest.c
8010if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8011 ac_cv_prog_cc_g=yes
8012else
698dcdb6 8013 ac_cv_prog_cc_g=no
10f2d63a 8014fi
698dcdb6
VZ
8015rm -f conftest*
8016
10f2d63a 8017fi
698dcdb6
VZ
8018
8019echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8020if test "$ac_test_CFLAGS" = set; then
698dcdb6 8021 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8022elif test $ac_cv_prog_cc_g = yes; then
8023 if test "$GCC" = yes; then
8024 CFLAGS="-g -O2"
8025 else
8026 CFLAGS="-g"
8027 fi
8028else
8029 if test "$GCC" = yes; then
8030 CFLAGS="-O2"
8031 else
8032 CFLAGS=
8033 fi
8034fi
8035
8036
8037CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8038
698dcdb6 8039echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
c39c53e9 8040echo "configure:8041: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8041# On Suns, sometimes $CPP names a directory.
8042if test -n "$CPP" && test -d "$CPP"; then
8043 CPP=
8044fi
8045if test -z "$CPP"; then
698dcdb6
VZ
8046if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8047 echo $ac_n "(cached) $ac_c" 1>&6
8048else
8049 # This must be in double quotes, not single quotes, because CPP may get
8050 # substituted into the Makefile and "${CC-cc}" will confuse make.
8051 CPP="${CC-cc} -E"
10f2d63a 8052 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8053 # not just through cpp.
8054 cat > conftest.$ac_ext <<EOF
c39c53e9 8055#line 8056 "configure"
10f2d63a
VZ
8056#include "confdefs.h"
8057#include <assert.h>
698dcdb6
VZ
8058Syntax Error
8059EOF
8060ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 8061{ (eval echo configure:8062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8062ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8063if test -z "$ac_err"; then
10f2d63a
VZ
8064 :
8065else
698dcdb6
VZ
8066 echo "$ac_err" >&5
8067 echo "configure: failed program was:" >&5
10f2d63a 8068 cat conftest.$ac_ext >&5
698dcdb6
VZ
8069 rm -rf conftest*
8070 CPP="${CC-cc} -E -traditional-cpp"
8071 cat > conftest.$ac_ext <<EOF
c39c53e9 8072#line 8073 "configure"
10f2d63a 8073#include "confdefs.h"
698dcdb6
VZ
8074#include <assert.h>
8075Syntax Error
8076EOF
8077ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 8078{ (eval echo configure:8079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8079ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8080if test -z "$ac_err"; then
8081 :
10f2d63a 8082else
698dcdb6
VZ
8083 echo "$ac_err" >&5
8084 echo "configure: failed program was:" >&5
10f2d63a 8085 cat conftest.$ac_ext >&5
698dcdb6
VZ
8086 rm -rf conftest*
8087 CPP="${CC-cc} -nologo -E"
8088 cat > conftest.$ac_ext <<EOF
c39c53e9 8089#line 8090 "configure"
10f2d63a
VZ
8090#include "confdefs.h"
8091#include <assert.h>
698dcdb6
VZ
8092Syntax Error
8093EOF
8094ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 8095{ (eval echo configure:8096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8096ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8097if test -z "$ac_err"; then
10f2d63a
VZ
8098 :
8099else
698dcdb6
VZ
8100 echo "$ac_err" >&5
8101 echo "configure: failed program was:" >&5
10f2d63a 8102 cat conftest.$ac_ext >&5
698dcdb6
VZ
8103 rm -rf conftest*
8104 CPP=/lib/cpp
10f2d63a 8105fi
698dcdb6 8106rm -f conftest*
10f2d63a 8107fi
698dcdb6 8108rm -f conftest*
703e0a69 8109fi
698dcdb6
VZ
8110rm -f conftest*
8111 ac_cv_prog_CPP="$CPP"
8112fi
8113 CPP="$ac_cv_prog_CPP"
10f2d63a 8114else
698dcdb6 8115 ac_cv_prog_CPP="$CPP"
10f2d63a 8116fi
698dcdb6 8117echo "$ac_t""$CPP" 1>&6
10f2d63a
VZ
8118
8119
698dcdb6
VZ
8120if test $ac_cv_prog_gcc = yes; then
8121 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
c39c53e9 8122echo "configure:8123: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8123if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8124 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8125else
8126 ac_pattern="Autoconf.*'x'"
698dcdb6 8127 cat > conftest.$ac_ext <<EOF
c39c53e9 8128#line 8129 "configure"
10f2d63a
VZ
8129#include "confdefs.h"
8130#include <sgtty.h>
8131Autoconf TIOCGETP
698dcdb6 8132EOF
10f2d63a
VZ
8133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8134 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8135 rm -rf conftest*
10f2d63a
VZ
8136 ac_cv_prog_gcc_traditional=yes
8137else
698dcdb6 8138 rm -rf conftest*
10f2d63a
VZ
8139 ac_cv_prog_gcc_traditional=no
8140fi
8141rm -f conftest*
8142
698dcdb6 8143
10f2d63a 8144 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8145 cat > conftest.$ac_ext <<EOF
c39c53e9 8146#line 8147 "configure"
10f2d63a
VZ
8147#include "confdefs.h"
8148#include <termio.h>
8149Autoconf TCGETA
698dcdb6 8150EOF
10f2d63a
VZ
8151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8152 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8153 rm -rf conftest*
10f2d63a
VZ
8154 ac_cv_prog_gcc_traditional=yes
8155fi
8156rm -f conftest*
8157
8158 fi
8159fi
698dcdb6
VZ
8160
8161echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8162 if test $ac_cv_prog_gcc_traditional = yes; then
8163 CC="$CC -traditional"
8164 fi
8165fi
8166
703e0a69 8167
698dcdb6
VZ
8168
8169ac_ext=C
8170# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8171ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8172ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8173ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8174cross_compiling=$ac_cv_prog_cxx_cross
8175
8176
8177for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8178do
8179# Extract the first word of "$ac_prog", so it can be a program name with args.
8180set dummy $ac_prog; ac_word=$2
8181echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c39c53e9 8182echo "configure:8183: checking for $ac_word" >&5
698dcdb6
VZ
8183if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8184 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8185else
8186 if test -n "$CXX"; then
8187 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8188else
698dcdb6
VZ
8189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8190 ac_dummy="$PATH"
8191 for ac_dir in $ac_dummy; do
8192 test -z "$ac_dir" && ac_dir=.
8193 if test -f $ac_dir/$ac_word; then
8194 ac_cv_prog_CXX="$ac_prog"
8195 break
8196 fi
8197 done
8198 IFS="$ac_save_ifs"
10f2d63a
VZ
8199fi
8200fi
698dcdb6 8201CXX="$ac_cv_prog_CXX"
10f2d63a 8202if test -n "$CXX"; then
698dcdb6 8203 echo "$ac_t""$CXX" 1>&6
10f2d63a 8204else
698dcdb6 8205 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8206fi
8207
698dcdb6 8208test -n "$CXX" && break
10f2d63a 8209done
698dcdb6 8210test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8211
8212
698dcdb6 8213echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
c39c53e9 8214echo "configure:8215: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8215
698dcdb6
VZ
8216ac_ext=C
8217# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8218ac_cpp='$CXXCPP $CPPFLAGS'
8219ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8220ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8221cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8222
698dcdb6
VZ
8223cat > conftest.$ac_ext << EOF
8224
c39c53e9 8225#line 8226 "configure"
10f2d63a
VZ
8226#include "confdefs.h"
8227
698dcdb6
VZ
8228int main(){return(0);}
8229EOF
c39c53e9 8230if { (eval echo configure:8231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8231 ac_cv_prog_cxx_works=yes
8232 # If we can't run a trivial program, we are probably using a cross compiler.
8233 if (./conftest; exit) 2>/dev/null; then
8234 ac_cv_prog_cxx_cross=no
8235 else
8236 ac_cv_prog_cxx_cross=yes
8237 fi
8238else
8239 echo "configure: failed program was:" >&5
8240 cat conftest.$ac_ext >&5
8241 ac_cv_prog_cxx_works=no
8242fi
8243rm -fr conftest*
8244ac_ext=C
8245# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8246ac_cpp='$CXXCPP $CPPFLAGS'
8247ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8248ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8249cross_compiling=$ac_cv_prog_cxx_cross
8250
8251echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8252if test $ac_cv_prog_cxx_works = no; then
8253 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8254fi
8255echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
c39c53e9 8256echo "configure:8257: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8257echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8258cross_compiling=$ac_cv_prog_cxx_cross
8259
8260echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
c39c53e9 8261echo "configure:8262: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8262if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8263 echo $ac_n "(cached) $ac_c" 1>&6
8264else
8265 cat > conftest.C <<EOF
8266#ifdef __GNUC__
8267 yes;
10f2d63a 8268#endif
698dcdb6 8269EOF
c39c53e9 8270if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8271 ac_cv_prog_gxx=yes
8272else
8273 ac_cv_prog_gxx=no
8274fi
8275fi
10f2d63a 8276
698dcdb6 8277echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8278
698dcdb6
VZ
8279if test $ac_cv_prog_gxx = yes; then
8280 GXX=yes
8281else
8282 GXX=
8283fi
10f2d63a 8284
698dcdb6
VZ
8285ac_test_CXXFLAGS="${CXXFLAGS+set}"
8286ac_save_CXXFLAGS="$CXXFLAGS"
8287CXXFLAGS=
8288echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
c39c53e9 8289echo "configure:8290: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8290if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8291 echo $ac_n "(cached) $ac_c" 1>&6
8292else
8293 echo 'void f(){}' > conftest.cc
8294if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8295 ac_cv_prog_cxx_g=yes
8296else
698dcdb6 8297 ac_cv_prog_cxx_g=no
10f2d63a 8298fi
698dcdb6
VZ
8299rm -f conftest*
8300
10f2d63a 8301fi
698dcdb6
VZ
8302
8303echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8304if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8305 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8306elif test $ac_cv_prog_cxx_g = yes; then
8307 if test "$GXX" = yes; then
8308 CXXFLAGS="-g -O2"
8309 else
8310 CXXFLAGS="-g"
8311 fi
8312else
8313 if test "$GXX" = yes; then
8314 CXXFLAGS="-O2"
8315 else
8316 CXXFLAGS=
8317 fi
8318fi
8319
8320
698dcdb6 8321echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
c39c53e9 8322echo "configure:8323: checking how to run the C++ preprocessor" >&5
1e487827 8323if test -z "$CXXCPP"; then
698dcdb6
VZ
8324if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8325 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 8326else
698dcdb6
VZ
8327 ac_ext=C
8328# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8329ac_cpp='$CXXCPP $CPPFLAGS'
8330ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8331ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8332cross_compiling=$ac_cv_prog_cxx_cross
8333 CXXCPP="${CXX-g++} -E"
8334 cat > conftest.$ac_ext <<EOF
c39c53e9 8335#line 8336 "configure"
1e487827 8336#include "confdefs.h"
698dcdb6
VZ
8337#include <stdlib.h>
8338EOF
8339ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 8340{ (eval echo configure:8341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8341ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8342if test -z "$ac_err"; then
1e487827
VS
8343 :
8344else
698dcdb6
VZ
8345 echo "$ac_err" >&5
8346 echo "configure: failed program was:" >&5
1e487827 8347 cat conftest.$ac_ext >&5
698dcdb6
VZ
8348 rm -rf conftest*
8349 CXXCPP=/lib/cpp
1e487827 8350fi
698dcdb6
VZ
8351rm -f conftest*
8352 ac_cv_prog_CXXCPP="$CXXCPP"
8353ac_ext=C
8354# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8355ac_cpp='$CXXCPP $CPPFLAGS'
8356ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8357ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8358cross_compiling=$ac_cv_prog_cxx_cross
1e487827 8359fi
1e487827 8360fi
698dcdb6
VZ
8361CXXCPP="$ac_cv_prog_CXXCPP"
8362echo "$ac_t""$CXXCPP" 1>&6
1e487827 8363
10f2d63a
VZ
8364
8365CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8366
8367ac_ext=c
698dcdb6 8368# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8369ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8370ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8371ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8372cross_compiling=$ac_cv_prog_cc_cross
8373
8374
8375# Extract the first word of "ranlib", so it can be a program name with args.
8376set dummy ranlib; ac_word=$2
8377echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c39c53e9 8378echo "configure:8379: checking for $ac_word" >&5
698dcdb6
VZ
8379if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8380 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8381else
8382 if test -n "$RANLIB"; then
8383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8384else
698dcdb6
VZ
8385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8386 ac_dummy="$PATH"
8387 for ac_dir in $ac_dummy; do
8388 test -z "$ac_dir" && ac_dir=.
8389 if test -f $ac_dir/$ac_word; then
8390 ac_cv_prog_RANLIB="ranlib"
8391 break
8392 fi
8393 done
8394 IFS="$ac_save_ifs"
8395 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8396fi
8397fi
698dcdb6 8398RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8399if test -n "$RANLIB"; then
698dcdb6 8400 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8401else
698dcdb6 8402 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8403fi
8404
8405
8406# Extract the first word of "ar", so it can be a program name with args.
8407set dummy ar; ac_word=$2
698dcdb6 8408echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c39c53e9 8409echo "configure:8410: checking for $ac_word" >&5
698dcdb6
VZ
8410if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8411 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8412else
8413 if test -n "$AR"; then
8414 ac_cv_prog_AR="$AR" # Let the user override the test.
8415else
698dcdb6
VZ
8416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8417 ac_dummy="$PATH"
8418 for ac_dir in $ac_dummy; do
8419 test -z "$ac_dir" && ac_dir=.
8420 if test -f $ac_dir/$ac_word; then
8421 ac_cv_prog_AR="ar"
8422 break
8423 fi
8424 done
8425 IFS="$ac_save_ifs"
10f2d63a
VZ
8426 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8427fi
8428fi
698dcdb6 8429AR="$ac_cv_prog_AR"
10f2d63a 8430if test -n "$AR"; then
698dcdb6 8431 echo "$ac_t""$AR" 1>&6
10f2d63a 8432else
698dcdb6 8433 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8434fi
8435
698dcdb6 8436
10f2d63a
VZ
8437# Find a good install program. We prefer a C program (faster),
8438# so one script is as good as another. But avoid the broken or
8439# incompatible versions:
8440# SysV /etc/install, /usr/sbin/install
8441# SunOS /usr/etc/install
8442# IRIX /sbin/install
8443# AIX /bin/install
8444# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8445# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8446# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8447# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8448echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
c39c53e9 8449echo "configure:8450: checking for a BSD compatible install" >&5
10f2d63a 8450if test -z "$INSTALL"; then
698dcdb6
VZ
8451if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8452 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8453else
698dcdb6 8454 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8455 for ac_dir in $PATH; do
8456 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8457 case "$ac_dir/" in
8458 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8459 *)
8460 # OSF1 and SCO ODT 3.0 have their own names for install.
8461 # Don't use installbsd from OSF since it installs stuff as root
8462 # by default.
8463 for ac_prog in ginstall scoinst install; do
698dcdb6 8464 if test -f $ac_dir/$ac_prog; then
10f2d63a 8465 if test $ac_prog = install &&
698dcdb6 8466 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8467 # AIX install. It has an incompatible calling convention.
8468 :
8469 else
8470 ac_cv_path_install="$ac_dir/$ac_prog -c"
8471 break 2
8472 fi
8473 fi
8474 done
8475 ;;
8476 esac
8477 done
698dcdb6 8478 IFS="$ac_save_IFS"
10f2d63a
VZ
8479
8480fi
8481 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8482 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8483 else
8484 # As a last resort, use the slow shell script. We don't cache a
8485 # path for INSTALL within a source directory, because that will
8486 # break other packages using the cache if that directory is
8487 # removed, or if the path is relative.
698dcdb6 8488 INSTALL="$ac_install_sh"
10f2d63a
VZ
8489 fi
8490fi
698dcdb6 8491echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8492
8493# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8494# It thinks the first close brace ends the variable substitution.
8495test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8496
698dcdb6 8497test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8498
8499test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8500
698dcdb6 8501
10f2d63a
VZ
8502# Extract the first word of "strip", so it can be a program name with args.
8503set dummy strip; ac_word=$2
698dcdb6 8504echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c39c53e9 8505echo "configure:8506: checking for $ac_word" >&5
698dcdb6
VZ
8506if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8507 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8508else
8509 if test -n "$STRIP"; then
8510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8511else
698dcdb6
VZ
8512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8513 ac_dummy="$PATH"
8514 for ac_dir in $ac_dummy; do
8515 test -z "$ac_dir" && ac_dir=.
8516 if test -f $ac_dir/$ac_word; then
8517 ac_cv_prog_STRIP="strip"
8518 break
8519 fi
8520 done
8521 IFS="$ac_save_ifs"
10f2d63a
VZ
8522 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8523fi
8524fi
698dcdb6 8525STRIP="$ac_cv_prog_STRIP"
10f2d63a 8526if test -n "$STRIP"; then
698dcdb6 8527 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8528else
698dcdb6 8529 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8530fi
8531
698dcdb6
VZ
8532
8533echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
c39c53e9 8534echo "configure:8535: checking make for VPATH support" >&5
10f2d63a
VZ
8535cat - << EOF > confMake
8536check : file
8537 cp \$? \$@
8538 cp \$? final_file
8539EOF
8540
8541if test ! -d sub ; then
8542 mkdir sub
8543fi
8544echo dummy > sub/file
f6bcfd97 8545${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8546RESULT=$?
8547rm -f sub/file check final_file confMake
8548rmdir sub
8549if test "$RESULT" = 0; then
698dcdb6 8550 echo "$ac_t""yes" 1>&6
10f2d63a 8551else
698dcdb6
VZ
8552 echo "$ac_t""no" 1>&6
8553 { echo "configure: error:
1e487827
VS
8554You need a make-utility that is able to use the variable
8555VPATH correctly.
8556If your version of make does not support VPATH correctly,
8557please install GNU-make (possibly as gmake), and start
8558configure with the following command:
8559export MAKE=gmake; ./configure for sh-type shells
8560setenv MAKE gmake; ./configure for csh-type shells
8561Also please do remember to use gmake in this case every time
8562you are trying to compile.
698dcdb6 8563" 1>&2; exit 1; }
10f2d63a
VZ
8564fi
8565
8566for ac_prog in 'bison -y' byacc
8567do
698dcdb6 8568# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8569set dummy $ac_prog; ac_word=$2
698dcdb6 8570echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c39c53e9 8571echo "configure:8572: checking for $ac_word" >&5
698dcdb6
VZ
8572if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8573 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8574else
8575 if test -n "$YACC"; then
8576 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8577else
698dcdb6
VZ
8578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8579 ac_dummy="$PATH"
8580 for ac_dir in $ac_dummy; do
8581 test -z "$ac_dir" && ac_dir=.
8582 if test -f $ac_dir/$ac_word; then
8583 ac_cv_prog_YACC="$ac_prog"
8584 break
8585 fi
8586 done
8587 IFS="$ac_save_ifs"
10f2d63a
VZ
8588fi
8589fi
698dcdb6 8590YACC="$ac_cv_prog_YACC"
10f2d63a 8591if test -n "$YACC"; then
698dcdb6 8592 echo "$ac_t""$YACC" 1>&6
10f2d63a 8593else
698dcdb6 8594 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8595fi
8596
698dcdb6 8597test -n "$YACC" && break
10f2d63a
VZ
8598done
8599test -n "$YACC" || YACC="yacc"
8600
698dcdb6
VZ
8601
8602# Extract the first word of "flex", so it can be a program name with args.
8603set dummy flex; ac_word=$2
8604echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c39c53e9 8605echo "configure:8606: checking for $ac_word" >&5
698dcdb6
VZ
8606if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8607 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8608else
8609 if test -n "$LEX"; then
8610 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8611else
698dcdb6
VZ
8612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8613 ac_dummy="$PATH"
8614 for ac_dir in $ac_dummy; do
8615 test -z "$ac_dir" && ac_dir=.
8616 if test -f $ac_dir/$ac_word; then
8617 ac_cv_prog_LEX="flex"
8618 break
8619 fi
8620 done
8621 IFS="$ac_save_ifs"
8622 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8623fi
8624fi
698dcdb6 8625LEX="$ac_cv_prog_LEX"
10f2d63a 8626if test -n "$LEX"; then
698dcdb6 8627 echo "$ac_t""$LEX" 1>&6
10f2d63a 8628else
698dcdb6 8629 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8630fi
8631
8632if test -z "$LEXLIB"
8633then
698dcdb6
VZ
8634 case "$LEX" in
8635 flex*) ac_lib=fl ;;
8636 *) ac_lib=l ;;
8637 esac
8638 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
c39c53e9 8639echo "configure:8640: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8640ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8641if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8642 echo $ac_n "(cached) $ac_c" 1>&6
8643else
8644 ac_save_LIBS="$LIBS"
8645LIBS="-l$ac_lib $LIBS"
8646cat > conftest.$ac_ext <<EOF
c39c53e9 8647#line 8648 "configure"
10f2d63a
VZ
8648#include "confdefs.h"
8649/* Override any gcc2 internal prototype to avoid an error. */
8650/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8651 builtin and then its argument prototype would still apply. */
8652char yywrap();
10f2d63a 8653
698dcdb6
VZ
8654int main() {
8655yywrap()
8656; return 0; }
8657EOF
c39c53e9 8658if { (eval echo configure:8659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8659 rm -rf conftest*
8660 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8661else
698dcdb6
VZ
8662 echo "configure: failed program was:" >&5
8663 cat conftest.$ac_ext >&5
8664 rm -rf conftest*
8665 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8666fi
698dcdb6
VZ
8667rm -f conftest*
8668LIBS="$ac_save_LIBS"
8669
10f2d63a 8670fi
698dcdb6
VZ
8671if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8672 echo "$ac_t""yes" 1>&6
8673 LEXLIB="-l$ac_lib"
8674else
8675 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8676fi
8677
8678fi
8679
8680
698dcdb6 8681echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
c39c53e9 8682echo "configure:8683: checking whether ln -s works" >&5
698dcdb6
VZ
8683if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8684 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8685else
698dcdb6
VZ
8686 rm -f conftestdata
8687if ln -s X conftestdata 2>/dev/null
8688then
8689 rm -f conftestdata
8690 ac_cv_prog_LN_S="ln -s"
10f2d63a 8691else
698dcdb6 8692 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8693fi
8694fi
698dcdb6
VZ
8695LN_S="$ac_cv_prog_LN_S"
8696if test "$ac_cv_prog_LN_S" = "ln -s"; then
8697 echo "$ac_t""yes" 1>&6
10f2d63a 8698else
698dcdb6 8699 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8700fi
8701
8702
8703
8704SEARCH_INCLUDE="\
8705 /usr/local/include \
8706 \
8707 /usr/Motif-1.2/include \
8708 /usr/Motif-2.1/include \
8709 \
8710 /usr/include/Motif1.2 \
8711 /opt/xpm/include/X11 \
8712 /opt/GBxpm/include/ \
8713 /opt/GBxpm/X11/include/ \
8714 \
8715 /usr/Motif1.2/include \
8716 /usr/dt/include \
afc31813
VZ
8717 /usr/openwin/include \
8718 \
10f2d63a
VZ
8719 /usr/include/Xm \
8720 \
8721 /usr/X11R6/include \
afc31813 8722 /usr/X11R6.4/include \
10f2d63a
VZ
8723 /usr/X11R5/include \
8724 /usr/X11R4/include \
8725 \
10f2d63a
VZ
8726 /usr/include/X11R6 \
8727 /usr/include/X11R5 \
8728 /usr/include/X11R4 \
8729 \
8730 /usr/local/X11R6/include \
8731 /usr/local/X11R5/include \
8732 /usr/local/X11R4/include \
8733 \
8734 /usr/local/include/X11R6 \
8735 /usr/local/include/X11R5 \
8736 /usr/local/include/X11R4 \
8737 \
8738 /usr/X11/include \
8739 /usr/include/X11 \
8740 /usr/local/X11/include \
8741 /usr/local/include/X11 \
8742 \
8743 /usr/X386/include \
8744 /usr/x386/include \
8745 /usr/XFree86/include/X11 \
8746 \
cf27ef00 8747 X:/XFree86/include \
ec14dd32
VZ
8748 X:/XFree86/include/X11 \
8749 \
10f2d63a
VZ
8750 /usr/include/gtk \
8751 /usr/local/include/gtk \
8752 /usr/include/glib \
8753 /usr/local/include/glib \
8754 \
8755 /usr/include/qt \
8756 /usr/local/include/qt \
8757 \
8758 /usr/include/windows \
8759 /usr/include/wine \
8760 /usr/local/include/wine \
8761 \
8762 /usr/unsupported/include \
8763 /usr/athena/include \
8764 /usr/local/x11r5/include \
8765 /usr/lpp/Xamples/include \
8766 \
10f2d63a 8767 /usr/openwin/share/include \
928b5c08
VZ
8768 \
8769 /usr/include"
10f2d63a
VZ
8770
8771SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8772
698dcdb6
VZ
8773
8774cat > confcache <<\EOF
10f2d63a
VZ
8775# This file is a shell script that caches the results of configure
8776# tests run on this system so they can be shared between configure
698dcdb6
VZ
8777# scripts and configure runs. It is not useful on other systems.
8778# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8779#
698dcdb6
VZ
8780# By default, configure uses ./config.cache as the cache file,
8781# creating it if it does not exist already. You can give configure
8782# the --cache-file=FILE option to use a different cache file; that is
8783# what configure does when it calls configure scripts in
8784# subdirectories, so they share the cache.
8785# Giving --cache-file=/dev/null disables caching, for debugging configure.
8786# config.status only pays attention to the cache file if you give it the
8787# --recheck option to rerun configure.
10f2d63a 8788#
698dcdb6 8789EOF
10f2d63a
VZ
8790# The following way of writing the cache mishandles newlines in values,
8791# but we know of no workaround that is simple, portable, and efficient.
8792# So, don't put newlines in cache variables' values.
8793# Ultrix sh set writes to stderr and can't be redirected directly,
8794# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8795(set) 2>&1 |
8796 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8797 *ac_space=\ *)
8798 # `set' does not quote correctly, so add quotes (double-quote substitution
8799 # turns \\\\ into \\, and sed turns \\ into \).
8800 sed -n \
8801 -e "s/'/'\\\\''/g" \
8802 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8803 ;;
8804 *)
8805 # `set' quotes correctly as required by POSIX, so do not add quotes.
8806 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8807 ;;
8808 esac >> confcache
8809if cmp -s $cache_file confcache; then
8810 :
8811else
10f2d63a 8812 if test -w $cache_file; then
698dcdb6
VZ
8813 echo "updating cache $cache_file"
8814 cat confcache > $cache_file
10f2d63a
VZ
8815 else
8816 echo "not updating unwritable cache $cache_file"
8817 fi
8818fi
8819rm -f confcache
8820
698dcdb6
VZ
8821
8822
18dbb1f6
VZ
8823REGEX_INCLUDE=
8824if test "$wxUSE_REGEX" != "no"; then
8825 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8826echo $ac_n "checking for regex.h""... $ac_c" 1>&6
c39c53e9 8827echo "configure:8828: checking for regex.h" >&5
18dbb1f6
VZ
8828if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8829 echo $ac_n "(cached) $ac_c" 1>&6
8830else
8831 cat > conftest.$ac_ext <<EOF
c39c53e9 8832#line 8833 "configure"
18dbb1f6
VZ
8833#include "confdefs.h"
8834#include <regex.h>
8835EOF
8836ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 8837{ (eval echo configure:8838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
8838ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8839if test -z "$ac_err"; then
8840 rm -rf conftest*
8841 eval "ac_cv_header_$ac_safe=yes"
8842else
8843 echo "$ac_err" >&5
8844 echo "configure: failed program was:" >&5
8845 cat conftest.$ac_ext >&5
8846 rm -rf conftest*
8847 eval "ac_cv_header_$ac_safe=no"
8848fi
8849rm -f conftest*
8850fi
8851if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8852 echo "$ac_t""yes" 1>&6
8853 for ac_func in regcomp
8854do
8855echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 8856echo "configure:8857: checking for $ac_func" >&5
18dbb1f6
VZ
8857if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8858 echo $ac_n "(cached) $ac_c" 1>&6
8859else
8860 cat > conftest.$ac_ext <<EOF
c39c53e9 8861#line 8862 "configure"
18dbb1f6
VZ
8862#include "confdefs.h"
8863/* System header to define __stub macros and hopefully few prototypes,
8864 which can conflict with char $ac_func(); below. */
8865#include <assert.h>
8866/* Override any gcc2 internal prototype to avoid an error. */
8867/* We use char because int might match the return type of a gcc2
8868 builtin and then its argument prototype would still apply. */
8869char $ac_func();
8870
8871int main() {
8872
8873/* The GNU C library defines this for functions which it implements
8874 to always fail with ENOSYS. Some functions are actually named
8875 something starting with __ and the normal name is an alias. */
8876#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8877choke me
8878#else
8879$ac_func();
8880#endif
8881
8882; return 0; }
8883EOF
c39c53e9 8884if { (eval echo configure:8885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
8885 rm -rf conftest*
8886 eval "ac_cv_func_$ac_func=yes"
8887else
8888 echo "configure: failed program was:" >&5
8889 cat conftest.$ac_ext >&5
8890 rm -rf conftest*
8891 eval "ac_cv_func_$ac_func=no"
8892fi
8893rm -f conftest*
8894fi
8895
8896if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8897 echo "$ac_t""yes" 1>&6
8898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8899 cat >> confdefs.h <<EOF
8900#define $ac_tr_func 1
8901EOF
8902
8903else
8904 echo "$ac_t""no" 1>&6
8905fi
8906done
8907
8908else
8909 echo "$ac_t""no" 1>&6
8910fi
8911
8912
8913 if test "x$ac_cv_func_regcomp" != "xyes"; then
8914 if test "$wxUSE_REGEX" = "sys"; then
8915 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
8916 fi
8917
8918 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
8919 fi
8920
8921 cat >> confdefs.h <<\EOF
8922#define wxUSE_REGEX 1
8923EOF
8924
8925fi
8926
8927
dad6c0ea
VZ
8928AFMINSTALL=
8929
10f2d63a 8930if test "$wxUSE_GUI" = "yes"; then
1e6feb95 8931 USE_GUI=1
10f2d63a 8932
1e6feb95
VZ
8933 TOOLKIT=
8934 TOOLKIT_INCLUDE=
10f2d63a 8935
1e6feb95
VZ
8936 GUI_TK_LIBRARY=
8937 GUI_TK_LINK=
10f2d63a 8938
1e6feb95
VZ
8939 WXGTK12=
8940 WXGTK127=
8941 WXGTK20=
10f2d63a 8942
1e6feb95 8943 WXWINE=
10f2d63a 8944
1e6feb95 8945 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
29fd3c0c
VS
8946 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8947echo $ac_n "checking for windows.h""... $ac_c" 1>&6
c39c53e9 8948echo "configure:8949: checking for windows.h" >&5
d4158b5d
VS
8949if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8950 echo $ac_n "(cached) $ac_c" 1>&6
8951else
8952 cat > conftest.$ac_ext <<EOF
c39c53e9 8953#line 8954 "configure"
d4158b5d 8954#include "confdefs.h"
29fd3c0c 8955#include <windows.h>
d4158b5d
VS
8956EOF
8957ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 8958{ (eval echo configure:8959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
8959ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8960if test -z "$ac_err"; then
8961 rm -rf conftest*
8962 eval "ac_cv_header_$ac_safe=yes"
8963else
8964 echo "$ac_err" >&5
8965 echo "configure: failed program was:" >&5
8966 cat conftest.$ac_ext >&5
8967 rm -rf conftest*
8968 eval "ac_cv_header_$ac_safe=no"
8969fi
8970rm -f conftest*
8971fi
8972if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8973 echo "$ac_t""yes" 1>&6
29fd3c0c 8974 :
d4158b5d
VS
8975else
8976 echo "$ac_t""no" 1>&6
d4158b5d 8977
3f0f0161
VZ
8978 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8979
29fd3c0c 8980fi
10f2d63a 8981
3f0f0161 8982
1e6feb95 8983 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
3f0f0161 8984
031d8228 8985 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
f6bcfd97 8986
1e6feb95
VZ
8987 if test "$wxUSE_ODBC" = "yes" ; then
8988 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8989 fi
10f2d63a 8990
1e6feb95
VZ
8991 if test "$wxUSE_MINGW" = 1; then
8992 LDFLAGS="$LDFLAGS -mwindows"
8993 fi
32832908 8994
1e6feb95
VZ
8995 TOOLKIT=MSW
8996 GUIDIST=MSW_DIST
32832908 8997
1e6feb95
VZ
8998 RCINCSWITCH="--include-dir"
8999 RCDEFSWITCH="--define"
9000 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
9001 RCINPUTSWITCH="-i"
9002 RCOUTPUTSWITCH="-o"
9003 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
32832908 9004
1e6feb95
VZ
9005 RESPROGRAM="\$(RES_PROGRAM)"
9006 fi
10f2d63a 9007
1e6feb95 9008 if test "$wxUSE_GTK" = 1; then
8168de4c 9009 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
c39c53e9 9010echo "configure:9011: checking for GTK+ version" >&5
8168de4c
VZ
9011
9012 gtk_version_cached=1
9013 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9014 echo $ac_n "(cached) $ac_c" 1>&6
9015else
9016
9017 gtk_version_cached=0
9018 echo "$ac_t""""" 1>&6
9019
9020 wx_cv_lib_gtk=
9021 if test "x$wxUSE_GTK2" = "xyes"; then
9022 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
9023if test "${with_gtk_prefix+set}" = set; then
9024 withval="$with_gtk_prefix"
9025 gtk_config_prefix="$withval"
9026else
9027 gtk_config_prefix=""
698dcdb6 9028fi
6f72b082
OK
9029
9030# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9031if test "${with_gtk_exec_prefix+set}" = set; then
9032 withval="$with_gtk_exec_prefix"
9033 gtk_config_exec_prefix="$withval"
9034else
9035 gtk_config_exec_prefix=""
698dcdb6
VZ
9036fi
9037
6f72b082
OK
9038# Check whether --enable-gtktest or --disable-gtktest was given.
9039if test "${enable_gtktest+set}" = set; then
9040 enableval="$enable_gtktest"
698dcdb6 9041 :
6f72b082
OK
9042else
9043 enable_gtktest=yes
698dcdb6
VZ
9044fi
9045
6f72b082 9046
8168de4c 9047 for module in .
6f72b082
OK
9048 do
9049 case "$module" in
8168de4c 9050 gthread)
6f72b082
OK
9051 gtk_config_args="$gtk_config_args gthread"
9052 ;;
9053 esac
9054 done
9055
9056 if test x$gtk_config_exec_prefix != x ; then
9057 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9058 if test x${GTK_CONFIG_2_0+set} != xset ; then
9059 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9060 fi
9061 fi
9062 if test x$gtk_config_prefix != x ; then
9063 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9064 if test x${GTK_CONFIG_2_0+set} != xset ; then
9065 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9066 fi
9067 fi
9068
9069 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9070set dummy gtk-config-2.0; ac_word=$2
698dcdb6 9071echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c39c53e9 9072echo "configure:9073: checking for $ac_word" >&5
698dcdb6
VZ
9073if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9074 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9075else
698dcdb6
VZ
9076 case "$GTK_CONFIG_2_0" in
9077 /*)
6f72b082
OK
9078 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9079 ;;
698dcdb6
VZ
9080 ?:/*)
9081 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9082 ;;
6f72b082 9083 *)
698dcdb6
VZ
9084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9085 ac_dummy="$PATH"
9086 for ac_dir in $ac_dummy; do
9087 test -z "$ac_dir" && ac_dir=.
9088 if test -f $ac_dir/$ac_word; then
9089 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9090 break
9091 fi
9092 done
9093 IFS="$ac_save_ifs"
6f72b082
OK
9094 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9095 ;;
9096esac
9097fi
698dcdb6 9098GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 9099if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 9100 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 9101else
698dcdb6 9102 echo "$ac_t""no" 1>&6
6f72b082
OK
9103fi
9104
9105 min_gtk_version=1.3.1
698dcdb6 9106 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
c39c53e9 9107echo "configure:9108: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
9108 no_gtk=""
9109 if test "$GTK_CONFIG_2_0" = "no" ; then
9110 no_gtk=yes
9111 else
9112 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9113 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9114 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9115 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9116 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9117 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9118 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9119 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9120 if test "x$enable_gtktest" = "xyes" ; then
9121 ac_save_CFLAGS="$CFLAGS"
9122 ac_save_LIBS="$LIBS"
9123 CFLAGS="$CFLAGS $GTK_CFLAGS"
9124 LIBS="$GTK_LIBS $LIBS"
9125 rm -f conf.gtktest
9126 if test "$cross_compiling" = yes; then
9127 echo $ac_n "cross compiling; assumed OK... $ac_c"
9128else
698dcdb6 9129 cat > conftest.$ac_ext <<EOF
c39c53e9 9130#line 9131 "configure"
6f72b082
OK
9131#include "confdefs.h"
9132
9133#include <gtk/gtk.h>
9134#include <stdio.h>
9135#include <stdlib.h>
9136
8168de4c 9137int
6f72b082
OK
9138main ()
9139{
9140 int major, minor, micro;
9141 char *tmp_version;
9142
9143 system ("touch conf.gtktest");
9144
9145 /* HP/UX 9 (%@#!) writes to sscanf strings */
9146 tmp_version = g_strdup("$min_gtk_version");
9147 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9148 printf("%s, bad version string\n", "$min_gtk_version");
9149 exit(1);
9150 }
9151
9152 if ((gtk_major_version != $gtk_config_major_version) ||
9153 (gtk_minor_version != $gtk_config_minor_version) ||
9154 (gtk_micro_version != $gtk_config_micro_version))
9155 {
8168de4c 9156 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
9157 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9158 gtk_major_version, gtk_minor_version, gtk_micro_version);
9159 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9160 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9161 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9162 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9163 printf("*** required on your system.\n");
9164 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9165 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9166 printf("*** before re-running configure\n");
8168de4c 9167 }
6f72b082
OK
9168#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9169 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 9170 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
9171 (gtk_micro_version != GTK_MICRO_VERSION))
9172 {
9173 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 9174 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 9175 printf("*** library (version %d.%d.%d)\n",
8168de4c 9176 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
9177 }
9178#endif /* defined (GTK_MAJOR_VERSION) ... */
9179 else
9180 {
9181 if ((gtk_major_version > major) ||
9182 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9183 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9184 {
9185 return 0;
9186 }
9187 else
9188 {
9189 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9190 gtk_major_version, gtk_minor_version, gtk_micro_version);
9191 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 9192 major, minor, micro);
6f72b082
OK
9193 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9194 printf("***\n");
9195 printf("*** If you have already installed a sufficiently new version, this error\n");
9196 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9197 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9198 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9199 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9200 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9201 printf("*** so that the correct libraries are found at run-time))\n");
9202 }
9203 }
9204 return 1;
9205}
9206
698dcdb6 9207EOF
c39c53e9 9208if { (eval echo configure:9209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9209then
6f72b082
OK
9210 :
9211else
698dcdb6
VZ
9212 echo "configure: failed program was:" >&5
9213 cat conftest.$ac_ext >&5
9214 rm -fr conftest*
9215 no_gtk=yes
6f72b082 9216fi
698dcdb6 9217rm -fr conftest*
6f72b082 9218fi
698dcdb6 9219
6f72b082
OK
9220 CFLAGS="$ac_save_CFLAGS"
9221 LIBS="$ac_save_LIBS"
9222 fi
9223 fi
9224 if test "x$no_gtk" = x ; then
698dcdb6 9225 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 9226 wx_cv_lib_gtk=2.0
6f72b082 9227 else
698dcdb6 9228 echo "$ac_t""no" 1>&6
6f72b082
OK
9229 if test "$GTK_CONFIG_2_0" = "no" ; then
9230 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9231 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9232 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9233 echo "*** full path to gtk-config-2.0."
9234 else
9235 if test -f conf.gtktest ; then
9236 :
9237 else
9238 echo "*** Could not run GTK test program, checking why..."
9239 CFLAGS="$CFLAGS $GTK_CFLAGS"
9240 LIBS="$LIBS $GTK_LIBS"
698dcdb6 9241 cat > conftest.$ac_ext <<EOF
c39c53e9 9242#line 9243 "configure"
6f72b082
OK
9243#include "confdefs.h"
9244
9245#include <gtk/gtk.h>
9246#include <stdio.h>
9247
698dcdb6
VZ
9248int main() {
9249 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9250; return 0; }
9251EOF
c39c53e9 9252if { (eval echo configure:9253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9253 rm -rf conftest*
6f72b082
OK
9254 echo "*** The test program compiled, but did not run. This usually means"
9255 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9256 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9257 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9258 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9259 echo "*** is required on your system"
8168de4c 9260 echo "***"
6f72b082
OK
9261 echo "*** If you have an old version installed, it is best to remove it, although"
9262 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9263 echo "***"
9264 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9265 echo "*** came with the system with the command"
9266 echo "***"
698dcdb6 9267 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 9268else
698dcdb6
VZ
9269 echo "configure: failed program was:" >&5
9270 cat conftest.$ac_ext >&5
9271 rm -rf conftest*
9272 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
9273 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9274 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 9275 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 9276fi
698dcdb6 9277rm -f conftest*
6f72b082
OK
9278 CFLAGS="$ac_save_CFLAGS"
9279 LIBS="$ac_save_LIBS"
9280 fi
9281 fi
9282 GTK_CFLAGS=""
9283 GTK_LIBS=""
8168de4c
VZ
9284 gthread
9285 fi
9286
9287
9288 rm -f conf.gtktest
9289
9290 fi
9291
9292 if test -z "$wx_cv_lib_gtk"; then
9293
10f2d63a
VZ
9294 if test x$gtk_config_exec_prefix != x ; then
9295 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9296 if test x${GTK_CONFIG+set} != xset ; then
9297 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9298 fi
9299 fi
9300 if test x$gtk_config_prefix != x ; then
9301 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9302 if test x${GTK_CONFIG+set} != xset ; then
9303 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9304 fi
9305 fi
9306
9307 # Extract the first word of "gtk-config", so it can be a program name with args.
9308set dummy gtk-config; ac_word=$2
698dcdb6 9309echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c39c53e9 9310echo "configure:9311: checking for $ac_word" >&5
698dcdb6
VZ
9311if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9312 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 9313else
698dcdb6
VZ
9314 case "$GTK_CONFIG" in
9315 /*)
f6bcfd97
BP
9316 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9317 ;;
698dcdb6
VZ
9318 ?:/*)
9319 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9320 ;;
f6bcfd97 9321 *)
698dcdb6
VZ
9322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9323 ac_dummy="$PATH"
9324 for ac_dir in $ac_dummy; do
9325 test -z "$ac_dir" && ac_dir=.
9326 if test -f $ac_dir/$ac_word; then
9327 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9328 break
9329 fi
9330 done
9331 IFS="$ac_save_ifs"
f6bcfd97
BP
9332 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9333 ;;
9334esac
9335fi
698dcdb6 9336GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 9337if test -n "$GTK_CONFIG"; then
698dcdb6 9338 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 9339else
698dcdb6 9340 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9341fi
9342
9343 min_gtk_version=1.2.7
698dcdb6 9344 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
c39c53e9 9345echo "configure:9346: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
9346 no_gtk=""
9347 if test "$GTK_CONFIG" != "no" ; then
9348 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9349 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9350 ac_save_CFLAGS="$CFLAGS"
9351 ac_save_LIBS="$LIBS"
9352 CFLAGS="$CFLAGS $GTK_CFLAGS"
9353 LIBS="$LIBS $GTK_LIBS"
9354 if test "$cross_compiling" = yes; then
9355 echo $ac_n "cross compiling; assumed OK... $ac_c"
9356else
698dcdb6 9357 cat > conftest.$ac_ext <<EOF
c39c53e9 9358#line 9359 "configure"
f6bcfd97
BP
9359#include "confdefs.h"
9360
9361#include <gtk/gtk.h>
9362#include <gtk/gtkfeatures.h>
9363#include <stdio.h>
9364#include <stdlib.h>
9365
9366int
9367main ()
9368{
9369 int major, minor, micro;
9370
9371 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9372 printf("%s, bad version string\n", "$min_gtk_version");
9373 exit(1);
9374 }
9375
9376 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9377 (GTK_MINOR_VERSION != gtk_minor_version) ||
9378 (GTK_MICRO_VERSION != gtk_micro_version)) {
9379 printf("Headers vs. library version mismatch!\n");
9380 exit(1);
9381 }
9382
9383 if (gtk_minor_version == 1) return FALSE;
9384
9385 return !((gtk_major_version > major) ||
9386 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9387 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9388}
9389
698dcdb6 9390EOF
c39c53e9 9391if { (eval echo configure:9392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9392then
f6bcfd97
BP
9393 :
9394else
698dcdb6
VZ
9395 echo "configure: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9397 rm -fr conftest*
9398 no_gtk=yes
f6bcfd97 9399fi
698dcdb6 9400rm -fr conftest*
f6bcfd97 9401fi
698dcdb6 9402
f6bcfd97
BP
9403 CFLAGS="$ac_save_CFLAGS"
9404 LIBS="$ac_save_LIBS"
9405 else
9406 no_gtk=yes
9407 fi
9408 if test "x$no_gtk" = x ; then
698dcdb6 9409 echo "$ac_t""yes" 1>&6
8168de4c 9410 wx_cv_lib_gtk=1.2.7
f6bcfd97 9411 else
698dcdb6 9412 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9413 GTK_CFLAGS=""
9414 GTK_LIBS=""
9415 :
9416 fi
698dcdb6
VZ
9417
9418
f6bcfd97 9419
8168de4c
VZ
9420 fi
9421
9422 if test -z "$wx_cv_lib_gtk"; then
9423
f6bcfd97
BP
9424 if test x$gtk_config_exec_prefix != x ; then
9425 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9426 if test x${GTK_CONFIG+set} != xset ; then
9427 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9428 fi
9429 fi
9430 if test x$gtk_config_prefix != x ; then
9431 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9432 if test x${GTK_CONFIG+set} != xset ; then
9433 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9434 fi
9435 fi
9436
9437 # Extract the first word of "gtk-config", so it can be a program name with args.
9438set dummy gtk-config; ac_word=$2
698dcdb6 9439echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c39c53e9 9440echo "configure:9441: checking for $ac_word" >&5
698dcdb6
VZ
9441if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9442 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9443else
698dcdb6
VZ
9444 case "$GTK_CONFIG" in
9445 /*)
10f2d63a
VZ
9446 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9447 ;;
698dcdb6
VZ
9448 ?:/*)
9449 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9450 ;;
10f2d63a 9451 *)
698dcdb6
VZ
9452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9453 ac_dummy="$PATH"
9454 for ac_dir in $ac_dummy; do
9455 test -z "$ac_dir" && ac_dir=.
9456 if test -f $ac_dir/$ac_word; then
9457 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9458 break
9459 fi
9460 done
9461 IFS="$ac_save_ifs"
10f2d63a
VZ
9462 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9463 ;;
9464esac
9465fi
698dcdb6 9466GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 9467if test -n "$GTK_CONFIG"; then
698dcdb6 9468 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 9469else
698dcdb6 9470 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9471fi
9472
04165bec 9473 min_gtk_version=1.2.3
698dcdb6 9474 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
c39c53e9 9475echo "configure:9476: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
9476 no_gtk=""
9477 if test "$GTK_CONFIG" != "no" ; then
9478 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 9479 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
9480 ac_save_CFLAGS="$CFLAGS"
9481 ac_save_LIBS="$LIBS"
9482 CFLAGS="$CFLAGS $GTK_CFLAGS"
9483 LIBS="$LIBS $GTK_LIBS"
9484 if test "$cross_compiling" = yes; then
9485 echo $ac_n "cross compiling; assumed OK... $ac_c"
9486else
698dcdb6 9487 cat > conftest.$ac_ext <<EOF
c39c53e9 9488#line 9489 "configure"
10f2d63a
VZ
9489#include "confdefs.h"
9490
9491#include <gtk/gtk.h>
f49f2b0c 9492#include <gtk/gtkfeatures.h>
10f2d63a 9493#include <stdio.h>
32832908 9494#include <stdlib.h>
10f2d63a
VZ
9495
9496int
9497main ()
9498{
9499 int major, minor, micro;
9500
9501 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9502 printf("%s, bad version string\n", "$min_gtk_version");
9503 exit(1);
9504 }
9505
f49f2b0c
RR
9506 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9507 (GTK_MINOR_VERSION != gtk_minor_version) ||
9508 (GTK_MICRO_VERSION != gtk_micro_version)) {
9509 printf("Headers vs. library version mismatch!\n");
9510 exit(1);
9511 }
9512
10f2d63a
VZ
9513 if (gtk_minor_version == 1) return FALSE;
9514
9515 return !((gtk_major_version > major) ||
9516 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9517 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9518}
9519
698dcdb6 9520EOF
c39c53e9 9521if { (eval echo configure:9522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9522then
10f2d63a
VZ
9523 :
9524else
698dcdb6
VZ
9525 echo "configure: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9527 rm -fr conftest*
9528 no_gtk=yes
10f2d63a 9529fi
698dcdb6 9530rm -fr conftest*
10f2d63a 9531fi
698dcdb6 9532
10f2d63a
VZ
9533 CFLAGS="$ac_save_CFLAGS"
9534 LIBS="$ac_save_LIBS"
9535 else
9536 no_gtk=yes
9537 fi
9538 if test "x$no_gtk" = x ; then
698dcdb6 9539 echo "$ac_t""yes" 1>&6
8168de4c 9540 wx_cv_lib_gtk=1.2.3
10f2d63a 9541 else
698dcdb6 9542 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9543 GTK_CFLAGS=""
9544 GTK_LIBS=""
7e99ad86 9545 :
10f2d63a 9546 fi
698dcdb6
VZ
9547
9548
10f2d63a 9549
8168de4c
VZ
9550 fi
9551
9552 if test -z "$wx_cv_lib_gtk"; then
9553 wx_cv_lib_gtk=none
138be253
VZ
9554 else
9555 wx_cv_cflags_gtk=$GTK_CFLAGS
9556 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
9557 fi
9558
1e6feb95 9559
8168de4c 9560fi
703e0a69 9561
698dcdb6 9562
8168de4c
VZ
9563 if test "$gtk_version_cached" = 1; then
9564 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 9565 fi
698dcdb6 9566
8168de4c
VZ
9567 case "$wx_cv_lib_gtk" in
9568 2.0) WXGTK20=1
9569 ;;
9570 1.2.7) WXGTK127=1
d1a8d972 9571 WXGTK12=1
8168de4c
VZ
9572 ;;
9573 1.2.3) WXGTK12=1
9574 ;;
9575 *) { echo "configure: error:
9576Please check that gtk-config is in path, the directory
9577where GTK+ libraries are installed (returned by
9578'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9579equivalent variable and GTK+ is version 1.2.3 or above.
9580 " 1>&2; exit 1; }
9581 ;;
9582 esac
2224580a 9583
138be253 9584 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 9585 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 9586
1e6feb95
VZ
9587 AFMINSTALL=afminstall
9588 TOOLKIT=GTK
9589 GUIDIST=GTK_DIST
7ec2881a 9590
1e6feb95 9591 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
c39c53e9 9592echo "configure:9593: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
9593ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9594if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9595 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 9596else
698dcdb6 9597 ac_save_LIBS="$LIBS"
7ec2881a 9598LIBS="-lgdk $LIBS"
698dcdb6 9599cat > conftest.$ac_ext <<EOF
c39c53e9 9600#line 9601 "configure"
7ec2881a
RR
9601#include "confdefs.h"
9602/* Override any gcc2 internal prototype to avoid an error. */
9603/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9604 builtin and then its argument prototype would still apply. */
9605char gdk_im_open();
9606
9607int main() {
9608gdk_im_open()
9609; return 0; }
9610EOF
c39c53e9 9611if { (eval echo configure:9612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9612 rm -rf conftest*
9613 eval "ac_cv_lib_$ac_lib_var=yes"
9614else
9615 echo "configure: failed program was:" >&5
9616 cat conftest.$ac_ext >&5
9617 rm -rf conftest*
9618 eval "ac_cv_lib_$ac_lib_var=no"
9619fi
9620rm -f conftest*
9621LIBS="$ac_save_LIBS"
9622
9623fi
9624if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9625 echo "$ac_t""yes" 1>&6
9626 cat >> confdefs.h <<\EOF
7ec2881a
RR
9627#define HAVE_XIM 1
9628EOF
9629
698dcdb6
VZ
9630else
9631 echo "$ac_t""no" 1>&6
7ec2881a
RR
9632fi
9633
1e6feb95 9634 fi
10f2d63a 9635
1e6feb95
VZ
9636 if test "$wxUSE_MGL" = 1; then
9637
9638 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
c39c53e9 9639echo "configure:9640: checking for SciTech MGL library" >&5
1e6feb95
VZ
9640 if test "x$MGL_ROOT" = x ; then
9641 echo "$ac_t""not found" 1>&6
9642 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9643 else
9644 echo "$ac_t""$MGL_ROOT" 1>&6
9645 fi
9646
9647 MGL_OS=linux/gcc/glibc
9648 MGL_LIB_TYPE=""
9649
9650 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9651 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9652 MGL_LIB_TYPE=debug
9653 fi
9654 fi
9655 if test "x$MGL_LIB_TYPE" = x ; then
9656 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9657 MGL_LIB_TYPE=release
9658 else
9659 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9660 fi
9661 fi
9662
9663 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9664 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9665
9666 AFMINSTALL=afminstall
9667 TOOLKIT=MGL
9668 GUIDIST=MGL_DIST
9669 fi
9670
9671 if test "$wxUSE_WINE" = 1; then
9672 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
c39c53e9 9673echo "configure:9674: checking for WINE includes" >&5
1e6feb95 9674
10f2d63a
VZ
9675ac_find_includes=
9676for ac_dir in $SEARCH_INCLUDE;
9677 do
9678 if test -f "$ac_dir/windows.h"; then
9679 ac_find_includes=$ac_dir
9680 break
9681 fi
9682 done
9683
1e6feb95
VZ
9684 if test "$ac_find_includes" != "" ; then
9685 echo "$ac_t""found $ac_find_includes" 1>&6
9686 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9687 else
9688 echo "$ac_t""no" 1>&6
9689 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9690 fi
10f2d63a 9691
1e6feb95
VZ
9692 XPM_LINK=""
9693 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
c39c53e9 9694echo "configure:9695: checking for Xpm library" >&5
1e6feb95 9695
10f2d63a
VZ
9696ac_find_libraries=
9697for ac_dir in $SEARCH_LIB;
9698 do
f11bdd03 9699 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9700 if test -f "$ac_dir/libXpm.$ac_extension"; then
9701 ac_find_libraries=$ac_dir
9702 break 2
9703 fi
9704 done
9705 done
9706
1e6feb95
VZ
9707 if test "$ac_find_libraries" != "" ; then
9708 GUI_TK_LIBRARY="-L$ac_find_libraries"
9709 XPM_LINK="-lXpm"
9710 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9711#define wxHAVE_LIB_XPM 1
9712EOF
9713
1e6feb95
VZ
9714 echo "$ac_t""found at $ac_find_libraries" 1>&6
9715 else
9716 echo "$ac_t""no" 1>&6
9717 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9718 fi
10f2d63a 9719
1e6feb95
VZ
9720 MESA_LINK=""
9721 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
c39c53e9 9722echo "configure:9723: checking for Mesa library" >&5
1e6feb95 9723
10f2d63a
VZ
9724ac_find_libraries=
9725for ac_dir in $SEARCH_LIB;
9726 do
f11bdd03 9727 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9728 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9729 ac_find_libraries=$ac_dir
9730 break 2
9731 fi
9732 done
9733 done
9734
1e6feb95
VZ
9735 if test "$ac_find_libraries" != "" ; then
9736 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9737 MESA_LINK="-lMesaGL"
9738 echo "$ac_t""found at $ac_find_libraries" 1>&6
9739 else
9740 { echo "configure: error: no" 1>&2; exit 1; }
9741 fi
10f2d63a 9742
1e6feb95
VZ
9743 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9744 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9745 WXWINE=1
9746 TOOLKIT=MSW
9747 GUIDIST=MSW_DIST
9748 fi
698dcdb6 9749
1e6feb95
VZ
9750
9751 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9752# paths, otherwise set no_x=yes.
9753# Uses ac_ vars as temps to allow command line to override cache and checks.
9754# --without-x overrides everything else, but does not touch the cache.
9755echo $ac_n "checking for X""... $ac_c" 1>&6
c39c53e9 9756echo "configure:9757: checking for X" >&5
ab9b9eab
VZ
9757
9758# Check whether --with-x or --without-x was given.
9759if test "${with_x+set}" = set; then
9760 withval="$with_x"
698dcdb6
VZ
9761 :
9762fi
ba337fe7 9763
ab9b9eab
VZ
9764# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9765if test "x$with_x" = xno; then
9766 # The user explicitly disabled X.
9767 have_x=disabled
9768else
9769 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9770 # Both variables are already set.
9771 have_x=yes
9772 else
698dcdb6
VZ
9773if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9774 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9775else
9776 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9777ac_x_includes=NO ac_x_libraries=NO
9778rm -fr conftestdir
9779if mkdir conftestdir; then
9780 cd conftestdir
ab9b9eab 9781 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9782 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9783acfindx:
9784 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9785EOF
9786 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9788 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9789 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9790 for ac_extension in a so sl; do
ab9b9eab 9791 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9792 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9793 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9794 fi
9795 done
ab9b9eab
VZ
9796 # Screen out bogus values from the imake configuration. They are
9797 # bogus both because they are the default anyway, and because
9798 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9799 case "$ac_im_incroot" in
ab9b9eab 9800 /usr/include) ;;
698dcdb6 9801 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9802 esac
698dcdb6 9803 case "$ac_im_usrlibdir" in
ab9b9eab 9804 /usr/lib | /lib) ;;
698dcdb6 9805 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9806 esac
ba337fe7 9807 fi
ab9b9eab 9808 cd ..
698dcdb6 9809 rm -fr conftestdir
ab9b9eab 9810fi
10f2d63a 9811
698dcdb6
VZ
9812if test "$ac_x_includes" = NO; then
9813 # Guess where to find include files, by looking for this one X11 .h file.
9814 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9815
ab9b9eab 9816 # First, try using that file with no special directory specified.
698dcdb6 9817cat > conftest.$ac_ext <<EOF
c39c53e9 9818#line 9819 "configure"
ab9b9eab 9819#include "confdefs.h"
698dcdb6
VZ
9820#include <$x_direct_test_include>
9821EOF
9822ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 9823{ (eval echo configure:9824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9824ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9825if test -z "$ac_err"; then
9826 rm -rf conftest*
ab9b9eab
VZ
9827 # We can compile using X headers with no special include directory.
9828ac_x_includes=
9829else
698dcdb6
VZ
9830 echo "$ac_err" >&5
9831 echo "configure: failed program was:" >&5
ab9b9eab 9832 cat conftest.$ac_ext >&5
698dcdb6
VZ
9833 rm -rf conftest*
9834 # Look for the header file in a standard set of common directories.
9835# Check X11 before X11Rn because it is often a symlink to the current release.
9836 for ac_dir in \
9837 /usr/X11/include \
9838 /usr/X11R6/include \
9839 /usr/X11R5/include \
9840 /usr/X11R4/include \
9841 \
9842 /usr/include/X11 \
9843 /usr/include/X11R6 \
9844 /usr/include/X11R5 \
9845 /usr/include/X11R4 \
9846 \
9847 /usr/local/X11/include \
9848 /usr/local/X11R6/include \
9849 /usr/local/X11R5/include \
9850 /usr/local/X11R4/include \
9851 \
9852 /usr/local/include/X11 \
9853 /usr/local/include/X11R6 \
9854 /usr/local/include/X11R5 \
9855 /usr/local/include/X11R4 \
9856 \
9857 /usr/X386/include \
9858 /usr/x386/include \
9859 /usr/XFree86/include/X11 \
9860 \
9861 /usr/include \
9862 /usr/local/include \
9863 /usr/unsupported/include \
9864 /usr/athena/include \
9865 /usr/local/x11r5/include \
9866 /usr/lpp/Xamples/include \
9867 \
9868 /usr/openwin/include \
9869 /usr/openwin/share/include \
9870 ; \
9871 do
9872 if test -r "$ac_dir/$x_direct_test_include"; then
9873 ac_x_includes=$ac_dir
9874 break
9875 fi
9876 done
ab9b9eab 9877fi
698dcdb6
VZ
9878rm -f conftest*
9879fi # $ac_x_includes = NO
10f2d63a 9880
698dcdb6 9881if test "$ac_x_libraries" = NO; then
ab9b9eab 9882 # Check for the libraries.
698dcdb6
VZ
9883
9884 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9885 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9886
ab9b9eab
VZ
9887 # See if we find them without any special options.
9888 # Don't add to $LIBS permanently.
698dcdb6
VZ
9889 ac_save_LIBS="$LIBS"
9890 LIBS="-l$x_direct_test_library $LIBS"
9891cat > conftest.$ac_ext <<EOF
c39c53e9 9892#line 9893 "configure"
ab9b9eab 9893#include "confdefs.h"
698dcdb6
VZ
9894
9895int main() {
9896${x_direct_test_function}()
9897; return 0; }
9898EOF
c39c53e9 9899if { (eval echo configure:9900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9900 rm -rf conftest*
9901 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
9902# We can link X programs with no special library path.
9903ac_x_libraries=
9904else
698dcdb6
VZ
9905 echo "configure: failed program was:" >&5
9906 cat conftest.$ac_ext >&5
9907 rm -rf conftest*
9908 LIBS="$ac_save_LIBS"
9909# First see if replacing the include by lib works.
9910# Check X11 before X11Rn because it is often a symlink to the current release.
9911for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9912 /usr/X11/lib \
9913 /usr/X11R6/lib \
9914 /usr/X11R5/lib \
9915 /usr/X11R4/lib \
9916 \
9917 /usr/lib/X11 \
9918 /usr/lib/X11R6 \
9919 /usr/lib/X11R5 \
9920 /usr/lib/X11R4 \
9921 \
9922 /usr/local/X11/lib \
9923 /usr/local/X11R6/lib \
9924 /usr/local/X11R5/lib \
9925 /usr/local/X11R4/lib \
9926 \
9927 /usr/local/lib/X11 \
9928 /usr/local/lib/X11R6 \
9929 /usr/local/lib/X11R5 \
9930 /usr/local/lib/X11R4 \
9931 \
9932 /usr/X386/lib \
9933 /usr/x386/lib \
9934 /usr/XFree86/lib/X11 \
9935 \
9936 /usr/lib \
9937 /usr/local/lib \
9938 /usr/unsupported/lib \
9939 /usr/athena/lib \
9940 /usr/local/x11r5/lib \
9941 /usr/lpp/Xamples/lib \
9942 /lib/usr/lib/X11 \
9943 \
9944 /usr/openwin/lib \
9945 /usr/openwin/share/lib \
9946 ; \
ab9b9eab
VZ
9947do
9948 for ac_extension in a so sl; do
698dcdb6 9949 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
9950 ac_x_libraries=$ac_dir
9951 break 2
10f2d63a 9952 fi
10f2d63a 9953 done
ab9b9eab
VZ
9954done
9955fi
698dcdb6
VZ
9956rm -f conftest*
9957fi # $ac_x_libraries = NO
10f2d63a 9958
698dcdb6 9959if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
9960 # Didn't find X anywhere. Cache the known absence of X.
9961 ac_cv_have_x="have_x=no"
9962else
9963 # Record where we found X for the cache.
9964 ac_cv_have_x="have_x=yes \
9965 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9966fi
9967fi
10f2d63a 9968 fi
ab9b9eab
VZ
9969 eval "$ac_cv_have_x"
9970fi # $with_x != no
10f2d63a 9971
ab9b9eab 9972if test "$have_x" != yes; then
698dcdb6 9973 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
9974 no_x=yes
9975else
9976 # If each of the values was on the command line, it overrides each guess.
9977 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9978 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9979 # Update the cache value to reflect the command line values.
9980 ac_cv_have_x="have_x=yes \
9981 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 9982 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 9983fi
10f2d63a 9984
ab9b9eab
VZ
9985if test "$no_x" = yes; then
9986 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 9987 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
9988#define X_DISPLAY_MISSING 1
9989EOF
10f2d63a 9990
ab9b9eab
VZ
9991 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9992else
9993 if test -n "$x_includes"; then
9994 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
9995 fi
9996
ab9b9eab
VZ
9997 # It would also be nice to do this for all -L options, not just this one.
9998 if test -n "$x_libraries"; then
9999 X_LIBS="$X_LIBS -L$x_libraries"
10000 # For Solaris; some versions of Sun CC require a space after -R and
10001 # others require no space. Words are not sufficient . . . .
698dcdb6 10002 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 10003 "SunOS 5"*)
698dcdb6 10004 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
c39c53e9 10005echo "configure:10006: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
10006 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10007 cat > conftest.$ac_ext <<EOF
c39c53e9 10008#line 10009 "configure"
ab9b9eab 10009#include "confdefs.h"
10f2d63a 10010
698dcdb6 10011int main() {
788deba1 10012
698dcdb6
VZ
10013; return 0; }
10014EOF
c39c53e9 10015if { (eval echo configure:10016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10016 rm -rf conftest*
ab9b9eab
VZ
10017 ac_R_nospace=yes
10018else
698dcdb6
VZ
10019 echo "configure: failed program was:" >&5
10020 cat conftest.$ac_ext >&5
10021 rm -rf conftest*
10022 ac_R_nospace=no
ab9b9eab 10023fi
698dcdb6 10024rm -f conftest*
ab9b9eab 10025 if test $ac_R_nospace = yes; then
698dcdb6 10026 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10027 X_LIBS="$X_LIBS -R$x_libraries"
10028 else
10029 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 10030 cat > conftest.$ac_ext <<EOF
c39c53e9 10031#line 10032 "configure"
ab9b9eab 10032#include "confdefs.h"
788deba1 10033
698dcdb6 10034int main() {
ab9b9eab 10035
698dcdb6
VZ
10036; return 0; }
10037EOF
c39c53e9 10038if { (eval echo configure:10039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10039 rm -rf conftest*
ab9b9eab
VZ
10040 ac_R_space=yes
10041else
698dcdb6
VZ
10042 echo "configure: failed program was:" >&5
10043 cat conftest.$ac_ext >&5
10044 rm -rf conftest*
10045 ac_R_space=no
ab9b9eab 10046fi
698dcdb6 10047rm -f conftest*
ab9b9eab 10048 if test $ac_R_space = yes; then
698dcdb6 10049 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
10050 X_LIBS="$X_LIBS -R $x_libraries"
10051 else
698dcdb6 10052 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
10053 fi
10054 fi
698dcdb6 10055 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
10056 esac
10057 fi
10058
10059 # Check for system-dependent libraries X programs must link with.
10060 # Do this before checking for the system-independent R6 libraries
10061 # (-lICE), since we may need -lsocket or whatever for X linking.
10062
10063 if test "$ISC" = yes; then
10064 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10065 else
698dcdb6
VZ
10066 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10067 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 10068 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 10069 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
c39c53e9 10070echo "configure:10071: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
10071ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10072if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10073 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10074else
698dcdb6 10075 ac_save_LIBS="$LIBS"
ab9b9eab 10076LIBS="-ldnet $LIBS"
698dcdb6 10077cat > conftest.$ac_ext <<EOF
c39c53e9 10078#line 10079 "configure"
ab9b9eab
VZ
10079#include "confdefs.h"
10080/* Override any gcc2 internal prototype to avoid an error. */
10081/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10082 builtin and then its argument prototype would still apply. */
10083char dnet_ntoa();
10084
10085int main() {
10086dnet_ntoa()
10087; return 0; }
10088EOF
c39c53e9 10089if { (eval echo configure:10090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10090 rm -rf conftest*
10091 eval "ac_cv_lib_$ac_lib_var=yes"
10092else
10093 echo "configure: failed program was:" >&5
10094 cat conftest.$ac_ext >&5
10095 rm -rf conftest*
10096 eval "ac_cv_lib_$ac_lib_var=no"
10097fi
10098rm -f conftest*
10099LIBS="$ac_save_LIBS"
10100
10101fi
10102if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10103 echo "$ac_t""yes" 1>&6
ab9b9eab 10104 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
10105else
10106 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10107fi
10108
10109 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 10110 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
c39c53e9 10111echo "configure:10112: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
10112ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10113if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10114 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10115else
698dcdb6 10116 ac_save_LIBS="$LIBS"
ab9b9eab 10117LIBS="-ldnet_stub $LIBS"
698dcdb6 10118cat > conftest.$ac_ext <<EOF
c39c53e9 10119#line 10120 "configure"
ab9b9eab
VZ
10120#include "confdefs.h"
10121/* Override any gcc2 internal prototype to avoid an error. */
10122/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10123 builtin and then its argument prototype would still apply. */
10124char dnet_ntoa();
10125
10126int main() {
10127dnet_ntoa()
10128; return 0; }
10129EOF
c39c53e9 10130if { (eval echo configure:10131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10131 rm -rf conftest*
10132 eval "ac_cv_lib_$ac_lib_var=yes"
10133else
10134 echo "configure: failed program was:" >&5
10135 cat conftest.$ac_ext >&5
10136 rm -rf conftest*
10137 eval "ac_cv_lib_$ac_lib_var=no"
10138fi
10139rm -f conftest*
10140LIBS="$ac_save_LIBS"
10141
10142fi
10143if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10144 echo "$ac_t""yes" 1>&6
ab9b9eab 10145 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
10146else
10147 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10148fi
10149
10150 fi
10151
10152 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10153 # to get the SysV transport functions.
698dcdb6 10154 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
10155 # needs -lnsl.
10156 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
10157 # on Irix 5.2, according to dickey@clark.net.
10158 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
c39c53e9 10159echo "configure:10160: checking for gethostbyname" >&5
698dcdb6
VZ
10160if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10161 echo $ac_n "(cached) $ac_c" 1>&6
10162else
10163 cat > conftest.$ac_ext <<EOF
c39c53e9 10164#line 10165 "configure"
ab9b9eab
VZ
10165#include "confdefs.h"
10166/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10167 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
10168#include <assert.h>
10169/* Override any gcc2 internal prototype to avoid an error. */
10170/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10171 builtin and then its argument prototype would still apply. */
10172char gethostbyname();
10173
10174int main() {
ab9b9eab
VZ
10175
10176/* The GNU C library defines this for functions which it implements
10177 to always fail with ENOSYS. Some functions are actually named
10178 something starting with __ and the normal name is an alias. */
10179#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10180choke me
10181#else
698dcdb6 10182gethostbyname();
ab9b9eab
VZ
10183#endif
10184
698dcdb6
VZ
10185; return 0; }
10186EOF
c39c53e9 10187if { (eval echo configure:10188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10188 rm -rf conftest*
10189 eval "ac_cv_func_gethostbyname=yes"
10190else
10191 echo "configure: failed program was:" >&5
10192 cat conftest.$ac_ext >&5
10193 rm -rf conftest*
10194 eval "ac_cv_func_gethostbyname=no"
10195fi
10196rm -f conftest*
10197fi
10198
10199if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10200 echo "$ac_t""yes" 1>&6
10201 :
10202else
10203 echo "$ac_t""no" 1>&6
10204fi
ab9b9eab
VZ
10205
10206 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 10207 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
c39c53e9 10208echo "configure:10209: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
10209ac_lib_var=`echo nsl'_'gethostbyname | 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="-lnsl $LIBS"
698dcdb6 10215cat > conftest.$ac_ext <<EOF
c39c53e9 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 gethostbyname();
6232543b 10222
698dcdb6
VZ
10223int main() {
10224gethostbyname()
10225; return 0; }
10226EOF
c39c53e9 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"
703e0a69 10230else
698dcdb6
VZ
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"
1e487827 10238
698dcdb6
VZ
10239fi
10240if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10241 echo "$ac_t""yes" 1>&6
10242 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10243else
10244 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10245fi
10246
10247 fi
10248
10249 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10250 # socket/setsockopt and other routines are undefined under SCO ODT
10251 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
10252 # on later versions), says simon@lia.di.epfl.ch: it contains
10253 # gethostby* variants that don't use the nameserver (or something).
10254 # -lsocket must be given before -lnsl if both are needed.
10255 # We assume that if connect needs -lnsl, so does gethostbyname.
10256 echo $ac_n "checking for connect""... $ac_c" 1>&6
c39c53e9 10257echo "configure:10258: checking for connect" >&5
698dcdb6
VZ
10258if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10259 echo $ac_n "(cached) $ac_c" 1>&6
10260else
10261 cat > conftest.$ac_ext <<EOF
c39c53e9 10262#line 10263 "configure"
ab9b9eab
VZ
10263#include "confdefs.h"
10264/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10265 which can conflict with char connect(); below. */
ab9b9eab
VZ
10266#include <assert.h>
10267/* Override any gcc2 internal prototype to avoid an error. */
10268/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10269 builtin and then its argument prototype would still apply. */
10270char connect();
10271
10272int main() {
ab9b9eab
VZ
10273
10274/* The GNU C library defines this for functions which it implements
10275 to always fail with ENOSYS. Some functions are actually named
10276 something starting with __ and the normal name is an alias. */
10277#if defined (__stub_connect) || defined (__stub___connect)
10278choke me
10279#else
698dcdb6 10280connect();
ab9b9eab
VZ
10281#endif
10282
698dcdb6
VZ
10283; return 0; }
10284EOF
c39c53e9 10285if { (eval echo configure:10286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10286 rm -rf conftest*
10287 eval "ac_cv_func_connect=yes"
10288else
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10291 rm -rf conftest*
10292 eval "ac_cv_func_connect=no"
10293fi
10294rm -f conftest*
10295fi
10296
10297if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10298 echo "$ac_t""yes" 1>&6
10299 :
10300else
10301 echo "$ac_t""no" 1>&6
10302fi
ab9b9eab
VZ
10303
10304 if test $ac_cv_func_connect = no; then
698dcdb6 10305 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
c39c53e9 10306echo "configure:10307: checking for connect in -lsocket" >&5
698dcdb6
VZ
10307ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10308if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10309 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10310else
698dcdb6 10311 ac_save_LIBS="$LIBS"
ab9b9eab 10312LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 10313cat > conftest.$ac_ext <<EOF
c39c53e9 10314#line 10315 "configure"
ab9b9eab
VZ
10315#include "confdefs.h"
10316/* Override any gcc2 internal prototype to avoid an error. */
10317/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10318 builtin and then its argument prototype would still apply. */
10319char connect();
10320
10321int main() {
10322connect()
10323; return 0; }
10324EOF
c39c53e9 10325if { (eval echo configure:10326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10326 rm -rf conftest*
10327 eval "ac_cv_lib_$ac_lib_var=yes"
10328else
10329 echo "configure: failed program was:" >&5
10330 cat conftest.$ac_ext >&5
10331 rm -rf conftest*
10332 eval "ac_cv_lib_$ac_lib_var=no"
10333fi
10334rm -f conftest*
10335LIBS="$ac_save_LIBS"
10336
10337fi
10338if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10339 echo "$ac_t""yes" 1>&6
ab9b9eab 10340 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
10341else
10342 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10343fi
10344
10345 fi
10346
698dcdb6
VZ
10347 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10348 echo $ac_n "checking for remove""... $ac_c" 1>&6
c39c53e9 10349echo "configure:10350: checking for remove" >&5
698dcdb6
VZ
10350if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10351 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10352else
698dcdb6 10353 cat > conftest.$ac_ext <<EOF
c39c53e9 10354#line 10355 "configure"
ab9b9eab
VZ
10355#include "confdefs.h"
10356/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10357 which can conflict with char remove(); below. */
ab9b9eab
VZ
10358#include <assert.h>
10359/* Override any gcc2 internal prototype to avoid an error. */
10360/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10361 builtin and then its argument prototype would still apply. */
10362char remove();
10363
10364int main() {
ab9b9eab
VZ
10365
10366/* The GNU C library defines this for functions which it implements
10367 to always fail with ENOSYS. Some functions are actually named
10368 something starting with __ and the normal name is an alias. */
10369#if defined (__stub_remove) || defined (__stub___remove)
10370choke me
10371#else
698dcdb6 10372remove();
ab9b9eab
VZ
10373#endif
10374
698dcdb6
VZ
10375; return 0; }
10376EOF
c39c53e9 10377if { (eval echo configure:10378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10378 rm -rf conftest*
10379 eval "ac_cv_func_remove=yes"
10380else
10381 echo "configure: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10383 rm -rf conftest*
10384 eval "ac_cv_func_remove=no"
10385fi
10386rm -f conftest*
10387fi
10388
10389if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10390 echo "$ac_t""yes" 1>&6
10391 :
10392else
10393 echo "$ac_t""no" 1>&6
10394fi
ab9b9eab
VZ
10395
10396 if test $ac_cv_func_remove = no; then
698dcdb6 10397 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
c39c53e9 10398echo "configure:10399: checking for remove in -lposix" >&5
698dcdb6
VZ
10399ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10400if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10401 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10402else
698dcdb6 10403 ac_save_LIBS="$LIBS"
ab9b9eab 10404LIBS="-lposix $LIBS"
698dcdb6 10405cat > conftest.$ac_ext <<EOF
c39c53e9 10406#line 10407 "configure"
ab9b9eab
VZ
10407#include "confdefs.h"
10408/* Override any gcc2 internal prototype to avoid an error. */
10409/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10410 builtin and then its argument prototype would still apply. */
10411char remove();
10412
10413int main() {
10414remove()
10415; return 0; }
10416EOF
c39c53e9 10417if { (eval echo configure:10418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10418 rm -rf conftest*
10419 eval "ac_cv_lib_$ac_lib_var=yes"
10420else
10421 echo "configure: failed program was:" >&5
10422 cat conftest.$ac_ext >&5
10423 rm -rf conftest*
10424 eval "ac_cv_lib_$ac_lib_var=no"
10425fi
10426rm -f conftest*
10427LIBS="$ac_save_LIBS"
10428
10429fi
10430if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10431 echo "$ac_t""yes" 1>&6
ab9b9eab 10432 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
10433else
10434 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10435fi
10436
10437 fi
10438
10439 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 10440 echo $ac_n "checking for shmat""... $ac_c" 1>&6
c39c53e9 10441echo "configure:10442: checking for shmat" >&5
698dcdb6
VZ
10442if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10443 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10444else
698dcdb6 10445 cat > conftest.$ac_ext <<EOF
c39c53e9 10446#line 10447 "configure"
ab9b9eab
VZ
10447#include "confdefs.h"
10448/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10449 which can conflict with char shmat(); below. */
ab9b9eab
VZ
10450#include <assert.h>
10451/* Override any gcc2 internal prototype to avoid an error. */
10452/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10453 builtin and then its argument prototype would still apply. */
10454char shmat();
10455
10456int main() {
ab9b9eab
VZ
10457
10458/* The GNU C library defines this for functions which it implements
10459 to always fail with ENOSYS. Some functions are actually named
10460 something starting with __ and the normal name is an alias. */
10461#if defined (__stub_shmat) || defined (__stub___shmat)
10462choke me
10463#else
698dcdb6 10464shmat();
ab9b9eab
VZ
10465#endif
10466
698dcdb6
VZ
10467; return 0; }
10468EOF
c39c53e9 10469if { (eval echo configure:10470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10470 rm -rf conftest*
10471 eval "ac_cv_func_shmat=yes"
10472else
10473 echo "configure: failed program was:" >&5
10474 cat conftest.$ac_ext >&5
10475 rm -rf conftest*
10476 eval "ac_cv_func_shmat=no"
10477fi
10478rm -f conftest*
10479fi
10480
10481if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10482 echo "$ac_t""yes" 1>&6
10483 :
10484else
10485 echo "$ac_t""no" 1>&6
10486fi
ab9b9eab
VZ
10487
10488 if test $ac_cv_func_shmat = no; then
698dcdb6 10489 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
c39c53e9 10490echo "configure:10491: checking for shmat in -lipc" >&5
698dcdb6
VZ
10491ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10492if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10493 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10494else
698dcdb6 10495 ac_save_LIBS="$LIBS"
ab9b9eab 10496LIBS="-lipc $LIBS"
698dcdb6 10497cat > conftest.$ac_ext <<EOF
c39c53e9 10498#line 10499 "configure"
ab9b9eab
VZ
10499#include "confdefs.h"
10500/* Override any gcc2 internal prototype to avoid an error. */
10501/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10502 builtin and then its argument prototype would still apply. */
10503char shmat();
10504
10505int main() {
10506shmat()
10507; return 0; }
10508EOF
c39c53e9 10509if { (eval echo configure:10510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10510 rm -rf conftest*
10511 eval "ac_cv_lib_$ac_lib_var=yes"
10512else
10513 echo "configure: failed program was:" >&5
10514 cat conftest.$ac_ext >&5
10515 rm -rf conftest*
10516 eval "ac_cv_lib_$ac_lib_var=no"
10517fi
10518rm -f conftest*
10519LIBS="$ac_save_LIBS"
10520
10521fi
10522if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10523 echo "$ac_t""yes" 1>&6
ab9b9eab 10524 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
10525else
10526 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10527fi
10528
10529 fi
10530 fi
10531
10532 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 10533 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
10534 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10535 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10536 # check for ICE first), but we must link in the order -lSM -lICE or
10537 # we get undefined symbols. So assume we have SM if we have ICE.
10538 # These have to be linked with before -lX11, unlike the other
10539 # libraries we check for below, so use a different variable.
698dcdb6
VZ
10540 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10541 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
c39c53e9 10542echo "configure:10543: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
10543ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10544if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10545 echo $ac_n "(cached) $ac_c" 1>&6
10546else
10547 ac_save_LIBS="$LIBS"
ab9b9eab 10548LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 10549cat > conftest.$ac_ext <<EOF
c39c53e9 10550#line 10551 "configure"
ab9b9eab
VZ
10551#include "confdefs.h"
10552/* Override any gcc2 internal prototype to avoid an error. */
10553/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10554 builtin and then its argument prototype would still apply. */
10555char IceConnectionNumber();
10556
10557int main() {
10558IceConnectionNumber()
10559; return 0; }
10560EOF
c39c53e9 10561if { (eval echo configure:10562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10562 rm -rf conftest*
10563 eval "ac_cv_lib_$ac_lib_var=yes"
10564else
10565 echo "configure: failed program was:" >&5
10566 cat conftest.$ac_ext >&5
10567 rm -rf conftest*
10568 eval "ac_cv_lib_$ac_lib_var=no"
10569fi
10570rm -f conftest*
10571LIBS="$ac_save_LIBS"
10572
10573fi
10574if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10575 echo "$ac_t""yes" 1>&6
ab9b9eab 10576 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
10577else
10578 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10579fi
10580
698dcdb6 10581 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
10582
10583fi
10584
1e6feb95
VZ
10585 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10586 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 10587
1e6feb95
VZ
10588 if test "$wxUSE_MOTIF" = 1; then
10589 if test "$no_x" = "yes"; then
10590 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10591 fi
ab9b9eab 10592
1e6feb95
VZ
10593 GUI_TK_LIBRARY="$X_LIBS"
10594 TOOLKIT_INCLUDE="$X_CFLAGS"
ab9b9eab 10595
1e6feb95 10596 AFMINSTALL=afminstall
dad6c0ea 10597
1e6feb95
VZ
10598
10599 COMPILED_X_PROGRAM=0
cd6d6d5b 10600
1e6feb95 10601 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
c39c53e9 10602echo "configure:10603: checking for Motif/Lesstif headers" >&5
1e6feb95 10603
ab9b9eab
VZ
10604ac_find_includes=
10605for ac_dir in $SEARCH_INCLUDE;
10606 do
10607 if test -f "$ac_dir/Xm/Xm.h"; then
10608 ac_find_includes=$ac_dir
10609 break
10610 fi
10611 done
10612
1e6feb95
VZ
10613 if test "$ac_find_includes" != "" ; then
10614 echo "$ac_t""found $ac_find_includes" 1>&6
10615 else
10616 cat > conftest.$ac_ext <<EOF
c39c53e9 10617#line 10618 "configure"
cd6d6d5b
VZ
10618#include "confdefs.h"
10619
1e6feb95
VZ
10620 #include <Xm/Xm.h>
10621
698dcdb6 10622int main() {
cd6d6d5b 10623
1e6feb95 10624 int version;
cd6d6d5b 10625
1e6feb95
VZ
10626 version = xmUseVersion;
10627
698dcdb6
VZ
10628; return 0; }
10629EOF
c39c53e9 10630if { (eval echo configure:10631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10631 rm -rf conftest*
10632
1e6feb95
VZ
10633 echo "$ac_t""found in default search path" 1>&6
10634 COMPILED_X_PROGRAM=1
10635
cd6d6d5b 10636else
698dcdb6
VZ
10637 echo "configure: failed program was:" >&5
10638 cat conftest.$ac_ext >&5
10639 rm -rf conftest*
10640
1e6feb95
VZ
10641 echo "$ac_t""no" 1>&6
10642 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10643
698dcdb6 10644
cd6d6d5b 10645fi
698dcdb6 10646rm -f conftest*
1e6feb95 10647 fi
ab9b9eab 10648
1e6feb95
VZ
10649 if test "$COMPILED_X_PROGRAM" = 0; then
10650 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
c39c53e9 10651echo "configure:10652: checking for Motif/Lesstif library" >&5
1e6feb95 10652
ab9b9eab
VZ
10653ac_find_libraries=
10654for ac_dir in $SEARCH_LIB;
10655 do
f11bdd03 10656 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10657 if test -f "$ac_dir/libXm.$ac_extension"; then
10658 ac_find_libraries=$ac_dir
10659 break 2
10660 fi
10661 done
10662 done
10663
1e6feb95
VZ
10664 if test "$ac_find_libraries" != "" ; then
10665
ab9b9eab
VZ
10666 ac_path_to_include=$ac_find_includes
10667 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10668 result=$?
10669 if test $result = 0; then
10670 ac_path_to_include=""
10671 else
10672 ac_path_to_include="-I$ac_find_includes"
10673 fi
10674
1e6feb95 10675
ab9b9eab
VZ
10676 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10677 result=$?
10678 if test $result = 0; then
10679 ac_path_to_link=""
10680 else
10681 ac_path_to_link="-L$ac_find_libraries"
10682 fi
10683
698dcdb6 10684
1e6feb95
VZ
10685 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10686 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10687 echo "$ac_t""found at $ac_find_libraries" 1>&6
10688 else
10689 cat > conftest.$ac_ext <<EOF
c39c53e9 10690#line 10691 "configure"
cd6d6d5b 10691#include "confdefs.h"
ab9b9eab 10692
1e6feb95
VZ
10693 #include <Xm/Xm.h>
10694
698dcdb6 10695int main() {
ab9b9eab 10696
1e6feb95 10697 int version;
ab9b9eab 10698
1e6feb95
VZ
10699 version = xmUseVersion;
10700
698dcdb6
VZ
10701; return 0; }
10702EOF
c39c53e9 10703if { (eval echo configure:10704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10704 rm -rf conftest*
10705
1e6feb95
VZ
10706 echo "$ac_t""found in default search path" 1>&6
10707 COMPILED_X_PROGRAM=1
10708
cd6d6d5b 10709else
698dcdb6
VZ
10710 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10712 rm -rf conftest*
10713
1e6feb95
VZ
10714 echo "$ac_t""no" 1>&6
10715 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10716
698dcdb6 10717
cd6d6d5b 10718fi
698dcdb6 10719rm -f conftest*
1e6feb95 10720 fi
cd6d6d5b 10721 fi
ab9b9eab 10722
1e6feb95
VZ
10723
10724 XPM_LINK=""
10725 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
c39c53e9 10726echo "configure:10727: checking for Xpm library" >&5
1e6feb95 10727
ab9b9eab
VZ
10728ac_find_libraries=
10729for ac_dir in $SEARCH_LIB;
10730 do
f11bdd03 10731 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10732 if test -f "$ac_dir/libXpm.$ac_extension"; then
10733 ac_find_libraries=$ac_dir
10734 break 2
10735 fi
10736 done
10737 done
10738
1e6feb95
VZ
10739 if test "$ac_find_libraries" != "" ; then
10740
ab9b9eab
VZ
10741 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10742 result=$?
10743 if test $result = 0; then
10744 ac_path_to_link=""
10745 else
10746 ac_path_to_link="-L$ac_find_libraries"
10747 fi
10748
1e6feb95
VZ
10749 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10750 XPM_LINK="-lXpm "
10751 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10752#define wxHAVE_LIB_XPM 1
10753EOF
10754
1e6feb95
VZ
10755 echo "$ac_t""found at $ac_find_libraries" 1>&6
10756 else
10757 cat > conftest.$ac_ext <<EOF
c39c53e9 10758#line 10759 "configure"
cd6d6d5b
VZ
10759#include "confdefs.h"
10760
1e6feb95
VZ
10761 #include <X11/xpm.h>
10762
698dcdb6 10763int main() {
cd6d6d5b 10764
1e6feb95 10765 int version;
cd6d6d5b 10766
1e6feb95
VZ
10767 version = XpmLibraryVersion();
10768
698dcdb6
VZ
10769; return 0; }
10770EOF
c39c53e9 10771if { (eval echo configure:10772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10772 rm -rf conftest*
10773
1e6feb95
VZ
10774 XPM_LINK="-lXpm "
10775 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10776#define wxHAVE_LIB_XPM 1
10777EOF
10778
1e6feb95
VZ
10779 echo "$ac_t""found in default search path" 1>&6
10780 COMPILED_X_PROGRAM=0
10781
cd6d6d5b 10782else
698dcdb6
VZ
10783 echo "configure: failed program was:" >&5
10784 cat conftest.$ac_ext >&5
10785 rm -rf conftest*
10786
1e6feb95
VZ
10787 echo "$ac_t""no" 1>&6
10788 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10789
698dcdb6 10790
cd6d6d5b 10791fi
698dcdb6 10792rm -f conftest*
1e6feb95
VZ
10793 fi
10794
10795 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10796 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10797 TOOLKIT=MOTIF
10798 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10799 fi
10800
1e6feb95
VZ
10801 if test "$wxUSE_MAC" = 1; then
10802 TOOLKIT=MAC
10803 GUIDIST=MACX_DIST
10804 fi
10f2d63a 10805
1e6feb95
VZ
10806 if test "$wxUSE_PM" = 1; then
10807 TOOLKIT=PM
10808 GUIDIST=GTK_DIST
10809 fi
b4085ce6 10810
1e6feb95
VZ
10811 if test "$TOOLKIT" != "PM" ; then
10812 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10813 else
10814 TOOLKIT_DIR="os2"
10815 fi
e07802fc 10816
1e6feb95 10817 TOOLKIT_NAME="${TOOLKIT_DIR}"
10f2d63a 10818
1e6feb95
VZ
10819 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10820
10821 if test "$TOOLKIT_NAME" = "motif"; then
10822 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10823 fi
10824
10825 if test "$wxUSE_UNIVERSAL" = "yes"; then
10826 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10827 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10828 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10829 SETUPH_DIR="univ"
f6bcfd97 10830 else
1e6feb95
VZ
10831 SETUPH_DIR="${TOOLKIT_DIR}"
10832 fi
10833
10834 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10835 TOOLKIT_NAME="${TOOLKIT_NAME}d"
f6bcfd97
BP
10836 fi
10837
2224580a 10838 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
1e6feb95
VZ
10839 if test "$wxUSE_UNIVERSAL" = "yes"; then
10840 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10841 fi
10f2d63a 10842
f6bcfd97 10843 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 10844
1e6feb95
VZ
10845 if test "$wxUSE_UNIVERSAL" = "yes"; then
10846 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10847 else
10848 ALL_OBJECTS="\$(GUIOBJS)"
10849 fi
10850
10851 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10852
10853 if test "$TOOLKIT" != "MSW"; then
10854 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10855 fi
10856
10857 if test "$wxUSE_HTML" = "yes"; then
10858 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10859 fi
3fcdd07b 10860
1e6feb95
VZ
10861 if test "$TOOLKIT" != "MSW"; then
10862 if test "$wxUSE_ODBC" = "yes" ; then
10863 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10864 fi
3fcdd07b
VZ
10865 fi
10866
831b3152
VZ
10867 if test "x$REGEX_INCLUDE" != "x" ; then
10868 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10869 fi
10870
d9d8273d 10871 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10872 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10873 fi
10874 if test "$wxUSE_LIBTIFF" = "yes" ; then
10875 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10876 fi
10877 if test "$wxUSE_LIBPNG" = "yes" ; then
10878 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10879 fi
10880 if test "$wxUSE_ZLIB" = "yes" ; then
10881 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10882 fi
3fed1840
RR
10883 if test "$wxUSE_FREETYPE" = "yes" ; then
10884 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10885 fi
2224580a 10886
1e6feb95
VZ
10887 if test "$wxUSE_UNIVERSAL" = "yes"; then
10888 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10889 else
10890 ALL_DEPFILES="\$(GUIDEPS)"
10891 fi
10892
10893 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10894
10895 if test "$TOOLKIT" != "MSW"; then
10896 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10897 fi
10898
10899 if test "$wxUSE_HTML" = "yes"; then
10900 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10901 fi
10902
879df073 10903 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 10904 if test "$wxUSE_UNIVERSAL" = "yes"; then
879df073 10905 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
1e6feb95 10906 fi
2224580a
VZ
10907 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10908 RPM_SPEC="wx\$(TOOLKIT).spec"
10909
10910 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10911 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 10912else
dad6c0ea
VZ
10913 USE_GUI=0
10914
f6bcfd97
BP
10915 TOOLKIT_DIR="base"
10916
0b2effe9
VZ
10917 TOOLKIT_VPATH="."
10918
f6bcfd97
BP
10919 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10920 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10921 else
10922 TOOLKIT_NAME="${TOOLKIT_DIR}"
10923 fi
10924
07eb77a6
RL
10925 TOOLKIT_DEF="-D__WXBASE__"
10926
b4085ce6
GD
10927 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10928 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 10929
0b2effe9
VZ
10930 if test "x$REGEX_INCLUDE" != "x" ; then
10931 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10932 fi
10933
a20b6d3a
VZ
10934 if test "$wxUSE_ZLIB" = "yes" ; then
10935 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10936 fi
10937
f6bcfd97 10938 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a 10939
831b3152 10940 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
10941 RPM_FILES="src/rpmfiles.lst"
10942 RPM_SPEC="wxBase.spec"
10943
10944 GUIDIST="BASE_DIST"
10945 DISTDIR="wxBase"
10f2d63a
VZ
10946fi
10947
10948WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 10949WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
10950
10951WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 10952WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a 10953
18dbb1f6
VZ
10954case "${host}" in
10955 *-*-mingw32* )
10956 WX_LIBRARY_NAME_SHARED="wx${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}_${WX_RELEASE_NUMBER}.dll"
10957 ;;
10958 * )
10959 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10960 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10961 ;;
10962esac
10f2d63a
VZ
10963
10964WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10965WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10966WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
10967WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10968WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10969WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
10970
10971SHARED_LD=
10972PIC_FLAG=
10973WX_ALL=
10974WX_ALL_INSTALLED=
1d62a8b4 10975BURNT_LIBRARY_NAME=
f6bcfd97 10976WX_TARGET_LIBRARY_SONAME=
10f2d63a 10977
698dcdb6 10978
10f2d63a
VZ
10979if test "$wxUSE_SHARED" = "yes"; then
10980 case "${host}" in
10981 *-hp-hpux* )
10982 if test "$GCC" = yes ; then
6b076b40 10983 SHARED_LD="${CXX} -shared -fPIC -o"
10f2d63a
VZ
10984 PIC_FLAG="-fPIC"
10985 else
f6bcfd97
BP
10986 LDFLAGS="-L/usr/lib"
10987
10f2d63a
VZ
10988 SHARED_LD="${CXX} -b -o"
10989 PIC_FLAG="+Z"
10990 fi
f6bcfd97
BP
10991 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10992 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 10993 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 10994 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
10995 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10996 else
10997 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10998 fi
10f2d63a 10999 ;;
b12915c1
VZ
11000
11001 *-*-linux* )
6b076b40 11002 SHARED_LD="${CXX} -shared -o"
10f2d63a 11003 PIC_FLAG="-fPIC"
00cf1208 11004 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 11005 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 11006 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 11007 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 11008 fi
c661ecca
RR
11009 if test "$wxUSE_OPENGL" = "yes"; then
11010 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11011 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11012 else
11013 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11014 WX_ALL="CREATE_LINKS"
422107f9 11015 fi
00cf1208 11016 ;;
10f2d63a
VZ
11017 *-*-irix5* | *-*-irix6* )
11018 if test "$GCC" = yes ; then
6b076b40 11019 SHARED_LD="${CXX} -shared -o"
10f2d63a
VZ
11020 PIC_FLAG="-fPIC"
11021 else
11022 SHARED_LD="${CXX} -shared -o"
11023 fi
c661ecca
RR
11024 if test "$wxUSE_OPENGL" = "yes"; then
11025 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11026 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11027 else
11028 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11029 WX_ALL="CREATE_LINKS"
422107f9 11030 fi
10f2d63a
VZ
11031 ;;
11032 *-*-solaris2* )
11033 if test "$GCC" = yes ; then
6b076b40 11034 SHARED_LD="${CXX} -shared -o"
10f2d63a 11035 PIC_FLAG="-fPIC"
f6bcfd97
BP
11036
11037 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
11038 else
11039 SHARED_LD="${CXX} -G -o"
11040 PIC_FLAG="-KPIC"
11041 fi
c661ecca
RR
11042 if test "$wxUSE_OPENGL" = "yes"; then
11043 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11044 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11045 else
11046 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11047 WX_ALL="CREATE_LINKS"
11048 fi
10f2d63a
VZ
11049 ;;
11050 *-*-sunos4* )
6b076b40 11051 SHARED_LD="${CXX} -shared -o"
10f2d63a
VZ
11052 PIC_FLAG="-fPIC"
11053 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11054 WX_ALL="CREATE_LINKS"
11055 ;;
95c8801c 11056 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
6b076b40 11057 SHARED_LD="${CXX} -shared -o"
10f2d63a 11058 PIC_FLAG="-fPIC"
37d403aa
JS
11059 if test "$wxUSE_OPENGL" = "yes"; then
11060 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11061 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11062 else
11063 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11064 WX_ALL="CREATE_LINKS"
11065 fi
10f2d63a 11066 ;;
b4085ce6 11067 *-*-darwin* )
f11bdd03
GD
11068 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
11069 CFLAGS="${CFLAGS} -fno-common"
11070 CPPFLAGS="${CPPFLAGS} -fno-common"
ea5999b9
GD
11071 SHARED_LD="${CXX} -dynamiclib -o"
11072 PIC_FLAG="-dynamic -fPIC"
b4085ce6
GD
11073 if test "$wxUSE_OPENGL" = "yes"; then
11074 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11075 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11076 else
11077 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11078 WX_ALL="CREATE_LINKS"
11079 fi
f11bdd03
GD
11080 if test "$wxUSE_MAC" = 1 ; then
11081 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
11082 fi
1e6feb95
VZ
11083 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11084 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11085 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
11086 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
11087 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
11088 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
11089 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
11090 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
b4085ce6 11091 ;;
10f2d63a
VZ
11092 *-*-osf* )
11093 SHARED_LD="${CXX} -shared -o"
11094 PIC_FLAG="-fPIC"
11095 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11096 WX_ALL="CREATE_LINKS"
11097 ;;
11098 *-*-dgux5* )
11099 SHARED_LD="${CXX} -shared -o"
11100 PIC_FLAG="-fPIC"
11101 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11102 WX_ALL="CREATE_LINKS"
11103 ;;
11104 *-*-sysv5* )
6b076b40 11105 SHARED_LD="${CXX} -shared -o"
10f2d63a
VZ
11106 PIC_FLAG="-fPIC"
11107 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11108 WX_ALL="CREATE_LINKS"
11109 ;;
11110 *-*-aix* )
11111 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11112 WX_ALL=${WX_LIBRARY_NAME_SHARED}
11113 ;;
1c8183e2 11114 *-*-cygwin* )
10f2d63a 11115 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 11116 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
11117 if test "$wxUSE_OPENGL" = "yes"; then
11118 WX_ALL_INSTALLED="preinstall_gl"
11119 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11120 else
11121 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11122 fi
10f2d63a 11123 ;;
b12915c1 11124 *-*-mingw32* )
18dbb1f6
VZ
11125 WX_LIBRARY_NAME_STATIC="lib/libwx${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}_${WX_RELEASE_NUMBER}.a"
11126 SHARED_LD="${CC} -shared -Wl,--out-implib,${WX_LIBRARY_NAME_STATIC} -o"
11127 TOOLKIT_DEF="${TOOLKIT_DEF} -DWXUSINGDLL=1"
11128 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11129 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11130 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97
BP
11131 if test "$wxUSE_OPENGL" = "yes"; then
11132 WX_ALL_INSTALLED="preinstall_gl"
18dbb1f6 11133 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 11134 else
18dbb1f6 11135 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 11136 fi
10f2d63a
VZ
11137 ;;
11138 *-pc-os2_emx )
e07802fc
VZ
11139 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11140 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 11141 ;;
b12915c1 11142 *-*-beos* )
e2b8b066 11143 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
11144 PIC_FLAG="-fPIC"
11145 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11146 WX_ALL="CREATE_LINKS"
11147 ;;
10f2d63a 11148 *)
698dcdb6 11149 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
11150 esac
11151
11152 if test "x$WX_TARGET_LIBRARY" = "x"; then
11153 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 11154 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 11155 fi
3711412e 11156 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
11157else
11158 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 11159 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
11160
11161 if test "$wxUSE_OPENGL" = "yes"; then
11162 WX_ALL_INSTALLED="preinstall_gl"
11163 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11164 else
11165 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11166 fi
11167
11168 if test "$wxUSE_GUI" = "no"; then
11169 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11170 fi
11171
3711412e 11172 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
11173fi
11174
698dcdb6
VZ
11175
11176for ac_hdr in strings.h
10f2d63a 11177do
698dcdb6
VZ
11178ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11179echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c39c53e9 11180echo "configure:11181: checking for $ac_hdr" >&5
698dcdb6
VZ
11181if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11182 echo $ac_n "(cached) $ac_c" 1>&6
11183else
11184 cat > conftest.$ac_ext <<EOF
c39c53e9 11185#line 11186 "configure"
10f2d63a 11186#include "confdefs.h"
698dcdb6
VZ
11187#include <$ac_hdr>
11188EOF
11189ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 11190{ (eval echo configure:11191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11191ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11192if test -z "$ac_err"; then
11193 rm -rf conftest*
11194 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11195else
698dcdb6
VZ
11196 echo "$ac_err" >&5
11197 echo "configure: failed program was:" >&5
10f2d63a 11198 cat conftest.$ac_ext >&5
698dcdb6
VZ
11199 rm -rf conftest*
11200 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11201fi
698dcdb6 11202rm -f conftest*
10f2d63a 11203fi
698dcdb6
VZ
11204if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11205 echo "$ac_t""yes" 1>&6
11206 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11207 cat >> confdefs.h <<EOF
11208#define $ac_tr_hdr 1
10f2d63a 11209EOF
698dcdb6
VZ
11210
11211else
11212 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11213fi
11214done
11215
698dcdb6 11216for ac_hdr in stdlib.h
9cfadba2 11217do
698dcdb6
VZ
11218ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11219echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c39c53e9 11220echo "configure:11221: checking for $ac_hdr" >&5
698dcdb6
VZ
11221if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11222 echo $ac_n "(cached) $ac_c" 1>&6
11223else
11224 cat > conftest.$ac_ext <<EOF
c39c53e9 11225#line 11226 "configure"
9cfadba2 11226#include "confdefs.h"
698dcdb6
VZ
11227#include <$ac_hdr>
11228EOF
11229ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 11230{ (eval echo configure:11231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11231ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11232if test -z "$ac_err"; then
11233 rm -rf conftest*
11234 eval "ac_cv_header_$ac_safe=yes"
6232543b 11235else
698dcdb6
VZ
11236 echo "$ac_err" >&5
11237 echo "configure: failed program was:" >&5
9cfadba2 11238 cat conftest.$ac_ext >&5
698dcdb6
VZ
11239 rm -rf conftest*
11240 eval "ac_cv_header_$ac_safe=no"
9cfadba2 11241fi
698dcdb6 11242rm -f conftest*
9cfadba2 11243fi
698dcdb6
VZ
11244if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11245 echo "$ac_t""yes" 1>&6
11246 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11247 cat >> confdefs.h <<EOF
11248#define $ac_tr_hdr 1
9cfadba2 11249EOF
698dcdb6
VZ
11250
11251else
11252 echo "$ac_t""no" 1>&6
9cfadba2
VZ
11253fi
11254done
10f2d63a 11255
698dcdb6 11256for ac_hdr in unistd.h
10f2d63a 11257do
698dcdb6
VZ
11258ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11259echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c39c53e9 11260echo "configure:11261: checking for $ac_hdr" >&5
698dcdb6
VZ
11261if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11262 echo $ac_n "(cached) $ac_c" 1>&6
11263else
11264 cat > conftest.$ac_ext <<EOF
c39c53e9 11265#line 11266 "configure"
10f2d63a 11266#include "confdefs.h"
698dcdb6
VZ
11267#include <$ac_hdr>
11268EOF
11269ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 11270{ (eval echo configure:11271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11271ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11272if test -z "$ac_err"; then
11273 rm -rf conftest*
11274 eval "ac_cv_header_$ac_safe=yes"
6232543b 11275else
698dcdb6
VZ
11276 echo "$ac_err" >&5
11277 echo "configure: failed program was:" >&5
10f2d63a 11278 cat conftest.$ac_ext >&5
698dcdb6
VZ
11279 rm -rf conftest*
11280 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11281fi
698dcdb6 11282rm -f conftest*
10f2d63a 11283fi
698dcdb6
VZ
11284if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11285 echo "$ac_t""yes" 1>&6
11286 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11287 cat >> confdefs.h <<EOF
11288#define $ac_tr_hdr 1
10f2d63a 11289EOF
698dcdb6
VZ
11290
11291else
11292 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11293fi
11294done
11295
698dcdb6 11296for ac_hdr in wchar.h
10f2d63a 11297do
698dcdb6
VZ
11298ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11299echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c39c53e9 11300echo "configure:11301: checking for $ac_hdr" >&5
698dcdb6
VZ
11301if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11302 echo $ac_n "(cached) $ac_c" 1>&6
11303else
11304 cat > conftest.$ac_ext <<EOF
c39c53e9 11305#line 11306 "configure"
10f2d63a 11306#include "confdefs.h"
698dcdb6
VZ
11307#include <$ac_hdr>
11308EOF
11309ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 11310{ (eval echo configure:11311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11311ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11312if test -z "$ac_err"; then
11313 rm -rf conftest*
11314 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11315else
698dcdb6
VZ
11316 echo "$ac_err" >&5
11317 echo "configure: failed program was:" >&5
6f72b082 11318 cat conftest.$ac_ext >&5
698dcdb6
VZ
11319 rm -rf conftest*
11320 eval "ac_cv_header_$ac_safe=no"
6f72b082 11321fi
698dcdb6 11322rm -f conftest*
6f72b082 11323fi
698dcdb6
VZ
11324if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11325 echo "$ac_t""yes" 1>&6
11326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11327 cat >> confdefs.h <<EOF
11328#define $ac_tr_hdr 1
6f72b082 11329EOF
698dcdb6
VZ
11330
11331else
11332 echo "$ac_t""no" 1>&6
6f72b082
OK
11333fi
11334done
11335
698dcdb6 11336for ac_hdr in wcstr.h
6f72b082 11337do
698dcdb6
VZ
11338ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11339echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c39c53e9 11340echo "configure:11341: checking for $ac_hdr" >&5
698dcdb6
VZ
11341if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11342 echo $ac_n "(cached) $ac_c" 1>&6
11343else
11344 cat > conftest.$ac_ext <<EOF
c39c53e9 11345#line 11346 "configure"
6f72b082 11346#include "confdefs.h"
698dcdb6
VZ
11347#include <$ac_hdr>
11348EOF
11349ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 11350{ (eval echo configure:11351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11351ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11352if test -z "$ac_err"; then
11353 rm -rf conftest*
11354 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11355else
698dcdb6
VZ
11356 echo "$ac_err" >&5
11357 echo "configure: failed program was:" >&5
6f72b082 11358 cat conftest.$ac_ext >&5
698dcdb6
VZ
11359 rm -rf conftest*
11360 eval "ac_cv_header_$ac_safe=no"
6f72b082 11361fi
698dcdb6 11362rm -f conftest*
6f72b082 11363fi
698dcdb6
VZ
11364if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11365 echo "$ac_t""yes" 1>&6
11366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11367 cat >> confdefs.h <<EOF
11368#define $ac_tr_hdr 1
6f72b082 11369EOF
698dcdb6
VZ
11370
11371else
11372 echo "$ac_t""no" 1>&6
6f72b082
OK
11373fi
11374done
11375
698dcdb6 11376for ac_hdr in fnmatch.h
6f72b082 11377do
698dcdb6
VZ
11378ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11379echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c39c53e9 11380echo "configure:11381: checking for $ac_hdr" >&5
698dcdb6
VZ
11381if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11382 echo $ac_n "(cached) $ac_c" 1>&6
11383else
11384 cat > conftest.$ac_ext <<EOF
c39c53e9 11385#line 11386 "configure"
6f72b082 11386#include "confdefs.h"
698dcdb6
VZ
11387#include <$ac_hdr>
11388EOF
11389ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 11390{ (eval echo configure:11391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11391ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11392if test -z "$ac_err"; then
11393 rm -rf conftest*
11394 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11395else
698dcdb6
VZ
11396 echo "$ac_err" >&5
11397 echo "configure: failed program was:" >&5
10f2d63a 11398 cat conftest.$ac_ext >&5
698dcdb6
VZ
11399 rm -rf conftest*
11400 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11401fi
698dcdb6 11402rm -f conftest*
10f2d63a 11403fi
698dcdb6
VZ
11404if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11405 echo "$ac_t""yes" 1>&6
11406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11407 cat >> confdefs.h <<EOF
11408#define $ac_tr_hdr 1
10f2d63a 11409EOF
698dcdb6
VZ
11410
11411else
11412 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11413fi
11414done
11415
698dcdb6 11416for ac_hdr in iconv.h
0fb0dd83 11417do
698dcdb6
VZ
11418ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11419echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c39c53e9 11420echo "configure:11421: checking for $ac_hdr" >&5
698dcdb6
VZ
11421if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11422 echo $ac_n "(cached) $ac_c" 1>&6
11423else
11424 cat > conftest.$ac_ext <<EOF
c39c53e9 11425#line 11426 "configure"
0fb0dd83 11426#include "confdefs.h"
698dcdb6
VZ
11427#include <$ac_hdr>
11428EOF
11429ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 11430{ (eval echo configure:11431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11431ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11432if test -z "$ac_err"; then
11433 rm -rf conftest*
11434 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 11435else
698dcdb6
VZ
11436 echo "$ac_err" >&5
11437 echo "configure: failed program was:" >&5
0fb0dd83 11438 cat conftest.$ac_ext >&5
698dcdb6
VZ
11439 rm -rf conftest*
11440 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 11441fi
698dcdb6 11442rm -f conftest*
0fb0dd83 11443fi
698dcdb6
VZ
11444if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11445 echo "$ac_t""yes" 1>&6
11446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11447 cat >> confdefs.h <<EOF
11448#define $ac_tr_hdr 1
0fb0dd83 11449EOF
698dcdb6
VZ
11450
11451else
11452 echo "$ac_t""no" 1>&6
0fb0dd83
RR
11453fi
11454done
11455
698dcdb6 11456for ac_hdr in langinfo.h
1f8ae82f 11457do
698dcdb6
VZ
11458ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11459echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c39c53e9 11460echo "configure:11461: checking for $ac_hdr" >&5
698dcdb6
VZ
11461if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11462 echo $ac_n "(cached) $ac_c" 1>&6
11463else
11464 cat > conftest.$ac_ext <<EOF
c39c53e9 11465#line 11466 "configure"
1f8ae82f 11466#include "confdefs.h"
698dcdb6
VZ
11467#include <$ac_hdr>
11468EOF
11469ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 11470{ (eval echo configure:11471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11471ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11472if test -z "$ac_err"; then
11473 rm -rf conftest*
11474 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 11475else
698dcdb6
VZ
11476 echo "$ac_err" >&5
11477 echo "configure: failed program was:" >&5
1f8ae82f 11478 cat conftest.$ac_ext >&5
698dcdb6
VZ
11479 rm -rf conftest*
11480 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 11481fi
698dcdb6 11482rm -f conftest*
1f8ae82f 11483fi
698dcdb6
VZ
11484if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11485 echo "$ac_t""yes" 1>&6
11486 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11487 cat >> confdefs.h <<EOF
11488#define $ac_tr_hdr 1
1f8ae82f 11489EOF
698dcdb6
VZ
11490
11491else
11492 echo "$ac_t""no" 1>&6
1f8ae82f
GD
11493fi
11494done
11495
698dcdb6 11496
73fd4a60
VZ
11497if test "$wxUSE_GUI" = "yes"; then
11498 if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 11499 for ac_hdr in X11/XKBlib.h
10f2d63a 11500do
698dcdb6
VZ
11501ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11502echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c39c53e9 11503echo "configure:11504: checking for $ac_hdr" >&5
698dcdb6
VZ
11504if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11505 echo $ac_n "(cached) $ac_c" 1>&6
11506else
11507 cat > conftest.$ac_ext <<EOF
c39c53e9 11508#line 11509 "configure"
10f2d63a 11509#include "confdefs.h"
698dcdb6
VZ
11510#include <$ac_hdr>
11511EOF
11512ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 11513{ (eval echo configure:11514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11514ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11515if test -z "$ac_err"; then
11516 rm -rf conftest*
11517 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11518else
698dcdb6
VZ
11519 echo "$ac_err" >&5
11520 echo "configure: failed program was:" >&5
10f2d63a 11521 cat conftest.$ac_ext >&5
698dcdb6
VZ
11522 rm -rf conftest*
11523 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11524fi
698dcdb6 11525rm -f conftest*
10f2d63a 11526fi
698dcdb6
VZ
11527if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11528 echo "$ac_t""yes" 1>&6
11529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11530 cat >> confdefs.h <<EOF
11531#define $ac_tr_hdr 1
10f2d63a 11532EOF
698dcdb6
VZ
11533
11534else
11535 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11536fi
11537done
11538
73fd4a60 11539 fi
10f2d63a
VZ
11540fi
11541
3e44f09d 11542if test "$USE_WIN32" = 1; then
29fd3c0c
VS
11543 for ac_hdr in w32api.h
11544do
11545ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11546echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c39c53e9 11547echo "configure:11548: checking for $ac_hdr" >&5
29fd3c0c
VS
11548if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11549 echo $ac_n "(cached) $ac_c" 1>&6
11550else
11551 cat > conftest.$ac_ext <<EOF
c39c53e9 11552#line 11553 "configure"
29fd3c0c
VS
11553#include "confdefs.h"
11554#include <$ac_hdr>
11555EOF
11556ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 11557{ (eval echo configure:11558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
11558ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11559if test -z "$ac_err"; then
11560 rm -rf conftest*
11561 eval "ac_cv_header_$ac_safe=yes"
11562else
11563 echo "$ac_err" >&5
11564 echo "configure: failed program was:" >&5
11565 cat conftest.$ac_ext >&5
11566 rm -rf conftest*
11567 eval "ac_cv_header_$ac_safe=no"
11568fi
11569rm -f conftest*
11570fi
11571if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11572 echo "$ac_t""yes" 1>&6
11573 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11574 cat >> confdefs.h <<EOF
11575#define $ac_tr_hdr 1
11576EOF
11577
11578else
11579 echo "$ac_t""no" 1>&6
11580fi
11581done
11582
11583fi
11584
698dcdb6
VZ
11585
11586echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
c39c53e9 11587echo "configure:11588: checking for ANSI C header files" >&5
698dcdb6
VZ
11588if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11589 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11590else
698dcdb6 11591 cat > conftest.$ac_ext <<EOF
c39c53e9 11592#line 11593 "configure"
10f2d63a
VZ
11593#include "confdefs.h"
11594#include <stdlib.h>
11595#include <stdarg.h>
11596#include <string.h>
11597#include <float.h>
698dcdb6
VZ
11598EOF
11599ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 11600{ (eval echo configure:11601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11601ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11602if test -z "$ac_err"; then
11603 rm -rf conftest*
10f2d63a
VZ
11604 ac_cv_header_stdc=yes
11605else
698dcdb6
VZ
11606 echo "$ac_err" >&5
11607 echo "configure: failed program was:" >&5
10f2d63a 11608 cat conftest.$ac_ext >&5
698dcdb6 11609 rm -rf conftest*
10f2d63a
VZ
11610 ac_cv_header_stdc=no
11611fi
698dcdb6 11612rm -f conftest*
10f2d63a
VZ
11613
11614if test $ac_cv_header_stdc = yes; then
11615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 11616cat > conftest.$ac_ext <<EOF
c39c53e9 11617#line 11618 "configure"
10f2d63a
VZ
11618#include "confdefs.h"
11619#include <string.h>
698dcdb6 11620EOF
10f2d63a
VZ
11621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11622 egrep "memchr" >/dev/null 2>&1; then
11623 :
11624else
698dcdb6 11625 rm -rf conftest*
10f2d63a
VZ
11626 ac_cv_header_stdc=no
11627fi
11628rm -f conftest*
11629
11630fi
11631
11632if test $ac_cv_header_stdc = yes; then
11633 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 11634cat > conftest.$ac_ext <<EOF
c39c53e9 11635#line 11636 "configure"
10f2d63a
VZ
11636#include "confdefs.h"
11637#include <stdlib.h>
698dcdb6 11638EOF
10f2d63a
VZ
11639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11640 egrep "free" >/dev/null 2>&1; then
11641 :
11642else
698dcdb6 11643 rm -rf conftest*
10f2d63a
VZ
11644 ac_cv_header_stdc=no
11645fi
11646rm -f conftest*
11647
11648fi
11649
11650if test $ac_cv_header_stdc = yes; then
11651 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 11652if test "$cross_compiling" = yes; then
10f2d63a
VZ
11653 :
11654else
698dcdb6 11655 cat > conftest.$ac_ext <<EOF
c39c53e9 11656#line 11657 "configure"
10f2d63a
VZ
11657#include "confdefs.h"
11658#include <ctype.h>
698dcdb6
VZ
11659#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11660#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 11661#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
11662int main () { int i; for (i = 0; i < 256; i++)
11663if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11664exit (0); }
11665
11666EOF
c39c53e9 11667if { (eval echo configure:11668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11668then
10f2d63a
VZ
11669 :
11670else
698dcdb6
VZ
11671 echo "configure: failed program was:" >&5
11672 cat conftest.$ac_ext >&5
11673 rm -fr conftest*
11674 ac_cv_header_stdc=no
10f2d63a 11675fi
698dcdb6 11676rm -fr conftest*
10f2d63a 11677fi
698dcdb6 11678
10f2d63a
VZ
11679fi
11680fi
1e487827 11681
698dcdb6
VZ
11682echo "$ac_t""$ac_cv_header_stdc" 1>&6
11683if test $ac_cv_header_stdc = yes; then
11684 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11685#define STDC_HEADERS 1
11686EOF
11687
11688fi
11689
698dcdb6 11690echo $ac_n "checking for mode_t""... $ac_c" 1>&6
c39c53e9 11691echo "configure:11692: checking for mode_t" >&5
698dcdb6
VZ
11692if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11693 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11694else
698dcdb6 11695 cat > conftest.$ac_ext <<EOF
c39c53e9 11696#line 11697 "configure"
1e487827 11697#include "confdefs.h"
698dcdb6
VZ
11698#include <sys/types.h>
11699#if STDC_HEADERS
11700#include <stdlib.h>
11701#include <stddef.h>
11702#endif
11703EOF
11704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11705 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11706 rm -rf conftest*
10f2d63a
VZ
11707 ac_cv_type_mode_t=yes
11708else
698dcdb6
VZ
11709 rm -rf conftest*
11710 ac_cv_type_mode_t=no
703e0a69 11711fi
698dcdb6 11712rm -f conftest*
1e487827 11713
698dcdb6
VZ
11714fi
11715echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11716if test $ac_cv_type_mode_t = no; then
11717 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11718#define mode_t int
11719EOF
11720
11721fi
11722
698dcdb6 11723echo $ac_n "checking for off_t""... $ac_c" 1>&6
c39c53e9 11724echo "configure:11725: checking for off_t" >&5
698dcdb6
VZ
11725if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11726 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11727else
698dcdb6 11728 cat > conftest.$ac_ext <<EOF
c39c53e9 11729#line 11730 "configure"
10f2d63a 11730#include "confdefs.h"
698dcdb6
VZ
11731#include <sys/types.h>
11732#if STDC_HEADERS
11733#include <stdlib.h>
11734#include <stddef.h>
11735#endif
11736EOF
11737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11738 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11739 rm -rf conftest*
10f2d63a
VZ
11740 ac_cv_type_off_t=yes
11741else
698dcdb6
VZ
11742 rm -rf conftest*
11743 ac_cv_type_off_t=no
703e0a69 11744fi
698dcdb6 11745rm -f conftest*
1e487827 11746
698dcdb6
VZ
11747fi
11748echo "$ac_t""$ac_cv_type_off_t" 1>&6
11749if test $ac_cv_type_off_t = no; then
11750 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11751#define off_t long
11752EOF
11753
11754fi
11755
698dcdb6 11756echo $ac_n "checking for pid_t""... $ac_c" 1>&6
c39c53e9 11757echo "configure:11758: checking for pid_t" >&5
698dcdb6
VZ
11758if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11759 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11760else
698dcdb6 11761 cat > conftest.$ac_ext <<EOF
c39c53e9 11762#line 11763 "configure"
10f2d63a 11763#include "confdefs.h"
698dcdb6
VZ
11764#include <sys/types.h>
11765#if STDC_HEADERS
11766#include <stdlib.h>
11767#include <stddef.h>
11768#endif
11769EOF
11770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11771 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11772 rm -rf conftest*
10f2d63a
VZ
11773 ac_cv_type_pid_t=yes
11774else
698dcdb6
VZ
11775 rm -rf conftest*
11776 ac_cv_type_pid_t=no
703e0a69 11777fi
698dcdb6 11778rm -f conftest*
1e487827 11779
698dcdb6
VZ
11780fi
11781echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11782if test $ac_cv_type_pid_t = no; then
11783 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11784#define pid_t int
11785EOF
11786
11787fi
11788
698dcdb6 11789echo $ac_n "checking for size_t""... $ac_c" 1>&6
c39c53e9 11790echo "configure:11791: checking for size_t" >&5
698dcdb6
VZ
11791if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11792 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11793else
698dcdb6 11794 cat > conftest.$ac_ext <<EOF
c39c53e9 11795#line 11796 "configure"
10f2d63a 11796#include "confdefs.h"
698dcdb6
VZ
11797#include <sys/types.h>
11798#if STDC_HEADERS
11799#include <stdlib.h>
11800#include <stddef.h>
11801#endif
11802EOF
11803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11804 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11805 rm -rf conftest*
10f2d63a
VZ
11806 ac_cv_type_size_t=yes
11807else
698dcdb6
VZ
11808 rm -rf conftest*
11809 ac_cv_type_size_t=no
703e0a69 11810fi
698dcdb6 11811rm -f conftest*
1e487827 11812
698dcdb6
VZ
11813fi
11814echo "$ac_t""$ac_cv_type_size_t" 1>&6
11815if test $ac_cv_type_size_t = no; then
11816 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11817#define size_t unsigned
11818EOF
11819
11820fi
11821
698dcdb6 11822echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
c39c53e9 11823echo "configure:11824: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
11824if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11825 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11826else
698dcdb6 11827 cat > conftest.$ac_ext <<EOF
c39c53e9 11828#line 11829 "configure"
10f2d63a
VZ
11829#include "confdefs.h"
11830#include <sys/types.h>
698dcdb6 11831EOF
10f2d63a
VZ
11832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11833 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 11834 rm -rf conftest*
10f2d63a
VZ
11835 ac_cv_type_uid_t=yes
11836else
698dcdb6 11837 rm -rf conftest*
10f2d63a
VZ
11838 ac_cv_type_uid_t=no
11839fi
11840rm -f conftest*
11841
11842fi
1e487827 11843
698dcdb6
VZ
11844echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11845if test $ac_cv_type_uid_t = no; then
11846 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11847#define uid_t int
11848EOF
11849
698dcdb6 11850 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11851#define gid_t int
11852EOF
11853
11854fi
11855
1e487827 11856
698dcdb6 11857echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
c39c53e9 11858echo "configure:11859: checking for wchar_t" >&5
698dcdb6
VZ
11859if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11860 echo $ac_n "(cached) $ac_c" 1>&6
11861else
11862
11863 cat > conftest.$ac_ext <<EOF
c39c53e9 11864#line 11865 "configure"
0046ff7c
VS
11865#include "confdefs.h"
11866#include <wchar.h>
698dcdb6 11867int main() {
0046ff7c 11868
d836ee96
VZ
11869 wchar_t wc, *ws;
11870 wc = L'a';
11871 ws = L"Hello, world!";
698dcdb6
VZ
11872
11873; return 0; }
11874EOF
c39c53e9 11875if { (eval echo configure:11876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11876 rm -rf conftest*
1f8ae82f
GD
11877 wx_cv_type_wchar_t=yes
11878else
698dcdb6
VZ
11879 echo "configure: failed program was:" >&5
11880 cat conftest.$ac_ext >&5
11881 rm -rf conftest*
11882 cat > conftest.$ac_ext <<EOF
c39c53e9 11883#line 11884 "configure"
1f8ae82f
GD
11884#include "confdefs.h"
11885#include <stdlib.h>
698dcdb6 11886int main() {
1f8ae82f 11887
d836ee96
VZ
11888 wchar_t wc, *ws;
11889 wc = L'a';
11890 ws = L"Hello, world!";
698dcdb6
VZ
11891
11892; return 0; }
11893EOF
c39c53e9 11894if { (eval echo configure:11895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11895 rm -rf conftest*
0046ff7c
VS
11896 wx_cv_type_wchar_t=yes
11897else
698dcdb6
VZ
11898 echo "configure: failed program was:" >&5
11899 cat conftest.$ac_ext >&5
11900 rm -rf conftest*
11901 wx_cv_type_wchar_t=no
0046ff7c 11902fi
698dcdb6 11903rm -f conftest*
d836ee96 11904
6232543b 11905fi
698dcdb6 11906rm -f conftest*
703e0a69 11907
1e487827 11908fi
698dcdb6
VZ
11909
11910echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
11911
11912if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 11913 cat >> confdefs.h <<\EOF
0046ff7c
VS
11914#define wxUSE_WCHAR_T 1
11915EOF
11916
11917fi
11918
19af3b06
VZ
11919
11920ac_ext=C
11921# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11922ac_cpp='$CXXCPP $CPPFLAGS'
11923ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11924ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11925cross_compiling=$ac_cv_prog_cxx_cross
11926
d836ee96 11927echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
c39c53e9 11928echo "configure:11929: checking if size_t is unsigned int" >&5
d836ee96
VZ
11929if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11930 echo $ac_n "(cached) $ac_c" 1>&6
11931else
dd2c8b7c 11932 cat > conftest.$ac_ext <<EOF
c39c53e9 11933#line 11934 "configure"
d836ee96
VZ
11934#include "confdefs.h"
11935#include <stddef.h>
11936int main() {
11937
dd2c8b7c
VZ
11938 return 0; }
11939
d836ee96 11940 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
11941
11942 int bar() {
d836ee96
VZ
11943
11944; return 0; }
11945EOF
c39c53e9 11946if { (eval echo configure:11947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11947 rm -rf conftest*
11948 wx_cv_size_t_is_uint=no
11949else
11950 echo "configure: failed program was:" >&5
11951 cat conftest.$ac_ext >&5
11952 rm -rf conftest*
11953 wx_cv_size_t_is_uint=yes
11954
11955fi
11956rm -f conftest*
11957
11958fi
11959
11960echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11961
11962if test "$wx_cv_size_t_is_uint" = "yes"; then
11963 cat >> confdefs.h <<\EOF
11964#define wxSIZE_T_IS_UINT 1
11965EOF
11966
11967else
11968 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
c39c53e9 11969echo "configure:11970: checking if size_t is unsigned long" >&5
d836ee96
VZ
11970if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11971 echo $ac_n "(cached) $ac_c" 1>&6
11972else
11973 cat > conftest.$ac_ext <<EOF
c39c53e9 11974#line 11975 "configure"
d836ee96
VZ
11975#include "confdefs.h"
11976#include <stddef.h>
11977int main() {
11978
dd2c8b7c
VZ
11979 return 0; }
11980
d836ee96 11981 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
11982
11983 int bar() {
d836ee96
VZ
11984
11985; return 0; }
11986EOF
c39c53e9 11987if { (eval echo configure:11988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11988 rm -rf conftest*
11989 wx_cv_size_t_is_ulong=no
11990else
11991 echo "configure: failed program was:" >&5
11992 cat conftest.$ac_ext >&5
11993 rm -rf conftest*
11994 wx_cv_size_t_is_ulong=yes
11995
11996fi
11997rm -f conftest*
11998
11999fi
12000
12001echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12002
12003 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12004 cat >> confdefs.h <<\EOF
12005#define wxSIZE_T_IS_ULONG 1
12006EOF
12007
12008 fi
12009fi
12010
19af3b06
VZ
12011ac_ext=c
12012# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12013ac_cpp='$CPP $CPPFLAGS'
12014ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12015ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12016cross_compiling=$ac_cv_prog_cc_cross
12017
12018
1e487827 12019
698dcdb6 12020echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
c39c53e9 12021echo "configure:12022: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
12022if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12023 echo $ac_n "(cached) $ac_c" 1>&6
12024else
12025
12026 cat > conftest.$ac_ext <<EOF
c39c53e9 12027#line 12028 "configure"
b12915c1
VZ
12028#include "confdefs.h"
12029#include <pwd.h>
698dcdb6 12030int main() {
b12915c1
VZ
12031
12032 char *p;
12033 struct passwd *pw;
12034 p = pw->pw_gecos;
698dcdb6
VZ
12035
12036; return 0; }
12037EOF
c39c53e9 12038if { (eval echo configure:12039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12039 rm -rf conftest*
12040
b12915c1 12041 wx_cv_struct_pw_gecos=yes
698dcdb6 12042
b12915c1 12043else
698dcdb6
VZ
12044 echo "configure: failed program was:" >&5
12045 cat conftest.$ac_ext >&5
12046 rm -rf conftest*
12047
b12915c1 12048 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
12049
12050
6232543b 12051fi
698dcdb6
VZ
12052rm -f conftest*
12053
703e0a69 12054
1e487827 12055fi
698dcdb6
VZ
12056
12057echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 12058
bd3277fe 12059if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 12060 cat >> confdefs.h <<\EOF
bd3277fe
VZ
12061#define HAVE_PW_GECOS 1
12062EOF
12063
12064fi
12065
698dcdb6
VZ
12066
12067echo $ac_n "checking for working const""... $ac_c" 1>&6
c39c53e9 12068echo "configure:12069: checking for working const" >&5
698dcdb6
VZ
12069if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12070 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12071else
698dcdb6 12072 cat > conftest.$ac_ext <<EOF
c39c53e9 12073#line 12074 "configure"
10f2d63a 12074#include "confdefs.h"
698dcdb6
VZ
12075
12076int main() {
12077
12078/* Ultrix mips cc rejects this. */
12079typedef int charset[2]; const charset x;
12080/* SunOS 4.1.1 cc rejects this. */
12081char const *const *ccp;
12082char **p;
12083/* NEC SVR4.0.2 mips cc rejects this. */
12084struct point {int x, y;};
12085static struct point const zero = {0,0};
12086/* AIX XL C 1.02.0.0 rejects this.
12087 It does not let you subtract one const X* pointer from another in an arm
12088 of an if-expression whose if-part is not a constant expression */
12089const char *g = "string";
12090ccp = &g + (g ? g-g : 0);
12091/* HPUX 7.0 cc rejects these. */
12092++ccp;
12093p = (char**) ccp;
12094ccp = (char const *const *) p;
12095{ /* SCO 3.2v4 cc rejects this. */
12096 char *t;
12097 char const *s = 0 ? (char *) 0 : (char const *) 0;
12098
12099 *t++ = 0;
10f2d63a 12100}
698dcdb6
VZ
12101{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12102 int x[] = {25, 17};
12103 const int *foo = &x[0];
12104 ++foo;
703e0a69 12105}
698dcdb6
VZ
12106{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12107 typedef const int *iptr;
12108 iptr p = 0;
12109 ++p;
6232543b 12110}
698dcdb6
VZ
12111{ /* AIX XL C 1.02.0.0 rejects this saying
12112 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12113 struct s { int j; const int *ap[3]; };
12114 struct s *b; b->j = 5;
1e487827 12115}
698dcdb6
VZ
12116{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12117 const int foo = 10;
12118}
12119
12120; return 0; }
12121EOF
c39c53e9 12122if { (eval echo configure:12123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12123 rm -rf conftest*
10f2d63a
VZ
12124 ac_cv_c_const=yes
12125else
698dcdb6
VZ
12126 echo "configure: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12128 rm -rf conftest*
12129 ac_cv_c_const=no
10f2d63a 12130fi
698dcdb6 12131rm -f conftest*
10f2d63a 12132fi
1e487827 12133
698dcdb6
VZ
12134echo "$ac_t""$ac_cv_c_const" 1>&6
12135if test $ac_cv_c_const = no; then
12136 cat >> confdefs.h <<\EOF
12137#define const
10f2d63a
VZ
12138EOF
12139
12140fi
12141
698dcdb6 12142echo $ac_n "checking for inline""... $ac_c" 1>&6
c39c53e9 12143echo "configure:12144: checking for inline" >&5
698dcdb6
VZ
12144if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12145 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12146else
12147 ac_cv_c_inline=no
12148for ac_kw in inline __inline__ __inline; do
698dcdb6 12149 cat > conftest.$ac_ext <<EOF
c39c53e9 12150#line 12151 "configure"
10f2d63a
VZ
12151#include "confdefs.h"
12152
698dcdb6
VZ
12153int main() {
12154} $ac_kw foo() {
12155; return 0; }
12156EOF
c39c53e9 12157if { (eval echo configure:12158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12158 rm -rf conftest*
10f2d63a
VZ
12159 ac_cv_c_inline=$ac_kw; break
12160else
698dcdb6
VZ
12161 echo "configure: failed program was:" >&5
12162 cat conftest.$ac_ext >&5
10f2d63a 12163fi
698dcdb6 12164rm -f conftest*
10f2d63a
VZ
12165done
12166
12167fi
698dcdb6
VZ
12168
12169echo "$ac_t""$ac_cv_c_inline" 1>&6
12170case "$ac_cv_c_inline" in
10f2d63a 12171 inline | yes) ;;
698dcdb6
VZ
12172 no) cat >> confdefs.h <<\EOF
12173#define inline
10f2d63a
VZ
12174EOF
12175 ;;
698dcdb6 12176 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
12177#define inline $ac_cv_c_inline
12178EOF
12179 ;;
12180esac
12181
698dcdb6
VZ
12182
12183echo $ac_n "checking size of char""... $ac_c" 1>&6
c39c53e9 12184echo "configure:12185: checking size of char" >&5
698dcdb6
VZ
12185if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12186 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 12187else
1e487827 12188 if test "$cross_compiling" = yes; then
698dcdb6 12189 ac_cv_sizeof_char=1
1e487827 12190else
698dcdb6 12191 cat > conftest.$ac_ext <<EOF
c39c53e9 12192#line 12193 "configure"
1e487827 12193#include "confdefs.h"
698dcdb6
VZ
12194#include <stdio.h>
12195main()
1e487827 12196{
698dcdb6
VZ
12197 FILE *f=fopen("conftestval", "w");
12198 if (!f) exit(1);
12199 fprintf(f, "%d\n", sizeof(char));
12200 exit(0);
1e487827 12201}
698dcdb6 12202EOF
c39c53e9 12203if { (eval echo configure:12204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12204then
12205 ac_cv_sizeof_char=`cat conftestval`
1e487827 12206else
698dcdb6
VZ
12207 echo "configure: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12209 rm -fr conftest*
1e487827
VS
12210 ac_cv_sizeof_char=0
12211fi
698dcdb6 12212rm -fr conftest*
1e487827 12213fi
10f2d63a 12214
1e487827 12215fi
698dcdb6
VZ
12216echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12217cat >> confdefs.h <<EOF
12218#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 12219EOF
6232543b 12220
703e0a69 12221
698dcdb6 12222echo $ac_n "checking size of short""... $ac_c" 1>&6
c39c53e9 12223echo "configure:12224: checking size of short" >&5
698dcdb6
VZ
12224if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12225 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 12226else
1e487827 12227 if test "$cross_compiling" = yes; then
698dcdb6 12228 ac_cv_sizeof_short=2
1e487827 12229else
698dcdb6 12230 cat > conftest.$ac_ext <<EOF
c39c53e9 12231#line 12232 "configure"
1e487827 12232#include "confdefs.h"
698dcdb6
VZ
12233#include <stdio.h>
12234main()
1e487827 12235{
698dcdb6
VZ
12236 FILE *f=fopen("conftestval", "w");
12237 if (!f) exit(1);
12238 fprintf(f, "%d\n", sizeof(short));
12239 exit(0);
1e487827 12240}
698dcdb6 12241EOF
c39c53e9 12242if { (eval echo configure:12243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12243then
12244 ac_cv_sizeof_short=`cat conftestval`
1e487827 12245else
698dcdb6
VZ
12246 echo "configure: failed program was:" >&5
12247 cat conftest.$ac_ext >&5
12248 rm -fr conftest*
12249 ac_cv_sizeof_short=0
1e487827 12250fi
698dcdb6 12251rm -fr conftest*
1e487827 12252fi
698dcdb6 12253
1e487827 12254fi
698dcdb6
VZ
12255echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12256cat >> confdefs.h <<EOF
12257#define SIZEOF_SHORT $ac_cv_sizeof_short
12258EOF
12259
12260
12261echo $ac_n "checking size of int *""... $ac_c" 1>&6
c39c53e9 12262echo "configure:12263: checking size of int *" >&5
698dcdb6
VZ
12263if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12264 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12265else
12266 if test "$cross_compiling" = yes; then
698dcdb6 12267 ac_cv_sizeof_int_p=4
10f2d63a 12268else
698dcdb6 12269 cat > conftest.$ac_ext <<EOF
c39c53e9 12270#line 12271 "configure"
10f2d63a 12271#include "confdefs.h"
698dcdb6
VZ
12272#include <stdio.h>
12273main()
10f2d63a 12274{
698dcdb6
VZ
12275 FILE *f=fopen("conftestval", "w");
12276 if (!f) exit(1);
12277 fprintf(f, "%d\n", sizeof(int *));
12278 exit(0);
10f2d63a 12279}
698dcdb6 12280EOF
c39c53e9 12281if { (eval echo configure:12282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12282then
12283 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 12284else
698dcdb6
VZ
12285 echo "configure: failed program was:" >&5
12286 cat conftest.$ac_ext >&5
12287 rm -fr conftest*
12288 ac_cv_sizeof_int_p=0
6232543b 12289fi
698dcdb6 12290rm -fr conftest*
1e487827 12291fi
698dcdb6 12292
1e487827 12293fi
698dcdb6
VZ
12294echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12295cat >> confdefs.h <<EOF
12296#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
12297EOF
12298
698dcdb6
VZ
12299
12300echo $ac_n "checking size of int""... $ac_c" 1>&6
c39c53e9 12301echo "configure:12302: checking size of int" >&5
698dcdb6
VZ
12302if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12303 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12304else
12305 if test "$cross_compiling" = yes; then
698dcdb6 12306 ac_cv_sizeof_int=4
703e0a69 12307else
698dcdb6 12308 cat > conftest.$ac_ext <<EOF
c39c53e9 12309#line 12310 "configure"
1e487827 12310#include "confdefs.h"
698dcdb6
VZ
12311#include <stdio.h>
12312main()
1e487827 12313{
698dcdb6
VZ
12314 FILE *f=fopen("conftestval", "w");
12315 if (!f) exit(1);
12316 fprintf(f, "%d\n", sizeof(int));
12317 exit(0);
1e487827 12318}
698dcdb6 12319EOF
c39c53e9 12320if { (eval echo configure:12321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12321then
12322 ac_cv_sizeof_int=`cat conftestval`
12323else
12324 echo "configure: failed program was:" >&5
12325 cat conftest.$ac_ext >&5
12326 rm -fr conftest*
12327 ac_cv_sizeof_int=0
703e0a69 12328fi
698dcdb6
VZ
12329rm -fr conftest*
12330fi
12331
12332fi
12333echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12334cat >> confdefs.h <<EOF
12335#define SIZEOF_INT $ac_cv_sizeof_int
12336EOF
12337
12338
12339echo $ac_n "checking size of long""... $ac_c" 1>&6
c39c53e9 12340echo "configure:12341: checking size of long" >&5
698dcdb6
VZ
12341if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12342 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12343else
12344 if test "$cross_compiling" = yes; then
698dcdb6 12345 ac_cv_sizeof_long=4
10f2d63a 12346else
698dcdb6 12347 cat > conftest.$ac_ext <<EOF
c39c53e9 12348#line 12349 "configure"
10f2d63a 12349#include "confdefs.h"
698dcdb6
VZ
12350#include <stdio.h>
12351main()
10f2d63a 12352{
698dcdb6
VZ
12353 FILE *f=fopen("conftestval", "w");
12354 if (!f) exit(1);
12355 fprintf(f, "%d\n", sizeof(long));
12356 exit(0);
10f2d63a 12357}
698dcdb6 12358EOF
c39c53e9 12359if { (eval echo configure:12360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12360then
12361 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 12362else
698dcdb6
VZ
12363 echo "configure: failed program was:" >&5
12364 cat conftest.$ac_ext >&5
12365 rm -fr conftest*
12366 ac_cv_sizeof_long=0
10f2d63a 12367fi
698dcdb6 12368rm -fr conftest*
10f2d63a 12369fi
698dcdb6 12370
10f2d63a 12371fi
698dcdb6
VZ
12372echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12373cat >> confdefs.h <<EOF
12374#define SIZEOF_LONG $ac_cv_sizeof_long
12375EOF
12376
12377
12378echo $ac_n "checking size of long long""... $ac_c" 1>&6
c39c53e9 12379echo "configure:12380: checking size of long long" >&5
698dcdb6
VZ
12380if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12381 echo $ac_n "(cached) $ac_c" 1>&6
12382else
12383 if test "$cross_compiling" = yes; then
12384 ac_cv_sizeof_long_long=0
12385else
12386 cat > conftest.$ac_ext <<EOF
c39c53e9 12387#line 12388 "configure"
698dcdb6
VZ
12388#include "confdefs.h"
12389#include <stdio.h>
12390main()
12391{
12392 FILE *f=fopen("conftestval", "w");
12393 if (!f) exit(1);
12394 fprintf(f, "%d\n", sizeof(long long));
12395 exit(0);
12396}
12397EOF
c39c53e9 12398if { (eval echo configure:12399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12399then
12400 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 12401else
698dcdb6
VZ
12402 echo "configure: failed program was:" >&5
12403 cat conftest.$ac_ext >&5
12404 rm -fr conftest*
6232543b
VS
12405 ac_cv_sizeof_long_long=0
12406fi
698dcdb6
VZ
12407rm -fr conftest*
12408fi
12409
703e0a69 12410fi
698dcdb6
VZ
12411echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12412cat >> confdefs.h <<EOF
10f2d63a
VZ
12413#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12414EOF
12415
1e487827 12416
698dcdb6
VZ
12417
12418echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
c39c53e9 12419echo "configure:12420: checking size of wchar_t" >&5
698dcdb6
VZ
12420if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12421 echo $ac_n "(cached) $ac_c" 1>&6
12422else
12423
b93d0d08
VS
12424 if test "$cross_compiling" = yes; then
12425 wx_cv_sizeof_wchar_t=4
1e6feb95 12426
b93d0d08 12427else
698dcdb6 12428 cat > conftest.$ac_ext <<EOF
c39c53e9 12429#line 12430 "configure"
b93d0d08
VS
12430#include "confdefs.h"
12431
1e6feb95
VZ
12432 #ifdef HAVE_WCHAR_H
12433 # include <wchar.h>
12434 #endif
12435 #ifdef HAVE_STDLIB_H
12436 # include <stdlib.h>
12437 #endif
12438 #include <stdio.h>
12439 int main()
12440 {
12441 FILE *f=fopen("conftestval", "w");
12442 if (!f) exit(1);
12443 fprintf(f, "%i", sizeof(wchar_t));
12444 exit(0);
12445 }
698dcdb6
VZ
12446
12447EOF
c39c53e9 12448if { (eval echo configure:12449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12449then
b93d0d08
VS
12450 wx_cv_sizeof_wchar_t=`cat conftestval`
12451else
698dcdb6
VZ
12452 echo "configure: failed program was:" >&5
12453 cat conftest.$ac_ext >&5
12454 rm -fr conftest*
12455 wx_cv_sizeof_wchar_t=0
b93d0d08 12456fi
698dcdb6 12457rm -fr conftest*
b93d0d08
VS
12458fi
12459
698dcdb6 12460
b93d0d08
VS
12461fi
12462
698dcdb6
VZ
12463echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12464
12465cat >> confdefs.h <<EOF
28c6addc 12466#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
12467EOF
12468
698dcdb6 12469
698dcdb6 12470echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
c39c53e9 12471echo "configure:12472: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
12472if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12473 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12474else
12475 ac_cv_c_bigendian=unknown
12476# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 12477cat > conftest.$ac_ext <<EOF
c39c53e9 12478#line 12479 "configure"
10f2d63a
VZ
12479#include "confdefs.h"
12480#include <sys/types.h>
12481#include <sys/param.h>
698dcdb6 12482int main() {
10f2d63a
VZ
12483
12484#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12485 bogus endian macros
12486#endif
698dcdb6
VZ
12487; return 0; }
12488EOF
c39c53e9 12489if { (eval echo configure:12490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12490 rm -rf conftest*
10f2d63a 12491 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 12492cat > conftest.$ac_ext <<EOF
c39c53e9 12493#line 12494 "configure"
10f2d63a
VZ
12494#include "confdefs.h"
12495#include <sys/types.h>
12496#include <sys/param.h>
698dcdb6 12497int main() {
10f2d63a
VZ
12498
12499#if BYTE_ORDER != BIG_ENDIAN
12500 not big endian
12501#endif
698dcdb6
VZ
12502; return 0; }
12503EOF
c39c53e9 12504if { (eval echo configure:12505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12505 rm -rf conftest*
10f2d63a
VZ
12506 ac_cv_c_bigendian=yes
12507else
698dcdb6
VZ
12508 echo "configure: failed program was:" >&5
12509 cat conftest.$ac_ext >&5
12510 rm -rf conftest*
12511 ac_cv_c_bigendian=no
10f2d63a 12512fi
698dcdb6 12513rm -f conftest*
10f2d63a 12514else
698dcdb6
VZ
12515 echo "configure: failed program was:" >&5
12516 cat conftest.$ac_ext >&5
10f2d63a 12517fi
698dcdb6 12518rm -f conftest*
10f2d63a
VZ
12519if test $ac_cv_c_bigendian = unknown; then
12520if test "$cross_compiling" = yes; then
12521 ac_cv_c_bigendian=unknown
12522else
698dcdb6 12523 cat > conftest.$ac_ext <<EOF
c39c53e9 12524#line 12525 "configure"
10f2d63a
VZ
12525#include "confdefs.h"
12526main () {
12527 /* Are we little or big endian? From Harbison&Steele. */
12528 union
12529 {
12530 long l;
12531 char c[sizeof (long)];
12532 } u;
12533 u.l = 1;
12534 exit (u.c[sizeof (long) - 1] == 1);
12535}
698dcdb6 12536EOF
c39c53e9 12537if { (eval echo configure:12538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12538then
10f2d63a
VZ
12539 ac_cv_c_bigendian=no
12540else
698dcdb6
VZ
12541 echo "configure: failed program was:" >&5
12542 cat conftest.$ac_ext >&5
12543 rm -fr conftest*
12544 ac_cv_c_bigendian=yes
10f2d63a 12545fi
698dcdb6 12546rm -fr conftest*
10f2d63a 12547fi
698dcdb6 12548
10f2d63a
VZ
12549fi
12550fi
698dcdb6
VZ
12551
12552echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 12553if test $ac_cv_c_bigendian = unknown; then
698dcdb6 12554 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
12555fi
12556if test $ac_cv_c_bigendian = yes; then
698dcdb6 12557 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12558#define WORDS_BIGENDIAN 1
12559EOF
12560
12561fi
12562
698dcdb6
VZ
12563
12564
10f2d63a 12565 if test "$cross_compiling" = "yes"; then
698dcdb6 12566 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12567#define wxUSE_IOSTREAMH 1
12568EOF
12569
12570 else
698dcdb6
VZ
12571
12572 ac_ext=C
12573# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12574ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12575ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12576ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12577cross_compiling=$ac_cv_prog_cxx_cross
12578
703e0a69 12579
698dcdb6 12580 for ac_hdr in iostream
10f2d63a 12581do
698dcdb6
VZ
12582ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12583echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c39c53e9 12584echo "configure:12585: checking for $ac_hdr" >&5
698dcdb6
VZ
12585if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12586 echo $ac_n "(cached) $ac_c" 1>&6
12587else
12588 cat > conftest.$ac_ext <<EOF
c39c53e9 12589#line 12590 "configure"
10f2d63a 12590#include "confdefs.h"
698dcdb6
VZ
12591#include <$ac_hdr>
12592EOF
12593ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 12594{ (eval echo configure:12595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12595ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12596if test -z "$ac_err"; then
12597 rm -rf conftest*
12598 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12599else
698dcdb6
VZ
12600 echo "$ac_err" >&5
12601 echo "configure: failed program was:" >&5
10f2d63a 12602 cat conftest.$ac_ext >&5
698dcdb6
VZ
12603 rm -rf conftest*
12604 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12605fi
698dcdb6 12606rm -f conftest*
10f2d63a 12607fi
698dcdb6
VZ
12608if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12609 echo "$ac_t""yes" 1>&6
12610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12611 cat >> confdefs.h <<EOF
12612#define $ac_tr_hdr 1
10f2d63a 12613EOF
698dcdb6
VZ
12614
12615else
12616 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12617fi
12618done
12619
698dcdb6 12620
57fe5ed0
VZ
12621 if test "$ac_cv_header_iostream" = "yes" ; then
12622 :
12623 else
698dcdb6 12624 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12625#define wxUSE_IOSTREAMH 1
12626EOF
12627
10f2d63a
VZ
12628 fi
12629
12630 ac_ext=c
698dcdb6 12631# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12632ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12633ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12634ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12635cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
12636
12637 fi
12638
703e0a69 12639
698dcdb6
VZ
12640
12641 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
c39c53e9 12642echo "configure:12643: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
12643if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12644 echo $ac_n "(cached) $ac_c" 1>&6
12645else
12646
12647
12648 ac_ext=C
12649# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12650ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12651ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12652ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12653cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 12654
698dcdb6
VZ
12655
12656 cat > conftest.$ac_ext <<EOF
c39c53e9 12657#line 12658 "configure"
10f2d63a
VZ
12658#include "confdefs.h"
12659
698dcdb6
VZ
12660
12661int main() {
10f2d63a
VZ
12662
12663 bool b = true;
12664
12665 return 0;
698dcdb6
VZ
12666
12667; return 0; }
12668EOF
c39c53e9 12669if { (eval echo configure:12670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12670 rm -rf conftest*
12671
10f2d63a 12672 wx_cv_cpp_bool=yes
698dcdb6 12673
10f2d63a 12674else
698dcdb6
VZ
12675 echo "configure: failed program was:" >&5
12676 cat conftest.$ac_ext >&5
12677 rm -rf conftest*
12678
10f2d63a 12679 wx_cv_cpp_bool=no
698dcdb6
VZ
12680
12681
10f2d63a 12682fi
698dcdb6 12683rm -f conftest*
10f2d63a
VZ
12684
12685 ac_ext=c
698dcdb6 12686# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12687ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12688ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12689ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12690cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12691
698dcdb6 12692
10f2d63a 12693fi
698dcdb6
VZ
12694
12695echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
12696
12697 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 12698 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12699#define HAVE_BOOL 1
12700EOF
12701
12702 fi
12703
1e487827 12704
698dcdb6 12705
698dcdb6 12706echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
c39c53e9 12707echo "configure:12708: checking for wcslen in -lc" >&5
698dcdb6
VZ
12708ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12709if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12710 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12711else
698dcdb6 12712 ac_save_LIBS="$LIBS"
10f2d63a 12713LIBS="-lc $LIBS"
698dcdb6 12714cat > conftest.$ac_ext <<EOF
c39c53e9 12715#line 12716 "configure"
10f2d63a
VZ
12716#include "confdefs.h"
12717/* Override any gcc2 internal prototype to avoid an error. */
12718/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12719 builtin and then its argument prototype would still apply. */
12720char wcslen();
12721
12722int main() {
12723wcslen()
12724; return 0; }
12725EOF
c39c53e9 12726if { (eval echo configure:12727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12727 rm -rf conftest*
12728 eval "ac_cv_lib_$ac_lib_var=yes"
12729else
12730 echo "configure: failed program was:" >&5
12731 cat conftest.$ac_ext >&5
12732 rm -rf conftest*
12733 eval "ac_cv_lib_$ac_lib_var=no"
12734fi
12735rm -f conftest*
12736LIBS="$ac_save_LIBS"
12737
12738fi
12739if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12740 echo "$ac_t""yes" 1>&6
12741
12742 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12743#define HAVE_WCSLEN 1
12744EOF
12745
12746 WCHAR_LINK=""
698dcdb6 12747
10f2d63a 12748else
698dcdb6 12749 echo "$ac_t""no" 1>&6
10f2d63a 12750
698dcdb6 12751 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
c39c53e9 12752echo "configure:12753: checking for wcslen in -lw" >&5
698dcdb6
VZ
12753ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12754if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12755 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12756else
698dcdb6 12757 ac_save_LIBS="$LIBS"
10f2d63a 12758LIBS="-lw $LIBS"
698dcdb6 12759cat > conftest.$ac_ext <<EOF
c39c53e9 12760#line 12761 "configure"
10f2d63a
VZ
12761#include "confdefs.h"
12762/* Override any gcc2 internal prototype to avoid an error. */
12763/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12764 builtin and then its argument prototype would still apply. */
12765char wcslen();
12766
12767int main() {
12768wcslen()
12769; return 0; }
12770EOF
c39c53e9 12771if { (eval echo configure:12772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12772 rm -rf conftest*
12773 eval "ac_cv_lib_$ac_lib_var=yes"
12774else
12775 echo "configure: failed program was:" >&5
12776 cat conftest.$ac_ext >&5
12777 rm -rf conftest*
12778 eval "ac_cv_lib_$ac_lib_var=no"
12779fi
12780rm -f conftest*
12781LIBS="$ac_save_LIBS"
12782
12783fi
12784if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12785 echo "$ac_t""yes" 1>&6
12786
12787 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12788#define HAVE_WCSLEN 1
12789EOF
12790
12791 WCHAR_LINK="-lw"
698dcdb6 12792
18dbb1f6
VZ
12793else
12794 echo "$ac_t""no" 1>&6
12795
12796 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
c39c53e9 12797echo "configure:12798: checking for wcslen in -lmsvcrt" >&5
18dbb1f6
VZ
12798ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
12799if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12800 echo $ac_n "(cached) $ac_c" 1>&6
12801else
12802 ac_save_LIBS="$LIBS"
12803LIBS="-lmsvcrt $LIBS"
12804cat > conftest.$ac_ext <<EOF
c39c53e9 12805#line 12806 "configure"
18dbb1f6
VZ
12806#include "confdefs.h"
12807/* Override any gcc2 internal prototype to avoid an error. */
12808/* We use char because int might match the return type of a gcc2
12809 builtin and then its argument prototype would still apply. */
12810char wcslen();
12811
12812int main() {
12813wcslen()
12814; return 0; }
12815EOF
c39c53e9 12816if { (eval echo configure:12817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
12817 rm -rf conftest*
12818 eval "ac_cv_lib_$ac_lib_var=yes"
12819else
12820 echo "configure: failed program was:" >&5
12821 cat conftest.$ac_ext >&5
12822 rm -rf conftest*
12823 eval "ac_cv_lib_$ac_lib_var=no"
12824fi
12825rm -f conftest*
12826LIBS="$ac_save_LIBS"
12827
12828fi
12829if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12830 echo "$ac_t""yes" 1>&6
12831
12832 cat >> confdefs.h <<\EOF
12833#define HAVE_WCSLEN 1
12834EOF
12835
12836 WCHAR_LINK=""
12837
698dcdb6
VZ
12838else
12839 echo "$ac_t""no" 1>&6
6232543b 12840fi
10f2d63a 12841
18dbb1f6
VZ
12842
12843fi
12844
698dcdb6 12845
1e487827 12846fi
703e0a69 12847
698dcdb6
VZ
12848
12849echo $ac_n "checking for vprintf""... $ac_c" 1>&6
c39c53e9 12850echo "configure:12851: checking for vprintf" >&5
698dcdb6
VZ
12851if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12852 echo $ac_n "(cached) $ac_c" 1>&6
12853else
12854 cat > conftest.$ac_ext <<EOF
c39c53e9 12855#line 12856 "configure"
10f2d63a
VZ
12856#include "confdefs.h"
12857/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12858 which can conflict with char vprintf(); below. */
10f2d63a
VZ
12859#include <assert.h>
12860/* Override any gcc2 internal prototype to avoid an error. */
12861/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12862 builtin and then its argument prototype would still apply. */
12863char vprintf();
12864
12865int main() {
10f2d63a
VZ
12866
12867/* The GNU C library defines this for functions which it implements
12868 to always fail with ENOSYS. Some functions are actually named
12869 something starting with __ and the normal name is an alias. */
698dcdb6 12870#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
12871choke me
12872#else
698dcdb6 12873vprintf();
10f2d63a
VZ
12874#endif
12875
698dcdb6
VZ
12876; return 0; }
12877EOF
c39c53e9 12878if { (eval echo configure:12879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12879 rm -rf conftest*
12880 eval "ac_cv_func_vprintf=yes"
12881else
12882 echo "configure: failed program was:" >&5
12883 cat conftest.$ac_ext >&5
12884 rm -rf conftest*
12885 eval "ac_cv_func_vprintf=no"
12886fi
12887rm -f conftest*
12888fi
12889
12890if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12891 echo "$ac_t""yes" 1>&6
12892 cat >> confdefs.h <<\EOF
12893#define HAVE_VPRINTF 1
12894EOF
12895
12896else
12897 echo "$ac_t""no" 1>&6
12898fi
12899
12900if test "$ac_cv_func_vprintf" != yes; then
12901echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
c39c53e9 12902echo "configure:12903: checking for _doprnt" >&5
698dcdb6
VZ
12903if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12904 echo $ac_n "(cached) $ac_c" 1>&6
12905else
12906 cat > conftest.$ac_ext <<EOF
c39c53e9 12907#line 12908 "configure"
10f2d63a
VZ
12908#include "confdefs.h"
12909/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12910 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
12911#include <assert.h>
12912/* Override any gcc2 internal prototype to avoid an error. */
12913/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12914 builtin and then its argument prototype would still apply. */
12915char _doprnt();
12916
12917int main() {
10f2d63a
VZ
12918
12919/* The GNU C library defines this for functions which it implements
12920 to always fail with ENOSYS. Some functions are actually named
12921 something starting with __ and the normal name is an alias. */
12922#if defined (__stub__doprnt) || defined (__stub____doprnt)
12923choke me
12924#else
698dcdb6 12925_doprnt();
10f2d63a
VZ
12926#endif
12927
698dcdb6
VZ
12928; return 0; }
12929EOF
c39c53e9 12930if { (eval echo configure:12931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12931 rm -rf conftest*
12932 eval "ac_cv_func__doprnt=yes"
12933else
12934 echo "configure: failed program was:" >&5
12935 cat conftest.$ac_ext >&5
12936 rm -rf conftest*
12937 eval "ac_cv_func__doprnt=no"
12938fi
12939rm -f conftest*
12940fi
12941
12942if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12943 echo "$ac_t""yes" 1>&6
12944 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12945#define HAVE_DOPRNT 1
12946EOF
12947
698dcdb6
VZ
12948else
12949 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12950fi
12951
12952fi
12953
1e487827 12954
698dcdb6
VZ
12955
12956
12957
12958
12959
12960echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
c39c53e9 12961echo "configure:12962: checking for vsnprintf" >&5
698dcdb6
VZ
12962if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12963 echo $ac_n "(cached) $ac_c" 1>&6
12964else
12965
12966 cat > conftest.$ac_ext <<EOF
c39c53e9 12967#line 12968 "configure"
f6bcfd97
BP
12968#include "confdefs.h"
12969
12970 #include <stdio.h>
698dcdb6
VZ
12971 #include <stdarg.h>
12972
12973int main() {
10f2d63a 12974
f6bcfd97 12975 int wx_test_vsnprintf(const char *, ...);
10f2d63a 12976
f6bcfd97
BP
12977 wx_test_vsnprintf("%s");
12978 return 0;
12979 }
12980
12981 int wx_test_vsnprintf(const char *fmt, ...)
12982 {
12983 char *s;
12984
12985 va_list argp;
12986 va_start(argp, fmt);
12987 vsnprintf(s, 42, fmt, argp);
12988 va_end(argp);
698dcdb6
VZ
12989
12990; return 0; }
12991EOF
c39c53e9 12992if { (eval echo configure:12993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12993 rm -rf conftest*
12994
f6bcfd97 12995 wx_cv_func_vsnprintf=yes
698dcdb6 12996
10f2d63a 12997else
698dcdb6
VZ
12998 echo "configure: failed program was:" >&5
12999 cat conftest.$ac_ext >&5
13000 rm -rf conftest*
13001
13002 cat > conftest.$ac_ext <<EOF
c39c53e9 13003#line 13004 "configure"
c521c494
RL
13004#include "confdefs.h"
13005
13006 #include <stdio.h>
13007 #include <stdarg.h>
698dcdb6
VZ
13008
13009int main() {
c521c494
RL
13010
13011 int wx_test_vsnprintf(const char *, ...);
13012
13013 wx_test_vsnprintf("%s");
13014 return 0;
13015 }
13016
13017 int wx_test_vsnprintf(const char *fmt, ...)
13018 {
13019 char *s;
13020
13021 va_list argp;
13022 va_start(argp, fmt);
13023 _vsnprintf(s, 42, fmt, argp);
13024 va_end(argp);
698dcdb6
VZ
13025
13026; return 0; }
13027EOF
c39c53e9 13028if { (eval echo configure:13029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13029 rm -rf conftest*
13030
c521c494 13031 wx_cv_func_vsnprintf=yes
698dcdb6 13032
c521c494 13033else
698dcdb6
VZ
13034 echo "configure: failed program was:" >&5
13035 cat conftest.$ac_ext >&5
13036 rm -rf conftest*
13037
c521c494 13038 wx_cv_func_vsnprintf=no
698dcdb6 13039
10f2d63a 13040fi
698dcdb6
VZ
13041rm -f conftest*
13042
6232543b 13043fi
698dcdb6 13044rm -f conftest*
703e0a69 13045
1e487827 13046fi
698dcdb6
VZ
13047
13048echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 13049
9d8deca0 13050if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 13051 cat >> confdefs.h <<\EOF
9d8deca0
VZ
13052#define HAVE_VSNPRINTF 1
13053EOF
13054
13055else
698dcdb6 13056 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
13057fi
13058
698dcdb6 13059echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
c39c53e9 13060echo "configure:13061: checking for vsscanf" >&5
698dcdb6
VZ
13061if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13062 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13063else
698dcdb6
VZ
13064
13065 cat > conftest.$ac_ext <<EOF
c39c53e9 13066#line 13067 "configure"
10f2d63a 13067#include "confdefs.h"
10f2d63a 13068
f6bcfd97
BP
13069 #include <stdio.h>
13070 #include <stdarg.h>
698dcdb6
VZ
13071
13072int main() {
10f2d63a 13073
f6bcfd97 13074 int wx_test_vsscanf(const char *, ...);
10f2d63a 13075
f6bcfd97
BP
13076 wx_test_vsscanf("%d");
13077 return 0;
10f2d63a
VZ
13078 }
13079
f6bcfd97 13080 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 13081 {
f6bcfd97
BP
13082 va_list argp;
13083 va_start(argp, fmt);
13084 vsscanf("42", fmt, argp);
13085 va_end(argp);
698dcdb6
VZ
13086
13087; return 0; }
13088EOF
c39c53e9 13089if { (eval echo configure:13090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13090 rm -rf conftest*
13091
f6bcfd97 13092 wx_cv_func_vsscanf=yes
698dcdb6 13093
10f2d63a 13094else
698dcdb6
VZ
13095 echo "configure: failed program was:" >&5
13096 cat conftest.$ac_ext >&5
13097 rm -rf conftest*
13098
f6bcfd97 13099 wx_cv_func_vsscanf=no
698dcdb6 13100
6232543b 13101fi
698dcdb6 13102rm -f conftest*
703e0a69 13103
1e487827 13104fi
698dcdb6
VZ
13105
13106echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 13107
9d8deca0 13108if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 13109 cat >> confdefs.h <<\EOF
9d8deca0
VZ
13110#define HAVE_VSSCANF 1
13111EOF
13112
13113fi
13114
95c8801c
VS
13115if test "$TOOLKIT" != "MSW"; then
13116
13117
13118
698dcdb6
VZ
13119ac_ext=C
13120# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13121ac_cpp='$CXXCPP $CPPFLAGS'
13122ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13123ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13124cross_compiling=$ac_cv_prog_cxx_cross
13125
13126echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
c39c53e9 13127echo "configure:13128: checking if iconv() takes char**" >&5
698dcdb6
VZ
13128if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
13129 echo $ac_n "(cached) $ac_c" 1>&6
13130else
13131
13132 cat > conftest.$ac_ext <<EOF
c39c53e9 13133#line 13134 "configure"
95c8801c
VS
13134#include "confdefs.h"
13135#include <iconv.h>
698dcdb6 13136int main() {
95c8801c
VS
13137
13138 char **inbuf, **outbuf;
19af3b06
VZ
13139 iconv_t cd;
13140 size_t insz, outsz;
13141 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
13142
13143; return 0; }
13144EOF
c39c53e9 13145if { (eval echo configure:13146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 13146 rm -rf conftest*
95c8801c
VS
13147 wx_cv_iconv_takes_char=yes
13148else
698dcdb6
VZ
13149 echo "configure: failed program was:" >&5
13150 cat conftest.$ac_ext >&5
13151 rm -rf conftest*
13152 wx_cv_iconv_takes_char=no
95c8801c 13153fi
698dcdb6 13154rm -f conftest*
95c8801c
VS
13155
13156fi
698dcdb6
VZ
13157
13158echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 13159ac_ext=c
698dcdb6 13160# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 13161ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13162ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13163ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13164cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 13165
95c8801c 13166if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 13167 cat >> confdefs.h <<\EOF
95c8801c
VS
13168#define WX_ICONV_TAKES_CHAR 1
13169EOF
13170
13171fi
10f2d63a 13172
1e487827 13173
698dcdb6
VZ
13174if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13175 for ac_func in sigaction
eb4efbdc 13176do
698dcdb6 13177echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 13178echo "configure:13179: checking for $ac_func" >&5
698dcdb6
VZ
13179if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13180 echo $ac_n "(cached) $ac_c" 1>&6
13181else
13182 cat > conftest.$ac_ext <<EOF
c39c53e9 13183#line 13184 "configure"
eb4efbdc
VZ
13184#include "confdefs.h"
13185/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13186 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
13187#include <assert.h>
13188/* Override any gcc2 internal prototype to avoid an error. */
13189/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13190 builtin and then its argument prototype would still apply. */
13191char $ac_func();
13192
13193int main() {
eb4efbdc
VZ
13194
13195/* The GNU C library defines this for functions which it implements
13196 to always fail with ENOSYS. Some functions are actually named
13197 something starting with __ and the normal name is an alias. */
13198#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13199choke me
13200#else
698dcdb6 13201$ac_func();
eb4efbdc
VZ
13202#endif
13203
698dcdb6 13204; return 0; }
eb4efbdc 13205EOF
c39c53e9 13206if { (eval echo configure:13207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13207 rm -rf conftest*
13208 eval "ac_cv_func_$ac_func=yes"
13209else
13210 echo "configure: failed program was:" >&5
13211 cat conftest.$ac_ext >&5
13212 rm -rf conftest*
13213 eval "ac_cv_func_$ac_func=no"
13214fi
13215rm -f conftest*
13216fi
eb4efbdc 13217
698dcdb6
VZ
13218if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13219 echo "$ac_t""yes" 1>&6
13220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13221 cat >> confdefs.h <<EOF
13222#define $ac_tr_func 1
13223EOF
13224
13225else
13226 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
13227fi
13228done
13229
698dcdb6 13230
eb4efbdc 13231 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 13232 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
13233 wxUSE_ON_FATAL_EXCEPTION=no
13234 fi
f6bcfd97
BP
13235
13236 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
13237
13238 ac_ext=C
13239# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 13240ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13241ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13242ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13243cross_compiling=$ac_cv_prog_cxx_cross
6232543b 13244
1e487827 13245
698dcdb6 13246 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
c39c53e9 13247echo "configure:13248: checking for sa_handler type" >&5
698dcdb6
VZ
13248if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13249 echo $ac_n "(cached) $ac_c" 1>&6
13250else
13251
13252 cat > conftest.$ac_ext <<EOF
c39c53e9 13253#line 13254 "configure"
f6bcfd97
BP
13254#include "confdefs.h"
13255#include <signal.h>
698dcdb6 13256int main() {
f6bcfd97
BP
13257
13258 extern void testSigHandler(int);
13259
13260 struct sigaction sa;
13261 sa.sa_handler = testSigHandler;
698dcdb6
VZ
13262
13263; return 0; }
13264EOF
c39c53e9 13265if { (eval echo configure:13266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13266 rm -rf conftest*
13267
f6bcfd97 13268 wx_cv_type_sa_handler=int
698dcdb6 13269
f6bcfd97 13270else
698dcdb6
VZ
13271 echo "configure: failed program was:" >&5
13272 cat conftest.$ac_ext >&5
13273 rm -rf conftest*
13274
f6bcfd97 13275 wx_cv_type_sa_handler=void
698dcdb6 13276
6232543b 13277fi
698dcdb6
VZ
13278rm -f conftest*
13279
1e487827 13280fi
698dcdb6
VZ
13281
13282echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
13283
13284 ac_ext=c
698dcdb6 13285# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 13286ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13287ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13288ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13289cross_compiling=$ac_cv_prog_cc_cross
13290
703e0a69 13291
698dcdb6 13292 cat >> confdefs.h <<EOF
f6bcfd97
BP
13293#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13294EOF
13295
13296 fi
eb4efbdc
VZ
13297fi
13298
10f2d63a
VZ
13299for ac_func in vfork
13300do
698dcdb6 13301echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 13302echo "configure:13303: checking for $ac_func" >&5
698dcdb6
VZ
13303if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13304 echo $ac_n "(cached) $ac_c" 1>&6
13305else
13306 cat > conftest.$ac_ext <<EOF
c39c53e9 13307#line 13308 "configure"
10f2d63a
VZ
13308#include "confdefs.h"
13309/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13310 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13311#include <assert.h>
13312/* Override any gcc2 internal prototype to avoid an error. */
13313/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13314 builtin and then its argument prototype would still apply. */
13315char $ac_func();
13316
13317int main() {
10f2d63a
VZ
13318
13319/* The GNU C library defines this for functions which it implements
13320 to always fail with ENOSYS. Some functions are actually named
13321 something starting with __ and the normal name is an alias. */
13322#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13323choke me
13324#else
698dcdb6 13325$ac_func();
10f2d63a
VZ
13326#endif
13327
698dcdb6 13328; return 0; }
10f2d63a 13329EOF
c39c53e9 13330if { (eval echo configure:13331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13331 rm -rf conftest*
13332 eval "ac_cv_func_$ac_func=yes"
13333else
13334 echo "configure: failed program was:" >&5
13335 cat conftest.$ac_ext >&5
13336 rm -rf conftest*
13337 eval "ac_cv_func_$ac_func=no"
13338fi
13339rm -f conftest*
13340fi
270a909e 13341
698dcdb6
VZ
13342if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13343 echo "$ac_t""yes" 1>&6
13344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13345 cat >> confdefs.h <<EOF
13346#define $ac_tr_func 1
13347EOF
13348
13349else
13350 echo "$ac_t""no" 1>&6
270a909e
VZ
13351fi
13352done
13353
1e487827 13354
698dcdb6
VZ
13355if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13356 for ac_func in fcntl flock
4f3c5f06 13357do
698dcdb6 13358echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 13359echo "configure:13360: checking for $ac_func" >&5
698dcdb6
VZ
13360if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13361 echo $ac_n "(cached) $ac_c" 1>&6
13362else
13363 cat > conftest.$ac_ext <<EOF
c39c53e9 13364#line 13365 "configure"
4f3c5f06
VZ
13365#include "confdefs.h"
13366/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13367 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
13368#include <assert.h>
13369/* Override any gcc2 internal prototype to avoid an error. */
13370/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13371 builtin and then its argument prototype would still apply. */
13372char $ac_func();
13373
13374int main() {
4f3c5f06
VZ
13375
13376/* The GNU C library defines this for functions which it implements
13377 to always fail with ENOSYS. Some functions are actually named
13378 something starting with __ and the normal name is an alias. */
13379#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13380choke me
13381#else
698dcdb6 13382$ac_func();
4f3c5f06
VZ
13383#endif
13384
698dcdb6
VZ
13385; return 0; }
13386EOF
c39c53e9 13387if { (eval echo configure:13388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13388 rm -rf conftest*
13389 eval "ac_cv_func_$ac_func=yes"
13390else
13391 echo "configure: failed program was:" >&5
13392 cat conftest.$ac_ext >&5
13393 rm -rf conftest*
13394 eval "ac_cv_func_$ac_func=no"
13395fi
13396rm -f conftest*
13397fi
13398
13399if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13400 echo "$ac_t""yes" 1>&6
13401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13402 cat >> confdefs.h <<EOF
13403#define $ac_tr_func 1
4f3c5f06
VZ
13404EOF
13405 break
698dcdb6
VZ
13406else
13407 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
13408fi
13409done
13410
698dcdb6 13411
4f3c5f06 13412 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 13413 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
13414 wxUSE_SNGLINST_CHECKER=no
13415 fi
13416fi
13417
270a909e
VZ
13418for ac_func in timegm
13419do
698dcdb6 13420echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 13421echo "configure:13422: checking for $ac_func" >&5
698dcdb6
VZ
13422if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13423 echo $ac_n "(cached) $ac_c" 1>&6
13424else
13425 cat > conftest.$ac_ext <<EOF
c39c53e9 13426#line 13427 "configure"
270a909e
VZ
13427#include "confdefs.h"
13428/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13429 which can conflict with char $ac_func(); below. */
270a909e
VZ
13430#include <assert.h>
13431/* Override any gcc2 internal prototype to avoid an error. */
13432/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13433 builtin and then its argument prototype would still apply. */
13434char $ac_func();
13435
13436int main() {
270a909e
VZ
13437
13438/* The GNU C library defines this for functions which it implements
13439 to always fail with ENOSYS. Some functions are actually named
13440 something starting with __ and the normal name is an alias. */
13441#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13442choke me
13443#else
698dcdb6 13444$ac_func();
270a909e
VZ
13445#endif
13446
698dcdb6 13447; return 0; }
270a909e 13448EOF
c39c53e9 13449if { (eval echo configure:13450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13450 rm -rf conftest*
13451 eval "ac_cv_func_$ac_func=yes"
13452else
13453 echo "configure: failed program was:" >&5
13454 cat conftest.$ac_ext >&5
13455 rm -rf conftest*
13456 eval "ac_cv_func_$ac_func=no"
13457fi
13458rm -f conftest*
13459fi
10f2d63a 13460
698dcdb6
VZ
13461if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13462 echo "$ac_t""yes" 1>&6
13463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13464 cat >> confdefs.h <<EOF
13465#define $ac_tr_func 1
13466EOF
13467
13468else
13469 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13470fi
13471done
13472
698dcdb6 13473
8fd0d89b
VZ
13474for ac_func in putenv setenv
13475do
698dcdb6 13476echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 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
c39c53e9 13482#line 13483 "configure"
8fd0d89b
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. */
8fd0d89b
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() {
8fd0d89b
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();
8fd0d89b
VZ
13501#endif
13502
698dcdb6
VZ
13503; return 0; }
13504EOF
c39c53e9 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
13516
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
8fd0d89b
VZ
13522EOF
13523 break
698dcdb6
VZ
13524else
13525 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
13526fi
13527done
13528
698dcdb6 13529
b12915c1
VZ
13530HAVE_SOME_SLEEP_FUNC=0
13531if test "$USE_BEOS" = 1; then
698dcdb6 13532 cat >> confdefs.h <<\EOF
b12915c1
VZ
13533#define HAVE_SLEEP 1
13534EOF
13535
13536 HAVE_SOME_SLEEP_FUNC=1
13537fi
13538
f11bdd03 13539if test "$USE_DARWIN" = 1; then
698dcdb6 13540 cat >> confdefs.h <<\EOF
b4085ce6
GD
13541#define HAVE_USLEEP 1
13542EOF
13543
13544 HAVE_SOME_SLEEP_FUNC=1
13545fi
13546
b12915c1
VZ
13547if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13548 POSIX4_LINK=
698dcdb6 13549 for ac_func in nanosleep
10f2d63a 13550do
698dcdb6 13551echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 13552echo "configure:13553: checking for $ac_func" >&5
698dcdb6
VZ
13553if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13554 echo $ac_n "(cached) $ac_c" 1>&6
13555else
13556 cat > conftest.$ac_ext <<EOF
c39c53e9 13557#line 13558 "configure"
10f2d63a
VZ
13558#include "confdefs.h"
13559/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13560 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13561#include <assert.h>
13562/* Override any gcc2 internal prototype to avoid an error. */
13563/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13564 builtin and then its argument prototype would still apply. */
13565char $ac_func();
13566
13567int main() {
10f2d63a
VZ
13568
13569/* The GNU C library defines this for functions which it implements
13570 to always fail with ENOSYS. Some functions are actually named
13571 something starting with __ and the normal name is an alias. */
13572#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13573choke me
13574#else
698dcdb6 13575$ac_func();
10f2d63a
VZ
13576#endif
13577
698dcdb6
VZ
13578; return 0; }
13579EOF
c39c53e9 13580if { (eval echo configure:13581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13581 rm -rf conftest*
13582 eval "ac_cv_func_$ac_func=yes"
13583else
13584 echo "configure: failed program was:" >&5
13585 cat conftest.$ac_ext >&5
13586 rm -rf conftest*
13587 eval "ac_cv_func_$ac_func=no"
13588fi
13589rm -f conftest*
13590fi
13591
13592if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13593 echo "$ac_t""yes" 1>&6
13594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13595 cat >> confdefs.h <<EOF
13596#define $ac_tr_func 1
13597EOF
13598 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13599#define HAVE_NANOSLEEP 1
13600EOF
13601
13602else
698dcdb6
VZ
13603 echo "$ac_t""no" 1>&6
13604echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
c39c53e9 13605echo "configure:13606: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
13606ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13607if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13608 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13609else
698dcdb6 13610 ac_save_LIBS="$LIBS"
10f2d63a 13611LIBS="-lposix4 $LIBS"
698dcdb6 13612cat > conftest.$ac_ext <<EOF
c39c53e9 13613#line 13614 "configure"
10f2d63a
VZ
13614#include "confdefs.h"
13615/* Override any gcc2 internal prototype to avoid an error. */
13616/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13617 builtin and then its argument prototype would still apply. */
13618char nanosleep();
13619
13620int main() {
13621nanosleep()
13622; return 0; }
13623EOF
c39c53e9 13624if { (eval echo configure:13625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13625 rm -rf conftest*
13626 eval "ac_cv_lib_$ac_lib_var=yes"
13627else
13628 echo "configure: failed program was:" >&5
13629 cat conftest.$ac_ext >&5
13630 rm -rf conftest*
13631 eval "ac_cv_lib_$ac_lib_var=no"
13632fi
13633rm -f conftest*
13634LIBS="$ac_save_LIBS"
13635
13636fi
13637if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13638 echo "$ac_t""yes" 1>&6
13639
13640 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13641#define HAVE_NANOSLEEP 1
13642EOF
13643
b12915c1 13644 POSIX4_LINK="-lposix4"
698dcdb6 13645
10f2d63a 13646else
698dcdb6 13647 echo "$ac_t""no" 1>&6
10f2d63a 13648
698dcdb6 13649 for ac_func in usleep
10f2d63a 13650do
698dcdb6 13651echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 13652echo "configure:13653: checking for $ac_func" >&5
698dcdb6
VZ
13653if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13654 echo $ac_n "(cached) $ac_c" 1>&6
13655else
13656 cat > conftest.$ac_ext <<EOF
c39c53e9 13657#line 13658 "configure"
10f2d63a
VZ
13658#include "confdefs.h"
13659/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13660 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13661#include <assert.h>
13662/* Override any gcc2 internal prototype to avoid an error. */
13663/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13664 builtin and then its argument prototype would still apply. */
13665char $ac_func();
13666
13667int main() {
10f2d63a
VZ
13668
13669/* The GNU C library defines this for functions which it implements
13670 to always fail with ENOSYS. Some functions are actually named
13671 something starting with __ and the normal name is an alias. */
13672#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13673choke me
13674#else
698dcdb6 13675$ac_func();
10f2d63a
VZ
13676#endif
13677
698dcdb6
VZ
13678; return 0; }
13679EOF
c39c53e9 13680if { (eval echo configure:13681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13681 rm -rf conftest*
13682 eval "ac_cv_func_$ac_func=yes"
13683else
13684 echo "configure: failed program was:" >&5
13685 cat conftest.$ac_ext >&5
13686 rm -rf conftest*
13687 eval "ac_cv_func_$ac_func=no"
13688fi
13689rm -f conftest*
13690fi
13691
13692if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13693 echo "$ac_t""yes" 1>&6
13694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13695 cat >> confdefs.h <<EOF
13696#define $ac_tr_func 1
13697EOF
13698 cat >> confdefs.h <<\EOF
b4085ce6
GD
13699#define HAVE_USLEEP 1
13700EOF
13701
10f2d63a 13702else
698dcdb6
VZ
13703 echo "$ac_t""no" 1>&6
13704echo "configure: warning: wxSleep() function will not work" 1>&2
13705
10f2d63a
VZ
13706fi
13707done
13708
698dcdb6
VZ
13709
13710
10f2d63a
VZ
13711fi
13712
698dcdb6
VZ
13713
13714
10f2d63a
VZ
13715fi
13716done
13717
b12915c1 13718fi
10f2d63a
VZ
13719
13720for ac_func in uname gethostname
13721do
698dcdb6 13722echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 13723echo "configure:13724: checking for $ac_func" >&5
698dcdb6
VZ
13724if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13725 echo $ac_n "(cached) $ac_c" 1>&6
13726else
13727 cat > conftest.$ac_ext <<EOF
c39c53e9 13728#line 13729 "configure"
10f2d63a
VZ
13729#include "confdefs.h"
13730/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13731 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13732#include <assert.h>
13733/* Override any gcc2 internal prototype to avoid an error. */
13734/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13735 builtin and then its argument prototype would still apply. */
13736char $ac_func();
13737
13738int main() {
10f2d63a
VZ
13739
13740/* The GNU C library defines this for functions which it implements
13741 to always fail with ENOSYS. Some functions are actually named
13742 something starting with __ and the normal name is an alias. */
13743#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13744choke me
13745#else
698dcdb6 13746$ac_func();
10f2d63a
VZ
13747#endif
13748
698dcdb6
VZ
13749; return 0; }
13750EOF
c39c53e9 13751if { (eval echo configure:13752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13752 rm -rf conftest*
13753 eval "ac_cv_func_$ac_func=yes"
13754else
13755 echo "configure: failed program was:" >&5
13756 cat conftest.$ac_ext >&5
13757 rm -rf conftest*
13758 eval "ac_cv_func_$ac_func=no"
13759fi
13760rm -f conftest*
13761fi
13762
13763if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13764 echo "$ac_t""yes" 1>&6
13765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13766 cat >> confdefs.h <<EOF
13767#define $ac_tr_func 1
10f2d63a
VZ
13768EOF
13769 break
698dcdb6
VZ
13770else
13771 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13772fi
13773done
13774
698dcdb6
VZ
13775
13776
13777ac_ext=C
13778# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13779ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13780ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13781ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13782cross_compiling=$ac_cv_prog_cxx_cross
13783
6098c7f9 13784
10f2d63a
VZ
13785for ac_func in strtok_r
13786do
698dcdb6 13787echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 13788echo "configure:13789: checking for $ac_func" >&5
698dcdb6
VZ
13789if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13790 echo $ac_n "(cached) $ac_c" 1>&6
13791else
13792 cat > conftest.$ac_ext <<EOF
c39c53e9 13793#line 13794 "configure"
10f2d63a
VZ
13794#include "confdefs.h"
13795/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13796 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13797#include <assert.h>
13798/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
13799#ifdef __cplusplus
13800extern "C"
13801#endif
10f2d63a 13802/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13803 builtin and then its argument prototype would still apply. */
13804char $ac_func();
13805
13806int main() {
10f2d63a
VZ
13807
13808/* The GNU C library defines this for functions which it implements
13809 to always fail with ENOSYS. Some functions are actually named
13810 something starting with __ and the normal name is an alias. */
13811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13812choke me
13813#else
698dcdb6 13814$ac_func();
10f2d63a
VZ
13815#endif
13816
698dcdb6 13817; return 0; }
10f2d63a 13818EOF
c39c53e9 13819if { (eval echo configure:13820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13820 rm -rf conftest*
13821 eval "ac_cv_func_$ac_func=yes"
13822else
13823 echo "configure: failed program was:" >&5
13824 cat conftest.$ac_ext >&5
13825 rm -rf conftest*
13826 eval "ac_cv_func_$ac_func=no"
13827fi
13828rm -f conftest*
13829fi
10f2d63a 13830
698dcdb6
VZ
13831if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13832 echo "$ac_t""yes" 1>&6
13833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13834 cat >> confdefs.h <<EOF
13835#define $ac_tr_func 1
13836EOF
13837
13838else
13839 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13840fi
13841done
13842
698dcdb6 13843
6098c7f9 13844ac_ext=c
698dcdb6 13845# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13846ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13847ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13848ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13849cross_compiling=$ac_cv_prog_cc_cross
6232543b 13850
1e487827 13851
698dcdb6 13852INET_LINK=
10f2d63a
VZ
13853for ac_func in inet_addr
13854do
698dcdb6 13855echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 13856echo "configure:13857: checking for $ac_func" >&5
698dcdb6
VZ
13857if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13858 echo $ac_n "(cached) $ac_c" 1>&6
13859else
13860 cat > conftest.$ac_ext <<EOF
c39c53e9 13861#line 13862 "configure"
10f2d63a
VZ
13862#include "confdefs.h"
13863/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
13864 which can conflict with char $ac_func(); below. */
13865#include <assert.h>
13866/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 13867/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13868 builtin and then its argument prototype would still apply. */
13869char $ac_func();
13870
13871int main() {
10f2d63a
VZ
13872
13873/* The GNU C library defines this for functions which it implements
13874 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
13875 something starting with __ and the normal name is an alias. */
13876#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13877choke me
13878#else
698dcdb6 13879$ac_func();
1e487827 13880#endif
703e0a69 13881
698dcdb6
VZ
13882; return 0; }
13883EOF
c39c53e9 13884if { (eval echo configure:13885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13885 rm -rf conftest*
13886 eval "ac_cv_func_$ac_func=yes"
13887else
13888 echo "configure: failed program was:" >&5
13889 cat conftest.$ac_ext >&5
13890 rm -rf conftest*
13891 eval "ac_cv_func_$ac_func=no"
13892fi
13893rm -f conftest*
13894fi
13895
13896if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13897 echo "$ac_t""yes" 1>&6
13898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13899 cat >> confdefs.h <<EOF
13900#define $ac_tr_func 1
13901EOF
13902 cat >> confdefs.h <<\EOF
c63c7106
VZ
13903#define HAVE_INET_ADDR 1
13904EOF
13905
10f2d63a 13906else
698dcdb6
VZ
13907 echo "$ac_t""no" 1>&6
13908echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
c39c53e9 13909echo "configure:13910: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
13910ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13911if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13912 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13913else
698dcdb6 13914 ac_save_LIBS="$LIBS"
c63c7106 13915LIBS="-lnsl $LIBS"
698dcdb6 13916cat > conftest.$ac_ext <<EOF
c39c53e9 13917#line 13918 "configure"
c63c7106
VZ
13918#include "confdefs.h"
13919/* Override any gcc2 internal prototype to avoid an error. */
13920/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13921 builtin and then its argument prototype would still apply. */
13922char inet_addr();
13923
13924int main() {
13925inet_addr()
13926; return 0; }
13927EOF
c39c53e9 13928if { (eval echo configure:13929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13929 rm -rf conftest*
13930 eval "ac_cv_lib_$ac_lib_var=yes"
13931else
13932 echo "configure: failed program was:" >&5
13933 cat conftest.$ac_ext >&5
13934 rm -rf conftest*
13935 eval "ac_cv_lib_$ac_lib_var=no"
13936fi
13937rm -f conftest*
13938LIBS="$ac_save_LIBS"
13939
13940fi
13941if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13942 echo "$ac_t""yes" 1>&6
c63c7106
VZ
13943 INET_LINK="nsl"
13944else
698dcdb6
VZ
13945 echo "$ac_t""no" 1>&6
13946echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
c39c53e9 13947echo "configure:13948: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
13948ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13949if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13950 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13951else
698dcdb6 13952 ac_save_LIBS="$LIBS"
c63c7106 13953LIBS="-lresolv $LIBS"
698dcdb6 13954cat > conftest.$ac_ext <<EOF
c39c53e9 13955#line 13956 "configure"
c63c7106
VZ
13956#include "confdefs.h"
13957/* Override any gcc2 internal prototype to avoid an error. */
13958/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13959 builtin and then its argument prototype would still apply. */
13960char inet_addr();
13961
13962int main() {
13963inet_addr()
13964; return 0; }
13965EOF
c39c53e9 13966if { (eval echo configure:13967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13967 rm -rf conftest*
13968 eval "ac_cv_lib_$ac_lib_var=yes"
13969else
13970 echo "configure: failed program was:" >&5
13971 cat conftest.$ac_ext >&5
13972 rm -rf conftest*
13973 eval "ac_cv_lib_$ac_lib_var=no"
13974fi
13975rm -f conftest*
13976LIBS="$ac_save_LIBS"
c63c7106 13977
6232543b 13978fi
698dcdb6
VZ
13979if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13980 echo "$ac_t""yes" 1>&6
13981 INET_LINK="resolv"
13982
13983else
13984 echo "$ac_t""no" 1>&6
13985fi
c63c7106 13986
698dcdb6 13987
1e487827 13988fi
703e0a69 13989
698dcdb6
VZ
13990
13991
10f2d63a
VZ
13992fi
13993done
13994
698dcdb6 13995
10f2d63a
VZ
13996for ac_func in inet_aton
13997do
698dcdb6 13998echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 13999echo "configure:14000: checking for $ac_func" >&5
698dcdb6
VZ
14000if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14001 echo $ac_n "(cached) $ac_c" 1>&6
14002else
14003 cat > conftest.$ac_ext <<EOF
c39c53e9 14004#line 14005 "configure"
10f2d63a
VZ
14005#include "confdefs.h"
14006/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14007 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14008#include <assert.h>
14009/* Override any gcc2 internal prototype to avoid an error. */
14010/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14011 builtin and then its argument prototype would still apply. */
14012char $ac_func();
14013
14014int main() {
10f2d63a
VZ
14015
14016/* The GNU C library defines this for functions which it implements
14017 to always fail with ENOSYS. Some functions are actually named
14018 something starting with __ and the normal name is an alias. */
14019#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14020choke me
14021#else
698dcdb6 14022$ac_func();
10f2d63a
VZ
14023#endif
14024
698dcdb6
VZ
14025; return 0; }
14026EOF
c39c53e9 14027if { (eval echo configure:14028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14028 rm -rf conftest*
14029 eval "ac_cv_func_$ac_func=yes"
14030else
14031 echo "configure: failed program was:" >&5
14032 cat conftest.$ac_ext >&5
14033 rm -rf conftest*
14034 eval "ac_cv_func_$ac_func=no"
14035fi
14036rm -f conftest*
14037fi
14038
14039if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14040 echo "$ac_t""yes" 1>&6
14041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14042 cat >> confdefs.h <<EOF
14043#define $ac_tr_func 1
14044EOF
14045 cat >> confdefs.h <<\EOF
c63c7106
VZ
14046#define HAVE_INET_ATON 1
14047EOF
14048
10f2d63a 14049else
698dcdb6
VZ
14050 echo "$ac_t""no" 1>&6
14051 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
c39c53e9 14052echo "configure:14053: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
14053ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
14054if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14055 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14056else
698dcdb6 14057 ac_save_LIBS="$LIBS"
c63c7106 14058LIBS="-l$INET_LINK $LIBS"
698dcdb6 14059cat > conftest.$ac_ext <<EOF
c39c53e9 14060#line 14061 "configure"
10f2d63a
VZ
14061#include "confdefs.h"
14062/* Override any gcc2 internal prototype to avoid an error. */
14063/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14064 builtin and then its argument prototype would still apply. */
14065char inet_aton();
14066
14067int main() {
14068inet_aton()
14069; return 0; }
14070EOF
c39c53e9 14071if { (eval echo configure:14072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14072 rm -rf conftest*
14073 eval "ac_cv_lib_$ac_lib_var=yes"
14074else
14075 echo "configure: failed program was:" >&5
14076 cat conftest.$ac_ext >&5
14077 rm -rf conftest*
14078 eval "ac_cv_lib_$ac_lib_var=no"
14079fi
14080rm -f conftest*
14081LIBS="$ac_save_LIBS"
14082
14083fi
14084if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14085 echo "$ac_t""yes" 1>&6
14086 cat >> confdefs.h <<\EOF
c63c7106 14087#define HAVE_INET_ATON 1
10f2d63a
VZ
14088EOF
14089
698dcdb6
VZ
14090else
14091 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14092fi
14093
698dcdb6 14094
c63c7106
VZ
14095fi
14096done
14097
698dcdb6 14098
c63c7106 14099if test "x$INET_LINK" != "x"; then
698dcdb6 14100 cat >> confdefs.h <<\EOF
c63c7106
VZ
14101#define HAVE_INET_ADDR 1
14102EOF
14103
14104 INET_LINK="-l$INET_LINK"
14105fi
10f2d63a
VZ
14106
14107fi
14108
698dcdb6
VZ
14109
14110cat > confcache <<\EOF
10f2d63a
VZ
14111# This file is a shell script that caches the results of configure
14112# tests run on this system so they can be shared between configure
698dcdb6
VZ
14113# scripts and configure runs. It is not useful on other systems.
14114# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 14115#
698dcdb6
VZ
14116# By default, configure uses ./config.cache as the cache file,
14117# creating it if it does not exist already. You can give configure
14118# the --cache-file=FILE option to use a different cache file; that is
14119# what configure does when it calls configure scripts in
14120# subdirectories, so they share the cache.
14121# Giving --cache-file=/dev/null disables caching, for debugging configure.
14122# config.status only pays attention to the cache file if you give it the
14123# --recheck option to rerun configure.
10f2d63a 14124#
698dcdb6 14125EOF
10f2d63a
VZ
14126# The following way of writing the cache mishandles newlines in values,
14127# but we know of no workaround that is simple, portable, and efficient.
14128# So, don't put newlines in cache variables' values.
14129# Ultrix sh set writes to stderr and can't be redirected directly,
14130# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
14131(set) 2>&1 |
14132 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14133 *ac_space=\ *)
14134 # `set' does not quote correctly, so add quotes (double-quote substitution
14135 # turns \\\\ into \\, and sed turns \\ into \).
14136 sed -n \
14137 -e "s/'/'\\\\''/g" \
14138 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14139 ;;
14140 *)
14141 # `set' quotes correctly as required by POSIX, so do not add quotes.
14142 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14143 ;;
14144 esac >> confcache
14145if cmp -s $cache_file confcache; then
14146 :
14147else
10f2d63a 14148 if test -w $cache_file; then
698dcdb6
VZ
14149 echo "updating cache $cache_file"
14150 cat confcache > $cache_file
10f2d63a
VZ
14151 else
14152 echo "not updating unwritable cache $cache_file"
14153 fi
14154fi
14155rm -f confcache
14156
698dcdb6
VZ
14157
14158
b089607b 14159if test "$TOOLKIT" != "MSW"; then
10f2d63a 14160
698dcdb6 14161
10f2d63a
VZ
14162THREADS_LINK=""
14163THREADS_OBJ=""
14164
14165if test "$wxUSE_THREADS" = "yes" ; then
14166 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 14167 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 14168 wxUSE_THREADS="no"
b12915c1 14169 elif test "$USE_BEOS" = 1; then
698dcdb6 14170 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 14171 wxUSE_THREADS="no"
10f2d63a
VZ
14172 fi
14173fi
14174
14175if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14176
186837b0 14177 if test "$USE_AIX" = 1; then
f6bcfd97
BP
14178 THREADS_LIB=pthreads
14179 else
14180 THREADS_LIB=pthread
14181 fi
14182
698dcdb6 14183 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
c39c53e9 14184echo "configure:14185: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
14185ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14186if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14187 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14188else
698dcdb6 14189 ac_save_LIBS="$LIBS"
f6bcfd97 14190LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 14191cat > conftest.$ac_ext <<EOF
c39c53e9 14192#line 14193 "configure"
10f2d63a
VZ
14193#include "confdefs.h"
14194/* Override any gcc2 internal prototype to avoid an error. */
14195/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14196 builtin and then its argument prototype would still apply. */
14197char pthread_create();
14198
14199int main() {
14200pthread_create()
14201; return 0; }
14202EOF
c39c53e9 14203if { (eval echo configure:14204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14204 rm -rf conftest*
14205 eval "ac_cv_lib_$ac_lib_var=yes"
14206else
14207 echo "configure: failed program was:" >&5
14208 cat conftest.$ac_ext >&5
14209 rm -rf conftest*
14210 eval "ac_cv_lib_$ac_lib_var=no"
14211fi
14212rm -f conftest*
14213LIBS="$ac_save_LIBS"
10f2d63a 14214
698dcdb6
VZ
14215fi
14216if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14217 echo "$ac_t""yes" 1>&6
14218
10f2d63a 14219 THREADS_OBJ="threadpsx.lo"
f6bcfd97 14220 THREADS_LINK=$THREADS_LIB
698dcdb6 14221
10f2d63a 14222else
698dcdb6 14223 echo "$ac_t""no" 1>&6
10f2d63a 14224
698dcdb6 14225 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
c39c53e9 14226echo "configure:14227: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
14227ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14228if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14229 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14230else
698dcdb6 14231 ac_save_LIBS="$LIBS"
10f2d63a 14232LIBS="-lc_r $LIBS"
698dcdb6 14233cat > conftest.$ac_ext <<EOF
c39c53e9 14234#line 14235 "configure"
10f2d63a
VZ
14235#include "confdefs.h"
14236/* Override any gcc2 internal prototype to avoid an error. */
14237/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14238 builtin and then its argument prototype would still apply. */
14239char pthread_create();
14240
14241int main() {
14242pthread_create()
14243; return 0; }
14244EOF
c39c53e9 14245if { (eval echo configure:14246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14246 rm -rf conftest*
14247 eval "ac_cv_lib_$ac_lib_var=yes"
14248else
14249 echo "configure: failed program was:" >&5
14250 cat conftest.$ac_ext >&5
14251 rm -rf conftest*
14252 eval "ac_cv_lib_$ac_lib_var=no"
14253fi
14254rm -f conftest*
14255LIBS="$ac_save_LIBS"
10f2d63a 14256
698dcdb6
VZ
14257fi
14258if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14259 echo "$ac_t""yes" 1>&6
14260
10f2d63a
VZ
14261 THREADS_OBJ="threadpsx.lo"
14262 THREADS_LINK="c_r"
698dcdb6 14263
10f2d63a 14264else
698dcdb6 14265 echo "$ac_t""no" 1>&6
10f2d63a 14266
698dcdb6
VZ
14267 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14268echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
c39c53e9 14269echo "configure:14270: checking for sys/prctl.h" >&5
698dcdb6
VZ
14270if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14271 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14272else
698dcdb6 14273 cat > conftest.$ac_ext <<EOF
c39c53e9 14274#line 14275 "configure"
10f2d63a
VZ
14275#include "confdefs.h"
14276#include <sys/prctl.h>
698dcdb6
VZ
14277EOF
14278ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 14279{ (eval echo configure:14280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14280ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14281if test -z "$ac_err"; then
14282 rm -rf conftest*
14283 eval "ac_cv_header_$ac_safe=yes"
1e487827 14284else
698dcdb6
VZ
14285 echo "$ac_err" >&5
14286 echo "configure: failed program was:" >&5
10f2d63a 14287 cat conftest.$ac_ext >&5
698dcdb6
VZ
14288 rm -rf conftest*
14289 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14290fi
698dcdb6 14291rm -f conftest*
10f2d63a 14292fi
698dcdb6
VZ
14293if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14294 echo "$ac_t""yes" 1>&6
14295
1f8ae82f 14296 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
14297
14298else
14299 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14300fi
14301
698dcdb6 14302
6232543b 14303fi
10f2d63a 14304
698dcdb6 14305
1e487827 14306fi
703e0a69 14307
698dcdb6 14308
10f2d63a
VZ
14309 if test -z "$THREADS_OBJ" ; then
14310 wxUSE_THREADS=no
698dcdb6 14311 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
14312 fi
14313fi
14314
14315if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14316 for ac_func in thr_setconcurrency
70846f0a 14317do
698dcdb6 14318echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 14319echo "configure:14320: checking for $ac_func" >&5
698dcdb6
VZ
14320if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14321 echo $ac_n "(cached) $ac_c" 1>&6
14322else
14323 cat > conftest.$ac_ext <<EOF
c39c53e9 14324#line 14325 "configure"
70846f0a
VZ
14325#include "confdefs.h"
14326/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14327 which can conflict with char $ac_func(); below. */
70846f0a
VZ
14328#include <assert.h>
14329/* Override any gcc2 internal prototype to avoid an error. */
14330/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14331 builtin and then its argument prototype would still apply. */
14332char $ac_func();
14333
14334int main() {
70846f0a
VZ
14335
14336/* The GNU C library defines this for functions which it implements
14337 to always fail with ENOSYS. Some functions are actually named
14338 something starting with __ and the normal name is an alias. */
14339#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14340choke me
14341#else
698dcdb6 14342$ac_func();
70846f0a
VZ
14343#endif
14344
698dcdb6 14345; return 0; }
70846f0a 14346EOF
c39c53e9 14347if { (eval echo configure:14348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14348 rm -rf conftest*
14349 eval "ac_cv_func_$ac_func=yes"
14350else
14351 echo "configure: failed program was:" >&5
14352 cat conftest.$ac_ext >&5
14353 rm -rf conftest*
14354 eval "ac_cv_func_$ac_func=no"
14355fi
14356rm -f conftest*
14357fi
70846f0a 14358
698dcdb6
VZ
14359if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14360 echo "$ac_t""yes" 1>&6
14361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14362 cat >> confdefs.h <<EOF
14363#define $ac_tr_func 1
14364EOF
14365
14366else
14367 echo "$ac_t""no" 1>&6
70846f0a
VZ
14368fi
14369done
14370
698dcdb6
VZ
14371
14372
14373 for ac_hdr in sched.h
10f2d63a 14374do
698dcdb6
VZ
14375ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14376echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c39c53e9 14377echo "configure:14378: checking for $ac_hdr" >&5
698dcdb6
VZ
14378if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14379 echo $ac_n "(cached) $ac_c" 1>&6
14380else
14381 cat > conftest.$ac_ext <<EOF
c39c53e9 14382#line 14383 "configure"
10f2d63a 14383#include "confdefs.h"
698dcdb6
VZ
14384#include <$ac_hdr>
14385EOF
14386ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 14387{ (eval echo configure:14388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14388ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14389if test -z "$ac_err"; then
14390 rm -rf conftest*
14391 eval "ac_cv_header_$ac_safe=yes"
1e487827 14392else
698dcdb6
VZ
14393 echo "$ac_err" >&5
14394 echo "configure: failed program was:" >&5
10f2d63a 14395 cat conftest.$ac_ext >&5
698dcdb6
VZ
14396 rm -rf conftest*
14397 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14398fi
698dcdb6 14399rm -f conftest*
10f2d63a 14400fi
698dcdb6
VZ
14401if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14402 echo "$ac_t""yes" 1>&6
14403 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14404 cat >> confdefs.h <<EOF
14405#define $ac_tr_hdr 1
10f2d63a 14406EOF
698dcdb6
VZ
14407
14408else
14409 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14410fi
14411done
14412
698dcdb6
VZ
14413
14414 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
c39c53e9 14415echo "configure:14416: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
14416ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14417if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14418 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14419else
698dcdb6 14420 ac_save_LIBS="$LIBS"
10f2d63a 14421LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14422cat > conftest.$ac_ext <<EOF
c39c53e9 14423#line 14424 "configure"
10f2d63a
VZ
14424#include "confdefs.h"
14425/* Override any gcc2 internal prototype to avoid an error. */
14426/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14427 builtin and then its argument prototype would still apply. */
14428char sched_yield();
14429
14430int main() {
14431sched_yield()
14432; return 0; }
14433EOF
c39c53e9 14434if { (eval echo configure:14435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14435 rm -rf conftest*
14436 eval "ac_cv_lib_$ac_lib_var=yes"
14437else
14438 echo "configure: failed program was:" >&5
14439 cat conftest.$ac_ext >&5
14440 rm -rf conftest*
14441 eval "ac_cv_lib_$ac_lib_var=no"
14442fi
14443rm -f conftest*
14444LIBS="$ac_save_LIBS"
14445
14446fi
14447if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14448 echo "$ac_t""yes" 1>&6
14449 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14450#define HAVE_SCHED_YIELD 1
14451EOF
14452
14453else
698dcdb6
VZ
14454 echo "$ac_t""no" 1>&6
14455echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
c39c53e9 14456echo "configure:14457: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
14457ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14458if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14459 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14460else
698dcdb6 14461 ac_save_LIBS="$LIBS"
1e487827 14462LIBS="-lposix4 $LIBS"
698dcdb6 14463cat > conftest.$ac_ext <<EOF
c39c53e9 14464#line 14465 "configure"
10f2d63a
VZ
14465#include "confdefs.h"
14466/* Override any gcc2 internal prototype to avoid an error. */
14467/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14468 builtin and then its argument prototype would still apply. */
14469char sched_yield();
14470
14471int main() {
14472sched_yield()
14473; return 0; }
14474EOF
c39c53e9 14475if { (eval echo configure:14476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14476 rm -rf conftest*
14477 eval "ac_cv_lib_$ac_lib_var=yes"
14478else
14479 echo "configure: failed program was:" >&5
14480 cat conftest.$ac_ext >&5
14481 rm -rf conftest*
14482 eval "ac_cv_lib_$ac_lib_var=no"
14483fi
14484rm -f conftest*
14485LIBS="$ac_save_LIBS"
14486
14487fi
14488if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14489 echo "$ac_t""yes" 1>&6
14490 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14491#define HAVE_SCHED_YIELD 1
14492EOF
14493 POSIX4_LINK="-lposix4"
14494else
698dcdb6
VZ
14495 echo "$ac_t""no" 1>&6
14496echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14497
6232543b 14498fi
10f2d63a 14499
698dcdb6 14500
1e487827 14501fi
703e0a69 14502
698dcdb6 14503
f6bcfd97 14504 HAVE_PRIOR_FUNCS=0
698dcdb6 14505 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
c39c53e9 14506echo "configure:14507: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
14507ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14508if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14509 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14510else
698dcdb6 14511 ac_save_LIBS="$LIBS"
10f2d63a 14512LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14513cat > conftest.$ac_ext <<EOF
c39c53e9 14514#line 14515 "configure"
10f2d63a
VZ
14515#include "confdefs.h"
14516/* Override any gcc2 internal prototype to avoid an error. */
14517/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14518 builtin and then its argument prototype would still apply. */
14519char pthread_attr_getschedpolicy();
14520
14521int main() {
14522pthread_attr_getschedpolicy()
14523; return 0; }
14524EOF
c39c53e9 14525if { (eval echo configure:14526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14526 rm -rf conftest*
14527 eval "ac_cv_lib_$ac_lib_var=yes"
14528else
14529 echo "configure: failed program was:" >&5
14530 cat conftest.$ac_ext >&5
14531 rm -rf conftest*
14532 eval "ac_cv_lib_$ac_lib_var=no"
14533fi
14534rm -f conftest*
14535LIBS="$ac_save_LIBS"
14536
14537fi
14538if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14539 echo "$ac_t""yes" 1>&6
14540 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
c39c53e9 14541echo "configure:14542: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
14542ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | 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
14545else
14546 ac_save_LIBS="$LIBS"
f6bcfd97 14547LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14548cat > conftest.$ac_ext <<EOF
c39c53e9 14549#line 14550 "configure"
f6bcfd97
BP
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_attr_setschedparam();
14555
14556int main() {
14557pthread_attr_setschedparam()
14558; return 0; }
14559EOF
c39c53e9 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"
14571
14572fi
14573if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14574 echo "$ac_t""yes" 1>&6
14575 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
c39c53e9 14576echo "configure:14577: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
14577ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14578if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14579 echo $ac_n "(cached) $ac_c" 1>&6
14580else
14581 ac_save_LIBS="$LIBS"
f6bcfd97 14582LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14583cat > conftest.$ac_ext <<EOF
c39c53e9 14584#line 14585 "configure"
f6bcfd97
BP
14585#include "confdefs.h"
14586/* Override any gcc2 internal prototype to avoid an error. */
14587/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14588 builtin and then its argument prototype would still apply. */
14589char sched_get_priority_max();
14590
14591int main() {
14592sched_get_priority_max()
14593; return 0; }
14594EOF
c39c53e9 14595if { (eval echo configure:14596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14596 rm -rf conftest*
14597 eval "ac_cv_lib_$ac_lib_var=yes"
14598else
14599 echo "configure: failed program was:" >&5
14600 cat conftest.$ac_ext >&5
14601 rm -rf conftest*
14602 eval "ac_cv_lib_$ac_lib_var=no"
14603fi
14604rm -f conftest*
14605LIBS="$ac_save_LIBS"
14606
14607fi
14608if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14609 echo "$ac_t""yes" 1>&6
f6bcfd97 14610 HAVE_PRIOR_FUNCS=1
10f2d63a 14611else
698dcdb6
VZ
14612 echo "$ac_t""no" 1>&6
14613echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
c39c53e9 14614echo "configure:14615: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
14615ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14616if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14617 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 14618else
698dcdb6 14619 ac_save_LIBS="$LIBS"
1e487827 14620LIBS="-lposix4 $LIBS"
698dcdb6 14621cat > conftest.$ac_ext <<EOF
c39c53e9 14622#line 14623 "configure"
10f2d63a 14623#include "confdefs.h"
6232543b 14624/* Override any gcc2 internal prototype to avoid an error. */
6232543b 14625/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14626 builtin and then its argument prototype would still apply. */
14627char sched_get_priority_max();
14628
14629int main() {
14630sched_get_priority_max()
14631; return 0; }
14632EOF
c39c53e9 14633if { (eval echo configure:14634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14634 rm -rf conftest*
14635 eval "ac_cv_lib_$ac_lib_var=yes"
14636else
14637 echo "configure: failed program was:" >&5
14638 cat conftest.$ac_ext >&5
14639 rm -rf conftest*
14640 eval "ac_cv_lib_$ac_lib_var=no"
14641fi
14642rm -f conftest*
14643LIBS="$ac_save_LIBS"
10f2d63a 14644
698dcdb6
VZ
14645fi
14646if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14647 echo "$ac_t""yes" 1>&6
14648
f6bcfd97
BP
14649 HAVE_PRIOR_FUNCS=1
14650 POSIX4_LINK="-lposix4"
698dcdb6
VZ
14651
14652else
14653 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14654fi
14655
698dcdb6 14656
10f2d63a
VZ
14657fi
14658
698dcdb6
VZ
14659
14660else
14661 echo "$ac_t""no" 1>&6
6232543b 14662fi
10f2d63a 14663
698dcdb6
VZ
14664
14665else
14666 echo "$ac_t""no" 1>&6
1e487827 14667fi
703e0a69 14668
698dcdb6 14669
f6bcfd97 14670 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 14671 cat >> confdefs.h <<\EOF
f6bcfd97
BP
14672#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14673EOF
14674
14675 else
698dcdb6 14676 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
14677 fi
14678
698dcdb6 14679 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
c39c53e9 14680echo "configure:14681: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
14681ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14682if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14683 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14684else
698dcdb6 14685 ac_save_LIBS="$LIBS"
10f2d63a 14686LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14687cat > conftest.$ac_ext <<EOF
c39c53e9 14688#line 14689 "configure"
10f2d63a
VZ
14689#include "confdefs.h"
14690/* Override any gcc2 internal prototype to avoid an error. */
14691/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14692 builtin and then its argument prototype would still apply. */
14693char pthread_cancel();
14694
14695int main() {
14696pthread_cancel()
14697; return 0; }
14698EOF
c39c53e9 14699if { (eval echo configure:14700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14700 rm -rf conftest*
14701 eval "ac_cv_lib_$ac_lib_var=yes"
14702else
14703 echo "configure: failed program was:" >&5
14704 cat conftest.$ac_ext >&5
14705 rm -rf conftest*
14706 eval "ac_cv_lib_$ac_lib_var=no"
14707fi
14708rm -f conftest*
14709LIBS="$ac_save_LIBS"
14710
14711fi
14712if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14713 echo "$ac_t""yes" 1>&6
14714 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14715#define HAVE_PTHREAD_CANCEL 1
14716EOF
14717
14718else
698dcdb6
VZ
14719 echo "$ac_t""no" 1>&6
14720echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
14721fi
14722
1e487827 14723
698dcdb6 14724 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
c39c53e9 14725echo "configure:14726: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
14726if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14727 echo $ac_n "(cached) $ac_c" 1>&6
14728else
14729
14730 cat > conftest.$ac_ext <<EOF
c39c53e9 14731#line 14732 "configure"
10f2d63a
VZ
14732#include "confdefs.h"
14733#include <pthread.h>
698dcdb6 14734int main() {
10f2d63a
VZ
14735
14736 pthread_cleanup_push(NULL, NULL);
14737 pthread_cleanup_pop(0);
698dcdb6
VZ
14738
14739; return 0; }
14740EOF
c39c53e9 14741if { (eval echo configure:14742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14742 rm -rf conftest*
14743
10f2d63a 14744 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 14745
10f2d63a 14746else
698dcdb6
VZ
14747 echo "configure: failed program was:" >&5
14748 cat conftest.$ac_ext >&5
14749 rm -rf conftest*
14750
10f2d63a 14751 wx_cv_func_pthread_cleanup_push=no
698dcdb6 14752
6232543b 14753fi
698dcdb6
VZ
14754rm -f conftest*
14755
1e487827 14756fi
698dcdb6
VZ
14757
14758echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 14759
d9b9876f 14760 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 14761 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14762#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14763EOF
14764
14765 fi
14766
698dcdb6 14767
ab252f7b
VZ
14768 if test "x$wx_lib_glibc21" = "xyes"; then
14769 CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500"
14770 fi
14771
698dcdb6 14772 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
c39c53e9 14773echo "configure:14774: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
14774if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14775 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 14776else
698dcdb6
VZ
14777
14778 cat > conftest.$ac_ext <<EOF
c39c53e9 14779#line 14780 "configure"
d9b9876f
VZ
14780#include "confdefs.h"
14781#include <pthread.h>
698dcdb6 14782int main() {
d9b9876f
VZ
14783
14784 pthread_mutexattr_t attr;
14785 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
14786
14787; return 0; }
14788EOF
c39c53e9 14789if { (eval echo configure:14790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14790 rm -rf conftest*
14791
d9b9876f 14792 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 14793
d9b9876f 14794else
698dcdb6
VZ
14795 echo "configure: failed program was:" >&5
14796 cat conftest.$ac_ext >&5
14797 rm -rf conftest*
14798
d9b9876f 14799 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
14800
14801
6232543b 14802fi
698dcdb6
VZ
14803rm -f conftest*
14804
1e487827 14805fi
698dcdb6
VZ
14806
14807echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
14808
14809 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 14810 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14811#define HAVE_PTHREAD_MUTEXATTR_T 1
14812EOF
14813
14814 else
698dcdb6 14815 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
c39c53e9 14816echo "configure:14817: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
14817if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14818 echo $ac_n "(cached) $ac_c" 1>&6
14819else
14820
14821 cat > conftest.$ac_ext <<EOF
c39c53e9 14822#line 14823 "configure"
d9b9876f
VZ
14823#include "confdefs.h"
14824#include <pthread.h>
698dcdb6 14825int main() {
d9b9876f
VZ
14826
14827 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
14828
14829; return 0; }
14830EOF
c39c53e9 14831if { (eval echo configure:14832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14832 rm -rf conftest*
14833
d9b9876f 14834 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 14835
d9b9876f 14836else
698dcdb6
VZ
14837 echo "configure: failed program was:" >&5
14838 cat conftest.$ac_ext >&5
14839 rm -rf conftest*
14840
d9b9876f 14841 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
14842
14843
6232543b 14844fi
698dcdb6
VZ
14845rm -f conftest*
14846
1e487827 14847fi
698dcdb6
VZ
14848
14849echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 14850 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 14851 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14852#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14853EOF
14854
14855 else
698dcdb6 14856 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
14857 fi
14858 fi
14859
10f2d63a 14860 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
14861
14862 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14863 CFLAGS="${CFLAGS} -mt"
14864 CXXFLAGS="${CXXFLAGS} -mt"
14865 LDFLAGS="${LDFLAGS} -mt"
14866 fi
10f2d63a
VZ
14867fi
14868
14869fi
14870
14871if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 14872 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14873#define wxUSE_THREADS 1
14874EOF
14875
698dcdb6 14876
7b6058cd 14877 if test "$USE_DARWIN" != 1; then
10f2d63a 14878 CFLAGS="${CFLAGS} -D_REENTRANT"
2c6025bc
GD
14879 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14880 fi
10f2d63a
VZ
14881
14882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14883else
14884 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 14885 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
c39c53e9 14886echo "configure:14887: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
14887 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14888 CFLAGS="${CFLAGS} -D_REENTRANT"
14889 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
698dcdb6 14890 echo "$ac_t""yes" 1>&6
ab9b9eab 14891 else
698dcdb6 14892 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14893 fi
14894 fi
14895fi
14896
6f72b082 14897if test "$WXGTK20" = 1 ; then
698dcdb6 14898 cat >> confdefs.h <<EOF
6f72b082 14899#define __WXGTK20__ $WXGTK20
13111b2a
VZ
14900EOF
14901
14902 WXGTK12=1
14903fi
14904
10f2d63a 14905if test "$WXGTK12" = 1 ; then
698dcdb6 14906 cat >> confdefs.h <<EOF
10f2d63a
VZ
14907#define __WXGTK12__ $WXGTK12
14908EOF
14909
14910fi
14911
f6bcfd97 14912if test "$WXGTK127" = 1 ; then
698dcdb6 14913 cat >> confdefs.h <<EOF
f6bcfd97
BP
14914#define __WXGTK127__ $WXGTK127
14915EOF
14916
14917fi
14918
10f2d63a
VZ
14919if test "$WXWINE" = 1 ; then
14920 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14921fi
14922
b4085ce6 14923if test "$wxUSE_MAC" = 1 ; then
f11bdd03
GD
14924 TOOLKIT_DEF="${TOOLKIT_DEF} -DTARGET_CARBON"
14925 CFLAGS="${CFLAGS} -fpascal-strings"
14926 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fpascal-strings"
2f51a9ec
GD
14927 # Extract the first word of "Rez", so it can be a program name with args.
14928set dummy Rez; ac_word=$2
698dcdb6 14929echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c39c53e9 14930echo "configure:14931: checking for $ac_word" >&5
698dcdb6
VZ
14931if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14932 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14933else
14934 if test -n "$REZ"; then
14935 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14936else
698dcdb6
VZ
14937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14938 ac_dummy="$PATH"
14939 for ac_dir in $ac_dummy; do
14940 test -z "$ac_dir" && ac_dir=.
14941 if test -f $ac_dir/$ac_word; then
14942 ac_cv_prog_REZ="Rez"
14943 break
14944 fi
14945 done
14946 IFS="$ac_save_ifs"
2f51a9ec
GD
14947 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14948fi
14949fi
698dcdb6 14950REZ="$ac_cv_prog_REZ"
2f51a9ec 14951if test -n "$REZ"; then
698dcdb6 14952 echo "$ac_t""$REZ" 1>&6
2f51a9ec 14953else
698dcdb6 14954 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14955fi
14956
14957 # Extract the first word of "Derez", so it can be a program name with args.
14958set dummy Derez; ac_word=$2
698dcdb6 14959echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c39c53e9 14960echo "configure:14961: checking for $ac_word" >&5
698dcdb6
VZ
14961if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14962 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14963else
14964 if test -n "$DEREZ"; then
14965 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14966else
698dcdb6
VZ
14967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14968 ac_dummy="$PATH"
14969 for ac_dir in $ac_dummy; do
14970 test -z "$ac_dir" && ac_dir=.
14971 if test -f $ac_dir/$ac_word; then
14972 ac_cv_prog_DEREZ="Derez"
14973 break
14974 fi
14975 done
14976 IFS="$ac_save_ifs"
2f51a9ec
GD
14977 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14978fi
14979fi
698dcdb6 14980DEREZ="$ac_cv_prog_DEREZ"
2f51a9ec 14981if test -n "$DEREZ"; then
698dcdb6 14982 echo "$ac_t""$DEREZ" 1>&6
2f51a9ec 14983else
698dcdb6 14984 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14985fi
14986
14987 RESCOMP=${REZ}
14988 REZFLAGS="-d __UNIX__ -useDF"
14989 DEREZFLAGS="Carbon.r -useDF"
14990 RESFLAGS="Carbon.r -t APPL"
14991 LIBWXMACRES="\$(LIBWX_MACRES)"
14992 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
b4085ce6
GD
14993fi
14994
10f2d63a
VZ
14995if test "$wxUSE_CYGWIN" = 1 ; then
14996 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14997fi
14998
14999WXDEBUG=
15000
15001if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15002 WXDEBUG="-g"
15003 wxUSE_OPTIMISE=no
15004fi
15005
15006if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15007 wxUSE_DEBUG_INFO=yes
15008 WXDEBUG="-ggdb"
15009fi
15010
15011if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 15012 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15013#define WXDEBUG 1
15014EOF
15015
15016 WXDEBUG_DEFINE="-D__WXDEBUG__"
15017else
15018 if test "$wxUSE_GTK" = 1 ; then
15019 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15020 fi
15021fi
15022
15023if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 15024 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15025#define wxUSE_MEMORY_TRACING 1
15026EOF
15027
698dcdb6 15028 cat >> confdefs.h <<\EOF
10f2d63a 15029#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
15030EOF
15031
698dcdb6 15032 cat >> confdefs.h <<\EOF
47c13eb7 15033#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
15034EOF
15035
15036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15037fi
15038
15039if test "$wxUSE_DMALLOC" = "yes" ; then
15040 DMALLOC_LINK="-ldmalloc"
15041fi
15042
15043PROFILE=
15044if test "$wxUSE_PROFILE" = "yes" ; then
15045 PROFILE="-pg"
15046fi
15047
15048DEP_INFO_FLAGS=
caa2c79b 15049CODE_GEN_FLAGS=
0f3f1cbc 15050CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
15051if test "$GCC" = yes ; then
15052 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 15053 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
15054 fi
15055 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 15056 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
15057 fi
15058 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 15059 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
15060 fi
15061 if test "$wxUSE_NO_DEPS" = "no" ; then
15062 DEP_INFO_FLAGS="-MMD"
15063 fi
15064fi
15065
698dcdb6 15066
10f2d63a
VZ
15067CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15068CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15069if test "$wxUSE_OPTIMISE" = "no" ; then
15070 OPTIMISE=
15071else
15072 if test "$GCC" = yes ; then
15073 OPTIMISE="-O2"
15074 case "${host}" in
15075 i586-*-*|i686-*-* )
15076 OPTIMISE="${OPTIMISE} "
15077 ;;
15078 esac
15079 else
15080 OPTIMISE="-O"
15081 fi
15082fi
15083
54276ccf
VZ
15084if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
15085 cat >> confdefs.h <<\EOF
15086#define WXWIN_COMPATIBILITY_2 1
15087EOF
15088
15089
15090 WXWIN_COMPATIBILITY_2_2="yes"
15091fi
15092
15093if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
15094 cat >> confdefs.h <<\EOF
15095#define WXWIN_COMPATIBILITY_2_2 1
15096EOF
15097
15098fi
15099
698dcdb6 15100
10f2d63a 15101ZLIB_INCLUDE=
422107f9 15102if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 15103 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15104#define wxUSE_ZLIB 1
15105EOF
15106
422107f9
VZ
15107 if test "$wxUSE_ZLIB" = "yes" ; then
15108 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15109 else
15110 ZLIB_LINK=
698dcdb6
VZ
15111 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15112echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
c39c53e9 15113echo "configure:15114: checking for zlib.h" >&5
698dcdb6
VZ
15114if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15115 echo $ac_n "(cached) $ac_c" 1>&6
15116else
15117 cat > conftest.$ac_ext <<EOF
c39c53e9 15118#line 15119 "configure"
422107f9
VZ
15119#include "confdefs.h"
15120#include <zlib.h>
698dcdb6
VZ
15121EOF
15122ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 15123{ (eval echo configure:15124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15124ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15125if test -z "$ac_err"; then
15126 rm -rf conftest*
15127 eval "ac_cv_header_$ac_safe=yes"
422107f9 15128else
698dcdb6
VZ
15129 echo "$ac_err" >&5
15130 echo "configure: failed program was:" >&5
422107f9 15131 cat conftest.$ac_ext >&5
698dcdb6
VZ
15132 rm -rf conftest*
15133 eval "ac_cv_header_$ac_safe=no"
422107f9 15134fi
698dcdb6 15135rm -f conftest*
422107f9 15136fi
698dcdb6
VZ
15137if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15138 echo "$ac_t""yes" 1>&6
15139 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
c39c53e9 15140echo "configure:15141: checking for deflate in -lz" >&5
698dcdb6
VZ
15141ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15142if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15143 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15144else
698dcdb6 15145 ac_save_LIBS="$LIBS"
422107f9 15146LIBS="-lz $LIBS"
698dcdb6 15147cat > conftest.$ac_ext <<EOF
c39c53e9 15148#line 15149 "configure"
422107f9
VZ
15149#include "confdefs.h"
15150/* Override any gcc2 internal prototype to avoid an error. */
15151/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15152 builtin and then its argument prototype would still apply. */
15153char deflate();
15154
15155int main() {
15156deflate()
15157; return 0; }
15158EOF
c39c53e9 15159if { (eval echo configure:15160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15160 rm -rf conftest*
15161 eval "ac_cv_lib_$ac_lib_var=yes"
15162else
15163 echo "configure: failed program was:" >&5
15164 cat conftest.$ac_ext >&5
15165 rm -rf conftest*
15166 eval "ac_cv_lib_$ac_lib_var=no"
15167fi
15168rm -f conftest*
15169LIBS="$ac_save_LIBS"
15170
15171fi
15172if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15173 echo "$ac_t""yes" 1>&6
422107f9 15174 ZLIB_LINK="-lz"
698dcdb6
VZ
15175else
15176 echo "$ac_t""no" 1>&6
422107f9
VZ
15177fi
15178
698dcdb6
VZ
15179else
15180 echo "$ac_t""no" 1>&6
422107f9
VZ
15181fi
15182
15183 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 15184 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
15185 fi
15186 fi
10f2d63a
VZ
15187fi
15188
15189PNG_INCLUDE=
422107f9 15190if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 15191 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15192#define wxUSE_LIBPNG 1
15193EOF
15194
41fd4136 15195 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 15196 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
15197 wxUSE_LIBPNG=yes
15198 fi
15199
15200 if test "$wxUSE_LIBPNG" = "yes" ; then
15201 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15202 else
15203 PNG_LINK=
698dcdb6
VZ
15204 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15205echo $ac_n "checking for png.h""... $ac_c" 1>&6
c39c53e9 15206echo "configure:15207: checking for png.h" >&5
698dcdb6
VZ
15207if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15208 echo $ac_n "(cached) $ac_c" 1>&6
15209else
15210 cat > conftest.$ac_ext <<EOF
c39c53e9 15211#line 15212 "configure"
422107f9
VZ
15212#include "confdefs.h"
15213#include <png.h>
698dcdb6
VZ
15214EOF
15215ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 15216{ (eval echo configure:15217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15217ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15218if test -z "$ac_err"; then
15219 rm -rf conftest*
15220 eval "ac_cv_header_$ac_safe=yes"
422107f9 15221else
698dcdb6
VZ
15222 echo "$ac_err" >&5
15223 echo "configure: failed program was:" >&5
422107f9 15224 cat conftest.$ac_ext >&5
698dcdb6
VZ
15225 rm -rf conftest*
15226 eval "ac_cv_header_$ac_safe=no"
422107f9 15227fi
698dcdb6 15228rm -f conftest*
422107f9 15229fi
698dcdb6
VZ
15230if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15231 echo "$ac_t""yes" 1>&6
15232 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
c39c53e9 15233echo "configure:15234: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
15234ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15235if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15236 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15237else
698dcdb6 15238 ac_save_LIBS="$LIBS"
422107f9 15239LIBS="-lpng -lz -lm $LIBS"
698dcdb6 15240cat > conftest.$ac_ext <<EOF
c39c53e9 15241#line 15242 "configure"
422107f9
VZ
15242#include "confdefs.h"
15243/* Override any gcc2 internal prototype to avoid an error. */
15244/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15245 builtin and then its argument prototype would still apply. */
15246char png_check_sig();
15247
15248int main() {
15249png_check_sig()
15250; return 0; }
15251EOF
c39c53e9 15252if { (eval echo configure:15253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15253 rm -rf conftest*
15254 eval "ac_cv_lib_$ac_lib_var=yes"
15255else
15256 echo "configure: failed program was:" >&5
15257 cat conftest.$ac_ext >&5
15258 rm -rf conftest*
15259 eval "ac_cv_lib_$ac_lib_var=no"
15260fi
15261rm -f conftest*
15262LIBS="$ac_save_LIBS"
15263
15264fi
15265if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15266 echo "$ac_t""yes" 1>&6
422107f9 15267 PNG_LINK="-lpng"
698dcdb6
VZ
15268else
15269 echo "$ac_t""no" 1>&6
422107f9
VZ
15270fi
15271
698dcdb6
VZ
15272
15273else
15274 echo "$ac_t""no" 1>&6
422107f9
VZ
15275fi
15276
15277 if test "x$PNG_LINK" = "x" ; then
698dcdb6 15278 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
15279 fi
15280 fi
15281
10f2d63a
VZ
15282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15283fi
15284
15285JPEG_INCLUDE=
422107f9 15286if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 15287 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15288#define wxUSE_LIBJPEG 1
15289EOF
15290
422107f9
VZ
15291 if test "$wxUSE_LIBJPEG" = "yes" ; then
15292 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15293 else
15294 JPEG_LINK=
463abc64 15295 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
c39c53e9 15296echo "configure:15297: checking for jpeglib.h" >&5
463abc64 15297 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
698dcdb6
VZ
15298 echo $ac_n "(cached) $ac_c" 1>&6
15299else
15300 cat > conftest.$ac_ext <<EOF
c39c53e9 15301#line 15302 "configure"
422107f9 15302#include "confdefs.h"
463abc64
VZ
15303
15304 #undef HAVE_STDLIB_H
15305 #include <stdio.h>
15306 #include <jpeglib.h>
15307
15308int main() {
15309
15310
15311; return 0; }
698dcdb6 15312EOF
c39c53e9 15313if { (eval echo configure:15314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15314 rm -rf conftest*
463abc64 15315 ac_cv_header_jpeglib_h=yes
6232543b 15316else
698dcdb6 15317 echo "configure: failed program was:" >&5
422107f9 15318 cat conftest.$ac_ext >&5
698dcdb6 15319 rm -rf conftest*
463abc64
VZ
15320 ac_cv_header_jpeglib_h=no
15321
422107f9 15322fi
698dcdb6 15323rm -f conftest*
463abc64 15324
422107f9 15325fi
463abc64
VZ
15326
15327 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15328
15329 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15330 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
c39c53e9 15331echo "configure:15332: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
15332ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15333if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15334 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15335else
698dcdb6 15336 ac_save_LIBS="$LIBS"
422107f9 15337LIBS="-ljpeg $LIBS"
698dcdb6 15338cat > conftest.$ac_ext <<EOF
c39c53e9 15339#line 15340 "configure"
422107f9
VZ
15340#include "confdefs.h"
15341/* Override any gcc2 internal prototype to avoid an error. */
15342/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15343 builtin and then its argument prototype would still apply. */
15344char jpeg_read_header();
15345
15346int main() {
15347jpeg_read_header()
15348; return 0; }
15349EOF
c39c53e9 15350if { (eval echo configure:15351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15351 rm -rf conftest*
15352 eval "ac_cv_lib_$ac_lib_var=yes"
15353else
15354 echo "configure: failed program was:" >&5
15355 cat conftest.$ac_ext >&5
15356 rm -rf conftest*
15357 eval "ac_cv_lib_$ac_lib_var=no"
15358fi
15359rm -f conftest*
15360LIBS="$ac_save_LIBS"
15361
15362fi
15363if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15364 echo "$ac_t""yes" 1>&6
422107f9 15365 JPEG_LINK="-ljpeg"
698dcdb6
VZ
15366else
15367 echo "$ac_t""no" 1>&6
422107f9
VZ
15368fi
15369
463abc64 15370 fi
422107f9
VZ
15371
15372 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 15373 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
15374 fi
15375 fi
10f2d63a
VZ
15376fi
15377
c7a2bf27 15378TIFF_INCLUDE=
0dcf9893 15379if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 15380 cat >> confdefs.h <<\EOF
c7a2bf27
RR
15381#define wxUSE_LIBTIFF 1
15382EOF
15383
665bbe97 15384 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
15385 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15386 else
15387 TIFF_LINK=
698dcdb6
VZ
15388 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15389echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
c39c53e9 15390echo "configure:15391: checking for tiffio.h" >&5
698dcdb6
VZ
15391if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15392 echo $ac_n "(cached) $ac_c" 1>&6
15393else
15394 cat > conftest.$ac_ext <<EOF
c39c53e9 15395#line 15396 "configure"
0dcf9893
VZ
15396#include "confdefs.h"
15397#include <tiffio.h>
698dcdb6
VZ
15398EOF
15399ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 15400{ (eval echo configure:15401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15401ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15402if test -z "$ac_err"; then
15403 rm -rf conftest*
15404 eval "ac_cv_header_$ac_safe=yes"
1e487827 15405else
698dcdb6
VZ
15406 echo "$ac_err" >&5
15407 echo "configure: failed program was:" >&5
0dcf9893 15408 cat conftest.$ac_ext >&5
698dcdb6
VZ
15409 rm -rf conftest*
15410 eval "ac_cv_header_$ac_safe=no"
0dcf9893 15411fi
698dcdb6 15412rm -f conftest*
0dcf9893 15413fi
698dcdb6
VZ
15414if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15415 echo "$ac_t""yes" 1>&6
15416 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
c39c53e9 15417echo "configure:15418: checking for TIFFError in -ltiff" >&5
698dcdb6
VZ
15418ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15419if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15420 echo $ac_n "(cached) $ac_c" 1>&6
0dcf9893 15421else
698dcdb6 15422 ac_save_LIBS="$LIBS"
0dcf9893 15423LIBS="-ltiff -lm $LIBS"
698dcdb6 15424cat > conftest.$ac_ext <<EOF
c39c53e9 15425#line 15426 "configure"
0dcf9893
VZ
15426#include "confdefs.h"
15427/* Override any gcc2 internal prototype to avoid an error. */
15428/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15429 builtin and then its argument prototype would still apply. */
15430char TIFFError();
15431
15432int main() {
15433TIFFError()
15434; return 0; }
15435EOF
c39c53e9 15436if { (eval echo configure:15437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15437 rm -rf conftest*
15438 eval "ac_cv_lib_$ac_lib_var=yes"
15439else
15440 echo "configure: failed program was:" >&5
15441 cat conftest.$ac_ext >&5
15442 rm -rf conftest*
15443 eval "ac_cv_lib_$ac_lib_var=no"
15444fi
15445rm -f conftest*
15446LIBS="$ac_save_LIBS"
15447
15448fi
15449if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15450 echo "$ac_t""yes" 1>&6
0dcf9893 15451 TIFF_LINK="-ltiff"
698dcdb6
VZ
15452else
15453 echo "$ac_t""no" 1>&6
0dcf9893
VZ
15454fi
15455
698dcdb6
VZ
15456else
15457 echo "$ac_t""no" 1>&6
0dcf9893
VZ
15458fi
15459
15460 if test "x$TIFF_LINK" = "x" ; then
698dcdb6 15461 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
0dcf9893
VZ
15462 fi
15463 fi
c7a2bf27
RR
15464fi
15465
3fed1840
RR
15466FREETYPE_INCLUDE=
15467if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
698dcdb6 15468 cat >> confdefs.h <<\EOF
3fed1840
RR
15469#define wxUSE_FREETYPE 1
15470EOF
15471
15472 if test "$wxUSE_FREETYPE" = "yes" ; then
15473 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15474 else
15475 FREETYPE_LINK=
698dcdb6
VZ
15476 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15477echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
c39c53e9 15478echo "configure:15479: checking for freetype.h" >&5
698dcdb6
VZ
15479if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15480 echo $ac_n "(cached) $ac_c" 1>&6
15481else
15482 cat > conftest.$ac_ext <<EOF
c39c53e9 15483#line 15484 "configure"
3fed1840
RR
15484#include "confdefs.h"
15485#include <freetype.h>
698dcdb6
VZ
15486EOF
15487ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 15488{ (eval echo configure:15489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15489ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15490if test -z "$ac_err"; then
15491 rm -rf conftest*
15492 eval "ac_cv_header_$ac_safe=yes"
3fed1840 15493else
698dcdb6
VZ
15494 echo "$ac_err" >&5
15495 echo "configure: failed program was:" >&5
3fed1840 15496 cat conftest.$ac_ext >&5
698dcdb6
VZ
15497 rm -rf conftest*
15498 eval "ac_cv_header_$ac_safe=no"
3fed1840 15499fi
698dcdb6 15500rm -f conftest*
3fed1840 15501fi
698dcdb6
VZ
15502if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15503 echo "$ac_t""yes" 1>&6
15504 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
c39c53e9 15505echo "configure:15506: checking for FT_Render_Glyph in -lfreetype" >&5
698dcdb6
VZ
15506ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15507if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15508 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 15509else
698dcdb6 15510 ac_save_LIBS="$LIBS"
3fed1840 15511LIBS="-lfreetype -lm $LIBS"
698dcdb6 15512cat > conftest.$ac_ext <<EOF
c39c53e9 15513#line 15514 "configure"
3fed1840
RR
15514#include "confdefs.h"
15515/* Override any gcc2 internal prototype to avoid an error. */
15516/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15517 builtin and then its argument prototype would still apply. */
15518char FT_Render_Glyph();
15519
15520int main() {
15521FT_Render_Glyph()
15522; return 0; }
15523EOF
c39c53e9 15524if { (eval echo configure:15525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15525 rm -rf conftest*
15526 eval "ac_cv_lib_$ac_lib_var=yes"
15527else
15528 echo "configure: failed program was:" >&5
15529 cat conftest.$ac_ext >&5
15530 rm -rf conftest*
15531 eval "ac_cv_lib_$ac_lib_var=no"
15532fi
15533rm -f conftest*
15534LIBS="$ac_save_LIBS"
15535
15536fi
15537if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15538 echo "$ac_t""yes" 1>&6
3fed1840 15539 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
15540else
15541 echo "$ac_t""no" 1>&6
3fed1840
RR
15542fi
15543
698dcdb6
VZ
15544
15545else
15546 echo "$ac_t""no" 1>&6
3fed1840
RR
15547fi
15548
15549 if test "x$FREETYPE_LINK" = "x" ; then
698dcdb6 15550 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
3fed1840
RR
15551 fi
15552 fi
15553fi
15554
10f2d63a 15555if test "$wxUSE_OPENGL" = "yes"; then
7b6058cd
GD
15556 if test "$wxUSE_MAC" = 1; then
15557 cat >> confdefs.h <<\EOF
15558#define wxUSE_OPENGL 1
15559EOF
15560
15561 cat >> confdefs.h <<\EOF
15562#define wxUSE_GLCANVAS 1
15563EOF
15564
15565 OPENGL_LINK="-framework OpenGL -framework AGL"
24176f2c 15566 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
7b6058cd
GD
15567 else
15568 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
698dcdb6 15569echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
c39c53e9 15570echo "configure:15571: checking for GL/gl.h" >&5
698dcdb6
VZ
15571if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15572 echo $ac_n "(cached) $ac_c" 1>&6
15573else
15574 cat > conftest.$ac_ext <<EOF
c39c53e9 15575#line 15576 "configure"
10f2d63a
VZ
15576#include "confdefs.h"
15577#include <GL/gl.h>
698dcdb6
VZ
15578EOF
15579ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 15580{ (eval echo configure:15581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15581ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15582if test -z "$ac_err"; then
15583 rm -rf conftest*
15584 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15585else
698dcdb6
VZ
15586 echo "$ac_err" >&5
15587 echo "configure: failed program was:" >&5
10f2d63a 15588 cat conftest.$ac_ext >&5
698dcdb6
VZ
15589 rm -rf conftest*
15590 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15591fi
698dcdb6 15592rm -f conftest*
10f2d63a 15593fi
698dcdb6
VZ
15594if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15595 echo "$ac_t""yes" 1>&6
15596
7b6058cd 15597 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15598#define wxUSE_OPENGL 1
15599EOF
15600
7b6058cd 15601 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15602#define wxUSE_GLCANVAS 1
15603EOF
15604
24176f2c 15605 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
7b6058cd 15606 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
c39c53e9 15607echo "configure:15608: checking for glFlush in -lGL" >&5
698dcdb6
VZ
15608ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15609if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15610 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15611else
698dcdb6 15612 ac_save_LIBS="$LIBS"
bdad4e7e 15613LIBS="-lGL $LIBS"
698dcdb6 15614cat > conftest.$ac_ext <<EOF
c39c53e9 15615#line 15616 "configure"
10f2d63a
VZ
15616#include "confdefs.h"
15617/* Override any gcc2 internal prototype to avoid an error. */
15618/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15619 builtin and then its argument prototype would still apply. */
15620char glFlush();
6232543b 15621
698dcdb6
VZ
15622int main() {
15623glFlush()
15624; return 0; }
15625EOF
c39c53e9 15626if { (eval echo configure:15627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15627 rm -rf conftest*
15628 eval "ac_cv_lib_$ac_lib_var=yes"
15629else
15630 echo "configure: failed program was:" >&5
15631 cat conftest.$ac_ext >&5
15632 rm -rf conftest*
15633 eval "ac_cv_lib_$ac_lib_var=no"
15634fi
15635rm -f conftest*
15636LIBS="$ac_save_LIBS"
1e487827 15637
698dcdb6
VZ
15638fi
15639if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15640 echo "$ac_t""yes" 1>&6
15641
7b6058cd
GD
15642 OPENGL_LINK="-lGL -lGLU"
15643
10f2d63a 15644else
698dcdb6 15645 echo "$ac_t""no" 1>&6
10f2d63a 15646
7b6058cd 15647 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
c39c53e9 15648echo "configure:15649: checking for glFlush in -lMesaGL" >&5
698dcdb6
VZ
15649ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15650if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15651 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15652else
698dcdb6 15653 ac_save_LIBS="$LIBS"
10f2d63a 15654LIBS="-lMesaGL $LIBS"
698dcdb6 15655cat > conftest.$ac_ext <<EOF
c39c53e9 15656#line 15657 "configure"
10f2d63a
VZ
15657#include "confdefs.h"
15658/* Override any gcc2 internal prototype to avoid an error. */
15659/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15660 builtin and then its argument prototype would still apply. */
15661char glFlush();
15662
15663int main() {
15664glFlush()
15665; return 0; }
15666EOF
c39c53e9 15667if { (eval echo configure:15668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15668 rm -rf conftest*
15669 eval "ac_cv_lib_$ac_lib_var=yes"
15670else
15671 echo "configure: failed program was:" >&5
15672 cat conftest.$ac_ext >&5
15673 rm -rf conftest*
15674 eval "ac_cv_lib_$ac_lib_var=no"
15675fi
15676rm -f conftest*
15677LIBS="$ac_save_LIBS"
10f2d63a 15678
698dcdb6
VZ
15679fi
15680if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15681 echo "$ac_t""yes" 1>&6
15682
7b6058cd
GD
15683 OPENGL_LINK="-lMesaGL -lMesaGLU"
15684
698dcdb6
VZ
15685else
15686 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15687fi
15688
7b6058cd 15689
10f2d63a
VZ
15690fi
15691
7b6058cd 15692
10f2d63a 15693else
698dcdb6
VZ
15694 echo "$ac_t""no" 1>&6
15695wxUSE_OPENGL=0
10f2d63a
VZ
15696fi
15697
7b6058cd 15698 fi
10f2d63a
VZ
15699fi
15700
698dcdb6 15701
10f2d63a 15702if test "$wxUSE_GUI" = "yes"; then
698dcdb6 15703 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15704#define wxUSE_GUI 1
15705EOF
15706
698dcdb6 15707
10f2d63a 15708 else
698dcdb6 15709 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15710#define wxUSE_NOGUI 1
15711EOF
15712
15713fi
15714
698dcdb6 15715
10f2d63a 15716if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 15717 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15718#define wxUSE_UNIX 1
15719EOF
15720
15721fi
15722
698dcdb6 15723
10f2d63a 15724if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 15725 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15726#define wxUSE_APPLE_IEEE 1
15727EOF
15728
15729fi
15730
1e6feb95
VZ
15731if test "$wxUSE_TIMER" = "yes"; then
15732 cat >> confdefs.h <<\EOF
15733#define wxUSE_TIMER 1
15734EOF
15735
15736fi
15737
10f2d63a 15738if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 15739 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15740#define wxUSE_WAVE 1
15741EOF
15742
15743fi
15744
1e6feb95
VZ
15745if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15746 cat >> confdefs.h <<\EOF
15747#define wxUSE_CMDLINE_PARSER 1
15748EOF
15749
15750fi
15751
15752if test "$wxUSE_STOPWATCH" = "yes"; then
15753 cat >> confdefs.h <<\EOF
15754#define wxUSE_STOPWATCH 1
15755EOF
15756
15757fi
15758
15759if test "$wxUSE_DATETIME" = "yes"; then
15760 cat >> confdefs.h <<\EOF
15761#define wxUSE_DATETIME 1
15762EOF
15763
15764fi
15765
15766if test "$wxUSE_TIMEDATE" = "yes"; then
15767 cat >> confdefs.h <<\EOF
15768#define wxUSE_TIMEDATE 1
15769EOF
15770
15771fi
15772
10f2d63a 15773if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15774 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15775#define wxUSE_FILE 1
15776EOF
15777
15778fi
15779
1e6feb95
VZ
15780if test "$wxUSE_FFILE" = "yes"; then
15781 cat >> confdefs.h <<\EOF
15782#define wxUSE_FFILE 1
15783EOF
15784
15785fi
15786
24528b0c 15787if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15788 cat >> confdefs.h <<\EOF
24528b0c
VS
15789#define wxUSE_FILESYSTEM 1
15790EOF
15791
15792fi
15793
10f2d63a 15794if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15795 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15796#define wxUSE_FS_INET 1
15797EOF
15798
15799fi
15800
15801if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15802 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15803#define wxUSE_FS_ZIP 1
15804EOF
15805
15806fi
15807
15808if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15809 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15810#define wxUSE_ZIPSTREAM 1
15811EOF
15812
15813fi
15814
eb4efbdc 15815if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 15816 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
15817#define wxUSE_ON_FATAL_EXCEPTION 1
15818EOF
15819
15820fi
15821
4f3c5f06 15822if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 15823 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
15824#define wxUSE_SNGLINST_CHECKER 1
15825EOF
15826
15827fi
15828
10f2d63a 15829if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 15830 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15831#define wxUSE_BUSYINFO 1
15832EOF
15833
15834fi
15835
15836if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 15837 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15838#define wxUSE_STD_IOSTREAM 1
15839EOF
15840
15841fi
15842
15843if test "$wxUSE_TEXTFILE" = "yes"; then
15844 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15845 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15846 else
698dcdb6 15847 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15848#define wxUSE_TEXTFILE 1
15849EOF
15850
15851 fi
15852fi
15853
15854if test "$wxUSE_CONFIG" = "yes" ; then
15855 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 15856 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 15857 else
698dcdb6 15858 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15859#define wxUSE_CONFIG 1
15860EOF
15861
15862 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15863 fi
15864fi
15865
15866if test "$wxUSE_INTL" = "yes" ; then
15867 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15868 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15869 else
698dcdb6 15870 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15871#define wxUSE_INTL 1
15872EOF
15873
15874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 15875 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
15876 fi
15877fi
15878
15879if test "$wxUSE_LOG" = "yes"; then
698dcdb6 15880 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15881#define wxUSE_LOG 1
15882EOF
15883
d73be714
VZ
15884
15885 if test "$wxUSE_LOGGUI" = "yes"; then
15886 cat >> confdefs.h <<\EOF
15887#define wxUSE_LOGGUI 1
15888EOF
15889
15890 fi
15891
15892 if test "$wxUSE_LOGWINDOW" = "yes"; then
15893 cat >> confdefs.h <<\EOF
15894#define wxUSE_LOGWINDOW 1
15895EOF
15896
15897 fi
10f2d63a
VZ
15898fi
15899
15900if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 15901 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15902#define wxUSE_LONGLONG 1
15903EOF
15904
15905fi
15906
e8f65ba6 15907if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 15908 cat >> confdefs.h <<\EOF
e8f65ba6
RR
15909#define wxUSE_GEOMETRY 1
15910EOF
15911
15912fi
15913
10f2d63a 15914if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 15915 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15916#define wxUSE_DIALUP_MANAGER 1
15917EOF
15918
70f7a477 15919 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
15920fi
15921
15922if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 15923 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15924#define wxUSE_STREAMS 1
15925EOF
15926
15927fi
15928
1e487827 15929
1e6feb95 15930if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 15931 for ac_func in strptime
83307f33 15932do
698dcdb6 15933echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 15934echo "configure:15935: checking for $ac_func" >&5
698dcdb6
VZ
15935if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15936 echo $ac_n "(cached) $ac_c" 1>&6
15937else
15938 cat > conftest.$ac_ext <<EOF
c39c53e9 15939#line 15940 "configure"
83307f33
VZ
15940#include "confdefs.h"
15941/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15942 which can conflict with char $ac_func(); below. */
83307f33
VZ
15943#include <assert.h>
15944/* Override any gcc2 internal prototype to avoid an error. */
15945/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15946 builtin and then its argument prototype would still apply. */
15947char $ac_func();
15948
15949int main() {
83307f33
VZ
15950
15951/* The GNU C library defines this for functions which it implements
15952 to always fail with ENOSYS. Some functions are actually named
15953 something starting with __ and the normal name is an alias. */
15954#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15955choke me
15956#else
698dcdb6 15957$ac_func();
83307f33
VZ
15958#endif
15959
698dcdb6 15960; return 0; }
83307f33 15961EOF
c39c53e9 15962if { (eval echo configure:15963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15963 rm -rf conftest*
15964 eval "ac_cv_func_$ac_func=yes"
15965else
15966 echo "configure: failed program was:" >&5
15967 cat conftest.$ac_ext >&5
15968 rm -rf conftest*
15969 eval "ac_cv_func_$ac_func=no"
15970fi
15971rm -f conftest*
15972fi
83307f33 15973
698dcdb6
VZ
15974if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15975 echo "$ac_t""yes" 1>&6
15976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15977 cat >> confdefs.h <<EOF
15978#define $ac_tr_func 1
15979EOF
15980
15981else
15982 echo "$ac_t""no" 1>&6
83307f33
VZ
15983fi
15984done
15985
1e487827 15986
698dcdb6 15987 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
c39c53e9 15988echo "configure:15989: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
15989if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15990 echo $ac_n "(cached) $ac_c" 1>&6
15991else
15992
15993 cat > conftest.$ac_ext <<EOF
c39c53e9 15994#line 15995 "configure"
360d6699
VZ
15995#include "confdefs.h"
15996
b4085ce6 15997 #include <time.h>
698dcdb6
VZ
15998
15999int main() {
360d6699
VZ
16000
16001 int tz;
4f11a343 16002 tz = timezone;
698dcdb6
VZ
16003
16004; return 0; }
16005EOF
c39c53e9 16006if { (eval echo configure:16007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16007 rm -rf conftest*
16008
4f11a343 16009 wx_cv_var_timezone=timezone
698dcdb6 16010
360d6699 16011else
698dcdb6
VZ
16012 echo "configure: failed program was:" >&5
16013 cat conftest.$ac_ext >&5
16014 rm -rf conftest*
16015
16016 cat > conftest.$ac_ext <<EOF
c39c53e9 16017#line 16018 "configure"
360d6699
VZ
16018#include "confdefs.h"
16019
b4085ce6 16020 #include <time.h>
698dcdb6
VZ
16021
16022int main() {
360d6699
VZ
16023
16024 int tz;
16025 tz = _timezone;
698dcdb6
VZ
16026
16027; return 0; }
16028EOF
c39c53e9 16029if { (eval echo configure:16030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16030 rm -rf conftest*
16031
360d6699 16032 wx_cv_var_timezone=_timezone
698dcdb6 16033
5357c8e8 16034else
698dcdb6
VZ
16035 echo "configure: failed program was:" >&5
16036 cat conftest.$ac_ext >&5
16037 rm -rf conftest*
16038
16039 cat > conftest.$ac_ext <<EOF
c39c53e9 16040#line 16041 "configure"
5357c8e8
VZ
16041#include "confdefs.h"
16042
b4085ce6 16043 #include <time.h>
698dcdb6
VZ
16044
16045int main() {
5357c8e8
VZ
16046
16047 int tz;
4f11a343 16048 tz = __timezone;
698dcdb6
VZ
16049
16050; return 0; }
16051EOF
c39c53e9 16052if { (eval echo configure:16053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16053 rm -rf conftest*
16054
4f11a343 16055 wx_cv_var_timezone=__timezone
698dcdb6 16056
360d6699 16057else
698dcdb6
VZ
16058 echo "configure: failed program was:" >&5
16059 cat conftest.$ac_ext >&5
16060 rm -rf conftest*
16061 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16062
360d6699 16063fi
698dcdb6
VZ
16064rm -f conftest*
16065
16066
360d6699 16067fi
698dcdb6
VZ
16068rm -f conftest*
16069
16070
6232543b 16071fi
698dcdb6
VZ
16072rm -f conftest*
16073
16074
1e487827 16075fi
703e0a69 16076
698dcdb6
VZ
16077echo "$ac_t""$wx_cv_var_timezone" 1>&6
16078
16079 cat >> confdefs.h <<EOF
360d6699
VZ
16080#define WX_TIMEZONE $wx_cv_var_timezone
16081EOF
16082
698dcdb6
VZ
16083
16084 for ac_func in localtime
afc31813 16085do
698dcdb6 16086echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 16087echo "configure:16088: checking for $ac_func" >&5
698dcdb6
VZ
16088if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16089 echo $ac_n "(cached) $ac_c" 1>&6
16090else
16091 cat > conftest.$ac_ext <<EOF
c39c53e9 16092#line 16093 "configure"
10f2d63a 16093#include "confdefs.h"
afc31813 16094/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16095 which can conflict with char $ac_func(); below. */
afc31813
VZ
16096#include <assert.h>
16097/* Override any gcc2 internal prototype to avoid an error. */
16098/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16099 builtin and then its argument prototype would still apply. */
16100char $ac_func();
16101
16102int main() {
afc31813
VZ
16103
16104/* The GNU C library defines this for functions which it implements
16105 to always fail with ENOSYS. Some functions are actually named
16106 something starting with __ and the normal name is an alias. */
16107#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16108choke me
16109#else
698dcdb6 16110$ac_func();
afc31813
VZ
16111#endif
16112
698dcdb6 16113; return 0; }
10f2d63a 16114EOF
c39c53e9 16115if { (eval echo configure:16116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16116 rm -rf conftest*
16117 eval "ac_cv_func_$ac_func=yes"
16118else
16119 echo "configure: failed program was:" >&5
16120 cat conftest.$ac_ext >&5
16121 rm -rf conftest*
16122 eval "ac_cv_func_$ac_func=no"
16123fi
16124rm -f conftest*
16125fi
afc31813 16126
698dcdb6
VZ
16127if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16128 echo "$ac_t""yes" 1>&6
16129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16130 cat >> confdefs.h <<EOF
16131#define $ac_tr_func 1
16132EOF
16133
16134else
16135 echo "$ac_t""no" 1>&6
afc31813
VZ
16136fi
16137done
16138
1e487827 16139
698dcdb6
VZ
16140 if test "$ac_cv_func_localtime" = "yes"; then
16141 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
c39c53e9 16142echo "configure:16143: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
16143if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16144 echo $ac_n "(cached) $ac_c" 1>&6
16145else
16146
16147 cat > conftest.$ac_ext <<EOF
c39c53e9 16148#line 16149 "configure"
0470b1e6
VZ
16149#include "confdefs.h"
16150
b4085ce6 16151 #include <time.h>
698dcdb6
VZ
16152
16153int main() {
0470b1e6
VZ
16154
16155 struct tm tm;
16156 tm.tm_gmtoff++;
698dcdb6
VZ
16157
16158; return 0; }
16159EOF
c39c53e9 16160if { (eval echo configure:16161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16161 rm -rf conftest*
16162
f03a98d8 16163 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 16164
0470b1e6 16165else
698dcdb6
VZ
16166 echo "configure: failed program was:" >&5
16167 cat conftest.$ac_ext >&5
16168 rm -rf conftest*
16169 wx_cv_struct_tm_has_gmtoff=no
16170
0470b1e6 16171fi
698dcdb6
VZ
16172rm -f conftest*
16173
1e487827 16174fi
698dcdb6
VZ
16175
16176echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
16177 fi
16178
16179 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 16180 cat >> confdefs.h <<\EOF
6232543b
VS
16181#define WX_GMTOFF_IN_TM 1
16182EOF
0470b1e6 16183
3fcdd07b
VZ
16184 fi
16185
698dcdb6 16186 for ac_func in gettimeofday ftime
3fcdd07b 16187do
698dcdb6 16188echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 16189echo "configure:16190: checking for $ac_func" >&5
698dcdb6
VZ
16190if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16191 echo $ac_n "(cached) $ac_c" 1>&6
16192else
16193 cat > conftest.$ac_ext <<EOF
c39c53e9 16194#line 16195 "configure"
3fcdd07b
VZ
16195#include "confdefs.h"
16196/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16197 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
16198#include <assert.h>
16199/* Override any gcc2 internal prototype to avoid an error. */
16200/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16201 builtin and then its argument prototype would still apply. */
16202char $ac_func();
16203
16204int main() {
3fcdd07b
VZ
16205
16206/* The GNU C library defines this for functions which it implements
16207 to always fail with ENOSYS. Some functions are actually named
16208 something starting with __ and the normal name is an alias. */
16209#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16210choke me
16211#else
698dcdb6 16212$ac_func();
3fcdd07b
VZ
16213#endif
16214
698dcdb6
VZ
16215; return 0; }
16216EOF
c39c53e9 16217if { (eval echo configure:16218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16218 rm -rf conftest*
16219 eval "ac_cv_func_$ac_func=yes"
16220else
16221 echo "configure: failed program was:" >&5
16222 cat conftest.$ac_ext >&5
16223 rm -rf conftest*
16224 eval "ac_cv_func_$ac_func=no"
16225fi
16226rm -f conftest*
16227fi
16228
16229if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16230 echo "$ac_t""yes" 1>&6
16231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16232 cat >> confdefs.h <<EOF
16233#define $ac_tr_func 1
3fcdd07b
VZ
16234EOF
16235 break
698dcdb6
VZ
16236else
16237 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
16238fi
16239done
16240
afc31813 16241
698dcdb6
VZ
16242 if test "$ac_cv_func_gettimeofday" = "yes"; then
16243 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
c39c53e9 16244echo "configure:16245: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
16245if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16246 echo $ac_n "(cached) $ac_c" 1>&6
16247else
16248
16249
16250 ac_ext=C
16251# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16252ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16253ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16254ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16255cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16256
698dcdb6
VZ
16257
16258 cat > conftest.$ac_ext <<EOF
c39c53e9 16259#line 16260 "configure"
10f2d63a 16260#include "confdefs.h"
afc31813
VZ
16261
16262 #include <sys/time.h>
16263 #include <unistd.h>
698dcdb6
VZ
16264
16265int main() {
afc31813
VZ
16266
16267 struct timeval tv;
16268 struct timezone tz;
16269 gettimeofday(&tv, &tz);
698dcdb6
VZ
16270
16271; return 0; }
16272EOF
c39c53e9 16273if { (eval echo configure:16274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16274 rm -rf conftest*
afc31813 16275 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 16276else
698dcdb6
VZ
16277 echo "configure: failed program was:" >&5
16278 cat conftest.$ac_ext >&5
16279 rm -rf conftest*
16280 cat > conftest.$ac_ext <<EOF
c39c53e9 16281#line 16282 "configure"
10f2d63a 16282#include "confdefs.h"
afc31813
VZ
16283
16284 #include <sys/time.h>
16285 #include <unistd.h>
698dcdb6
VZ
16286
16287int main() {
afc31813
VZ
16288
16289 struct timeval tv;
16290 gettimeofday(&tv);
698dcdb6
VZ
16291
16292; return 0; }
16293EOF
c39c53e9 16294if { (eval echo configure:16295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16295 rm -rf conftest*
afc31813 16296 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 16297else
698dcdb6
VZ
16298 echo "configure: failed program was:" >&5
16299 cat conftest.$ac_ext >&5
16300 rm -rf conftest*
16301 wx_cv_func_gettimeofday_has_2_args=unknown
16302
10f2d63a 16303fi
698dcdb6
VZ
16304rm -f conftest*
16305
10f2d63a 16306fi
698dcdb6 16307rm -f conftest*
afc31813 16308 ac_ext=c
698dcdb6 16309# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 16310ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16311ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16312ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16313cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 16314
698dcdb6 16315
afc31813 16316fi
698dcdb6
VZ
16317
16318echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 16319
afc31813 16320 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 16321 cat >> confdefs.h <<\EOF
afc31813
VZ
16322#define WX_GETTIMEOFDAY_NO_TZ 1
16323EOF
16324
16325 fi
16326 fi
16327
698dcdb6 16328 cat >> confdefs.h <<\EOF
afc31813
VZ
16329#define wxUSE_TIMEDATE 1
16330EOF
16331
16332 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16333fi
16334
698dcdb6 16335
b089607b
VZ
16336if test "$TOOLKIT" != "MSW"; then
16337
afc31813 16338if test "$wxUSE_SOCKETS" = "yes"; then
698dcdb6 16339 echo $ac_n "checking for socket""... $ac_c" 1>&6
c39c53e9 16340echo "configure:16341: checking for socket" >&5
698dcdb6
VZ
16341if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16342 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16343else
698dcdb6 16344 cat > conftest.$ac_ext <<EOF
c39c53e9 16345#line 16346 "configure"
c63c7106
VZ
16346#include "confdefs.h"
16347/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16348 which can conflict with char socket(); below. */
c63c7106
VZ
16349#include <assert.h>
16350/* Override any gcc2 internal prototype to avoid an error. */
16351/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16352 builtin and then its argument prototype would still apply. */
16353char socket();
16354
16355int main() {
c63c7106
VZ
16356
16357/* The GNU C library defines this for functions which it implements
16358 to always fail with ENOSYS. Some functions are actually named
16359 something starting with __ and the normal name is an alias. */
16360#if defined (__stub_socket) || defined (__stub___socket)
16361choke me
16362#else
698dcdb6 16363socket();
c63c7106
VZ
16364#endif
16365
698dcdb6
VZ
16366; return 0; }
16367EOF
c39c53e9 16368if { (eval echo configure:16369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16369 rm -rf conftest*
16370 eval "ac_cv_func_socket=yes"
16371else
16372 echo "configure: failed program was:" >&5
16373 cat conftest.$ac_ext >&5
16374 rm -rf conftest*
16375 eval "ac_cv_func_socket=no"
16376fi
16377rm -f conftest*
16378fi
16379
16380if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16381 echo "$ac_t""yes" 1>&6
c63c7106
VZ
16382 :
16383else
698dcdb6
VZ
16384 echo "$ac_t""no" 1>&6
16385echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
c39c53e9 16386echo "configure:16387: checking for socket in -lsocket" >&5
698dcdb6
VZ
16387ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16388if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16389 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16390else
698dcdb6 16391 ac_save_LIBS="$LIBS"
c63c7106 16392LIBS="-lsocket $LIBS"
698dcdb6 16393cat > conftest.$ac_ext <<EOF
c39c53e9 16394#line 16395 "configure"
c63c7106
VZ
16395#include "confdefs.h"
16396/* Override any gcc2 internal prototype to avoid an error. */
16397/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16398 builtin and then its argument prototype would still apply. */
16399char socket();
16400
16401int main() {
16402socket()
16403; return 0; }
16404EOF
c39c53e9 16405if { (eval echo configure:16406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16406 rm -rf conftest*
16407 eval "ac_cv_lib_$ac_lib_var=yes"
16408else
16409 echo "configure: failed program was:" >&5
16410 cat conftest.$ac_ext >&5
16411 rm -rf conftest*
16412 eval "ac_cv_lib_$ac_lib_var=no"
16413fi
16414rm -f conftest*
16415LIBS="$ac_save_LIBS"
16416
16417fi
16418if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16419 echo "$ac_t""yes" 1>&6
c63c7106 16420 INET_LINK="$INET_LINK -lsocket"
c63c7106 16421else
698dcdb6 16422 echo "$ac_t""no" 1>&6
afc31813 16423
698dcdb6 16424 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
afc31813 16425 wxUSE_SOCKETS=no
698dcdb6
VZ
16426
16427
10f2d63a
VZ
16428fi
16429
698dcdb6 16430
6232543b 16431fi
b089607b 16432
1e487827 16433fi
afc31813 16434
51a9faba 16435
698dcdb6
VZ
16436if test "$wxUSE_SOCKETS" = "yes" ; then
16437 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
c39c53e9 16438echo "configure:16439: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
16439if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16440 echo $ac_n "(cached) $ac_c" 1>&6
16441else
16442
16443
16444 ac_ext=C
16445# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16446ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16447ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16448ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16449cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16450
698dcdb6
VZ
16451
16452 cat > conftest.$ac_ext <<EOF
c39c53e9 16453#line 16454 "configure"
afc31813 16454#include "confdefs.h"
51a9faba 16455
3ace2e6d 16456 #include <sys/types.h>
51a9faba 16457 #include <sys/socket.h>
698dcdb6
VZ
16458
16459int main() {
51a9faba
VZ
16460
16461 socklen_t len;
16462 getsockname(0, 0, &len);
698dcdb6
VZ
16463
16464; return 0; }
16465EOF
c39c53e9 16466if { (eval echo configure:16467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16467 rm -rf conftest*
51a9faba 16468 wx_cv_type_getsockname3=socklen_t
afc31813 16469else
698dcdb6
VZ
16470 echo "configure: failed program was:" >&5
16471 cat conftest.$ac_ext >&5
16472 rm -rf conftest*
16473 cat > conftest.$ac_ext <<EOF
c39c53e9 16474#line 16475 "configure"
afc31813 16475#include "confdefs.h"
51a9faba 16476
3ace2e6d 16477 #include <sys/types.h>
51a9faba 16478 #include <sys/socket.h>
698dcdb6
VZ
16479
16480int main() {
51a9faba
VZ
16481
16482 size_t len;
16483 getsockname(0, 0, &len);
698dcdb6
VZ
16484
16485; return 0; }
16486EOF
c39c53e9 16487if { (eval echo configure:16488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16488 rm -rf conftest*
51a9faba 16489 wx_cv_type_getsockname3=size_t
afc31813 16490else
698dcdb6
VZ
16491 echo "configure: failed program was:" >&5
16492 cat conftest.$ac_ext >&5
16493 rm -rf conftest*
16494 cat > conftest.$ac_ext <<EOF
c39c53e9 16495#line 16496 "configure"
afc31813 16496#include "confdefs.h"
51a9faba 16497
3ace2e6d 16498 #include <sys/types.h>
51a9faba 16499 #include <sys/socket.h>
698dcdb6
VZ
16500
16501int main() {
51a9faba
VZ
16502
16503 int len;
16504 getsockname(0, 0, &len);
698dcdb6
VZ
16505
16506; return 0; }
16507EOF
c39c53e9 16508if { (eval echo configure:16509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16509 rm -rf conftest*
51a9faba 16510 wx_cv_type_getsockname3=int
afc31813 16511else
698dcdb6
VZ
16512 echo "configure: failed program was:" >&5
16513 cat conftest.$ac_ext >&5
16514 rm -rf conftest*
16515 wx_cv_type_getsockname3=unknown
16516
afc31813 16517fi
698dcdb6
VZ
16518rm -f conftest*
16519
afc31813 16520fi
698dcdb6
VZ
16521rm -f conftest*
16522
afc31813 16523fi
698dcdb6 16524rm -f conftest*
51a9faba
VZ
16525
16526 ac_ext=c
698dcdb6 16527# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 16528ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16529ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16530ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16531cross_compiling=$ac_cv_prog_cc_cross
afc31813 16532
698dcdb6 16533
51a9faba 16534fi
698dcdb6
VZ
16535
16536echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba
VZ
16537
16538 if test "$wx_cv_type_getsockname3" = "unknown"; then
16539 wxUSE_SOCKETS=no
698dcdb6 16540 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
51a9faba 16541 else
698dcdb6 16542 cat >> confdefs.h <<EOF
51a9faba
VZ
16543#define SOCKLEN_T $wx_cv_type_getsockname3
16544EOF
16545
16546 fi
16547fi
afc31813 16548
c521c494
RL
16549fi
16550
51a9faba 16551if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 16552 cat >> confdefs.h <<\EOF
afc31813
VZ
16553#define wxUSE_SOCKETS 1
16554EOF
16555
70f7a477 16556 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
16557 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
16558fi
16559
698dcdb6 16560
dc3d889d
VZ
16561if test "$wxUSE_GUI" = "yes"; then
16562
b089607b
VZ
16563if test "$TOOLKIT" != "MSW"; then
16564
ceded8b9 16565if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16566 for ac_hdr in linux/joystick.h
10f2d63a 16567do
698dcdb6
VZ
16568ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16569echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c39c53e9 16570echo "configure:16571: checking for $ac_hdr" >&5
698dcdb6
VZ
16571if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16572 echo $ac_n "(cached) $ac_c" 1>&6
16573else
16574 cat > conftest.$ac_ext <<EOF
c39c53e9 16575#line 16576 "configure"
10f2d63a 16576#include "confdefs.h"
698dcdb6
VZ
16577#include <$ac_hdr>
16578EOF
16579ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 16580{ (eval echo configure:16581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16581ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16582if test -z "$ac_err"; then
16583 rm -rf conftest*
16584 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 16585else
698dcdb6
VZ
16586 echo "$ac_err" >&5
16587 echo "configure: failed program was:" >&5
10f2d63a 16588 cat conftest.$ac_ext >&5
698dcdb6
VZ
16589 rm -rf conftest*
16590 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16591fi
698dcdb6 16592rm -f conftest*
10f2d63a 16593fi
698dcdb6
VZ
16594if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16595 echo "$ac_t""yes" 1>&6
16596 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16597 cat >> confdefs.h <<EOF
16598#define $ac_tr_hdr 1
10f2d63a 16599EOF
698dcdb6
VZ
16600
16601else
16602 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16603fi
16604done
16605
b089607b 16606 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 16607 wxUSE_JOYSTICK=no
698dcdb6 16608 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
16609 fi
16610fi
16611
16612fi
16613
ceded8b9 16614if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16615 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16616#define wxUSE_JOYSTICK 1
16617EOF
16618
16619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
16620fi
16621
dc3d889d
VZ
16622fi
16623
698dcdb6 16624
b089607b
VZ
16625if test "$TOOLKIT" != "MSW"; then
16626
10f2d63a
VZ
16627HAVE_DL_FUNCS=0
16628HAVE_SHL_FUNCS=0
16629if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
f11bdd03 16630 if test "$USE_DARWIN" = 1; then
b4085ce6
GD
16631 HAVE_DL_FUNCS=1
16632 else
698dcdb6 16633 for ac_func in dlopen
10f2d63a 16634do
698dcdb6 16635echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 16636echo "configure:16637: checking for $ac_func" >&5
698dcdb6
VZ
16637if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16638 echo $ac_n "(cached) $ac_c" 1>&6
16639else
16640 cat > conftest.$ac_ext <<EOF
c39c53e9 16641#line 16642 "configure"
10f2d63a
VZ
16642#include "confdefs.h"
16643/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16644 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16645#include <assert.h>
16646/* Override any gcc2 internal prototype to avoid an error. */
16647/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16648 builtin and then its argument prototype would still apply. */
16649char $ac_func();
16650
16651int main() {
10f2d63a
VZ
16652
16653/* The GNU C library defines this for functions which it implements
16654 to always fail with ENOSYS. Some functions are actually named
16655 something starting with __ and the normal name is an alias. */
16656#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16657choke me
16658#else
698dcdb6 16659$ac_func();
10f2d63a
VZ
16660#endif
16661
698dcdb6
VZ
16662; return 0; }
16663EOF
c39c53e9 16664if { (eval echo configure:16665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16665 rm -rf conftest*
16666 eval "ac_cv_func_$ac_func=yes"
16667else
16668 echo "configure: failed program was:" >&5
16669 cat conftest.$ac_ext >&5
16670 rm -rf conftest*
16671 eval "ac_cv_func_$ac_func=no"
16672fi
16673rm -f conftest*
16674fi
16675
16676if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16677 echo "$ac_t""yes" 1>&6
16678 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16679 cat >> confdefs.h <<EOF
16680#define $ac_tr_func 1
16681EOF
16682
16683 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16684#define HAVE_DLOPEN 1
16685EOF
16686
16687 HAVE_DL_FUNCS=1
698dcdb6 16688
10f2d63a 16689else
698dcdb6
VZ
16690 echo "$ac_t""no" 1>&6
16691echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
c39c53e9 16692echo "configure:16693: checking for dlopen in -ldl" >&5
698dcdb6
VZ
16693ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16694if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16695 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16696else
698dcdb6 16697 ac_save_LIBS="$LIBS"
10f2d63a 16698LIBS="-ldl $LIBS"
698dcdb6 16699cat > conftest.$ac_ext <<EOF
c39c53e9 16700#line 16701 "configure"
10f2d63a
VZ
16701#include "confdefs.h"
16702/* Override any gcc2 internal prototype to avoid an error. */
16703/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16704 builtin and then its argument prototype would still apply. */
16705char dlopen();
16706
16707int main() {
16708dlopen()
16709; return 0; }
16710EOF
c39c53e9 16711if { (eval echo configure:16712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16712 rm -rf conftest*
16713 eval "ac_cv_lib_$ac_lib_var=yes"
16714else
16715 echo "configure: failed program was:" >&5
16716 cat conftest.$ac_ext >&5
16717 rm -rf conftest*
16718 eval "ac_cv_lib_$ac_lib_var=no"
16719fi
16720rm -f conftest*
16721LIBS="$ac_save_LIBS"
16722
16723fi
16724if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16725 echo "$ac_t""yes" 1>&6
16726
16727 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16728#define HAVE_DLOPEN 1
16729EOF
16730
16731 HAVE_DL_FUNCS=1
16732 LIBS="$LIBS -ldl"
698dcdb6 16733
10f2d63a 16734else
698dcdb6 16735 echo "$ac_t""no" 1>&6
10f2d63a 16736
698dcdb6 16737 for ac_func in shl_load
10f2d63a 16738do
698dcdb6 16739echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 16740echo "configure:16741: checking for $ac_func" >&5
698dcdb6
VZ
16741if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16742 echo $ac_n "(cached) $ac_c" 1>&6
16743else
16744 cat > conftest.$ac_ext <<EOF
c39c53e9 16745#line 16746 "configure"
10f2d63a
VZ
16746#include "confdefs.h"
16747/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16748 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16749#include <assert.h>
16750/* Override any gcc2 internal prototype to avoid an error. */
16751/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16752 builtin and then its argument prototype would still apply. */
16753char $ac_func();
16754
16755int main() {
10f2d63a
VZ
16756
16757/* The GNU C library defines this for functions which it implements
16758 to always fail with ENOSYS. Some functions are actually named
16759 something starting with __ and the normal name is an alias. */
16760#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16761choke me
16762#else
698dcdb6 16763$ac_func();
10f2d63a
VZ
16764#endif
16765
698dcdb6
VZ
16766; return 0; }
16767EOF
c39c53e9 16768if { (eval echo configure:16769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16769 rm -rf conftest*
16770 eval "ac_cv_func_$ac_func=yes"
16771else
16772 echo "configure: failed program was:" >&5
16773 cat conftest.$ac_ext >&5
16774 rm -rf conftest*
16775 eval "ac_cv_func_$ac_func=no"
16776fi
16777rm -f conftest*
16778fi
16779
16780if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16781 echo "$ac_t""yes" 1>&6
16782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16783 cat >> confdefs.h <<EOF
16784#define $ac_tr_func 1
16785EOF
16786
16787 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16788#define HAVE_SHL_LOAD 1
16789EOF
16790
16791 HAVE_SHL_FUNCS=1
698dcdb6 16792
10f2d63a 16793else
698dcdb6
VZ
16794 echo "$ac_t""no" 1>&6
16795echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
c39c53e9 16796echo "configure:16797: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16797ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16798if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16799 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16800else
698dcdb6 16801 ac_save_LIBS="$LIBS"
f6bcfd97 16802LIBS="-lshl_load $LIBS"
698dcdb6 16803cat > conftest.$ac_ext <<EOF
c39c53e9 16804#line 16805 "configure"
f6bcfd97
BP
16805#include "confdefs.h"
16806/* Override any gcc2 internal prototype to avoid an error. */
16807/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16808 builtin and then its argument prototype would still apply. */
16809char dld();
16810
16811int main() {
16812dld()
16813; return 0; }
16814EOF
c39c53e9 16815if { (eval echo configure:16816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16816 rm -rf conftest*
16817 eval "ac_cv_lib_$ac_lib_var=yes"
16818else
16819 echo "configure: failed program was:" >&5
16820 cat conftest.$ac_ext >&5
16821 rm -rf conftest*
16822 eval "ac_cv_lib_$ac_lib_var=no"
16823fi
16824rm -f conftest*
16825LIBS="$ac_save_LIBS"
f6bcfd97 16826
698dcdb6
VZ
16827fi
16828if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16829 echo "$ac_t""yes" 1>&6
16830
f6bcfd97
BP
16831 HAVE_SHL_FUNCS=1
16832 LIBS="$LIBS -ldld"
698dcdb6
VZ
16833
16834else
16835 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16836fi
16837
698dcdb6 16838
10f2d63a
VZ
16839fi
16840done
16841
698dcdb6 16842
10f2d63a
VZ
16843fi
16844
698dcdb6 16845
10f2d63a
VZ
16846fi
16847done
16848
1e487827 16849
698dcdb6
VZ
16850 if test "$HAVE_DL_FUNCS" = 1; then
16851 for ac_func in dlerror
f6bcfd97 16852do
698dcdb6 16853echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c39c53e9 16854echo "configure:16855: checking for $ac_func" >&5
698dcdb6
VZ
16855if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16856 echo $ac_n "(cached) $ac_c" 1>&6
16857else
16858 cat > conftest.$ac_ext <<EOF
c39c53e9 16859#line 16860 "configure"
f6bcfd97
BP
16860#include "confdefs.h"
16861/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16862 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
16863#include <assert.h>
16864/* Override any gcc2 internal prototype to avoid an error. */
16865/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16866 builtin and then its argument prototype would still apply. */
16867char $ac_func();
16868
16869int main() {
f6bcfd97
BP
16870
16871/* The GNU C library defines this for functions which it implements
16872 to always fail with ENOSYS. Some functions are actually named
16873 something starting with __ and the normal name is an alias. */
16874#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16875choke me
16876#else
698dcdb6 16877$ac_func();
f6bcfd97
BP
16878#endif
16879
698dcdb6
VZ
16880; return 0; }
16881EOF
c39c53e9 16882if { (eval echo configure:16883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16883 rm -rf conftest*
16884 eval "ac_cv_func_$ac_func=yes"
16885else
16886 echo "configure: failed program was:" >&5
16887 cat conftest.$ac_ext >&5
16888 rm -rf conftest*
16889 eval "ac_cv_func_$ac_func=no"
16890fi
16891rm -f conftest*
16892fi
16893
16894if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16895 echo "$ac_t""yes" 1>&6
16896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16897 cat >> confdefs.h <<EOF
16898#define $ac_tr_func 1
16899EOF
16900 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16901#define HAVE_DLERROR 1
16902EOF
16903
16904else
698dcdb6
VZ
16905 echo "$ac_t""no" 1>&6
16906echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
c39c53e9 16907echo "configure:16908: checking for dlerror in -ldl" >&5
698dcdb6
VZ
16908ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16909if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16910 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16911else
698dcdb6 16912 ac_save_LIBS="$LIBS"
f6bcfd97 16913LIBS="-ldl $LIBS"
698dcdb6 16914cat > conftest.$ac_ext <<EOF
c39c53e9 16915#line 16916 "configure"
f6bcfd97
BP
16916#include "confdefs.h"
16917/* Override any gcc2 internal prototype to avoid an error. */
16918/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16919 builtin and then its argument prototype would still apply. */
16920char dlerror();
16921
16922int main() {
16923dlerror()
16924; return 0; }
16925EOF
c39c53e9 16926if { (eval echo configure:16927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16927 rm -rf conftest*
16928 eval "ac_cv_lib_$ac_lib_var=yes"
16929else
16930 echo "configure: failed program was:" >&5
16931 cat conftest.$ac_ext >&5
16932 rm -rf conftest*
16933 eval "ac_cv_lib_$ac_lib_var=no"
16934fi
16935rm -f conftest*
16936LIBS="$ac_save_LIBS"
16937
16938fi
16939if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16940 echo "$ac_t""yes" 1>&6
16941 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16942#define HAVE_DLERROR 1
16943EOF
16944
698dcdb6
VZ
16945else
16946 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16947fi
16948
16949fi
16950done
16951
16952 fi
b4085ce6 16953 fi
f6bcfd97 16954
10f2d63a
VZ
16955 if test "$HAVE_DL_FUNCS" = 0; then
16956 if test "$HAVE_SHL_FUNCS" = 0; then
16957 if test "$USE_UNIX" = 1; then
698dcdb6 16958 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
16959 wxUSE_DYNLIB_CLASS=no
16960 else
698dcdb6 16961 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
16962 fi
16963 fi
16964 fi
16965fi
16966
b089607b
VZ
16967fi
16968
10f2d63a 16969if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 16970 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16971#define wxUSE_DYNLIB_CLASS 1
16972EOF
16973
b12915c1
VZ
16974else
16975 wxUSE_ODBC=no
16976 wxUSE_SERIAL=no
10f2d63a
VZ
16977fi
16978
698dcdb6 16979
1e6feb95
VZ
16980if test "$wxUSE_FONTMAP" = "yes" ; then
16981 cat >> confdefs.h <<\EOF
16982#define wxUSE_FONTMAP 1
16983EOF
16984
16985fi
16986
10f2d63a 16987if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 16988 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16989#define wxUSE_UNICODE 1
16990EOF
16991
16992fi
16993
16994if test "$wxUSE_WCSRTOMBS" = "yes" ; then
698dcdb6 16995 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16996#define wxUSE_WCSRTOMBS 1
16997EOF
16998
16999fi
17000
17001if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 17002 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17003#define wxUSE_EXPERIMENTAL_PRINTF 1
17004EOF
17005
17006fi
17007
698dcdb6 17008
b12915c1 17009if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 17010 cat >> confdefs.h <<\EOF
b12915c1
VZ
17011#define wxUSE_SERIAL 1
17012EOF
17013
17014fi
17015
698dcdb6 17016
10f2d63a
VZ
17017IODBC_C_SRC=""
17018if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 17019 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17020#define wxUSE_ODBC 1
17021EOF
17022
17023 WXODBCFLAG="-D_IODBC_"
17024 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
17025fi
17026
698dcdb6 17027
10f2d63a 17028if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 17029 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17030#define wxUSE_POSTSCRIPT 1
17031EOF
17032
17033fi
17034
698dcdb6 17035cat >> confdefs.h <<\EOF
10f2d63a
VZ
17036#define wxUSE_AFM_FOR_POSTSCRIPT 1
17037EOF
17038
698dcdb6
VZ
17039
17040cat >> confdefs.h <<\EOF
10f2d63a
VZ
17041#define wxUSE_NORMALIZED_PS_FONTS 1
17042EOF
17043
698dcdb6
VZ
17044
17045
10f2d63a 17046if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 17047 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17048#define wxUSE_CONSTRAINTS 1
17049EOF
17050
17051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17052fi
17053
17054if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
698dcdb6 17055 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17056#define wxUSE_MDI_ARCHITECTURE 1
17057EOF
17058
17059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17060fi
17061
17062if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 17063 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17064#define wxUSE_DOC_VIEW_ARCHITECTURE 1
17065EOF
17066
17067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17068 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17070 fi
17071fi
17072
17073if test "$wxUSE_HELP" = "yes"; then
698dcdb6 17074 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17075#define wxUSE_HELP 1
17076EOF
17077
17078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 17079
3e44f09d 17080 if test "$USE_WIN32" = 1; then
031d8228 17081 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
17082 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17083echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
c39c53e9 17084echo "configure:17085: checking for htmlhelp.h" >&5
29fd3c0c
VS
17085if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17086 echo $ac_n "(cached) $ac_c" 1>&6
17087else
17088 cat > conftest.$ac_ext <<EOF
c39c53e9 17089#line 17090 "configure"
29fd3c0c
VS
17090#include "confdefs.h"
17091#include <htmlhelp.h>
17092EOF
17093ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 17094{ (eval echo configure:17095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
17095ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17096if test -z "$ac_err"; then
17097 rm -rf conftest*
17098 eval "ac_cv_header_$ac_safe=yes"
17099else
17100 echo "$ac_err" >&5
17101 echo "configure: failed program was:" >&5
17102 cat conftest.$ac_ext >&5
17103 rm -rf conftest*
17104 eval "ac_cv_header_$ac_safe=no"
17105fi
17106rm -f conftest*
17107fi
17108if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17109 echo "$ac_t""yes" 1>&6
17110
17111 cat >> confdefs.h <<\EOF
17112#define wxUSE_MS_HTML_HELP 1
17113EOF
17114
17115
17116else
17117 echo "$ac_t""no" 1>&6
17118
17119 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2
17120 wxUSE_MS_HTML_HELP=no
17121
17122fi
17123
3e44f09d 17124 fi
3379ed37 17125 fi
031d8228
VS
17126
17127 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17128 if test "$wxUSE_HTML" = "yes"; then
17129 cat >> confdefs.h <<\EOF
17130#define wxUSE_WXHTML_HELP 1
17131EOF
17132
17133 else
17134 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17135 wxUSE_WXHTML_HELP=no
17136 fi
17137 fi
10f2d63a
VZ
17138fi
17139
17140if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17141 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 17142 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 17143 else
698dcdb6 17144 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17145#define wxUSE_PRINTING_ARCHITECTURE 1
17146EOF
17147
17148 fi
17149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17150fi
17151
17152if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 17153 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17154#define wxUSE_PROLOGIO 1
17155EOF
17156
17157fi
17158
17159if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 17160 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17161#define wxUSE_RESOURCES 1
17162EOF
17163
3379ed37 17164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
17165fi
17166
17167if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 17168 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17169#define wxUSE_X_RESOURCES 1
17170EOF
17171
17172fi
17173
698dcdb6 17174
10f2d63a 17175if test "$wxUSE_IPC" = "yes"; then
eb4efbdc 17176 if test "$wxUSE_SOCKETS" != "yes"; then
698dcdb6 17177 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
eb4efbdc
VZ
17178 fi
17179
698dcdb6 17180 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17181#define wxUSE_IPC 1
17182EOF
17183
17184fi
17185
17186if test "$wxUSE_CLIPBOARD" = "yes"; then
698dcdb6 17187 cat >> confdefs.h <<\EOF
10f2d63a 17188#define wxUSE_CLIPBOARD 1
1e6feb95
VZ
17189EOF
17190
17191 cat >> confdefs.h <<\EOF
17192#define wxUSE_DATAOBJ 1
10f2d63a
VZ
17193EOF
17194
17195fi
17196
17197if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17198 if test "$wxUSE_GTK" = 1; then
17199 if test "$WXGTK12" != 1; then
698dcdb6 17200 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
17201 wxUSE_DRAG_AND_DROP=no
17202 fi
17203 fi
17204
17205 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17206 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
10f2d63a
VZ
17207 wxUSE_DRAG_AND_DROP=no
17208 fi
17209
2c6025bc 17210 if test "$wxUSE_MAC" = 1; then
698dcdb6 17211 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
2c6025bc
GD
17212 wxUSE_DRAG_AND_DROP=no
17213 fi
17214
10f2d63a 17215 if test "$USE_WIN32" = 1; then
698dcdb6
VZ
17216
17217 for ac_hdr in ole2.h
10f2d63a 17218do
698dcdb6
VZ
17219ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17220echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c39c53e9 17221echo "configure:17222: checking for $ac_hdr" >&5
698dcdb6
VZ
17222if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17223 echo $ac_n "(cached) $ac_c" 1>&6
17224else
17225 cat > conftest.$ac_ext <<EOF
c39c53e9 17226#line 17227 "configure"
10f2d63a 17227#include "confdefs.h"
698dcdb6
VZ
17228#include <$ac_hdr>
17229EOF
17230ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c39c53e9 17231{ (eval echo configure:17232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17232ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17233if test -z "$ac_err"; then
17234 rm -rf conftest*
17235 eval "ac_cv_header_$ac_safe=yes"
1e487827 17236else
698dcdb6
VZ
17237 echo "$ac_err" >&5
17238 echo "configure: failed program was:" >&5
10f2d63a 17239 cat conftest.$ac_ext >&5
698dcdb6
VZ
17240 rm -rf conftest*
17241 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17242fi
698dcdb6 17243rm -f conftest*
10f2d63a 17244fi
698dcdb6
VZ
17245if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17246 echo "$ac_t""yes" 1>&6
17247 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17248 cat >> confdefs.h <<EOF
17249#define $ac_tr_hdr 1
10f2d63a 17250EOF
698dcdb6
VZ
17251
17252else
17253 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17254fi
17255done
17256
698dcdb6 17257
57fe5ed0 17258 if test "$ac_cv_header_ole2_h" = "yes" ; then
c521c494 17259 if test "$GCC" = yes ; then
b64f0a5f
RL
17260 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17261 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 17262 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
18dbb1f6 17263 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
4f11a343
VS
17264 cat >> confdefs.h <<\EOF
17265#define wxUSE_OLE 1
17266EOF
17267
b64f0a5f
RL
17268
17269 if test "$wxUSE_METAFILE" = "yes"; then
698dcdb6 17270 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17271#define wxUSE_METAFILE 1
17272EOF
17273
698dcdb6 17274 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17275#define wxUSE_ENH_METAFILE 1
17276EOF
17277
17278 fi
c521c494
RL
17279 fi
17280 else
698dcdb6 17281 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
10f2d63a
VZ
17282 wxUSE_DRAG_AND_DROP=no
17283 fi
17284 fi
17285
17286 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 17287 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17288#define wxUSE_DRAG_AND_DROP 1
17289EOF
17290
17291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17292 fi
17293
17294fi
17295
17296if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 17297 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17298#define wxUSE_SPLINES 1
17299EOF
17300
17301fi
17302
698dcdb6 17303
1e6feb95
VZ
17304USES_CONTROLS=0
17305if test "$wxUSE_CONTROLS" = "yes"; then
17306 USES_CONTROLS=1
17307fi
17308
10f2d63a 17309if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 17310 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17311#define wxUSE_ACCEL 1
17312EOF
17313
1e6feb95
VZ
17314 USES_CONTROLS=1
17315fi
17316
17317if test "$wxUSE_BUTTON" = "yes"; then
17318 cat >> confdefs.h <<\EOF
17319#define wxUSE_BUTTON 1
17320EOF
17321
17322 USES_CONTROLS=1
17323fi
17324
17325if test "$wxUSE_BMPBUTTON" = "yes"; then
17326 cat >> confdefs.h <<\EOF
17327#define wxUSE_BMPBUTTON 1
17328EOF
17329
17330 USES_CONTROLS=1
17331fi
17332
17333if test "$wxUSE_CALCTRL" = "yes"; then
17334 cat >> confdefs.h <<\EOF
17335#define wxUSE_CALENDARCTRL 1
17336EOF
17337
17338 USES_CONTROLS=1
17339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
17340fi
17341
17342if test "$wxUSE_CARET" = "yes"; then
698dcdb6 17343 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17344#define wxUSE_CARET 1
17345EOF
17346
1e6feb95 17347 USES_CONTROLS=1
10f2d63a
VZ
17348 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17349fi
17350
17351if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 17352 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17353#define wxUSE_COMBOBOX 1
17354EOF
17355
1e6feb95 17356 USES_CONTROLS=1
10f2d63a
VZ
17357fi
17358
17359if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 17360 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17361#define wxUSE_CHOICE 1
17362EOF
17363
1e6feb95 17364 USES_CONTROLS=1
10f2d63a
VZ
17365fi
17366
17367if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 17368 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17369#define wxUSE_CHECKBOX 1
17370EOF
17371
1e6feb95 17372 USES_CONTROLS=1
10f2d63a
VZ
17373fi
17374
17375if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 17376 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17377#define wxUSE_CHECKLISTBOX 1
17378EOF
17379
1e6feb95 17380 USES_CONTROLS=1
10f2d63a
VZ
17381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17382fi
17383
17384if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 17385 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17386#define wxUSE_GAUGE 1
17387EOF
17388
1e6feb95 17389 USES_CONTROLS=1
10f2d63a
VZ
17390fi
17391
d6a55c4b
VZ
17392if test "$wxUSE_NEW_GRID" = "yes"; then
17393 wxUSE_GRID="yes"
698dcdb6 17394 cat >> confdefs.h <<\EOF
d6a55c4b 17395#define wxUSE_NEW_GRID 1
10f2d63a
VZ
17396EOF
17397
1e6feb95 17398 USES_CONTROLS=1
d6a55c4b 17399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
17400fi
17401
d6a55c4b 17402if test "$wxUSE_GRID" = "yes"; then
698dcdb6 17403 cat >> confdefs.h <<\EOF
d6a55c4b 17404#define wxUSE_GRID 1
10f2d63a
VZ
17405EOF
17406
1e6feb95 17407 USES_CONTROLS=1
d6a55c4b 17408 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
17409fi
17410
17411if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17412 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17413#define wxUSE_IMAGLIST 1
17414EOF
17415
17416fi
17417
17418if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 17419 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17420#define wxUSE_LISTBOX 1
17421EOF
17422
1e6feb95 17423 USES_CONTROLS=1
10f2d63a
VZ
17424fi
17425
17426if test "$wxUSE_LISTCTRL" = "yes"; then
17427 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17428 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17429#define wxUSE_LISTCTRL 1
17430EOF
17431
1e6feb95 17432 USES_CONTROLS=1
10f2d63a
VZ
17433 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17434 else
698dcdb6 17435 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17436 fi
17437fi
17438
17439if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 17440 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17441#define wxUSE_NOTEBOOK 1
17442EOF
17443
1e6feb95 17444 USES_CONTROLS=1
10f2d63a
VZ
17445 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17446fi
17447
24176f2c
GD
17448if test "$wxUSE_PROPSHEET" = "yes"; then
17449 cat >> confdefs.h <<\EOF
17450#define wxUSE_PROPSHEET 1
17451EOF
17452
17453 USES_CONTROLS=1
17454 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17455fi
17456
10f2d63a 17457if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 17458 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17459#define wxUSE_RADIOBOX 1
17460EOF
17461
1e6feb95 17462 USES_CONTROLS=1
10f2d63a
VZ
17463fi
17464
17465if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 17466 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17467#define wxUSE_RADIOBTN 1
17468EOF
17469
1e6feb95 17470 USES_CONTROLS=1
10f2d63a
VZ
17471fi
17472
17473if test "$wxUSE_SASH" = "yes"; then
698dcdb6 17474 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17475#define wxUSE_SASH 1
17476EOF
17477
17478 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17479fi
17480
17481if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 17482 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17483#define wxUSE_SCROLLBAR 1
17484EOF
17485
1e6feb95 17486 USES_CONTROLS=1
741a9306 17487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
17488fi
17489
17490if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 17491 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17492#define wxUSE_SLIDER 1
17493EOF
17494
1e6feb95 17495 USES_CONTROLS=1
10f2d63a
VZ
17496fi
17497
17498if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 17499 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17500#define wxUSE_SPINBTN 1
17501EOF
17502
1e6feb95 17503 USES_CONTROLS=1
10f2d63a
VZ
17504fi
17505
56cfaa52 17506if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 17507 cat >> confdefs.h <<\EOF
56cfaa52
RR
17508#define wxUSE_SPINCTRL 1
17509EOF
17510
1e6feb95 17511 USES_CONTROLS=1
56cfaa52
RR
17512fi
17513
10f2d63a 17514if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 17515 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17516#define wxUSE_SPLITTER 1
17517EOF
17518
17519 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17520fi
17521
17522if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 17523 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17524#define wxUSE_STATBMP 1
17525EOF
17526
1e6feb95 17527 USES_CONTROLS=1
10f2d63a
VZ
17528fi
17529
17530if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 17531 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17532#define wxUSE_STATBOX 1
17533EOF
17534
1e6feb95
VZ
17535 USES_CONTROLS=1
17536fi
17537
17538if test "$wxUSE_STATTEXT" = "yes"; then
17539 cat >> confdefs.h <<\EOF
17540#define wxUSE_STATTEXT 1
17541EOF
17542
17543 USES_CONTROLS=1
10f2d63a
VZ
17544fi
17545
17546if test "$wxUSE_STATLINE" = "yes"; then
17547 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 17548 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 17549 else
698dcdb6 17550 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17551#define wxUSE_STATLINE 1
17552EOF
17553
1e6feb95 17554 USES_CONTROLS=1
10f2d63a
VZ
17555 fi
17556fi
17557
17558if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 17559 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17560#define wxUSE_STATUSBAR 1
17561EOF
17562
1e6feb95 17563 USES_CONTROLS=1
698dcdb6 17564
2286341c 17565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
17566fi
17567
17568if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 17569 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17570#define wxUSE_TAB_DIALOG 1
17571EOF
17572
17573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17574fi
17575
1e6feb95
VZ
17576if test "$wxUSE_TEXTCTRL" = "yes"; then
17577 cat >> confdefs.h <<\EOF
17578#define wxUSE_TEXTCTRL 1
17579EOF
17580
17581 USES_CONTROLS=1
17582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17583fi
17584
1db8dc4a 17585if test "$wxUSE_TOGGLEBTN" = "yes"; then
a45d7ab7
GD
17586 if test "$wxUSE_MAC" = 1; then
17587 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17588 wxUSE_TOGGLEBTN=no
17589 fi
17590
17591 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17592 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
17593#define wxUSE_TOGGLEBTN 1
17594EOF
17595
1e6feb95 17596 USES_CONTROLS=1
a45d7ab7 17597 fi
1db8dc4a
VZ
17598fi
17599
360d6699 17600if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 17601 cat >> confdefs.h <<\EOF
360d6699
VZ
17602#define wxUSE_TOOLBAR_SIMPLE 1
17603EOF
17604
17605 wxUSE_TOOLBAR="yes"
1e6feb95 17606 USES_CONTROLS=1
360d6699
VZ
17607fi
17608
10f2d63a 17609if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 17610 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17611#define wxUSE_TOOLBAR 1
17612EOF
17613
1e6feb95 17614 USES_CONTROLS=1
698dcdb6 17615
360d6699
VZ
17616 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17617 wxUSE_TOOLBAR_NATIVE="yes"
17618 fi
17619
1e6feb95
VZ
17620 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17621 cat >> confdefs.h <<\EOF
360d6699
VZ
17622#define wxUSE_TOOLBAR_NATIVE 1
17623EOF
17624
1e6feb95
VZ
17625 USES_CONTROLS=1
17626 fi
17627
17628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
17629fi
17630
10f2d63a
VZ
17631if test "$wxUSE_TOOLTIPS" = "yes"; then
17632 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17633 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
17634 else
17635 if test "$wxUSE_WINE" = 1; then
698dcdb6 17636 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 17637 else
698dcdb6 17638 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17639#define wxUSE_TOOLTIPS 1
17640EOF
17641
17642 fi
17643 fi
17644fi
17645
17646if test "$wxUSE_TREECTRL" = "yes"; then
17647 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17648 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17649#define wxUSE_TREECTRL 1
17650EOF
17651
1e6feb95 17652 USES_CONTROLS=1
10f2d63a
VZ
17653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17654 else
698dcdb6 17655 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17656 fi
17657fi
17658
9f41d601 17659if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65
GD
17660 if test "$wxUSE_MAC" = 1; then
17661 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17662 else
17663 cat >> confdefs.h <<\EOF
9f41d601
RR
17664#define wxUSE_POPUPWIN 1
17665EOF
17666
6abe4b65
GD
17667 USES_CONTROLS=1
17668 fi
9f41d601
RR
17669fi
17670
1e6feb95
VZ
17671if test "$USES_CONTROLS" = 1; then
17672 cat >> confdefs.h <<\EOF
17673#define wxUSE_CONTROLS 1
10f2d63a
VZ
17674EOF
17675
10f2d63a
VZ
17676fi
17677
1e6feb95 17678
24176f2c
GD
17679if test "$wxUSE_TREELAYOUT" = "yes"; then
17680 cat >> confdefs.h <<\EOF
17681#define wxUSE_TREELAYOUT 1
17682EOF
17683
17684 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17685fi
1e6feb95 17686
24fd6d87
VZ
17687if test "$wxUSE_DRAGIMAGE" = "yes"; then
17688 cat >> confdefs.h <<\EOF
17689#define wxUSE_DRAGIMAGE 1
17690EOF
17691
17692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17693fi
17694
1e6feb95 17695if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 17696 cat >> confdefs.h <<\EOF
1e6feb95 17697#define wxUSE_MENUS 1
10f2d63a
VZ
17698EOF
17699
1e6feb95 17700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
17701fi
17702
1e6feb95
VZ
17703if test "$wxUSE_METAFILE" = "yes"; then
17704 cat >> confdefs.h <<\EOF
17705#define wxUSE_METAFILE 1
10f2d63a
VZ
17706EOF
17707
10f2d63a
VZ
17708fi
17709
1e6feb95
VZ
17710if test "$wxUSE_MIMETYPE" = "yes"; then
17711 cat >> confdefs.h <<\EOF
17712#define wxUSE_MIMETYPE 1
10f2d63a
VZ
17713EOF
17714
10f2d63a
VZ
17715fi
17716
3e44f09d
VZ
17717if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17718 cat >> confdefs.h <<\EOF
17719#define wxUSE_SYSTEM_OPTIONS 1
17720EOF
17721
17722fi
17723
10f2d63a 17724if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 17725 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17726#define wxUSE_MINIFRAME 1
17727EOF
17728
17729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17730fi
17731
17732if test "$wxUSE_HTML" = "yes"; then
698dcdb6 17733 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17734#define wxUSE_HTML 1
17735EOF
17736
17737 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17738 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17739fi
17740
17741if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 17742 cat >> confdefs.h <<\EOF
1e487827
VS
17743#define wxUSE_VALIDATORS 1
17744EOF
703e0a69 17745
698dcdb6
VZ
17746 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17747fi
17748
17749if test "$wxUSE_IMAGE" = "yes" ; then
17750 cat >> confdefs.h <<\EOF
17751#define wxUSE_IMAGE 1
17752EOF
17753
17754fi
17755
17756if test "$wxUSE_GIF" = "yes" ; then
17757 cat >> confdefs.h <<\EOF
17758#define wxUSE_GIF 1
17759EOF
17760
17761fi
17762
17763if test "$wxUSE_PCX" = "yes" ; then
17764 cat >> confdefs.h <<\EOF
17765#define wxUSE_PCX 1
17766EOF
17767
17768fi
17769
17770if test "$wxUSE_PNM" = "yes" ; then
17771 cat >> confdefs.h <<\EOF
17772#define wxUSE_PNM 1
17773EOF
17774
17775fi
17776
17777if test "$wxUSE_XPM" = "yes" ; then
17778 cat >> confdefs.h <<\EOF
17779#define wxUSE_XPM 1
17780EOF
17781
17782fi
17783
17784
1e6feb95
VZ
17785if test "$wxUSE_CHOICEDLG" = "yes"; then
17786 cat >> confdefs.h <<\EOF
17787#define wxUSE_CHOICEDLG 1
17788EOF
17789
17790fi
17791
17792if test "$wxUSE_COLOURDLG" = "yes"; then
17793 cat >> confdefs.h <<\EOF
17794#define wxUSE_COLOURDLG 1
17795EOF
17796
17797fi
17798
17799if test "$wxUSE_FILEDLG" = "yes"; then
17800 cat >> confdefs.h <<\EOF
17801#define wxUSE_FILEDLG 1
17802EOF
17803
17804fi
17805
8db37e06
VZ
17806if test "$wxUSE_FINDREPLDLG" = "yes"; then
17807 cat >> confdefs.h <<\EOF
17808#define wxUSE_FINDREPLDLG 1
17809EOF
17810
17811fi
17812
1e6feb95
VZ
17813if test "$wxUSE_FONTDLG" = "yes"; then
17814 cat >> confdefs.h <<\EOF
17815#define wxUSE_FONTDLG 1
17816EOF
17817
17818fi
17819
17820if test "$wxUSE_DIRDLG" = "yes"; then
17821 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17822 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17823 else
17824 if test "$wxUSE_TREECTRL" != "yes"; then
17825 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17826 else
17827 cat >> confdefs.h <<\EOF
17828#define wxUSE_DIRDLG 1
17829EOF
17830
17831 fi
17832 fi
17833fi
17834
17835if test "$wxUSE_MSGDLG" = "yes"; then
17836 cat >> confdefs.h <<\EOF
17837#define wxUSE_MSGDLG 1
17838EOF
17839
17840fi
17841
17842if test "$wxUSE_NUMBERDLG" = "yes"; then
17843 cat >> confdefs.h <<\EOF
17844#define wxUSE_NUMBERDLG 1
17845EOF
17846
17847fi
17848
17849if test "$wxUSE_PROGRESSDLG" = "yes"; then
17850 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17851 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17852 else
17853 cat >> confdefs.h <<\EOF
17854#define wxUSE_PROGRESSDLG 1
17855EOF
17856
17857 fi
17858fi
17859
cbca9943
VZ
17860if test "$wxUSE_SPLASH" = "yes"; then
17861 cat >> confdefs.h <<\EOF
17862#define wxUSE_SPLASH 1
17863EOF
17864
17865fi
17866
1e6feb95
VZ
17867if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17868 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17869 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17870 else
17871 cat >> confdefs.h <<\EOF
17872#define wxUSE_STARTUP_TIPS 1
17873EOF
17874
17875 fi
17876fi
17877
17878if test "$wxUSE_TEXTDLG" = "yes"; then
17879 cat >> confdefs.h <<\EOF
17880#define wxUSE_TEXTDLG 1
17881EOF
17882
17883fi
17884
b1f5d087
VZ
17885if test "$wxUSE_WIZARDDLG" = "yes"; then
17886 cat >> confdefs.h <<\EOF
17887#define wxUSE_WIZARDDLG 1
17888EOF
17889
17890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17891fi
17892
1e6feb95 17893
698dcdb6
VZ
17894if test "$cross_compiling" = "yes"; then
17895 OSINFO="\"$host\""
17896else
17897 OSINFO=`uname -s -r -m`
17898 OSINFO="\"$OSINFO\""
17899fi
17900
17901cat >> confdefs.h <<EOF
17902#define WXWIN_OS_DESCRIPTION $OSINFO
17903EOF
17904
17905
17906
17907GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17908OPENGL_LIBS="$OPENGL_LINK"
17909
17910EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
f11bdd03 17911if test "$wxUSE_MAC" = 1 ; then
698dcdb6
VZ
17912 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17913fi
17914if test "$wxUSE_GUI" = "yes"; then
17915 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17916fi
17917
17918LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17919
3e44f09d
VZ
17920INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include \
17921$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
17922$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6
VZ
17923
17924if test "$wxUSE_GTK" = 1; then
17925 WXCONFIG_INCLUDE=""
17926else
17927 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17928fi
17929
17930if test "$GXX" = yes ; then
17931 CXXWARNINGS="-Wall"
17932 fi
17933EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17934
17935CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17936CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17937
17938LDFLAGS="$LDFLAGS $PROFILE"
17939
17940if test "$wxUSE_GUI" = "yes"; then
17941
24fd6d87 17942 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
24176f2c
GD
17943 drawing dynamic erase event exec font image \
17944 minimal richedit rotate widgets"
1e6feb95
VZ
17945
17946 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17947 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17948 fi
698dcdb6
VZ
17949
17950 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17951else
24176f2c 17952 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
17953fi
17954
17955SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
32832908
VZ
18023
18024
18025
18026
18027
18028
18029
2224580a 18030
dad6c0ea 18031
f6bcfd97
BP
18032
18033
18034
2f51a9ec
GD
18035
18036
18037
18038
18039
18040
f6bcfd97 18041
dad6c0ea 18042
caa2c79b 18043
3711412e 18044
1e6feb95
VZ
18045
18046
0f3f1cbc 18047
18dbb1f6 18048
10f2d63a
VZ
18049
18050
698dcdb6 18051echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
c39c53e9 18052echo "configure:18053: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
18053set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18054if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18055 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18056else
698dcdb6 18057 cat > conftestmake <<\EOF
10f2d63a
VZ
18058all:
18059 @echo 'ac_maketemp="${MAKE}"'
18060EOF
18061# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 18062eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
18063if test -n "$ac_maketemp"; then
18064 eval ac_cv_prog_make_${ac_make}_set=yes
18065else
18066 eval ac_cv_prog_make_${ac_make}_set=no
18067fi
698dcdb6 18068rm -f conftestmake
10f2d63a
VZ
18069fi
18070if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 18071 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
18072 SET_MAKE=
18073else
698dcdb6 18074 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18075 SET_MAKE="MAKE=${MAKE-make}"
18076fi
18077
698dcdb6 18078
00cf1208
RR
18079if test -d include; then
18080 if test -d include/wx; then
1e6feb95
VZ
18081 if test -d include/wx/${SETUPH_DIR}; then
18082 if test -f include/wx/${SETUPH_DIR}/setup.h; then
18083 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
00cf1208
RR
18084 fi
18085 fi
18086 fi
18087fi
665bbe97 18088
698dcdb6 18089
10f2d63a 18090
2224580a 18091if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 18092 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
18093 wx_cv_path_ifs=$PATH_IFS
18094 wx_cv_program_ext=$PROGRAM_EXT
18095 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 18096 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 18097 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 18098 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 18099 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 18100 subdirs="demos samples utils contrib"
2224580a
VZ
18101
18102fi
10f2d63a 18103
698dcdb6
VZ
18104trap '' 1 2 15
18105cat > confcache <<\EOF
10f2d63a
VZ
18106# This file is a shell script that caches the results of configure
18107# tests run on this system so they can be shared between configure
698dcdb6
VZ
18108# scripts and configure runs. It is not useful on other systems.
18109# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 18110#
698dcdb6
VZ
18111# By default, configure uses ./config.cache as the cache file,
18112# creating it if it does not exist already. You can give configure
18113# the --cache-file=FILE option to use a different cache file; that is
18114# what configure does when it calls configure scripts in
18115# subdirectories, so they share the cache.
18116# Giving --cache-file=/dev/null disables caching, for debugging configure.
18117# config.status only pays attention to the cache file if you give it the
18118# --recheck option to rerun configure.
10f2d63a 18119#
698dcdb6 18120EOF
10f2d63a
VZ
18121# The following way of writing the cache mishandles newlines in values,
18122# but we know of no workaround that is simple, portable, and efficient.
18123# So, don't put newlines in cache variables' values.
18124# Ultrix sh set writes to stderr and can't be redirected directly,
18125# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
18126(set) 2>&1 |
18127 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18128 *ac_space=\ *)
18129 # `set' does not quote correctly, so add quotes (double-quote substitution
18130 # turns \\\\ into \\, and sed turns \\ into \).
18131 sed -n \
18132 -e "s/'/'\\\\''/g" \
18133 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18134 ;;
18135 *)
18136 # `set' quotes correctly as required by POSIX, so do not add quotes.
18137 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18138 ;;
18139 esac >> confcache
18140if cmp -s $cache_file confcache; then
18141 :
18142else
10f2d63a 18143 if test -w $cache_file; then
698dcdb6
VZ
18144 echo "updating cache $cache_file"
18145 cat confcache > $cache_file
10f2d63a
VZ
18146 else
18147 echo "not updating unwritable cache $cache_file"
18148 fi
18149fi
18150rm -f confcache
18151
698dcdb6
VZ
18152trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18153
10f2d63a
VZ
18154test "x$prefix" = xNONE && prefix=$ac_default_prefix
18155# Let make expand exec_prefix.
18156test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18157
698dcdb6
VZ
18158# Any assignment to VPATH causes Sun make to only execute
18159# the first set of double-colon rules, so remove it if not needed.
18160# If there is a colon in the path, we need to keep it.
10f2d63a 18161if test "x$srcdir" = x.; then
698dcdb6 18162 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
18163fi
18164
698dcdb6
VZ
18165trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18166
10f2d63a
VZ
18167DEFS=-DHAVE_CONFIG_H
18168
698dcdb6 18169# Without the "./", some shells look in PATH for config.status.
10f2d63a 18170: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
18171
18172echo creating $CONFIG_STATUS
18173rm -f $CONFIG_STATUS
18174cat > $CONFIG_STATUS <<EOF
18175#! /bin/sh
10f2d63a
VZ
18176# Generated automatically by configure.
18177# Run this file to recreate the current configuration.
698dcdb6
VZ
18178# This directory was configured as follows,
18179# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18180#
18181# $0 $ac_configure_args
18182#
10f2d63a 18183# Compiler output produced by configure, useful for debugging
698dcdb6 18184# configure, is in ./config.log if it exists.
1e487827 18185
698dcdb6
VZ
18186ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18187for ac_option
10f2d63a 18188do
698dcdb6 18189 case "\$ac_option" in
10f2d63a 18190 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
18191 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18192 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18193 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18194 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18195 exit 0 ;;
18196 -help | --help | --hel | --he | --h)
18197 echo "\$ac_cs_usage"; exit 0 ;;
18198 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
18199 esac
18200done
18201
698dcdb6
VZ
18202ac_given_srcdir=$srcdir
18203ac_given_INSTALL="$INSTALL"
703e0a69 18204
698dcdb6
VZ
18205trap 'rm -fr `echo "
18206 wx-config
18207 src/make.env
18208 src/makeprog.env
18209 src/makelib.env
18210 Makefile
18211 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 18212EOF
698dcdb6 18213cat >> $CONFIG_STATUS <<EOF
1e487827 18214
698dcdb6
VZ
18215# Protect against being on the right side of a sed subst in config.status.
18216sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18217 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18218$ac_vpsub
18219$extrasub
18220s%@SHELL@%$SHELL%g
18221s%@CFLAGS@%$CFLAGS%g
18222s%@CPPFLAGS@%$CPPFLAGS%g
18223s%@CXXFLAGS@%$CXXFLAGS%g
18224s%@FFLAGS@%$FFLAGS%g
18225s%@DEFS@%$DEFS%g
18226s%@LDFLAGS@%$LDFLAGS%g
18227s%@LIBS@%$LIBS%g
18228s%@exec_prefix@%$exec_prefix%g
18229s%@prefix@%$prefix%g
18230s%@program_transform_name@%$program_transform_name%g
18231s%@bindir@%$bindir%g
18232s%@sbindir@%$sbindir%g
18233s%@libexecdir@%$libexecdir%g
18234s%@datadir@%$datadir%g
18235s%@sysconfdir@%$sysconfdir%g
18236s%@sharedstatedir@%$sharedstatedir%g
18237s%@localstatedir@%$localstatedir%g
18238s%@libdir@%$libdir%g
18239s%@includedir@%$includedir%g
18240s%@oldincludedir@%$oldincludedir%g
18241s%@infodir@%$infodir%g
18242s%@mandir@%$mandir%g
18243s%@host@%$host%g
18244s%@host_alias@%$host_alias%g
18245s%@host_cpu@%$host_cpu%g
18246s%@host_vendor@%$host_vendor%g
18247s%@host_os@%$host_os%g
18248s%@target@%$target%g
18249s%@target_alias@%$target_alias%g
18250s%@target_cpu@%$target_cpu%g
18251s%@target_vendor@%$target_vendor%g
18252s%@target_os@%$target_os%g
18253s%@build@%$build%g
18254s%@build_alias@%$build_alias%g
18255s%@build_cpu@%$build_cpu%g
18256s%@build_vendor@%$build_vendor%g
18257s%@build_os@%$build_os%g
18258s%@CC@%$CC%g
18259s%@CPP@%$CPP%g
18260s%@CXX@%$CXX%g
18261s%@CXXCPP@%$CXXCPP%g
18262s%@RANLIB@%$RANLIB%g
18263s%@AR@%$AR%g
18264s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18265s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18266s%@INSTALL_DATA@%$INSTALL_DATA%g
18267s%@STRIP@%$STRIP%g
18268s%@YACC@%$YACC%g
18269s%@LEX@%$LEX%g
18270s%@LEXLIB@%$LEXLIB%g
18271s%@LN_S@%$LN_S%g
18272s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
18273s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18274s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 18275s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
18276s%@X_CFLAGS@%$X_CFLAGS%g
18277s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18278s%@X_LIBS@%$X_LIBS%g
18279s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18280s%@REZ@%$REZ%g
18281s%@DEREZ@%$DEREZ%g
18282s%@LEX_STEM@%$LEX_STEM%g
18283s%@PATH_IFS@%$PATH_IFS%g
18284s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18285s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18286s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18287s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
18288s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18289s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18290s%@WX_LIBRARY@%$WX_LIBRARY%g
18291s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18292s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18293s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18294s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
18295s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18296s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
18297s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18298s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18299s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
18300s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18301s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18302s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18303s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
18304s%@WX_ALL@%$WX_ALL%g
18305s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18306s%@SHARED_LD@%$SHARED_LD%g
18307s%@PIC_FLAG@%$PIC_FLAG%g
18308s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
18309s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18310s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18311s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
18312s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
18313s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18314s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18315s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18316s%@USE_GUI@%$USE_GUI%g
18317s%@AFMINSTALL@%$AFMINSTALL%g
1e6feb95 18318s%@SETUPH_DIR@%$SETUPH_DIR%g
698dcdb6
VZ
18319s%@TOOLKIT@%$TOOLKIT%g
18320s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
18321s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18322s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
18323s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
1e6feb95 18324s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
698dcdb6
VZ
18325s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18326s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18327s%@ALL_DEPFILES@%$ALL_DEPFILES%g
18328s%@GUIDIST@%$GUIDIST%g
18329s%@PORT_FILES@%$PORT_FILES%g
18330s%@DISTDIR@%$DISTDIR%g
18331s%@RPM_SPEC@%$RPM_SPEC%g
18332s%@RPM_FILES@%$RPM_FILES%g
18333s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
18334s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
18335s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
18336s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
18337s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18338s%@USER_SUBDIRS@%$USER_SUBDIRS%g
18339s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18340s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18341s%@EXTRADEFS@%$EXTRADEFS%g
18342s%@LD_LIBS@%$LD_LIBS%g
18dbb1f6 18343s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
698dcdb6
VZ
18344s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
18345s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
18346s%@RESPROGRAM@%$RESPROGRAM%g
18347s%@RESCOMP@%$RESCOMP%g
18348s%@RESFLAGS@%$RESFLAGS%g
18349s%@REZFLAGS@%$REZFLAGS%g
18350s%@DEREZFLAGS@%$DEREZFLAGS%g
18351s%@LIBWXMACRES@%$LIBWXMACRES%g
18352s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18353s%@DLLTOOL@%$DLLTOOL%g
18354s%@AS@%$AS%g
18355s%@NM@%$NM%g
18356s%@LD@%$LD%g
18357s%@MAKEINFO@%$MAKEINFO%g
18358s%@SET_MAKE@%$SET_MAKE%g
18359s%@subdirs@%$subdirs%g
1e487827 18360
1e487827 18361CEOF
1e487827
VS
18362EOF
18363
698dcdb6
VZ
18364cat >> $CONFIG_STATUS <<\EOF
18365
18366# Split the substitutions into bite-sized pieces for seds with
18367# small command number limits, like on Digital OSF/1 and HP-UX.
18368ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18369ac_file=1 # Number of current file.
18370ac_beg=1 # First line for current file.
18371ac_end=$ac_max_sed_cmds # Line after last line for current file.
18372ac_more_lines=:
18373ac_sed_cmds=""
18374while $ac_more_lines; do
18375 if test $ac_beg -gt 1; then
18376 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18377 else
18378 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18379 fi
18380 if test ! -s conftest.s$ac_file; then
18381 ac_more_lines=false
18382 rm -f conftest.s$ac_file
18383 else
18384 if test -z "$ac_sed_cmds"; then
18385 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 18386 else
698dcdb6 18387 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 18388 fi
698dcdb6
VZ
18389 ac_file=`expr $ac_file + 1`
18390 ac_beg=$ac_end
18391 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 18392 fi
698dcdb6
VZ
18393done
18394if test -z "$ac_sed_cmds"; then
18395 ac_sed_cmds=cat
18396fi
18397EOF
10f2d63a 18398
698dcdb6
VZ
18399cat >> $CONFIG_STATUS <<EOF
18400
18401CONFIG_FILES=\${CONFIG_FILES-"wx-config
18402 src/make.env
18403 src/makeprog.env
18404 src/makelib.env
18405 Makefile
18406 "}
10f2d63a 18407EOF
698dcdb6
VZ
18408cat >> $CONFIG_STATUS <<\EOF
18409for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 18410 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18411 case "$ac_file" in
18412 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18413 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18414 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18415 esac
18416
698dcdb6 18417 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 18418
698dcdb6
VZ
18419 # Remove last slash and all that follows it. Not all systems have dirname.
18420 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18421 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18422 # The file is in a subdirectory.
18423 test ! -d "$ac_dir" && mkdir "$ac_dir"
18424 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 18425 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 18426 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
18427 else
18428 ac_dir_suffix= ac_dots=
18429 fi
18430
698dcdb6
VZ
18431 case "$ac_given_srcdir" in
18432 .) srcdir=.
18433 if test -z "$ac_dots"; then top_srcdir=.
18434 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18435 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 18436 *) # Relative path.
698dcdb6
VZ
18437 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18438 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
18439 esac
18440
698dcdb6
VZ
18441 case "$ac_given_INSTALL" in
18442 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18443 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
18444 esac
18445
698dcdb6
VZ
18446 echo creating "$ac_file"
18447 rm -f "$ac_file"
18448 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18449 case "$ac_file" in
18450 *Makefile*) ac_comsub="1i\\
18451# $configure_input" ;;
18452 *) ac_comsub= ;;
18453 esac
10f2d63a 18454
698dcdb6
VZ
18455 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18456 sed -e "$ac_comsub
18457s%@configure_input@%$configure_input%g
18458s%@srcdir@%$srcdir%g
18459s%@top_srcdir@%$top_srcdir%g
18460s%@INSTALL@%$INSTALL%g
18461" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18462fi; done
18463rm -f conftest.s*
10f2d63a
VZ
18464
18465# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18466# NAME is the cpp macro being defined and VALUE is the value it is being given.
18467#
18468# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
18469ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18470ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18471ac_dC='\3'
18472ac_dD='%g'
18473# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18474ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18475ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 18476ac_uC=' '
698dcdb6
VZ
18477ac_uD='\4%g'
18478# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18479ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18480ac_eB='$%\1#\2define\3'
18481ac_eC=' '
18482ac_eD='%g'
10f2d63a 18483
698dcdb6
VZ
18484if test "${CONFIG_HEADERS+set}" != set; then
18485EOF
18486cat >> $CONFIG_STATUS <<EOF
18487 CONFIG_HEADERS="setup.h:setup.h.in"
18488EOF
18489cat >> $CONFIG_STATUS <<\EOF
18490fi
18491for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 18492 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18493 case "$ac_file" in
18494 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18495 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18496 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18497 esac
18498
698dcdb6
VZ
18499 echo creating $ac_file
18500
18501 rm -f conftest.frag conftest.in conftest.out
18502 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18503 cat $ac_file_inputs > conftest.in
18504
18505EOF
18506
18507# Transform confdefs.h into a sed script conftest.vals that substitutes
18508# the proper values into config.h.in to produce config.h. And first:
18509# Protect against being on the right side of a sed subst in config.status.
18510# Protect against being in an unquoted here document in config.status.
18511rm -f conftest.vals
18512cat > conftest.hdr <<\EOF
18513s/[\\&%]/\\&/g
18514s%[\\$`]%\\&%g
18515s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18516s%ac_d%ac_u%gp
18517s%ac_u%ac_e%gp
18518EOF
18519sed -n -f conftest.hdr confdefs.h > conftest.vals
18520rm -f conftest.hdr
10f2d63a
VZ
18521
18522# This sed command replaces #undef with comments. This is necessary, for
18523# example, in the case of _POSIX_SOURCE, which is predefined and required
18524# on some systems where configure will not decide to define it.
698dcdb6
VZ
18525cat >> conftest.vals <<\EOF
18526s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
18527EOF
18528
698dcdb6
VZ
18529# Break up conftest.vals because some shells have a limit on
18530# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
18531
18532rm -f conftest.tail
698dcdb6 18533while :
10f2d63a 18534do
698dcdb6
VZ
18535 ac_lines=`grep -c . conftest.vals`
18536 # grep -c gives empty output for an empty file on some AIX systems.
18537 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18538 # Write a limited-size here document to conftest.frag.
18539 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18540 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 18541 echo 'CEOF
698dcdb6
VZ
18542 sed -f conftest.frag conftest.in > conftest.out
18543 rm -f conftest.in
18544 mv conftest.out conftest.in
18545' >> $CONFIG_STATUS
18546 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18547 rm -f conftest.vals
18548 mv conftest.tail conftest.vals
10f2d63a 18549done
698dcdb6
VZ
18550rm -f conftest.vals
18551
18552cat >> $CONFIG_STATUS <<\EOF
18553 rm -f conftest.frag conftest.h
18554 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18555 cat conftest.in >> conftest.h
18556 rm -f conftest.in
18557 if cmp -s $ac_file conftest.h 2>/dev/null; then
18558 echo "$ac_file is unchanged"
18559 rm -f conftest.h
10f2d63a 18560 else
698dcdb6
VZ
18561 # Remove last slash and all that follows it. Not all systems have dirname.
18562 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 18563 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
18564 # The file is in a subdirectory.
18565 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 18566 fi
698dcdb6
VZ
18567 rm -f $ac_file
18568 mv conftest.h $ac_file
10f2d63a 18569 fi
698dcdb6
VZ
18570fi; done
18571
10f2d63a 18572EOF
698dcdb6 18573cat >> $CONFIG_STATUS <<EOF
10f2d63a 18574
1e6feb95 18575 SETUPH_DIR="${SETUPH_DIR}"
698dcdb6
VZ
18576 TOOLKIT_NAME="${TOOLKIT_NAME}"
18577 LN_S="${LN_S}"
18578
18579
18580EOF
18581cat >> $CONFIG_STATUS <<\EOF
10f2d63a 18582
6ef41520 18583 if test ! -f wx${TOOLKIT_NAME}-config; then
991a5759
VZ
18584 chmod +x wx-config
18585 mv wx-config wx${TOOLKIT_NAME}-config
18586 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
18587 fi
665bbe97 18588
698dcdb6 18589
00cf1208
RR
18590 if test ! -d lib; then
18591 mkdir lib
18592 fi
18593 if test ! -d lib/wx; then
18594 mkdir lib/wx
18595 fi
18596 if test ! -d lib/wx/include; then
18597 mkdir lib/wx/include
18598 fi
18599 if test ! -d lib/wx/include/wx; then
18600 mkdir lib/wx/include/wx
18601 fi
f6bcfd97
BP
18602 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
18603 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
18604 fi
18605 if test -f setup.h; then
066b00aa 18606 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 18607 fi
07eb77a6 18608
698dcdb6 18609
10f2d63a
VZ
18610 if test ! -d include; then
18611 mkdir include
18612 fi
18613 if test ! -d include/wx; then
18614 mkdir include/wx
18615 fi
1e6feb95
VZ
18616 if test ! -d include/wx/${SETUPH_DIR}; then
18617 mkdir include/wx/${SETUPH_DIR}
10f2d63a 18618 fi
afc31813 18619 if test -f setup.h; then
1e6feb95 18620 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
afc31813 18621 fi
665bbe97 18622
698dcdb6
VZ
18623
18624exit 0
10f2d63a
VZ
18625EOF
18626chmod +x $CONFIG_STATUS
698dcdb6
VZ
18627rm -fr confdefs* $ac_clean_files
18628test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 18629
2224580a
VZ
18630if test "$no_recursion" != yes; then
18631
18632 # Remove --cache-file and --srcdir arguments so they do not pile up.
18633 ac_sub_configure_args=
18634 ac_prev=
18635 for ac_arg in $ac_configure_args; do
18636 if test -n "$ac_prev"; then
18637 ac_prev=
18638 continue
18639 fi
698dcdb6 18640 case "$ac_arg" in
2224580a
VZ
18641 -cache-file | --cache-file | --cache-fil | --cache-fi \
18642 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18643 ac_prev=cache_file ;;
18644 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 18645 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
18646 ;;
18647 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18648 ac_prev=srcdir ;;
18649 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18650 ;;
18651 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18652 esac
18653 done
18654
698dcdb6 18655 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
18656
18657 # Do not complain, so a configure script can configure whichever
18658 # parts of a large source tree are present.
698dcdb6
VZ
18659 if test ! -d $srcdir/$ac_config_dir; then
18660 continue
18661 fi
18662
18663 echo configuring in $ac_config_dir
2224580a 18664
698dcdb6 18665 case "$srcdir" in
2224580a
VZ
18666 .) ;;
18667 *)
698dcdb6
VZ
18668 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18669 else
18670 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18671 fi
18672 ;;
2224580a
VZ
18673 esac
18674
18675 ac_popdir=`pwd`
698dcdb6 18676 cd $ac_config_dir
2224580a 18677
698dcdb6
VZ
18678 # A "../" for each directory in /$ac_config_dir.
18679 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 18680
698dcdb6 18681 case "$srcdir" in
2224580a
VZ
18682 .) # No --srcdir option. We are building in place.
18683 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
18684 /*) # Absolute path.
18685 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 18686 *) # Relative path.
698dcdb6 18687 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
18688 esac
18689
18690 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
18691 if test -f $ac_sub_srcdir/configure; then
18692 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
18693 elif test -f $ac_sub_srcdir/configure.in; then
18694 ac_sub_configure=$ac_configure
18695 else
698dcdb6 18696 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
18697 ac_sub_configure=
18698 fi
18699
18700 # The recursion is here.
18701 if test -n "$ac_sub_configure"; then
698dcdb6 18702
2224580a 18703 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
18704 case "$cache_file" in
18705 /*) ac_sub_cache_file=$cache_file ;;
2224580a 18706 *) # Relative path.
698dcdb6 18707 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 18708 esac
698dcdb6
VZ
18709 case "$ac_given_INSTALL" in
18710 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18711 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18712 esac
2224580a 18713
698dcdb6 18714 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 18715 # The eval makes quoting arguments work.
698dcdb6
VZ
18716 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18717 then :
18718 else
18719 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18720 fi
2224580a
VZ
18721 fi
18722
18723 cd $ac_popdir
18724 done
18725fi
18726
698dcdb6 18727