]> git.saurik.com Git - wxWidgets.git/blame - configure
install apparently ignores -p option under Mac OS X, use cp -p instead
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
698dcdb6 3# From configure.in Id: configure.in
703e0a69
VZ
4
5
6
7
8
703e0a69
VZ
9
10
1e487827 11
1e487827 12
698dcdb6
VZ
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
8168de4c
VZ
38
39# Configure paths for GTK+
40# Owen Taylor 97-11-3
698dcdb6
VZ
41
42
43
44
698dcdb6
VZ
45
46
47# Guess values for system-dependent variables and create Makefiles.
48# Generated automatically using autoconf version 2.13
49# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50#
51# This configure script is free software; the Free Software Foundation
52# gives unlimited permission to copy, distribute and modify it.
53
54# Defaults:
55ac_help=
56ac_default_prefix=/usr/local
57# Any additions from configure.in:
58ac_help="$ac_help
8168de4c 59 --enable-gui use GUI classes"
1e6feb95 60ac_help="$ac_help
8168de4c 61 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
62ac_help="$ac_help
63 --with-gtk use GTK+"
64ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66ac_help="$ac_help
67 --with-mac use Mac OS X"
68ac_help="$ac_help
69 --with-wine use WINE"
70ac_help="$ac_help
77e13408 71 --with-msw use MS-Windows"
698dcdb6
VZ
72ac_help="$ac_help
73 --with-pm use OS/2 Presentation Manager"
1e6feb95 74ac_help="$ac_help
b3e8d00a 75 --with-mgl use SciTech MGL"
698dcdb6 76ac_help="$ac_help
8168de4c 77 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 78ac_help="$ac_help
8168de4c 79 --with-libpng use libpng (PNG image format)"
698dcdb6 80ac_help="$ac_help
8168de4c 81 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 82ac_help="$ac_help
8168de4c 83 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 84ac_help="$ac_help
8168de4c 85 --with-freetype use freetype (font rasterizer)"
698dcdb6 86ac_help="$ac_help
8168de4c 87 --with-opengl use OpenGL (or Mesa)"
698dcdb6 88ac_help="$ac_help
8168de4c 89 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
3e44f09d
VZ
90ac_help="$ac_help
91 --with-regex enable support for wxRegEx class"
698dcdb6 92ac_help="$ac_help
8168de4c 93 --with-zlib use zlib for LZW compression"
698dcdb6 94ac_help="$ac_help
8168de4c 95 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 96ac_help="$ac_help
8168de4c 97 --enable-shared create shared library code"
698dcdb6 98ac_help="$ac_help
3a922bb4 99 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 100ac_help="$ac_help
8168de4c 101 --enable-optimise create optimised code"
698dcdb6 102ac_help="$ac_help
8168de4c 103 --enable-debug same as debug_flag and debug_info"
683dccda
GD
104ac_help="$ac_help
105 --enable-precomp enable use of precompiled headers (Mac OS X)"
698dcdb6 106ac_help="$ac_help
8168de4c 107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --enable-debug_info create code with debugging information"
698dcdb6 110ac_help="$ac_help
8168de4c 111 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 112ac_help="$ac_help
8168de4c 113 --enable-debug_cntxt use wxDebugContext"
698dcdb6 114ac_help="$ac_help
8168de4c 115 --enable-mem_tracing create code with memory tracing"
698dcdb6 116ac_help="$ac_help
8168de4c 117 --enable-profile create code with profiling information"
698dcdb6 118ac_help="$ac_help
8168de4c 119 --enable-no_rtti create code without RTTI information"
698dcdb6 120ac_help="$ac_help
b3e8d00a 121 --enable-no_exceptions create code without C++ exceptions handling"
698dcdb6 122ac_help="$ac_help
8168de4c 123 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 124ac_help="$ac_help
8168de4c 125 --enable-no_deps create code without dependency information"
54276ccf 126ac_help="$ac_help
b3e8d00a 127 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 128ac_help="$ac_help
b3e8d00a 129 --enable-compat22 enable wxWindows 2.2 compatibility"
698dcdb6 130ac_help="$ac_help
8168de4c 131 --enable-intl use internationalization system"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-config use wxConfig (and derived) classes"
698dcdb6 134ac_help="$ac_help
8168de4c 135 --enable-sockets use socket/network classes"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 138ac_help="$ac_help
8168de4c 139 --enable-cmdline use wxCmdLineParser class"
1e6feb95 140ac_help="$ac_help
8168de4c 141 --enable-datetime use wxDateTime class"
1e6feb95 142ac_help="$ac_help
8168de4c 143 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 144ac_help="$ac_help
8168de4c 145 --enable-stopwatch use wxStopWatch class"
1e6feb95 146ac_help="$ac_help
8168de4c 147 --enable-dialupman use dialup network classes"
698dcdb6 148ac_help="$ac_help
8168de4c 149 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 150ac_help="$ac_help
8168de4c 151 --enable-timer use wxTimer class"
698dcdb6 152ac_help="$ac_help
8168de4c 153 --enable-wave use wxWave class"
698dcdb6 154ac_help="$ac_help
8168de4c 155 --enable-fraction use wxFraction class"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-dynlib use wxLibrary class for DLL loading"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-longlong use wxLongLong class"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-geometry use geometry class"
698dcdb6 162ac_help="$ac_help
8168de4c 163 --enable-log use logging system"
698dcdb6 164ac_help="$ac_help
8168de4c 165 --enable-streams use wxStream etc classes"
698dcdb6 166ac_help="$ac_help
8168de4c 167 --enable-file use wxFile classes"
698dcdb6 168ac_help="$ac_help
8168de4c 169 --enable-ffile use wxFFile classes"
1e6feb95 170ac_help="$ac_help
8168de4c 171 --enable-textfile use wxTextFile classes"
698dcdb6 172ac_help="$ac_help
8168de4c 173 --enable-fontmap use font encodings conversion classes"
1e6feb95 174ac_help="$ac_help
8168de4c 175 --enable-unicode compile wxString with Unicode support"
698dcdb6 176ac_help="$ac_help
8168de4c 177 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 178ac_help="$ac_help
8168de4c 179 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 180ac_help="$ac_help
8168de4c 181 --enable-filesystem use virtual file systems classes"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-zipstream use wxZipInputStream"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 192ac_help="$ac_help
8168de4c 193 --enable-mimetypes use wxMimeTypesManager"
3e44f09d 194ac_help="$ac_help
b3e8d00a 195 --enable-sysoptions use wxSystemOptions"
1e6feb95 196ac_help="$ac_help
8168de4c 197 --enable-threads use threads"
698dcdb6 198ac_help="$ac_help
8168de4c 199 --enable-serial use class serialization"
698dcdb6 200ac_help="$ac_help
8168de4c 201 --enable-docview use document view architecture"
698dcdb6 202ac_help="$ac_help
3379ed37 203 --enable-help use help subsystem"
29fd3c0c
VS
204ac_help="$ac_help
205 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
206ac_help="$ac_help
207 --enable-html use wxHTML sub-library"
208ac_help="$ac_help
209 --enable-htmlhelp use wxHTML-based help"
698dcdb6 210ac_help="$ac_help
8168de4c 211 --enable-constraints use layout-constraints system"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-printarch use printing architecture"
698dcdb6 214ac_help="$ac_help
8168de4c 215 --enable-mdi use multiple document interface architecture"
698dcdb6 216ac_help="$ac_help
8168de4c 217 --enable-loggui use standard GUI logger"
1e6feb95 218ac_help="$ac_help
8168de4c 219 --enable-logwin use wxLogWindow"
1e6feb95 220ac_help="$ac_help
8168de4c 221 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 222ac_help="$ac_help
8168de4c 223 --enable-prologio use Prolog IO library"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-resources use wxWindows resources"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-clipboard use wxClipboard classes"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-dnd use Drag'n'Drop classes"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-metafile use win32 metafiles"
698dcdb6 234ac_help="$ac_help
24176f2c 235 --enable-treelayout use wxTreeLayout classes"
698dcdb6 236ac_help="$ac_help
8168de4c 237 --enable-controls use all usual controls"
698dcdb6 238ac_help="$ac_help
8168de4c 239 --enable-accel use accelerators"
698dcdb6 240ac_help="$ac_help
8168de4c 241 --enable-button use wxButton class"
698dcdb6 242ac_help="$ac_help
8168de4c 243 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 244ac_help="$ac_help
8168de4c 245 --enable-calendar use wxCalendarCtrl class"
1e6feb95 246ac_help="$ac_help
8168de4c 247 --enable-caret use wxCaret class"
1e6feb95 248ac_help="$ac_help
8168de4c 249 --enable-checkbox use wxCheckBox class"
698dcdb6 250ac_help="$ac_help
8168de4c 251 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 252ac_help="$ac_help
8168de4c 253 --enable-choice use wxChoice class"
698dcdb6 254ac_help="$ac_help
8168de4c 255 --enable-combobox use wxComboBox classes"
698dcdb6 256ac_help="$ac_help
8168de4c 257 --enable-gauge use wxGauge class"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-grid use wxGrid class"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-newgrid use new wxGrid class"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-imaglist use wxImageList class"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-listbox use wxListBox class"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-listctrl use wxListCtrl class"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-notebook use wxNotebook class"
24176f2c
GD
270ac_help="$ac_help
271 --enable-propsheet use wxPropertySheet class"
698dcdb6 272ac_help="$ac_help
8168de4c 273 --enable-radiobox use wxRadioBox class"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-radiobtn use wxRadioButton class"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-sash use wxSashWindow class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-slider use wxSlider class"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-spinbtn use wxSpinButton class"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-splitter use wxSplitterWindow class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-statbmp use wxStaticBitmap class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-statbox use wxStaticBox class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-statline use wxStaticLine class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-stattext use wxStaticText class"
1e6feb95 296ac_help="$ac_help
8168de4c 297 --enable-statusbar use wxStatusBar class"
698dcdb6 298ac_help="$ac_help
8168de4c 299 --enable-tabdialog use wxTabControl class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-textctrl use wxTextCtrl class"
1e6feb95 302ac_help="$ac_help
8168de4c 303 --enable-togglebtn use wxToggleButton class"
698dcdb6 304ac_help="$ac_help
8168de4c 305 --enable-toolbar use wxToolBar class"
698dcdb6 306ac_help="$ac_help
8168de4c 307 --enable-tbarnative use native wxToolBar class"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-treectrl use wxTreeCtrl class"
9f41d601
RR
312ac_help="$ac_help
313 --enable-popupwin use wxPopUpWindow class"
698dcdb6 314ac_help="$ac_help
b3e8d00a 315 --enable-commondlg use all common dialogs"
698dcdb6 316ac_help="$ac_help
8168de4c 317 --enable-choicedlg use wxChoiceDialog"
1e6feb95 318ac_help="$ac_help
8168de4c 319 --enable-coldlg use wxColourDialog"
1e6feb95 320ac_help="$ac_help
8168de4c 321 --enable-filedlg use wxFileDialog"
8db37e06
VZ
322ac_help="$ac_help
323 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 324ac_help="$ac_help
8168de4c 325 --enable-fontdlg use wxFontDialog"
1e6feb95 326ac_help="$ac_help
8168de4c 327 --enable-dirdlg use wxDirDialog"
698dcdb6 328ac_help="$ac_help
8168de4c 329 --enable-msgdlg use wxMessageDialog"
1e6feb95 330ac_help="$ac_help
8168de4c 331 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
332ac_help="$ac_help
333 --enable-splash use wxSplashScreen"
1e6feb95 334ac_help="$ac_help
8168de4c 335 --enable-textdlg use wxTextDialog"
698dcdb6 336ac_help="$ac_help
8168de4c 337 --enable-tipdlg use startup tips"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
340ac_help="$ac_help
341 --enable-wizarddlg use wxWizard"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 344ac_help="$ac_help
8168de4c 345 --enable-miniframe use wxMiniFrame class"
698dcdb6 346ac_help="$ac_help
8168de4c 347 --enable-tooltips use wxToolTip class"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-splines use spline drawing code"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-validators use wxValidator and derived classes"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-busyinfo use wxBusyInfo"
698dcdb6 354ac_help="$ac_help
b3e8d00a 355 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 356ac_help="$ac_help
8168de4c 357 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
358ac_help="$ac_help
359 --enable-dragimage use wxDragImage"
edae8572
VZ
360ac_help="$ac_help
361 --enable-palette use wxPalette class"
1e6feb95 362ac_help="$ac_help
8168de4c 363 --enable-image use wxImage class"
698dcdb6 364ac_help="$ac_help
8168de4c 365 --enable-gif use gif images (GIF file format)"
698dcdb6 366ac_help="$ac_help
8168de4c 367 --enable-pcx use pcx images (PCX file format)"
698dcdb6 368ac_help="$ac_help
8168de4c 369 --enable-pnm use pnm images (PNM file format)"
698dcdb6 370ac_help="$ac_help
8168de4c 371 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
372ac_help="$ac_help
373 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
374ac_help="$ac_help
375 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
376ac_help="$ac_help
377 --disable-gtktest Do not try to compile and run a test GTK program"
378ac_help="$ac_help
379 --with-x use the X Window System"
10f2d63a
VZ
380
381# Initialize some variables set by options.
382# The variables have the same names as the options, with
383# dashes changed to underlines.
698dcdb6
VZ
384build=NONE
385cache_file=./config.cache
10f2d63a 386exec_prefix=NONE
698dcdb6 387host=NONE
10f2d63a 388no_create=
698dcdb6 389nonopt=NONE
10f2d63a
VZ
390no_recursion=
391prefix=NONE
392program_prefix=NONE
393program_suffix=NONE
394program_transform_name=s,x,x,
395silent=
396site=
397srcdir=
698dcdb6 398target=NONE
10f2d63a
VZ
399verbose=
400x_includes=NONE
401x_libraries=NONE
402bindir='${exec_prefix}/bin'
403sbindir='${exec_prefix}/sbin'
404libexecdir='${exec_prefix}/libexec'
405datadir='${prefix}/share'
406sysconfdir='${prefix}/etc'
407sharedstatedir='${prefix}/com'
408localstatedir='${prefix}/var'
409libdir='${exec_prefix}/lib'
410includedir='${prefix}/include'
411oldincludedir='/usr/include'
412infodir='${prefix}/info'
413mandir='${prefix}/man'
414
698dcdb6
VZ
415# Initialize some other variables.
416subdirs=
417MFLAGS= MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419# Maximum number of lines to put in a shell here document.
420ac_max_here_lines=12
10f2d63a
VZ
421
422ac_prev=
423for ac_option
424do
698dcdb6 425
10f2d63a
VZ
426 # If the previous option needs an argument, assign it.
427 if test -n "$ac_prev"; then
428 eval "$ac_prev=\$ac_option"
429 ac_prev=
430 continue
431 fi
432
698dcdb6
VZ
433 case "$ac_option" in
434 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
435 *) ac_optarg= ;;
436 esac
10f2d63a
VZ
437
438 # Accept the important Cygnus configure options, so we can diagnose typos.
439
698dcdb6 440 case "$ac_option" in
10f2d63a
VZ
441
442 -bindir | --bindir | --bindi | --bind | --bin | --bi)
443 ac_prev=bindir ;;
444 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 445 bindir="$ac_optarg" ;;
10f2d63a
VZ
446
447 -build | --build | --buil | --bui | --bu)
698dcdb6 448 ac_prev=build ;;
10f2d63a 449 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 450 build="$ac_optarg" ;;
10f2d63a
VZ
451
452 -cache-file | --cache-file | --cache-fil | --cache-fi \
453 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
454 ac_prev=cache_file ;;
455 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
456 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 457 cache_file="$ac_optarg" ;;
10f2d63a
VZ
458
459 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
460 ac_prev=datadir ;;
461 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
462 | --da=*)
698dcdb6 463 datadir="$ac_optarg" ;;
10f2d63a
VZ
464
465 -disable-* | --disable-*)
698dcdb6 466 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 467 # Reject names that are not valid shell variable names.
698dcdb6
VZ
468 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
469 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
470 fi
471 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
472 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
473
474 -enable-* | --enable-*)
698dcdb6 475 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 476 # Reject names that are not valid shell variable names.
698dcdb6
VZ
477 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
478 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
479 fi
480 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
481 case "$ac_option" in
482 *=*) ;;
10f2d63a
VZ
483 *) ac_optarg=yes ;;
484 esac
698dcdb6 485 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
486
487 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
488 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
489 | --exec | --exe | --ex)
490 ac_prev=exec_prefix ;;
491 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
492 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
493 | --exec=* | --exe=* | --ex=*)
698dcdb6 494 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
495
496 -gas | --gas | --ga | --g)
497 # Obsolete; use --with-gas.
498 with_gas=yes ;;
499
698dcdb6
VZ
500 -help | --help | --hel | --he)
501 # Omit some internal or obsolete options to make the list less imposing.
502 # This message is too long to be a string in the A/UX 3.1 sh.
503 cat << EOF
504Usage: configure [options] [host]
505Options: [defaults in brackets after descriptions]
506Configuration:
507 --cache-file=FILE cache test results in FILE
508 --help print this message
509 --no-create do not create output files
510 --quiet, --silent do not print \`checking...' messages
511 --version print the version of autoconf that created configure
512Directory and file names:
513 --prefix=PREFIX install architecture-independent files in PREFIX
514 [$ac_default_prefix]
515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
516 [same as prefix]
517 --bindir=DIR user executables in DIR [EPREFIX/bin]
518 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
519 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
520 --datadir=DIR read-only architecture-independent data in DIR
521 [PREFIX/share]
522 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
523 --sharedstatedir=DIR modifiable architecture-independent data in DIR
524 [PREFIX/com]
525 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
526 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
527 --includedir=DIR C header files in DIR [PREFIX/include]
528 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
529 --infodir=DIR info documentation in DIR [PREFIX/info]
530 --mandir=DIR man documentation in DIR [PREFIX/man]
531 --srcdir=DIR find the sources in DIR [configure dir or ..]
532 --program-prefix=PREFIX prepend PREFIX to installed program names
533 --program-suffix=SUFFIX append SUFFIX to installed program names
534 --program-transform-name=PROGRAM
535 run sed PROGRAM on installed program names
536EOF
537 cat << EOF
538Host type:
539 --build=BUILD configure for building on BUILD [BUILD=HOST]
540 --host=HOST configure for HOST [guessed]
541 --target=TARGET configure for TARGET [TARGET=HOST]
542Features and packages:
543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
547 --x-includes=DIR X include files are in DIR
548 --x-libraries=DIR X library files are in DIR
549EOF
550 if test -n "$ac_help"; then
551 echo "--enable and --with options recognized:$ac_help"
552 fi
553 exit 0 ;;
10f2d63a
VZ
554
555 -host | --host | --hos | --ho)
698dcdb6 556 ac_prev=host ;;
10f2d63a 557 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 558 host="$ac_optarg" ;;
10f2d63a
VZ
559
560 -includedir | --includedir | --includedi | --included | --include \
561 | --includ | --inclu | --incl | --inc)
562 ac_prev=includedir ;;
563 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
564 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 565 includedir="$ac_optarg" ;;
10f2d63a
VZ
566
567 -infodir | --infodir | --infodi | --infod | --info | --inf)
568 ac_prev=infodir ;;
569 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 570 infodir="$ac_optarg" ;;
10f2d63a
VZ
571
572 -libdir | --libdir | --libdi | --libd)
573 ac_prev=libdir ;;
574 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 575 libdir="$ac_optarg" ;;
10f2d63a
VZ
576
577 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
578 | --libexe | --libex | --libe)
579 ac_prev=libexecdir ;;
580 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
581 | --libexe=* | --libex=* | --libe=*)
698dcdb6 582 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
583
584 -localstatedir | --localstatedir | --localstatedi | --localstated \
585 | --localstate | --localstat | --localsta | --localst \
586 | --locals | --local | --loca | --loc | --lo)
587 ac_prev=localstatedir ;;
588 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
589 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
590 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 591 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
592
593 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
594 ac_prev=mandir ;;
595 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 596 mandir="$ac_optarg" ;;
10f2d63a
VZ
597
598 -nfp | --nfp | --nf)
599 # Obsolete; use --without-fp.
600 with_fp=no ;;
601
602 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
603 | --no-cr | --no-c)
604 no_create=yes ;;
605
606 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
607 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
608 no_recursion=yes ;;
609
610 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
611 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
612 | --oldin | --oldi | --old | --ol | --o)
613 ac_prev=oldincludedir ;;
614 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
615 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
616 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 617 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
618
619 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
620 ac_prev=prefix ;;
621 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 622 prefix="$ac_optarg" ;;
10f2d63a
VZ
623
624 -program-prefix | --program-prefix | --program-prefi | --program-pref \
625 | --program-pre | --program-pr | --program-p)
626 ac_prev=program_prefix ;;
627 -program-prefix=* | --program-prefix=* | --program-prefi=* \
628 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 629 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
630
631 -program-suffix | --program-suffix | --program-suffi | --program-suff \
632 | --program-suf | --program-su | --program-s)
633 ac_prev=program_suffix ;;
634 -program-suffix=* | --program-suffix=* | --program-suffi=* \
635 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 636 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
637
638 -program-transform-name | --program-transform-name \
639 | --program-transform-nam | --program-transform-na \
640 | --program-transform-n | --program-transform- \
641 | --program-transform | --program-transfor \
642 | --program-transfo | --program-transf \
643 | --program-trans | --program-tran \
644 | --progr-tra | --program-tr | --program-t)
645 ac_prev=program_transform_name ;;
646 -program-transform-name=* | --program-transform-name=* \
647 | --program-transform-nam=* | --program-transform-na=* \
648 | --program-transform-n=* | --program-transform-=* \
649 | --program-transform=* | --program-transfor=* \
650 | --program-transfo=* | --program-transf=* \
651 | --program-trans=* | --program-tran=* \
652 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 653 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
654
655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
656 | -silent | --silent | --silen | --sile | --sil)
657 silent=yes ;;
658
659 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
660 ac_prev=sbindir ;;
661 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
662 | --sbi=* | --sb=*)
698dcdb6 663 sbindir="$ac_optarg" ;;
10f2d63a
VZ
664
665 -sharedstatedir | --sharedstatedir | --sharedstatedi \
666 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
667 | --sharedst | --shareds | --shared | --share | --shar \
668 | --sha | --sh)
669 ac_prev=sharedstatedir ;;
670 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
671 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
672 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
673 | --sha=* | --sh=*)
698dcdb6 674 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
675
676 -site | --site | --sit)
677 ac_prev=site ;;
678 -site=* | --site=* | --sit=*)
698dcdb6 679 site="$ac_optarg" ;;
10f2d63a
VZ
680
681 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
682 ac_prev=srcdir ;;
683 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 684 srcdir="$ac_optarg" ;;
10f2d63a
VZ
685
686 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
687 | --syscon | --sysco | --sysc | --sys | --sy)
688 ac_prev=sysconfdir ;;
689 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
690 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 691 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
692
693 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 694 ac_prev=target ;;
10f2d63a 695 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 696 target="$ac_optarg" ;;
10f2d63a
VZ
697
698 -v | -verbose | --verbose | --verbos | --verbo | --verb)
699 verbose=yes ;;
700
698dcdb6
VZ
701 -version | --version | --versio | --versi | --vers)
702 echo "configure generated by autoconf version 2.13"
703 exit 0 ;;
10f2d63a
VZ
704
705 -with-* | --with-*)
698dcdb6 706 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 707 # Reject names that are not valid shell variable names.
698dcdb6
VZ
708 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
709 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
710 fi
10f2d63a 711 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
712 case "$ac_option" in
713 *=*) ;;
10f2d63a
VZ
714 *) ac_optarg=yes ;;
715 esac
698dcdb6 716 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
717
718 -without-* | --without-*)
698dcdb6 719 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 720 # Reject names that are not valid shell variable names.
698dcdb6
VZ
721 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
722 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
723 fi
724 ac_package=`echo $ac_package| sed 's/-/_/g'`
725 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
726
727 --x)
728 # Obsolete; use --with-x.
729 with_x=yes ;;
730
731 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
732 | --x-incl | --x-inc | --x-in | --x-i)
733 ac_prev=x_includes ;;
734 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
735 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 736 x_includes="$ac_optarg" ;;
10f2d63a
VZ
737
738 -x-libraries | --x-libraries | --x-librarie | --x-librari \
739 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
740 ac_prev=x_libraries ;;
741 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
742 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 743 x_libraries="$ac_optarg" ;;
10f2d63a 744
698dcdb6 745 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
746 ;;
747
748 *)
698dcdb6
VZ
749 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
750 echo "configure: warning: $ac_option: invalid host type" 1>&2
751 fi
752 if test "x$nonopt" != xNONE; then
753 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
754 fi
755 nonopt="$ac_option"
10f2d63a
VZ
756 ;;
757
758 esac
759done
760
761if test -n "$ac_prev"; then
698dcdb6
VZ
762 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
763fi
764
765trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
766
767# File descriptor usage:
768# 0 standard input
769# 1 file creation
770# 2 errors and warnings
771# 3 some systems may open it to /dev/tty
772# 4 used on the Kubota Titan
773# 6 checking for... messages and results
774# 5 compiler messages saved in config.log
775if test "$silent" = yes; then
776 exec 6>/dev/null
777else
778 exec 6>&1
10f2d63a 779fi
698dcdb6
VZ
780exec 5>./config.log
781
782echo "\
783This file contains any messages produced by compilers while
784running configure, to aid debugging if configure makes a mistake.
785" 1>&5
10f2d63a 786
698dcdb6
VZ
787# Strip out --no-create and --no-recursion so they do not pile up.
788# Also quote any args containing shell metacharacters.
789ac_configure_args=
790for ac_arg
10f2d63a 791do
698dcdb6
VZ
792 case "$ac_arg" in
793 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
794 | --no-cr | --no-c) ;;
795 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
796 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
797 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
798 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
799 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
800 esac
801done
802
698dcdb6
VZ
803# NLS nuisances.
804# Only set these to C if already set. These must not be set unconditionally
805# because not all systems understand e.g. LANG=C (notably SCO).
806# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
807# Non-C LC_CTYPE values break the ctype check.
808if test "${LANG+set}" = set; then LANG=C; export LANG; fi
809if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
810if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
811if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 812
698dcdb6
VZ
813# confdefs.h avoids OS command line length limits that DEFS can exceed.
814rm -rf conftest* confdefs.h
815# AIX cpp loses on an empty file, so make sure it contains at least a newline.
816echo > confdefs.h
10f2d63a 817
698dcdb6
VZ
818# A filename unique to this package, relative to the directory that
819# configure is in, which we can look for to find out if srcdir is correct.
820ac_unique_file=wx-config.in
10f2d63a
VZ
821
822# Find the source files, if location was not specified.
823if test -z "$srcdir"; then
824 ac_srcdir_defaulted=yes
825 # Try the directory containing this script, then its parent.
826 ac_prog=$0
698dcdb6 827 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
828 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
829 srcdir=$ac_confdir
830 if test ! -r $srcdir/$ac_unique_file; then
831 srcdir=..
832 fi
833else
834 ac_srcdir_defaulted=no
835fi
836if test ! -r $srcdir/$ac_unique_file; then
837 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 838 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 839 else
698dcdb6 840 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
841 fi
842fi
698dcdb6 843srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
844
845# Prefer explicitly selected file to automatically selected ones.
846if test -z "$CONFIG_SITE"; then
847 if test "x$prefix" != xNONE; then
848 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
849 else
850 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
851 fi
852fi
853for ac_site_file in $CONFIG_SITE; do
854 if test -r "$ac_site_file"; then
698dcdb6 855 echo "loading site script $ac_site_file"
10f2d63a
VZ
856 . "$ac_site_file"
857 fi
858done
859
860if test -r "$cache_file"; then
698dcdb6
VZ
861 echo "loading cache $cache_file"
862 . $cache_file
10f2d63a 863else
698dcdb6
VZ
864 echo "creating cache $cache_file"
865 > $cache_file
10f2d63a
VZ
866fi
867
868ac_ext=c
698dcdb6 869# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 870ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
871ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
872ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
873cross_compiling=$ac_cv_prog_cc_cross
874
875ac_exeext=
876ac_objext=o
877if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
878 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
879 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
880 ac_n= ac_c='
881' ac_t=' '
882 else
883 ac_n=-n ac_c= ac_t=
884 fi
10f2d63a 885else
698dcdb6 886 ac_n= ac_c='\c' ac_t=
10f2d63a 887fi
698dcdb6
VZ
888
889
10f2d63a 890
7c66a493
VZ
891ac_aux_dir=
892for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
893 if test -f $ac_dir/install-sh; then
894 ac_aux_dir=$ac_dir
895 ac_install_sh="$ac_aux_dir/install-sh -c"
896 break
897 elif test -f $ac_dir/install.sh; then
898 ac_aux_dir=$ac_dir
899 ac_install_sh="$ac_aux_dir/install.sh -c"
900 break
901 fi
902done
903if test -z "$ac_aux_dir"; then
698dcdb6 904 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 905fi
698dcdb6
VZ
906ac_config_guess=$ac_aux_dir/config.guess
907ac_config_sub=$ac_aux_dir/config.sub
908ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 909
698dcdb6
VZ
910
911# Do some error checking and defaulting for the host and target type.
912# The inputs are:
913# configure --host=HOST --target=TARGET --build=BUILD NONOPT
914#
915# The rules are:
916# 1. You are not allowed to specify --host, --target, and nonopt at the
917# same time.
918# 2. Host defaults to nonopt.
919# 3. If nonopt is not specified, then host defaults to the current host,
920# as determined by config.guess.
921# 4. Target and build default to nonopt.
922# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
923
924# The aliases save the names the user supplied, while $host etc.
925# will get canonicalized.
698dcdb6
VZ
926case $host---$target---$nonopt in
927NONE---*---* | *---NONE---* | *---*---NONE) ;;
928*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
929esac
930
931
932# Make sure we can run config.sub.
933if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
934else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
935fi
936
937echo $ac_n "checking host system type""... $ac_c" 1>&6
77e13408 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
77e13408 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
77e13408 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=
7cf43d5e 1029USE_IA64=
10f2d63a
VZ
1030USE_OSF=
1031USE_BSD=
f11bdd03 1032USE_DARWIN=
10f2d63a 1033USE_FREEBSD=
95c8801c 1034USE_OPENBSD=
f6bcfd97 1035USE_NETBSD=
10f2d63a
VZ
1036USE_VMS=
1037USE_ULTRIX=
10f2d63a
VZ
1038USE_DATA_GENERAL=
1039
ab9b9eab
VZ
1040NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1041
77e13408 1042ALL_TOOLKITS="GTK MAC MGL MOTIF MSW PM WINE"
10f2d63a
VZ
1043
1044DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1045DEFAULT_wxUSE_MAC=0
1046DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1047DEFAULT_wxUSE_MOTIF=0
1048DEFAULT_wxUSE_MSW=0
e07802fc 1049DEFAULT_wxUSE_PM=0
1e6feb95 1050DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1051
1052DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1053DEFAULT_DEFAULT_wxUSE_MAC=0
1054DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1055DEFAULT_DEFAULT_wxUSE_MOTIF=0
1056DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1057DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1058DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1059
d6a55c4b 1060PROGRAM_EXT=
3a922bb4 1061SO_SUFFIX=so
d6a55c4b 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
3a922bb4 1068 SO_SUFFIX=sl
698dcdb6 1069 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1070#define __HPUX__ 1
1071EOF
1072
1073 ;;
1074 *-*-linux* )
1075 USE_LINUX=1
698dcdb6 1076 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1077#define __LINUX__ 1
1078EOF
1079
1080 TMP=`uname -m`
1081 if test "x$TMP" = "xalpha"; then
1082 USE_ALPHA=1
698dcdb6 1083 cat >> confdefs.h <<\EOF
10f2d63a 1084#define __ALPHA__ 1
7cf43d5e
RL
1085EOF
1086
1087 fi
1088 if test "x$TMP" = "xia64"; then
1089 USE_IA64=1
1090 cat >> confdefs.h <<\EOF
1091#define __IA64__ 1
10f2d63a
VZ
1092EOF
1093
1094 fi
1095 DEFAULT_DEFAULT_wxUSE_GTK=1
1096 ;;
1097 *-*-irix5* | *-*-irix6* )
1098 USE_SGI=1
1099 USE_SVR4=1
698dcdb6 1100 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1101#define __SGI__ 1
1102EOF
1103
698dcdb6 1104 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1105#define __SVR4__ 1
1106EOF
1107
1108 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1109 ;;
1110 *-*-solaris2* )
1111 USE_SUN=1
1112 USE_SOLARIS=1
1113 USE_SVR4=1
698dcdb6 1114 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1115#define __SUN__ 1
1116EOF
1117
698dcdb6 1118 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1119#define __SOLARIS__ 1
1120EOF
1121
698dcdb6 1122 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1123#define __SVR4__ 1
1124EOF
1125
1126 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1127 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1128 ;;
1129 *-*-sunos4* )
1130 USE_SUN=1
1131 USE_SUNOS=1
1132 USE_BSD=1
698dcdb6 1133 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1134#define __SUN__ 1
1135EOF
1136
698dcdb6 1137 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1138#define __SUNOS__ 1
1139EOF
1140
698dcdb6 1141 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1142#define __BSD__ 1
1143EOF
1144
1145 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1146 ;;
f6bcfd97 1147 *-*-freebsd*)
10f2d63a
VZ
1148 USE_BSD=1
1149 USE_FREEBSD=1
698dcdb6 1150 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1151#define __FREEBSD__ 1
1152EOF
1153
698dcdb6 1154 cat >> confdefs.h <<\EOF
10f2d63a 1155#define __BSD__ 1
95c8801c
VS
1156EOF
1157
1158 DEFAULT_DEFAULT_wxUSE_GTK=1
1159 ;;
1160 *-*-openbsd*)
1161 USE_BSD=1
1162 USE_OPENBSD=1
698dcdb6 1163 cat >> confdefs.h <<\EOF
95c8801c
VS
1164#define __FREEBSD__ 1
1165EOF
1166
698dcdb6 1167 cat >> confdefs.h <<\EOF
95c8801c 1168#define __OPENBSD__ 1
f6bcfd97
BP
1169EOF
1170
1171 DEFAULT_DEFAULT_wxUSE_GTK=1
1172 ;;
1173 *-*-netbsd*)
1174 USE_BSD=1
1175 USE_NETBSD=1
698dcdb6 1176 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1177#define __FREEBSD__ 1
1178EOF
1179
698dcdb6 1180 cat >> confdefs.h <<\EOF
f6bcfd97 1181#define __NETBSD__ 1
10f2d63a
VZ
1182EOF
1183
1184 DEFAULT_DEFAULT_wxUSE_GTK=1
1185 ;;
1186 *-*-osf* )
1187 USE_ALPHA=1
1188 USE_OSF=1
698dcdb6 1189 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1190#define __ALPHA__ 1
1191EOF
1192
698dcdb6 1193 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1194#define __OSF__ 1
1195EOF
1196
1197 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1198 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1199 ;;
1200 *-*-dgux5* )
1201 USE_ALPHA=1
1202 USE_SVR4=1
698dcdb6 1203 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1204#define __ALPHA__ 1
1205EOF
1206
698dcdb6 1207 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1208#define __SVR4__ 1
1209EOF
1210
1211 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1212 ;;
1213 *-*-sysv5* )
1214 USE_SYSV=1
1215 USE_SVR4=1
698dcdb6 1216 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1217#define __SYSV__ 1
1218EOF
1219
698dcdb6 1220 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1221#define __SVR4__ 1
1222EOF
1223
1224 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1225 ;;
1226 *-*-aix* )
1227 USE_AIX=1
1228 USE_SYSV=1
1229 USE_SVR4=1
698dcdb6 1230 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1231#define __AIX__ 1
1232EOF
1233
698dcdb6 1234 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1235#define __SYSV__ 1
1236EOF
1237
698dcdb6 1238 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1239#define __SVR4__ 1
1240EOF
1241
1242 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1243 ;;
1244
1c8183e2 1245 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1246 USE_UNIX=0
1247 USE_WIN32=1
3a922bb4 1248 SO_SUFFIX=dll
698dcdb6 1249 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1250#define __WIN32__ 1
1251EOF
1252
698dcdb6 1253 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1254#define __WIN95__ 1
1255EOF
1256
698dcdb6 1257 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1258#define __WINDOWS__ 1
1259EOF
1260
698dcdb6 1261 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1262#define __GNUWIN32__ 1
1263EOF
1264
698dcdb6 1265 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1266#define STRICT 1
1267EOF
1268
698dcdb6 1269 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1270#define WINVER 0x0400
1271EOF
1272
cf27ef00 1273 PROGRAM_EXT=".exe"
7b7a7637 1274 RESCOMP=windres
10f2d63a
VZ
1275 DEFAULT_DEFAULT_wxUSE_MSW=1
1276 ;;
1277
6fa882bd 1278 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1279 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1280#define __EMX__ 1
1281EOF
1282
cf27ef00 1283 PROGRAM_EXT=".exe"
e07802fc 1284 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1285 ;;
1286
d08b457b
GD
1287 powerpc-*-darwin* )
1288 USE_BSD=1
f11bdd03 1289 USE_DARWIN=1
3a922bb4 1290 SO_SUFFIX=dylib
698dcdb6 1291 cat >> confdefs.h <<\EOF
f11bdd03 1292#define __BSD__ 1
b4085ce6
GD
1293EOF
1294
698dcdb6 1295 cat >> confdefs.h <<\EOF
f11bdd03 1296#define __DARWIN__ 1
d08b457b
GD
1297EOF
1298
1299 cat >> confdefs.h <<\EOF
1300#define __POWERPC__ 1
b4085ce6
GD
1301EOF
1302
1303 DEFAULT_DEFAULT_wxUSE_MAC=1
1304 ;;
1305
b12915c1
VZ
1306 *-*-beos* )
1307 USE_BEOS=1
698dcdb6 1308 cat >> confdefs.h <<\EOF
b12915c1
VZ
1309#define __BEOS__ 1
1310EOF
1311
1312 ;;
1313
10f2d63a 1314 *)
698dcdb6 1315 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1316esac
1317
1318if test "$USE_UNIX" = 1 ; then
b12915c1 1319 wxUSE_UNIX=yes
698dcdb6 1320 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1321#define __UNIX__ 1
1322EOF
1323
10f2d63a
VZ
1324fi
1325
2389f33b
VZ
1326if test "$USE_LINUX" = 1; then
1327 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
77e13408 1328echo "configure:1329: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1329if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1331else
1332 cat > conftest.$ac_ext <<EOF
77e13408 1333#line 1334 "configure"
2389f33b
VZ
1334#include "confdefs.h"
1335#include <features.h>
1336int main() {
1337
1338 #if !__GLIBC_PREREQ(2, 1)
1339 #error not glibc2.1
1340 #endif
1341
1342; return 0; }
1343EOF
77e13408 1344if { (eval echo configure:1345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1345 rm -rf conftest*
1346
1347 wx_lib_glibc21=yes
1348
1349else
1350 echo "configure: failed program was:" >&5
1351 cat conftest.$ac_ext >&5
1352 rm -rf conftest*
1353
1354 wx_lib_glibc21=no
1355
1356
1357fi
1358rm -f conftest*
1359
1360fi
1361
1362echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1363 if test "$wx_lib_glibc21" = "yes"; then
1364 cat >> confdefs.h <<\EOF
1365#define wxHAVE_GLIBC2 1
1366EOF
1367
1368 fi
1369fi
10f2d63a 1370
1e487827 1371
1e487827 1372
6232543b 1373
10f2d63a
VZ
1374 wx_arg_cache_file="configarg.cache"
1375 echo "loading argument cache $wx_arg_cache_file"
1376 rm -f ${wx_arg_cache_file}.tmp
1377 touch ${wx_arg_cache_file}.tmp
1378 touch ${wx_arg_cache_file}
698dcdb6 1379
10f2d63a
VZ
1380
1381DEBUG_CONFIGURE=0
1382if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1383 DEFAULT_wxUSE_UNIVERSAL=no
1384
10f2d63a
VZ
1385 DEFAULT_wxUSE_THREADS=yes
1386
1387 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1388 DEFAULT_wxUSE_SONAME=no
1e6feb95 1389 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1390 DEFAULT_wxUSE_PROFILE=no
1391 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1392 DEFAULT_wxUSE_NO_RTTI=yes
1393 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1394 DEFAULT_wxUSE_PERMISSIVE=no
1395 DEFAULT_wxUSE_DEBUG_FLAG=yes
1396 DEFAULT_wxUSE_DEBUG_INFO=yes
1397 DEFAULT_wxUSE_DEBUG_GDB=yes
1398 DEFAULT_wxUSE_MEM_TRACING=no
1399 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1400 DEFAULT_wxUSE_DMALLOC=no
683dccda 1401 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1402 DEFAULT_wxUSE_APPLE_IEEE=no
1403
1404 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1405 DEFAULT_wxUSE_LOGWINDOW=no
1406 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1407
1408 DEFAULT_wxUSE_GUI=yes
1e6feb95 1409 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1410
3e44f09d 1411 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1412 DEFAULT_wxUSE_ZLIB=no
1413 DEFAULT_wxUSE_LIBPNG=no
1414 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1415 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1416 DEFAULT_wxUSE_ODBC=no
3fed1840 1417 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1418 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1419
eb4efbdc 1420 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1421 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1422 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1423 DEFAULT_wxUSE_CMDLINE_PARSER=no
1424 DEFAULT_wxUSE_DATETIME=no
1425 DEFAULT_wxUSE_TIMEDATE=no
1426 DEFAULT_wxUSE_TIMER=no
1427 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1428 DEFAULT_wxUSE_FILE=no
1e6feb95 1429 DEFAULT_wxUSE_FFILE=no
10f2d63a 1430 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1431 DEFAULT_wxUSE_WAVE=no
1432 DEFAULT_wxUSE_INTL=no
1433 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1434 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1435 DEFAULT_wxUSE_STREAMS=no
1436 DEFAULT_wxUSE_SOCKETS=no
1437 DEFAULT_wxUSE_DIALUP_MANAGER=no
1438 DEFAULT_wxUSE_SERIAL=no
1439 DEFAULT_wxUSE_JOYSTICK=no
1440 DEFAULT_wxUSE_DYNLIB_CLASS=no
1441 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1442 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1443
1444 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1445 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1446 DEFAULT_wxUSE_POSTSCRIPT=no
1447
1448 DEFAULT_wxUSE_X_RESOURCES=no
1449 DEFAULT_wxUSE_CLIPBOARD=no
1450 DEFAULT_wxUSE_TOOLTIPS=no
1451 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1452 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1453 DEFAULT_wxUSE_SPLINES=no
1454
1455 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1456 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1457 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1458
1459 DEFAULT_wxUSE_PROLOGIO=no
1460 DEFAULT_wxUSE_RESOURCES=no
1461 DEFAULT_wxUSE_CONSTRAINTS=no
1462 DEFAULT_wxUSE_IPC=no
1463 DEFAULT_wxUSE_HELP=no
29fd3c0c 1464 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1465 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1466 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1467 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1468 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1469 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1470
1471 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1472 DEFAULT_wxUSE_CHOICEDLG=no
1473 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1474 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1475 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1476 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1477 DEFAULT_wxUSE_FONTDLG=no
1478 DEFAULT_wxUSE_MSGDLG=no
1479 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1480 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1481 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1482 DEFAULT_wxUSE_STARTUP_TIPS=no
1483 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1484 DEFAULT_wxUSE_WIZARDDLG=no
1485
1e6feb95 1486 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1487 DEFAULT_wxUSE_MINIFRAME=no
1488 DEFAULT_wxUSE_HTML=no
24528b0c 1489 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1490 DEFAULT_wxUSE_FS_INET=no
1491 DEFAULT_wxUSE_FS_ZIP=no
1492 DEFAULT_wxUSE_BUSYINFO=no
1493 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1494 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1495
1496 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1497 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1498 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1499 DEFAULT_wxUSE_CALCTRL=no
1500 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1501 DEFAULT_wxUSE_CHECKBOX=no
1502 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1503 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1504 DEFAULT_wxUSE_COMBOBOX=no
1505 DEFAULT_wxUSE_GAUGE=no
1506 DEFAULT_wxUSE_GRID=no
1507 DEFAULT_wxUSE_NEW_GRID=no
1508 DEFAULT_wxUSE_IMAGLIST=no
1509 DEFAULT_wxUSE_LISTBOX=no
1510 DEFAULT_wxUSE_LISTCTRL=no
1511 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1512 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1513 DEFAULT_wxUSE_RADIOBOX=no
1514 DEFAULT_wxUSE_RADIOBTN=no
1515 DEFAULT_wxUSE_SASH=no
1516 DEFAULT_wxUSE_SCROLLBAR=no
1517 DEFAULT_wxUSE_SLIDER=no
1518 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1519 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1520 DEFAULT_wxUSE_SPLITTER=no
1521 DEFAULT_wxUSE_STATBMP=no
1522 DEFAULT_wxUSE_STATBOX=no
1523 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1524 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1525 DEFAULT_wxUSE_STATUSBAR=yes
1526 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1527 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1528 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1529 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1530 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1531 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1532 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1533 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
1534
1535 DEFAULT_wxUSE_UNICODE=no
1536 DEFAULT_wxUSE_WCSRTOMBS=no
1537
edae8572 1538 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1539 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1540 DEFAULT_wxUSE_GIF=no
1541 DEFAULT_wxUSE_PCX=no
1542 DEFAULT_wxUSE_PNM=no
0046ff7c 1543 DEFAULT_wxUSE_XPM=no
10f2d63a 1544else
1e6feb95
VZ
1545 DEFAULT_wxUSE_UNIVERSAL=no
1546
10f2d63a
VZ
1547 DEFAULT_wxUSE_THREADS=yes
1548
1549 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1550 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1551 DEFAULT_wxUSE_OPTIMISE=yes
1552 DEFAULT_wxUSE_PROFILE=no
1553 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1554 DEFAULT_wxUSE_NO_RTTI=yes
1555 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1556 DEFAULT_wxUSE_PERMISSIVE=no
1557 DEFAULT_wxUSE_DEBUG_FLAG=no
1558 DEFAULT_wxUSE_DEBUG_INFO=no
1559 DEFAULT_wxUSE_DEBUG_GDB=no
1560 DEFAULT_wxUSE_MEM_TRACING=no
1561 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1562 DEFAULT_wxUSE_DMALLOC=no
683dccda 1563 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1564 DEFAULT_wxUSE_APPLE_IEEE=yes
1565
1566 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1567 DEFAULT_wxUSE_LOGWINDOW=yes
1568 DEFAULT_wxUSE_LOGGUI=yes
10f2d63a
VZ
1569
1570 DEFAULT_wxUSE_GUI=yes
1571
831b3152 1572 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1573 DEFAULT_wxUSE_ZLIB=yes
1574 DEFAULT_wxUSE_LIBPNG=yes
1575 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1576 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1577 DEFAULT_wxUSE_ODBC=no
3fed1840 1578 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1579 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1580
eb4efbdc 1581 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1582 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1583 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1584 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1585 DEFAULT_wxUSE_DATETIME=yes
1586 DEFAULT_wxUSE_TIMEDATE=no
1587 DEFAULT_wxUSE_TIMER=yes
1588 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1589 DEFAULT_wxUSE_FILE=yes
1e6feb95 1590 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1591 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1592 DEFAULT_wxUSE_WAVE=no
1593 DEFAULT_wxUSE_INTL=yes
1594 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1595 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1596 DEFAULT_wxUSE_STREAMS=yes
1597 DEFAULT_wxUSE_SOCKETS=yes
1598 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1599 DEFAULT_wxUSE_SERIAL=yes
1600 DEFAULT_wxUSE_JOYSTICK=yes
1601 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1602 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1603 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1604
1605 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1606 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1607 DEFAULT_wxUSE_POSTSCRIPT=yes
1608
1609 DEFAULT_wxUSE_X_RESOURCES=no
1610 DEFAULT_wxUSE_CLIPBOARD=yes
1611 DEFAULT_wxUSE_TOOLTIPS=yes
1612 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1613 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1614 DEFAULT_wxUSE_SPLINES=yes
1615
1616 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1617 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1618 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1619
1620 DEFAULT_wxUSE_PROLOGIO=yes
1621 DEFAULT_wxUSE_RESOURCES=yes
1622 DEFAULT_wxUSE_CONSTRAINTS=yes
1623 DEFAULT_wxUSE_IPC=yes
1624 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1625 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1626 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1627 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1628 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1629 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1630 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1631
1632 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1633 DEFAULT_wxUSE_CHOICEDLG=yes
1634 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1635 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1636 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1637 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1638 DEFAULT_wxUSE_FONTDLG=yes
1639 DEFAULT_wxUSE_MSGDLG=yes
1640 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1641 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1642 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1643 DEFAULT_wxUSE_STARTUP_TIPS=yes
1644 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1645 DEFAULT_wxUSE_WIZARDDLG=yes
1646
1e6feb95 1647 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1648 DEFAULT_wxUSE_MINIFRAME=yes
1649 DEFAULT_wxUSE_HTML=yes
24528b0c 1650 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1651 DEFAULT_wxUSE_FS_INET=yes
1652 DEFAULT_wxUSE_FS_ZIP=yes
1653 DEFAULT_wxUSE_BUSYINFO=yes
1654 DEFAULT_wxUSE_ZIPSTREAM=yes
1655 DEFAULT_wxUSE_VALIDATORS=yes
1656
1657 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1658 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1659 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1660 DEFAULT_wxUSE_CALCTRL=yes
1661 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1662 DEFAULT_wxUSE_CHECKBOX=yes
1663 DEFAULT_wxUSE_CHECKLST=yes
1664 DEFAULT_wxUSE_CHOICE=yes
1665 DEFAULT_wxUSE_COMBOBOX=yes
1666 DEFAULT_wxUSE_GAUGE=yes
1667 DEFAULT_wxUSE_GRID=yes
cc977e5f 1668 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1669 DEFAULT_wxUSE_IMAGLIST=yes
1670 DEFAULT_wxUSE_LISTBOX=yes
1671 DEFAULT_wxUSE_LISTCTRL=yes
1672 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1673 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1674 DEFAULT_wxUSE_RADIOBOX=yes
1675 DEFAULT_wxUSE_RADIOBTN=yes
1676 DEFAULT_wxUSE_SASH=yes
1677 DEFAULT_wxUSE_SCROLLBAR=yes
1678 DEFAULT_wxUSE_SLIDER=yes
1679 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1680 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1681 DEFAULT_wxUSE_SPLITTER=yes
1682 DEFAULT_wxUSE_STATBMP=yes
1683 DEFAULT_wxUSE_STATBOX=yes
1684 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1685 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1686 DEFAULT_wxUSE_STATUSBAR=yes
1687 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1688 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1689 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1690 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1691 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1692 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1693 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1694 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
1695
1696 DEFAULT_wxUSE_UNICODE=no
1697 DEFAULT_wxUSE_WCSRTOMBS=no
1698
edae8572 1699 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1700 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1701 DEFAULT_wxUSE_GIF=yes
1702 DEFAULT_wxUSE_PCX=yes
1703 DEFAULT_wxUSE_PNM=yes
0046ff7c 1704 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1705fi
1706
698dcdb6
VZ
1707
1708
10f2d63a
VZ
1709for toolkit in `echo $ALL_TOOLKITS`; do
1710 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1711 if test "x$LINE" != x ; then
1712 has_toolkit_in_cache=1
1713 eval "DEFAULT_$LINE"
1714 eval "CACHE_$toolkit=1"
1715 fi
1716done
1717
698dcdb6
VZ
1718
1719
1720 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
77e13408 1721echo "configure:1722: checking for --enable-gui" >&5
10f2d63a
VZ
1722 no_cache=0
1723 # Check whether --enable-gui or --disable-gui was given.
1724if test "${enable_gui+set}" = set; then
1725 enableval="$enable_gui"
698dcdb6 1726
10f2d63a
VZ
1727 if test "$enableval" = yes; then
1728 ac_cv_use_gui='wxUSE_GUI=yes'
1729 else
1730 ac_cv_use_gui='wxUSE_GUI=no'
1731 fi
698dcdb6 1732
10f2d63a 1733else
698dcdb6 1734
10f2d63a
VZ
1735 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1736 if test "x$LINE" != x ; then
1737 eval "DEFAULT_$LINE"
1738 else
1739 no_cache=1
1740 fi
1741
1742 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1743
1744fi
10f2d63a
VZ
1745
1746
1747 eval "$ac_cv_use_gui"
1748 if test "$no_cache" != 1; then
1749 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1750 fi
1751
1752 if test "$wxUSE_GUI" = yes; then
698dcdb6 1753 echo "$ac_t""yes" 1>&6
10f2d63a 1754 else
698dcdb6 1755 echo "$ac_t""no" 1>&6
10f2d63a 1756 fi
698dcdb6 1757
10f2d63a 1758
b12915c1 1759if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1760
1e6feb95
VZ
1761
1762 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
77e13408 1763echo "configure:1764: checking for --enable-universal" >&5
1e6feb95
VZ
1764 no_cache=0
1765 # Check whether --enable-universal or --disable-universal was given.
1766if test "${enable_universal+set}" = set; then
1767 enableval="$enable_universal"
1768
1769 if test "$enableval" = yes; then
1770 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1771 else
1772 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1773 fi
1774
1775else
1776
1777 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1778 if test "x$LINE" != x ; then
1779 eval "DEFAULT_$LINE"
1780 else
1781 no_cache=1
1782 fi
1783
1784 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1785
1786fi
1787
1788
1789 eval "$ac_cv_use_universal"
1790 if test "$no_cache" != 1; then
1791 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1792 fi
1793
1794 if test "$wxUSE_UNIVERSAL" = yes; then
1795 echo "$ac_t""yes" 1>&6
1796 else
1797 echo "$ac_t""no" 1>&6
1798 fi
1799
10f2d63a
VZ
1800# Check whether --with-gtk or --without-gtk was given.
1801if test "${with_gtk+set}" = set; then
1802 withval="$with_gtk"
1803 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1804fi
10f2d63a
VZ
1805
1806# Check whether --with-motif or --without-motif was given.
1807if test "${with_motif+set}" = set; then
1808 withval="$with_motif"
1809 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1810fi
10f2d63a 1811
b4085ce6
GD
1812# Check whether --with-mac or --without-mac was given.
1813if test "${with_mac+set}" = set; then
1814 withval="$with_mac"
1815 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1816fi
b4085ce6 1817
10f2d63a
VZ
1818# Check whether --with-wine or --without-wine was given.
1819if test "${with_wine+set}" = set; then
1820 withval="$with_wine"
1821 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1822fi
10f2d63a 1823
77e13408
RL
1824# Check whether --with-msw or --without-msw was given.
1825if test "${with_msw+set}" = set; then
1826 withval="$with_msw"
1827 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
698dcdb6 1828fi
10f2d63a 1829
e07802fc
VZ
1830# Check whether --with-pm or --without-pm was given.
1831if test "${with_pm+set}" = set; then
1832 withval="$with_pm"
1833 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1834fi
1835
1e6feb95
VZ
1836# Check whether --with-mgl or --without-mgl was given.
1837if test "${with_mgl+set}" = set; then
1838 withval="$with_mgl"
1839 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1840fi
1841
10f2d63a 1842
8168de4c
VZ
1843# Check whether --enable-gtk2 or --disable-gtk2 was given.
1844if test "${enable_gtk2+set}" = set; then
1845 enableval="$enable_gtk2"
1846 wxUSE_GTK2=1
10f2d63a 1847else
8168de4c 1848 wxUSE_GTK2=0
698dcdb6
VZ
1849fi
1850
703e0a69 1851
1e487827 1852
698dcdb6 1853 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
77e13408 1854echo "configure:1855: checking for --with-libpng" >&5
698dcdb6
VZ
1855 no_cache=0
1856 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1857if test "${with_libpng+set}" = set; then
1858 withval="$with_libpng"
698dcdb6 1859
10f2d63a 1860 if test "$withval" = yes; then
b12915c1 1861 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1862 elif test "$withval" = no; then
b12915c1 1863 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1864 elif test "$withval" = sys; then
1865 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1866 elif test "$withval" = builtin; then
1867 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1868 else
4f14bcd8 1869 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1870 fi
698dcdb6 1871
10f2d63a 1872else
698dcdb6 1873
b12915c1 1874 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1875 if test "x$LINE" != x ; then
1876 eval "DEFAULT_$LINE"
1877 else
1878 no_cache=1
1879 fi
1880
b12915c1 1881 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1882
1883fi
10f2d63a
VZ
1884
1885
b12915c1 1886 eval "$ac_cv_use_libpng"
10f2d63a 1887 if test "$no_cache" != 1; then
b12915c1 1888 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1889 fi
1890
b12915c1 1891 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1892 echo "$ac_t""yes" 1>&6
422107f9 1893 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1894 echo "$ac_t""no" 1>&6
422107f9 1895 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1896 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1897 elif test "$wxUSE_LIBPNG" = builtin; then
1898 echo "$ac_t""builtin version" 1>&6
422107f9 1899 else
4f14bcd8 1900 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1901 fi
698dcdb6 1902
10f2d63a 1903
698dcdb6 1904 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
77e13408 1905echo "configure:1906: checking for --with-libjpeg" >&5
10f2d63a 1906 no_cache=0
698dcdb6 1907 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1908if test "${with_libjpeg+set}" = set; then
1909 withval="$with_libjpeg"
698dcdb6 1910
10f2d63a 1911 if test "$withval" = yes; then
b12915c1 1912 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1913 elif test "$withval" = no; then
b12915c1 1914 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1915 elif test "$withval" = sys; then
1916 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
1917 elif test "$withval" = builtin; then
1918 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 1919 else
4f14bcd8 1920 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1921 fi
698dcdb6 1922
10f2d63a 1923else
698dcdb6 1924
b12915c1 1925 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1926 if test "x$LINE" != x ; then
1927 eval "DEFAULT_$LINE"
1928 else
1929 no_cache=1
1930 fi
1931
b12915c1 1932 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1933
1934fi
10f2d63a
VZ
1935
1936
b12915c1 1937 eval "$ac_cv_use_libjpeg"
10f2d63a 1938 if test "$no_cache" != 1; then
b12915c1 1939 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1940 fi
1941
b12915c1 1942 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1943 echo "$ac_t""yes" 1>&6
422107f9 1944 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1945 echo "$ac_t""no" 1>&6
422107f9 1946 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1947 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1948 elif test "$wxUSE_LIBJPEG" = builtin; then
1949 echo "$ac_t""builtin version" 1>&6
422107f9 1950 else
4f14bcd8 1951 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1952 fi
698dcdb6 1953
10f2d63a 1954
698dcdb6 1955 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
77e13408 1956echo "configure:1957: checking for --with-libtiff" >&5
10f2d63a 1957 no_cache=0
698dcdb6 1958 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1959if test "${with_libtiff+set}" = set; then
1960 withval="$with_libtiff"
698dcdb6 1961
10f2d63a 1962 if test "$withval" = yes; then
b12915c1 1963 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1964 elif test "$withval" = no; then
b12915c1 1965 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1966 elif test "$withval" = sys; then
1967 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
1968 elif test "$withval" = builtin; then
1969 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 1970 else
4f14bcd8 1971 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1972 fi
698dcdb6 1973
10f2d63a 1974else
698dcdb6 1975
b12915c1 1976 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1977 if test "x$LINE" != x ; then
1978 eval "DEFAULT_$LINE"
1979 else
1980 no_cache=1
1981 fi
1982
b12915c1 1983 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1984
1985fi
10f2d63a
VZ
1986
1987
b12915c1 1988 eval "$ac_cv_use_libtiff"
10f2d63a 1989 if test "$no_cache" != 1; then
b12915c1 1990 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1991 fi
1992
b12915c1 1993 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1994 echo "$ac_t""yes" 1>&6
0dcf9893 1995 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1996 echo "$ac_t""no" 1>&6
0dcf9893 1997 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1998 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1999 elif test "$wxUSE_LIBTIFF" = builtin; then
2000 echo "$ac_t""builtin version" 1>&6
0dcf9893 2001 else
4f14bcd8 2002 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2003 fi
698dcdb6 2004
10f2d63a 2005
698dcdb6 2006 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
77e13408 2007echo "configure:2008: checking for --with-freetype" >&5
3fed1840 2008 no_cache=0
698dcdb6 2009 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
2010if test "${with_freetype+set}" = set; then
2011 withval="$with_freetype"
698dcdb6 2012
3fed1840
RR
2013 if test "$withval" = yes; then
2014 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2015 elif test "$withval" = no; then
2016 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2017 elif test "$withval" = sys; then
2018 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
4f14bcd8
GD
2019 elif test "$withval" = builtin; then
2020 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
3fed1840 2021 else
4f14bcd8 2022 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2023 fi
698dcdb6 2024
3fed1840 2025else
698dcdb6 2026
3fed1840
RR
2027 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2028 if test "x$LINE" != x ; then
2029 eval "DEFAULT_$LINE"
2030 else
2031 no_cache=1
2032 fi
2033
2034 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2035
2036fi
3fed1840
RR
2037
2038
2039 eval "$ac_cv_use_freetype"
2040 if test "$no_cache" != 1; then
2041 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2042 fi
2043
2044 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2045 echo "$ac_t""yes" 1>&6
3fed1840 2046 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2047 echo "$ac_t""no" 1>&6
3fed1840 2048 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2049 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2050 elif test "$wxUSE_FREETYPE" = builtin; then
2051 echo "$ac_t""builtin version" 1>&6
3fed1840 2052 else
4f14bcd8 2053 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2054 fi
698dcdb6 2055
3fed1840 2056
698dcdb6 2057 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
77e13408 2058echo "configure:2059: checking for --with-opengl" >&5
10f2d63a 2059 no_cache=0
698dcdb6 2060 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2061if test "${with_opengl+set}" = set; then
2062 withval="$with_opengl"
698dcdb6 2063
10f2d63a 2064 if test "$withval" = yes; then
b12915c1 2065 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2066 else
b12915c1 2067 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2068 fi
698dcdb6 2069
10f2d63a 2070else
698dcdb6 2071
b12915c1 2072 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2073 if test "x$LINE" != x ; then
2074 eval "DEFAULT_$LINE"
2075 else
2076 no_cache=1
2077 fi
2078
b12915c1 2079 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2080
2081fi
10f2d63a
VZ
2082
2083
b12915c1 2084 eval "$ac_cv_use_opengl"
10f2d63a 2085 if test "$no_cache" != 1; then
b12915c1 2086 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2087 fi
2088
b12915c1 2089 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2090 echo "$ac_t""yes" 1>&6
10f2d63a 2091 else
698dcdb6 2092 echo "$ac_t""no" 1>&6
10f2d63a 2093 fi
698dcdb6 2094
10f2d63a 2095
b12915c1
VZ
2096fi
2097
1e487827 2098
698dcdb6 2099 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
77e13408 2100echo "configure:2101: checking for --with-dmalloc" >&5
698dcdb6
VZ
2101 no_cache=0
2102 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2103if test "${with_dmalloc+set}" = set; then
2104 withval="$with_dmalloc"
698dcdb6 2105
c7a2bf27 2106 if test "$withval" = yes; then
b12915c1 2107 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2108 else
b12915c1 2109 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2110 fi
698dcdb6 2111
c7a2bf27 2112else
698dcdb6 2113
b12915c1 2114 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2115 if test "x$LINE" != x ; then
2116 eval "DEFAULT_$LINE"
2117 else
2118 no_cache=1
2119 fi
2120
b12915c1 2121 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2122
2123fi
c7a2bf27
RR
2124
2125
b12915c1 2126 eval "$ac_cv_use_dmalloc"
c7a2bf27 2127 if test "$no_cache" != 1; then
b12915c1 2128 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2129 fi
2130
b12915c1 2131 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2132 echo "$ac_t""yes" 1>&6
c7a2bf27 2133 else
698dcdb6 2134 echo "$ac_t""no" 1>&6
c7a2bf27 2135 fi
698dcdb6 2136
c7a2bf27 2137
3e44f09d 2138 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
77e13408 2139echo "configure:2140: checking for --with-regex" >&5
3e44f09d
VZ
2140 no_cache=0
2141 # Check whether --with-regex or --without-regex was given.
2142if test "${with_regex+set}" = set; then
2143 withval="$with_regex"
2144
2145 if test "$withval" = yes; then
2146 ac_cv_use_regex='wxUSE_REGEX=yes'
2147 elif test "$withval" = no; then
2148 ac_cv_use_regex='wxUSE_REGEX=no'
2149 elif test "$withval" = sys; then
2150 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2151 elif test "$withval" = builtin; then
2152 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2153 else
4f14bcd8 2154 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2155 fi
2156
2157else
2158
2159 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2160 if test "x$LINE" != x ; then
2161 eval "DEFAULT_$LINE"
2162 else
2163 no_cache=1
2164 fi
2165
2166 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2167
2168fi
2169
2170
2171 eval "$ac_cv_use_regex"
2172 if test "$no_cache" != 1; then
2173 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2174 fi
2175
2176 if test "$wxUSE_REGEX" = yes; then
2177 echo "$ac_t""yes" 1>&6
2178 elif test "$wxUSE_REGEX" = no; then
2179 echo "$ac_t""no" 1>&6
2180 elif test "$wxUSE_REGEX" = sys; then
2181 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2182 elif test "$wxUSE_REGEX" = builtin; then
2183 echo "$ac_t""builtin version" 1>&6
3e44f09d 2184 else
4f14bcd8 2185 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2186 fi
2187
2188
698dcdb6 2189 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
77e13408 2190echo "configure:2191: checking for --with-zlib" >&5
10f2d63a 2191 no_cache=0
698dcdb6 2192 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2193if test "${with_zlib+set}" = set; then
2194 withval="$with_zlib"
698dcdb6 2195
10f2d63a 2196 if test "$withval" = yes; then
b12915c1 2197 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2198 elif test "$withval" = no; then
b12915c1 2199 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2200 elif test "$withval" = sys; then
2201 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2202 elif test "$withval" = builtin; then
2203 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2204 else
4f14bcd8 2205 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2206 fi
698dcdb6 2207
10f2d63a 2208else
698dcdb6 2209
b12915c1 2210 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2211 if test "x$LINE" != x ; then
2212 eval "DEFAULT_$LINE"
2213 else
2214 no_cache=1
2215 fi
2216
b12915c1 2217 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2218
2219fi
10f2d63a
VZ
2220
2221
b12915c1 2222 eval "$ac_cv_use_zlib"
10f2d63a 2223 if test "$no_cache" != 1; then
b12915c1 2224 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2225 fi
2226
b12915c1 2227 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2228 echo "$ac_t""yes" 1>&6
422107f9 2229 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2230 echo "$ac_t""no" 1>&6
422107f9 2231 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2232 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2233 elif test "$wxUSE_ZLIB" = builtin; then
2234 echo "$ac_t""builtin version" 1>&6
422107f9 2235 else
4f14bcd8 2236 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2237 fi
698dcdb6 2238
10f2d63a 2239
698dcdb6 2240 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
77e13408 2241echo "configure:2242: checking for --with-odbc" >&5
10f2d63a 2242 no_cache=0
698dcdb6 2243 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2244if test "${with_odbc+set}" = set; then
2245 withval="$with_odbc"
698dcdb6 2246
10f2d63a
VZ
2247 if test "$withval" = yes; then
2248 ac_cv_use_odbc='wxUSE_ODBC=yes'
2249 else
2250 ac_cv_use_odbc='wxUSE_ODBC=no'
2251 fi
698dcdb6 2252
10f2d63a 2253else
698dcdb6 2254
10f2d63a
VZ
2255 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2256 if test "x$LINE" != x ; then
2257 eval "DEFAULT_$LINE"
2258 else
2259 no_cache=1
2260 fi
2261
2262 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2263
2264fi
10f2d63a
VZ
2265
2266
2267 eval "$ac_cv_use_odbc"
2268 if test "$no_cache" != 1; then
2269 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2270 fi
2271
2272 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2273 echo "$ac_t""yes" 1>&6
10f2d63a 2274 else
698dcdb6 2275 echo "$ac_t""no" 1>&6
10f2d63a 2276 fi
698dcdb6
VZ
2277
2278
10f2d63a 2279
698dcdb6 2280
698dcdb6 2281 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
77e13408 2282echo "configure:2283: checking for --enable-shared" >&5
10f2d63a
VZ
2283 no_cache=0
2284 # Check whether --enable-shared or --disable-shared was given.
2285if test "${enable_shared+set}" = set; then
2286 enableval="$enable_shared"
698dcdb6 2287
10f2d63a
VZ
2288 if test "$enableval" = yes; then
2289 ac_cv_use_shared='wxUSE_SHARED=yes'
2290 else
2291 ac_cv_use_shared='wxUSE_SHARED=no'
2292 fi
698dcdb6 2293
10f2d63a 2294else
698dcdb6 2295
10f2d63a
VZ
2296 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2297 if test "x$LINE" != x ; then
2298 eval "DEFAULT_$LINE"
2299 else
2300 no_cache=1
2301 fi
2302
2303 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2304
2305fi
10f2d63a
VZ
2306
2307
2308 eval "$ac_cv_use_shared"
2309 if test "$no_cache" != 1; then
2310 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2311 fi
2312
2313 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2314 echo "$ac_t""yes" 1>&6
10f2d63a 2315 else
698dcdb6 2316 echo "$ac_t""no" 1>&6
10f2d63a 2317 fi
698dcdb6 2318
10f2d63a 2319
3a922bb4 2320 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
77e13408 2321echo "configure:2322: checking for --enable-soname" >&5
00cf1208 2322 no_cache=0
3a922bb4
RL
2323 # Check whether --enable-soname or --disable-soname was given.
2324if test "${enable_soname+set}" = set; then
2325 enableval="$enable_soname"
698dcdb6 2326
00cf1208 2327 if test "$enableval" = yes; then
3a922bb4 2328 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2329 else
3a922bb4 2330 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2331 fi
698dcdb6 2332
00cf1208 2333else
698dcdb6 2334
3a922bb4 2335 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2336 if test "x$LINE" != x ; then
2337 eval "DEFAULT_$LINE"
2338 else
2339 no_cache=1
2340 fi
2341
3a922bb4 2342 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2343
2344fi
00cf1208
RR
2345
2346
3a922bb4 2347 eval "$ac_cv_use_soname"
00cf1208 2348 if test "$no_cache" != 1; then
3a922bb4 2349 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2350 fi
2351
3a922bb4 2352 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2353 echo "$ac_t""yes" 1>&6
00cf1208 2354 else
698dcdb6 2355 echo "$ac_t""no" 1>&6
00cf1208 2356 fi
698dcdb6 2357
00cf1208 2358
698dcdb6 2359 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
77e13408 2360echo "configure:2361: checking for --enable-optimise" >&5
10f2d63a
VZ
2361 no_cache=0
2362 # Check whether --enable-optimise or --disable-optimise was given.
2363if test "${enable_optimise+set}" = set; then
2364 enableval="$enable_optimise"
698dcdb6 2365
10f2d63a
VZ
2366 if test "$enableval" = yes; then
2367 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2368 else
2369 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2370 fi
698dcdb6 2371
10f2d63a 2372else
698dcdb6 2373
10f2d63a
VZ
2374 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2375 if test "x$LINE" != x ; then
2376 eval "DEFAULT_$LINE"
2377 else
2378 no_cache=1
2379 fi
2380
2381 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2382
2383fi
10f2d63a
VZ
2384
2385
2386 eval "$ac_cv_use_optimise"
2387 if test "$no_cache" != 1; then
2388 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2389 fi
2390
2391 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2392 echo "$ac_t""yes" 1>&6
10f2d63a 2393 else
698dcdb6 2394 echo "$ac_t""no" 1>&6
10f2d63a 2395 fi
698dcdb6 2396
10f2d63a 2397
698dcdb6 2398 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
77e13408 2399echo "configure:2400: checking for --enable-debug" >&5
10f2d63a
VZ
2400 no_cache=0
2401 # Check whether --enable-debug or --disable-debug was given.
2402if test "${enable_debug+set}" = set; then
2403 enableval="$enable_debug"
698dcdb6 2404
10f2d63a
VZ
2405 if test "$enableval" = yes; then
2406 ac_cv_use_debug='wxUSE_DEBUG=yes'
2407 else
2408 ac_cv_use_debug='wxUSE_DEBUG=no'
2409 fi
698dcdb6 2410
10f2d63a 2411else
698dcdb6 2412
10f2d63a
VZ
2413 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2414 if test "x$LINE" != x ; then
2415 eval "DEFAULT_$LINE"
2416 else
2417 no_cache=1
2418 fi
2419
2420 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2421
2422fi
10f2d63a
VZ
2423
2424
2425 eval "$ac_cv_use_debug"
2426 if test "$no_cache" != 1; then
2427 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2428 fi
2429
2430 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2431 echo "$ac_t""yes" 1>&6
10f2d63a 2432 else
698dcdb6 2433 echo "$ac_t""no" 1>&6
10f2d63a 2434 fi
698dcdb6 2435
10f2d63a 2436
683dccda
GD
2437
2438 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
77e13408 2439echo "configure:2440: checking for --enable-precomp" >&5
683dccda
GD
2440 no_cache=0
2441 # Check whether --enable-precomp or --disable-precomp was given.
2442if test "${enable_precomp+set}" = set; then
2443 enableval="$enable_precomp"
2444
2445 if test "$enableval" = yes; then
2446 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2447 else
2448 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2449 fi
2450
2451else
2452
2453 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2454 if test "x$LINE" != x ; then
2455 eval "DEFAULT_$LINE"
2456 else
2457 no_cache=1
2458 fi
2459
2460 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2461
2462fi
2463
2464
2465 eval "$ac_cv_use_precomp"
2466 if test "$no_cache" != 1; then
2467 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2468 fi
2469
2470 if test "$wxUSE_PRECOMP" = yes; then
2471 echo "$ac_t""yes" 1>&6
2472 else
2473 echo "$ac_t""no" 1>&6
2474 fi
2475
2476
10f2d63a
VZ
2477if test "$wxUSE_DEBUG" = "yes"; then
2478 DEFAULT_wxUSE_DEBUG_FLAG=yes
2479 DEFAULT_wxUSE_DEBUG_INFO=yes
2480elif test "$wxUSE_DEBUG" = "no"; then
2481 DEFAULT_wxUSE_DEBUG_FLAG=no
2482 DEFAULT_wxUSE_DEBUG_INFO=no
2483fi
2484
698dcdb6
VZ
2485
2486 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
77e13408 2487echo "configure:2488: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2488 no_cache=0
2489 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2490if test "${enable_debug_flag+set}" = set; then
2491 enableval="$enable_debug_flag"
698dcdb6 2492
10f2d63a
VZ
2493 if test "$enableval" = yes; then
2494 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2495 else
2496 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2497 fi
698dcdb6 2498
10f2d63a 2499else
698dcdb6 2500
10f2d63a
VZ
2501 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2502 if test "x$LINE" != x ; then
2503 eval "DEFAULT_$LINE"
2504 else
2505 no_cache=1
2506 fi
2507
2508 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2509
2510fi
10f2d63a
VZ
2511
2512
2513 eval "$ac_cv_use_debug_flag"
2514 if test "$no_cache" != 1; then
2515 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2516 fi
2517
2518 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2519 echo "$ac_t""yes" 1>&6
10f2d63a 2520 else
698dcdb6 2521 echo "$ac_t""no" 1>&6
10f2d63a 2522 fi
698dcdb6 2523
10f2d63a 2524
698dcdb6 2525 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
77e13408 2526echo "configure:2527: checking for --enable-debug_info" >&5
10f2d63a
VZ
2527 no_cache=0
2528 # Check whether --enable-debug_info or --disable-debug_info was given.
2529if test "${enable_debug_info+set}" = set; then
2530 enableval="$enable_debug_info"
698dcdb6 2531
10f2d63a
VZ
2532 if test "$enableval" = yes; then
2533 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2534 else
2535 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2536 fi
698dcdb6 2537
10f2d63a 2538else
698dcdb6 2539
10f2d63a
VZ
2540 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2541 if test "x$LINE" != x ; then
2542 eval "DEFAULT_$LINE"
2543 else
2544 no_cache=1
2545 fi
2546
2547 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2548
2549fi
10f2d63a
VZ
2550
2551
2552 eval "$ac_cv_use_debug_info"
2553 if test "$no_cache" != 1; then
2554 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2555 fi
2556
2557 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2558 echo "$ac_t""yes" 1>&6
10f2d63a 2559 else
698dcdb6 2560 echo "$ac_t""no" 1>&6
10f2d63a 2561 fi
698dcdb6 2562
10f2d63a 2563
698dcdb6 2564 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
77e13408 2565echo "configure:2566: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2566 no_cache=0
2567 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2568if test "${enable_debug_gdb+set}" = set; then
2569 enableval="$enable_debug_gdb"
698dcdb6 2570
10f2d63a
VZ
2571 if test "$enableval" = yes; then
2572 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2573 else
2574 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2575 fi
698dcdb6 2576
10f2d63a 2577else
698dcdb6 2578
10f2d63a
VZ
2579 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2580 if test "x$LINE" != x ; then
2581 eval "DEFAULT_$LINE"
2582 else
2583 no_cache=1
2584 fi
2585
2586 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2587
2588fi
10f2d63a
VZ
2589
2590
2591 eval "$ac_cv_use_debug_gdb"
2592 if test "$no_cache" != 1; then
2593 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2594 fi
2595
2596 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2597 echo "$ac_t""yes" 1>&6
10f2d63a 2598 else
698dcdb6 2599 echo "$ac_t""no" 1>&6
10f2d63a 2600 fi
698dcdb6 2601
10f2d63a 2602
698dcdb6 2603 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
77e13408 2604echo "configure:2605: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2605 no_cache=0
2606 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2607if test "${enable_debug_cntxt+set}" = set; then
2608 enableval="$enable_debug_cntxt"
698dcdb6 2609
10f2d63a
VZ
2610 if test "$enableval" = yes; then
2611 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2612 else
2613 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2614 fi
698dcdb6 2615
10f2d63a 2616else
698dcdb6 2617
10f2d63a
VZ
2618 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2619 if test "x$LINE" != x ; then
2620 eval "DEFAULT_$LINE"
2621 else
2622 no_cache=1
2623 fi
2624
2625 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2626
2627fi
10f2d63a
VZ
2628
2629
2630 eval "$ac_cv_use_debug_cntxt"
2631 if test "$no_cache" != 1; then
2632 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2633 fi
2634
2635 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2636 echo "$ac_t""yes" 1>&6
10f2d63a 2637 else
698dcdb6 2638 echo "$ac_t""no" 1>&6
10f2d63a 2639 fi
698dcdb6 2640
10f2d63a 2641
698dcdb6 2642 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
77e13408 2643echo "configure:2644: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2644 no_cache=0
2645 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2646if test "${enable_mem_tracing+set}" = set; then
2647 enableval="$enable_mem_tracing"
698dcdb6 2648
10f2d63a
VZ
2649 if test "$enableval" = yes; then
2650 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2651 else
2652 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2653 fi
698dcdb6 2654
10f2d63a 2655else
698dcdb6 2656
10f2d63a
VZ
2657 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2658 if test "x$LINE" != x ; then
2659 eval "DEFAULT_$LINE"
2660 else
2661 no_cache=1
2662 fi
2663
2664 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2665
2666fi
10f2d63a
VZ
2667
2668
2669 eval "$ac_cv_use_mem_tracing"
2670 if test "$no_cache" != 1; then
2671 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2672 fi
2673
2674 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2675 echo "$ac_t""yes" 1>&6
10f2d63a 2676 else
698dcdb6 2677 echo "$ac_t""no" 1>&6
10f2d63a 2678 fi
698dcdb6 2679
10f2d63a 2680
698dcdb6 2681 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
77e13408 2682echo "configure:2683: checking for --enable-profile" >&5
10f2d63a
VZ
2683 no_cache=0
2684 # Check whether --enable-profile or --disable-profile was given.
2685if test "${enable_profile+set}" = set; then
2686 enableval="$enable_profile"
698dcdb6 2687
10f2d63a
VZ
2688 if test "$enableval" = yes; then
2689 ac_cv_use_profile='wxUSE_PROFILE=yes'
2690 else
2691 ac_cv_use_profile='wxUSE_PROFILE=no'
2692 fi
698dcdb6 2693
10f2d63a 2694else
698dcdb6 2695
10f2d63a
VZ
2696 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2697 if test "x$LINE" != x ; then
2698 eval "DEFAULT_$LINE"
2699 else
2700 no_cache=1
2701 fi
2702
2703 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2704
2705fi
10f2d63a
VZ
2706
2707
2708 eval "$ac_cv_use_profile"
2709 if test "$no_cache" != 1; then
2710 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2711 fi
2712
2713 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2714 echo "$ac_t""yes" 1>&6
10f2d63a 2715 else
698dcdb6 2716 echo "$ac_t""no" 1>&6
10f2d63a 2717 fi
698dcdb6 2718
10f2d63a 2719
698dcdb6 2720 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
77e13408 2721echo "configure:2722: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2722 no_cache=0
2723 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2724if test "${enable_no_rtti+set}" = set; then
2725 enableval="$enable_no_rtti"
698dcdb6 2726
10f2d63a
VZ
2727 if test "$enableval" = yes; then
2728 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2729 else
2730 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2731 fi
698dcdb6 2732
10f2d63a 2733else
698dcdb6 2734
10f2d63a
VZ
2735 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2736 if test "x$LINE" != x ; then
2737 eval "DEFAULT_$LINE"
2738 else
2739 no_cache=1
2740 fi
2741
2742 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2743
2744fi
10f2d63a
VZ
2745
2746
2747 eval "$ac_cv_use_no_rtti"
2748 if test "$no_cache" != 1; then
2749 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2750 fi
2751
2752 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2753 echo "$ac_t""yes" 1>&6
10f2d63a 2754 else
698dcdb6 2755 echo "$ac_t""no" 1>&6
10f2d63a 2756 fi
698dcdb6 2757
10f2d63a 2758
698dcdb6 2759 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
77e13408 2760echo "configure:2761: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2761 no_cache=0
2762 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2763if test "${enable_no_exceptions+set}" = set; then
2764 enableval="$enable_no_exceptions"
698dcdb6 2765
10f2d63a
VZ
2766 if test "$enableval" = yes; then
2767 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2768 else
2769 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2770 fi
698dcdb6 2771
10f2d63a 2772else
698dcdb6 2773
10f2d63a
VZ
2774 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2775 if test "x$LINE" != x ; then
2776 eval "DEFAULT_$LINE"
2777 else
2778 no_cache=1
2779 fi
2780
2781 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2782
2783fi
10f2d63a
VZ
2784
2785
2786 eval "$ac_cv_use_no_exceptions"
2787 if test "$no_cache" != 1; then
2788 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2789 fi
2790
2791 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2792 echo "$ac_t""yes" 1>&6
10f2d63a 2793 else
698dcdb6 2794 echo "$ac_t""no" 1>&6
10f2d63a 2795 fi
698dcdb6 2796
10f2d63a 2797
698dcdb6 2798 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
77e13408 2799echo "configure:2800: checking for --enable-permissive" >&5
10f2d63a
VZ
2800 no_cache=0
2801 # Check whether --enable-permissive or --disable-permissive was given.
2802if test "${enable_permissive+set}" = set; then
2803 enableval="$enable_permissive"
698dcdb6 2804
10f2d63a
VZ
2805 if test "$enableval" = yes; then
2806 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2807 else
2808 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2809 fi
698dcdb6 2810
10f2d63a 2811else
698dcdb6 2812
10f2d63a
VZ
2813 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2814 if test "x$LINE" != x ; then
2815 eval "DEFAULT_$LINE"
2816 else
2817 no_cache=1
2818 fi
2819
2820 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2821
2822fi
10f2d63a
VZ
2823
2824
2825 eval "$ac_cv_use_permissive"
2826 if test "$no_cache" != 1; then
2827 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2828 fi
2829
2830 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2831 echo "$ac_t""yes" 1>&6
10f2d63a 2832 else
698dcdb6 2833 echo "$ac_t""no" 1>&6
10f2d63a 2834 fi
698dcdb6 2835
10f2d63a 2836
698dcdb6 2837 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
77e13408 2838echo "configure:2839: checking for --enable-no_deps" >&5
10f2d63a
VZ
2839 no_cache=0
2840 # Check whether --enable-no_deps or --disable-no_deps was given.
2841if test "${enable_no_deps+set}" = set; then
2842 enableval="$enable_no_deps"
698dcdb6 2843
10f2d63a
VZ
2844 if test "$enableval" = yes; then
2845 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2846 else
2847 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2848 fi
698dcdb6 2849
10f2d63a 2850else
698dcdb6 2851
10f2d63a
VZ
2852 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2853 if test "x$LINE" != x ; then
2854 eval "DEFAULT_$LINE"
2855 else
2856 no_cache=1
2857 fi
2858
2859 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2860
2861fi
10f2d63a
VZ
2862
2863
2864 eval "$ac_cv_use_no_deps"
2865 if test "$no_cache" != 1; then
2866 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2867 fi
2868
2869 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2870 echo "$ac_t""yes" 1>&6
10f2d63a 2871 else
698dcdb6 2872 echo "$ac_t""no" 1>&6
10f2d63a 2873 fi
698dcdb6
VZ
2874
2875
10f2d63a 2876
54276ccf 2877 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
77e13408 2878echo "configure:2879: checking for --enable-compat20" >&5
54276ccf
VZ
2879 no_cache=0
2880 # Check whether --enable-compat20 or --disable-compat20 was given.
2881if test "${enable_compat20+set}" = set; then
2882 enableval="$enable_compat20"
2883
2884 if test "$enableval" = yes; then
2885 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2886 else
2887 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2888 fi
2889
2890else
2891
2892 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2893 if test "x$LINE" != x ; then
2894 eval "DEFAULT_$LINE"
2895 else
2896 no_cache=1
2897 fi
2898
2899 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2900
2901fi
2902
2903
2904 eval "$ac_cv_use_compat20"
2905 if test "$no_cache" != 1; then
2906 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2907 fi
2908
2909 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2910 echo "$ac_t""yes" 1>&6
2911 else
2912 echo "$ac_t""no" 1>&6
2913 fi
2914
2915
2916 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
77e13408 2917echo "configure:2918: checking for --enable-compat22" >&5
54276ccf
VZ
2918 no_cache=0
2919 # Check whether --enable-compat22 or --disable-compat22 was given.
2920if test "${enable_compat22+set}" = set; then
2921 enableval="$enable_compat22"
2922
2923 if test "$enableval" = yes; then
2924 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2925 else
2926 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2927 fi
2928
2929else
2930
2931 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2932 if test "x$LINE" != x ; then
2933 eval "DEFAULT_$LINE"
2934 else
2935 no_cache=1
2936 fi
2937
2938 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2939
2940fi
2941
2942
2943 eval "$ac_cv_use_compat22"
2944 if test "$no_cache" != 1; then
2945 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2946 fi
2947
2948 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2949 echo "$ac_t""yes" 1>&6
2950 else
2951 echo "$ac_t""no" 1>&6
2952 fi
2953
2954
2955
698dcdb6
VZ
2956
2957 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
77e13408 2958echo "configure:2959: checking for --enable-intl" >&5
10f2d63a
VZ
2959 no_cache=0
2960 # Check whether --enable-intl or --disable-intl was given.
2961if test "${enable_intl+set}" = set; then
2962 enableval="$enable_intl"
698dcdb6 2963
10f2d63a
VZ
2964 if test "$enableval" = yes; then
2965 ac_cv_use_intl='wxUSE_INTL=yes'
2966 else
2967 ac_cv_use_intl='wxUSE_INTL=no'
2968 fi
698dcdb6 2969
10f2d63a 2970else
698dcdb6 2971
10f2d63a
VZ
2972 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2973 if test "x$LINE" != x ; then
2974 eval "DEFAULT_$LINE"
2975 else
2976 no_cache=1
2977 fi
2978
2979 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2980
2981fi
10f2d63a
VZ
2982
2983
2984 eval "$ac_cv_use_intl"
2985 if test "$no_cache" != 1; then
2986 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2987 fi
2988
2989 if test "$wxUSE_INTL" = yes; then
698dcdb6 2990 echo "$ac_t""yes" 1>&6
10f2d63a 2991 else
698dcdb6 2992 echo "$ac_t""no" 1>&6
10f2d63a 2993 fi
698dcdb6 2994
10f2d63a 2995
698dcdb6 2996 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
77e13408 2997echo "configure:2998: checking for --enable-config" >&5
10f2d63a
VZ
2998 no_cache=0
2999 # Check whether --enable-config or --disable-config was given.
3000if test "${enable_config+set}" = set; then
3001 enableval="$enable_config"
698dcdb6 3002
10f2d63a
VZ
3003 if test "$enableval" = yes; then
3004 ac_cv_use_config='wxUSE_CONFIG=yes'
3005 else
3006 ac_cv_use_config='wxUSE_CONFIG=no'
3007 fi
698dcdb6 3008
10f2d63a 3009else
698dcdb6 3010
10f2d63a
VZ
3011 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3012 if test "x$LINE" != x ; then
3013 eval "DEFAULT_$LINE"
3014 else
3015 no_cache=1
3016 fi
3017
3018 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3019
3020fi
10f2d63a
VZ
3021
3022
3023 eval "$ac_cv_use_config"
3024 if test "$no_cache" != 1; then
3025 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3026 fi
3027
3028 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3029 echo "$ac_t""yes" 1>&6
10f2d63a 3030 else
698dcdb6 3031 echo "$ac_t""no" 1>&6
10f2d63a 3032 fi
698dcdb6
VZ
3033
3034
b12915c1 3035
698dcdb6 3036 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
77e13408 3037echo "configure:3038: checking for --enable-sockets" >&5
10f2d63a
VZ
3038 no_cache=0
3039 # Check whether --enable-sockets or --disable-sockets was given.
3040if test "${enable_sockets+set}" = set; then
3041 enableval="$enable_sockets"
698dcdb6 3042
10f2d63a
VZ
3043 if test "$enableval" = yes; then
3044 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3045 else
3046 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3047 fi
698dcdb6 3048
10f2d63a 3049else
698dcdb6 3050
10f2d63a
VZ
3051 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3052 if test "x$LINE" != x ; then
3053 eval "DEFAULT_$LINE"
3054 else
3055 no_cache=1
3056 fi
3057
3058 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3059
3060fi
10f2d63a
VZ
3061
3062
3063 eval "$ac_cv_use_sockets"
3064 if test "$no_cache" != 1; then
3065 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3066 fi
3067
3068 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3069 echo "$ac_t""yes" 1>&6
10f2d63a 3070 else
698dcdb6 3071 echo "$ac_t""no" 1>&6
10f2d63a 3072 fi
698dcdb6 3073
b12915c1 3074
698dcdb6
VZ
3075
3076 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
77e13408 3077echo "configure:3078: checking for --enable-ipc" >&5
10f2d63a 3078 no_cache=0
eb4efbdc
VZ
3079 # Check whether --enable-ipc or --disable-ipc was given.
3080if test "${enable_ipc+set}" = set; then
3081 enableval="$enable_ipc"
698dcdb6 3082
10f2d63a 3083 if test "$enableval" = yes; then
eb4efbdc 3084 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3085 else
eb4efbdc 3086 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3087 fi
698dcdb6 3088
10f2d63a 3089else
698dcdb6 3090
eb4efbdc 3091 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3092 if test "x$LINE" != x ; then
3093 eval "DEFAULT_$LINE"
3094 else
3095 no_cache=1
3096 fi
3097
eb4efbdc 3098 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3099
3100fi
10f2d63a
VZ
3101
3102
eb4efbdc 3103 eval "$ac_cv_use_ipc"
10f2d63a 3104 if test "$no_cache" != 1; then
eb4efbdc 3105 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3106 fi
3107
eb4efbdc 3108 if test "$wxUSE_IPC" = yes; then
698dcdb6 3109 echo "$ac_t""yes" 1>&6
10f2d63a 3110 else
698dcdb6 3111 echo "$ac_t""no" 1>&6
10f2d63a 3112 fi
698dcdb6
VZ
3113
3114
eb4efbdc 3115
1e6feb95 3116 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
77e13408 3117echo "configure:3118: checking for --enable-cmdline" >&5
1e6feb95
VZ
3118 no_cache=0
3119 # Check whether --enable-cmdline or --disable-cmdline was given.
3120if test "${enable_cmdline+set}" = set; then
3121 enableval="$enable_cmdline"
3122
3123 if test "$enableval" = yes; then
3124 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3125 else
3126 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3127 fi
3128
3129else
3130
3131 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3132 if test "x$LINE" != x ; then
3133 eval "DEFAULT_$LINE"
3134 else
3135 no_cache=1
3136 fi
3137
3138 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3139
3140fi
3141
3142
3143 eval "$ac_cv_use_cmdline"
3144 if test "$no_cache" != 1; then
3145 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3146 fi
3147
3148 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3149 echo "$ac_t""yes" 1>&6
3150 else
3151 echo "$ac_t""no" 1>&6
3152 fi
3153
3154
3155 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
77e13408 3156echo "configure:3157: checking for --enable-datetime" >&5
1e6feb95
VZ
3157 no_cache=0
3158 # Check whether --enable-datetime or --disable-datetime was given.
3159if test "${enable_datetime+set}" = set; then
3160 enableval="$enable_datetime"
3161
3162 if test "$enableval" = yes; then
3163 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3164 else
3165 ac_cv_use_datetime='wxUSE_DATETIME=no'
3166 fi
3167
3168else
3169
3170 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3171 if test "x$LINE" != x ; then
3172 eval "DEFAULT_$LINE"
3173 else
3174 no_cache=1
3175 fi
3176
3177 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3178
3179fi
3180
3181
3182 eval "$ac_cv_use_datetime"
3183 if test "$no_cache" != 1; then
3184 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3185 fi
3186
3187 if test "$wxUSE_DATETIME" = yes; then
3188 echo "$ac_t""yes" 1>&6
3189 else
3190 echo "$ac_t""no" 1>&6
3191 fi
3192
3193
3194 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
77e13408 3195echo "configure:3196: checking for --enable-timedate" >&5
1e6feb95
VZ
3196 no_cache=0
3197 # Check whether --enable-timedate or --disable-timedate was given.
3198if test "${enable_timedate+set}" = set; then
3199 enableval="$enable_timedate"
3200
3201 if test "$enableval" = yes; then
3202 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3203 else
3204 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3205 fi
3206
3207else
3208
3209 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3210 if test "x$LINE" != x ; then
3211 eval "DEFAULT_$LINE"
3212 else
3213 no_cache=1
3214 fi
3215
3216 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3217
3218fi
3219
3220
3221 eval "$ac_cv_use_timedate"
3222 if test "$no_cache" != 1; then
3223 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3224 fi
3225
3226 if test "$wxUSE_TIMEDATE" = yes; then
3227 echo "$ac_t""yes" 1>&6
3228 else
3229 echo "$ac_t""no" 1>&6
3230 fi
3231
3232
3233 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
77e13408 3234echo "configure:3235: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3235 no_cache=0
3236 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3237if test "${enable_stopwatch+set}" = set; then
3238 enableval="$enable_stopwatch"
3239
3240 if test "$enableval" = yes; then
3241 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3242 else
3243 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3244 fi
3245
3246else
3247
3248 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3249 if test "x$LINE" != x ; then
3250 eval "DEFAULT_$LINE"
3251 else
3252 no_cache=1
3253 fi
3254
3255 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3256
3257fi
3258
3259
3260 eval "$ac_cv_use_stopwatch"
3261 if test "$no_cache" != 1; then
3262 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3263 fi
3264
3265 if test "$wxUSE_STOPWATCH" = yes; then
3266 echo "$ac_t""yes" 1>&6
3267 else
3268 echo "$ac_t""no" 1>&6
3269 fi
3270
3271
698dcdb6 3272 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
77e13408 3273echo "configure:3274: checking for --enable-dialupman" >&5
10f2d63a 3274 no_cache=0
eb4efbdc
VZ
3275 # Check whether --enable-dialupman or --disable-dialupman was given.
3276if test "${enable_dialupman+set}" = set; then
3277 enableval="$enable_dialupman"
698dcdb6 3278
10f2d63a 3279 if test "$enableval" = yes; then
eb4efbdc 3280 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3281 else
eb4efbdc 3282 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3283 fi
698dcdb6 3284
10f2d63a 3285else
698dcdb6 3286
eb4efbdc 3287 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3288 if test "x$LINE" != x ; then
3289 eval "DEFAULT_$LINE"
3290 else
3291 no_cache=1
3292 fi
3293
eb4efbdc 3294 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3295
3296fi
10f2d63a
VZ
3297
3298
eb4efbdc 3299 eval "$ac_cv_use_dialupman"
10f2d63a 3300 if test "$no_cache" != 1; then
eb4efbdc 3301 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3302 fi
3303
eb4efbdc 3304 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3305 echo "$ac_t""yes" 1>&6
10f2d63a 3306 else
698dcdb6 3307 echo "$ac_t""no" 1>&6
10f2d63a 3308 fi
698dcdb6 3309
10f2d63a 3310
698dcdb6 3311 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
77e13408 3312echo "configure:3313: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3313 no_cache=0
3314 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3315if test "${enable_apple_ieee+set}" = set; then
3316 enableval="$enable_apple_ieee"
698dcdb6 3317
10f2d63a
VZ
3318 if test "$enableval" = yes; then
3319 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3320 else
3321 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3322 fi
698dcdb6 3323
10f2d63a 3324else
698dcdb6 3325
10f2d63a
VZ
3326 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3327 if test "x$LINE" != x ; then
3328 eval "DEFAULT_$LINE"
3329 else
3330 no_cache=1
3331 fi
3332
3333 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3334
3335fi
10f2d63a
VZ
3336
3337
3338 eval "$ac_cv_use_apple_ieee"
3339 if test "$no_cache" != 1; then
3340 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3341 fi
3342
3343 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3344 echo "$ac_t""yes" 1>&6
10f2d63a 3345 else
698dcdb6 3346 echo "$ac_t""no" 1>&6
10f2d63a 3347 fi
698dcdb6 3348
10f2d63a 3349
1e6feb95 3350 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
77e13408 3351echo "configure:3352: checking for --enable-timer" >&5
10f2d63a 3352 no_cache=0
1e6feb95
VZ
3353 # Check whether --enable-timer or --disable-timer was given.
3354if test "${enable_timer+set}" = set; then
3355 enableval="$enable_timer"
698dcdb6 3356
10f2d63a 3357 if test "$enableval" = yes; then
1e6feb95 3358 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3359 else
1e6feb95 3360 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3361 fi
698dcdb6 3362
10f2d63a 3363else
698dcdb6 3364
1e6feb95 3365 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3366 if test "x$LINE" != x ; then
3367 eval "DEFAULT_$LINE"
3368 else
3369 no_cache=1
3370 fi
3371
1e6feb95 3372 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3373
3374fi
10f2d63a
VZ
3375
3376
1e6feb95 3377 eval "$ac_cv_use_timer"
10f2d63a 3378 if test "$no_cache" != 1; then
1e6feb95 3379 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3380 fi
3381
1e6feb95 3382 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3383 echo "$ac_t""yes" 1>&6
10f2d63a 3384 else
698dcdb6 3385 echo "$ac_t""no" 1>&6
10f2d63a 3386 fi
698dcdb6 3387
10f2d63a 3388
698dcdb6 3389 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
77e13408 3390echo "configure:3391: checking for --enable-wave" >&5
10f2d63a
VZ
3391 no_cache=0
3392 # Check whether --enable-wave or --disable-wave was given.
3393if test "${enable_wave+set}" = set; then
3394 enableval="$enable_wave"
698dcdb6 3395
10f2d63a
VZ
3396 if test "$enableval" = yes; then
3397 ac_cv_use_wave='wxUSE_WAVE=yes'
3398 else
3399 ac_cv_use_wave='wxUSE_WAVE=no'
3400 fi
698dcdb6 3401
10f2d63a 3402else
698dcdb6 3403
10f2d63a
VZ
3404 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3405 if test "x$LINE" != x ; then
3406 eval "DEFAULT_$LINE"
3407 else
3408 no_cache=1
3409 fi
3410
3411 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3412
3413fi
10f2d63a
VZ
3414
3415
3416 eval "$ac_cv_use_wave"
3417 if test "$no_cache" != 1; then
3418 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3419 fi
3420
3421 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3422 echo "$ac_t""yes" 1>&6
10f2d63a 3423 else
698dcdb6 3424 echo "$ac_t""no" 1>&6
10f2d63a 3425 fi
698dcdb6 3426
10f2d63a 3427
698dcdb6 3428 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
77e13408 3429echo "configure:3430: checking for --enable-fraction" >&5
10f2d63a
VZ
3430 no_cache=0
3431 # Check whether --enable-fraction or --disable-fraction was given.
3432if test "${enable_fraction+set}" = set; then
3433 enableval="$enable_fraction"
698dcdb6 3434
10f2d63a
VZ
3435 if test "$enableval" = yes; then
3436 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3437 else
3438 ac_cv_use_fraction='wxUSE_FRACTION=no'
3439 fi
698dcdb6 3440
10f2d63a 3441else
698dcdb6 3442
10f2d63a
VZ
3443 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3444 if test "x$LINE" != x ; then
3445 eval "DEFAULT_$LINE"
3446 else
3447 no_cache=1
3448 fi
3449
3450 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3451
3452fi
10f2d63a
VZ
3453
3454
3455 eval "$ac_cv_use_fraction"
3456 if test "$no_cache" != 1; then
3457 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3458 fi
3459
3460 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3461 echo "$ac_t""yes" 1>&6
10f2d63a 3462 else
698dcdb6 3463 echo "$ac_t""no" 1>&6
10f2d63a 3464 fi
698dcdb6 3465
10f2d63a 3466
698dcdb6 3467 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
77e13408 3468echo "configure:3469: checking for --enable-dynlib" >&5
10f2d63a
VZ
3469 no_cache=0
3470 # Check whether --enable-dynlib or --disable-dynlib was given.
3471if test "${enable_dynlib+set}" = set; then
3472 enableval="$enable_dynlib"
698dcdb6 3473
10f2d63a
VZ
3474 if test "$enableval" = yes; then
3475 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3476 else
3477 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3478 fi
698dcdb6 3479
10f2d63a 3480else
698dcdb6 3481
10f2d63a
VZ
3482 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3483 if test "x$LINE" != x ; then
3484 eval "DEFAULT_$LINE"
3485 else
3486 no_cache=1
3487 fi
3488
3489 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3490
3491fi
10f2d63a
VZ
3492
3493
3494 eval "$ac_cv_use_dynlib"
3495 if test "$no_cache" != 1; then
3496 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3497 fi
3498
3499 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3500 echo "$ac_t""yes" 1>&6
10f2d63a 3501 else
698dcdb6 3502 echo "$ac_t""no" 1>&6
10f2d63a 3503 fi
698dcdb6 3504
10f2d63a 3505
698dcdb6 3506 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
77e13408 3507echo "configure:3508: checking for --enable-longlong" >&5
10f2d63a
VZ
3508 no_cache=0
3509 # Check whether --enable-longlong or --disable-longlong was given.
3510if test "${enable_longlong+set}" = set; then
3511 enableval="$enable_longlong"
698dcdb6 3512
10f2d63a
VZ
3513 if test "$enableval" = yes; then
3514 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3515 else
3516 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3517 fi
698dcdb6 3518
10f2d63a 3519else
698dcdb6 3520
10f2d63a
VZ
3521 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3522 if test "x$LINE" != x ; then
3523 eval "DEFAULT_$LINE"
3524 else
3525 no_cache=1
3526 fi
3527
3528 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3529
3530fi
10f2d63a
VZ
3531
3532
3533 eval "$ac_cv_use_longlong"
3534 if test "$no_cache" != 1; then
3535 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3536 fi
3537
3538 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3539 echo "$ac_t""yes" 1>&6
10f2d63a 3540 else
698dcdb6 3541 echo "$ac_t""no" 1>&6
10f2d63a 3542 fi
698dcdb6 3543
10f2d63a 3544
698dcdb6 3545 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
77e13408 3546echo "configure:3547: checking for --enable-geometry" >&5
e8f65ba6
RR
3547 no_cache=0
3548 # Check whether --enable-geometry or --disable-geometry was given.
3549if test "${enable_geometry+set}" = set; then
3550 enableval="$enable_geometry"
698dcdb6 3551
e8f65ba6
RR
3552 if test "$enableval" = yes; then
3553 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3554 else
3555 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3556 fi
698dcdb6 3557
e8f65ba6 3558else
698dcdb6 3559
e8f65ba6
RR
3560 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3561 if test "x$LINE" != x ; then
3562 eval "DEFAULT_$LINE"
3563 else
3564 no_cache=1
3565 fi
3566
3567 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3568
3569fi
e8f65ba6
RR
3570
3571
3572 eval "$ac_cv_use_geometry"
3573 if test "$no_cache" != 1; then
3574 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3575 fi
3576
3577 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3578 echo "$ac_t""yes" 1>&6
e8f65ba6 3579 else
698dcdb6 3580 echo "$ac_t""no" 1>&6
e8f65ba6 3581 fi
698dcdb6 3582
e8f65ba6 3583
698dcdb6 3584 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
77e13408 3585echo "configure:3586: checking for --enable-log" >&5
10f2d63a
VZ
3586 no_cache=0
3587 # Check whether --enable-log or --disable-log was given.
3588if test "${enable_log+set}" = set; then
3589 enableval="$enable_log"
698dcdb6 3590
10f2d63a
VZ
3591 if test "$enableval" = yes; then
3592 ac_cv_use_log='wxUSE_LOG=yes'
3593 else
3594 ac_cv_use_log='wxUSE_LOG=no'
3595 fi
698dcdb6 3596
10f2d63a 3597else
698dcdb6 3598
10f2d63a
VZ
3599 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3600 if test "x$LINE" != x ; then
3601 eval "DEFAULT_$LINE"
3602 else
3603 no_cache=1
3604 fi
3605
3606 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3607
3608fi
10f2d63a
VZ
3609
3610
3611 eval "$ac_cv_use_log"
3612 if test "$no_cache" != 1; then
3613 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3614 fi
3615
3616 if test "$wxUSE_LOG" = yes; then
698dcdb6 3617 echo "$ac_t""yes" 1>&6
10f2d63a 3618 else
698dcdb6 3619 echo "$ac_t""no" 1>&6
10f2d63a 3620 fi
698dcdb6 3621
10f2d63a 3622
698dcdb6 3623 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
77e13408 3624echo "configure:3625: checking for --enable-streams" >&5
10f2d63a
VZ
3625 no_cache=0
3626 # Check whether --enable-streams or --disable-streams was given.
3627if test "${enable_streams+set}" = set; then
3628 enableval="$enable_streams"
698dcdb6 3629
10f2d63a
VZ
3630 if test "$enableval" = yes; then
3631 ac_cv_use_streams='wxUSE_STREAMS=yes'
3632 else
3633 ac_cv_use_streams='wxUSE_STREAMS=no'
3634 fi
698dcdb6 3635
10f2d63a 3636else
698dcdb6 3637
10f2d63a
VZ
3638 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3639 if test "x$LINE" != x ; then
3640 eval "DEFAULT_$LINE"
3641 else
3642 no_cache=1
3643 fi
3644
3645 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3646
3647fi
10f2d63a
VZ
3648
3649
3650 eval "$ac_cv_use_streams"
3651 if test "$no_cache" != 1; then
3652 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3653 fi
3654
3655 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3656 echo "$ac_t""yes" 1>&6
10f2d63a 3657 else
698dcdb6 3658 echo "$ac_t""no" 1>&6
10f2d63a 3659 fi
698dcdb6 3660
10f2d63a 3661
698dcdb6 3662 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
77e13408 3663echo "configure:3664: checking for --enable-file" >&5
10f2d63a
VZ
3664 no_cache=0
3665 # Check whether --enable-file or --disable-file was given.
3666if test "${enable_file+set}" = set; then
3667 enableval="$enable_file"
698dcdb6 3668
10f2d63a
VZ
3669 if test "$enableval" = yes; then
3670 ac_cv_use_file='wxUSE_FILE=yes'
3671 else
3672 ac_cv_use_file='wxUSE_FILE=no'
3673 fi
698dcdb6 3674
10f2d63a 3675else
698dcdb6 3676
10f2d63a
VZ
3677 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3678 if test "x$LINE" != x ; then
3679 eval "DEFAULT_$LINE"
3680 else
3681 no_cache=1
3682 fi
3683
3684 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3685
3686fi
10f2d63a
VZ
3687
3688
3689 eval "$ac_cv_use_file"
3690 if test "$no_cache" != 1; then
3691 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3692 fi
3693
3694 if test "$wxUSE_FILE" = yes; then
698dcdb6 3695 echo "$ac_t""yes" 1>&6
10f2d63a 3696 else
698dcdb6 3697 echo "$ac_t""no" 1>&6
10f2d63a 3698 fi
698dcdb6 3699
10f2d63a 3700
1e6feb95 3701 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
77e13408 3702echo "configure:3703: checking for --enable-ffile" >&5
10f2d63a 3703 no_cache=0
1e6feb95
VZ
3704 # Check whether --enable-ffile or --disable-ffile was given.
3705if test "${enable_ffile+set}" = set; then
3706 enableval="$enable_ffile"
698dcdb6 3707
10f2d63a 3708 if test "$enableval" = yes; then
1e6feb95 3709 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3710 else
1e6feb95 3711 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3712 fi
698dcdb6 3713
10f2d63a 3714else
698dcdb6 3715
1e6feb95 3716 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3717 if test "x$LINE" != x ; then
3718 eval "DEFAULT_$LINE"
3719 else
3720 no_cache=1
3721 fi
3722
1e6feb95 3723 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3724
3725fi
10f2d63a
VZ
3726
3727
1e6feb95 3728 eval "$ac_cv_use_ffile"
10f2d63a 3729 if test "$no_cache" != 1; then
1e6feb95 3730 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3731 fi
3732
1e6feb95 3733 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3734 echo "$ac_t""yes" 1>&6
10f2d63a 3735 else
698dcdb6 3736 echo "$ac_t""no" 1>&6
10f2d63a 3737 fi
698dcdb6 3738
10f2d63a 3739
1e6feb95 3740 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
77e13408 3741echo "configure:3742: checking for --enable-textfile" >&5
10f2d63a 3742 no_cache=0
1e6feb95
VZ
3743 # Check whether --enable-textfile or --disable-textfile was given.
3744if test "${enable_textfile+set}" = set; then
3745 enableval="$enable_textfile"
698dcdb6 3746
10f2d63a 3747 if test "$enableval" = yes; then
1e6feb95 3748 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3749 else
1e6feb95 3750 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3751 fi
698dcdb6 3752
10f2d63a 3753else
698dcdb6 3754
1e6feb95 3755 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3756 if test "x$LINE" != x ; then
3757 eval "DEFAULT_$LINE"
3758 else
3759 no_cache=1
3760 fi
3761
1e6feb95 3762 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3763
3764fi
10f2d63a
VZ
3765
3766
1e6feb95 3767 eval "$ac_cv_use_textfile"
10f2d63a 3768 if test "$no_cache" != 1; then
1e6feb95 3769 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3770 fi
3771
1e6feb95 3772 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3773 echo "$ac_t""yes" 1>&6
10f2d63a 3774 else
698dcdb6 3775 echo "$ac_t""no" 1>&6
10f2d63a 3776 fi
698dcdb6 3777
10f2d63a 3778
1e6feb95 3779 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
77e13408 3780echo "configure:3781: checking for --enable-fontmap" >&5
10f2d63a 3781 no_cache=0
1e6feb95
VZ
3782 # Check whether --enable-fontmap or --disable-fontmap was given.
3783if test "${enable_fontmap+set}" = set; then
3784 enableval="$enable_fontmap"
698dcdb6 3785
10f2d63a 3786 if test "$enableval" = yes; then
1e6feb95 3787 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3788 else
1e6feb95 3789 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3790 fi
698dcdb6 3791
10f2d63a 3792else
698dcdb6 3793
1e6feb95 3794 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3795 if test "x$LINE" != x ; then
3796 eval "DEFAULT_$LINE"
3797 else
3798 no_cache=1
3799 fi
3800
1e6feb95 3801 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3802
3803fi
10f2d63a
VZ
3804
3805
1e6feb95 3806 eval "$ac_cv_use_fontmap"
10f2d63a 3807 if test "$no_cache" != 1; then
1e6feb95 3808 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3809 fi
3810
1e6feb95 3811 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3812 echo "$ac_t""yes" 1>&6
10f2d63a 3813 else
698dcdb6 3814 echo "$ac_t""no" 1>&6
10f2d63a 3815 fi
698dcdb6 3816
10f2d63a 3817
1e6feb95 3818 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
77e13408 3819echo "configure:3820: checking for --enable-unicode" >&5
10f2d63a 3820 no_cache=0
1e6feb95
VZ
3821 # Check whether --enable-unicode or --disable-unicode was given.
3822if test "${enable_unicode+set}" = set; then
3823 enableval="$enable_unicode"
3824
3825 if test "$enableval" = yes; then
3826 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3827 else
3828 ac_cv_use_unicode='wxUSE_UNICODE=no'
3829 fi
3830
3831else
3832
3833 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3834 if test "x$LINE" != x ; then
3835 eval "DEFAULT_$LINE"
3836 else
3837 no_cache=1
3838 fi
3839
3840 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3841
3842fi
3843
3844
3845 eval "$ac_cv_use_unicode"
3846 if test "$no_cache" != 1; then
3847 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3848 fi
3849
3850 if test "$wxUSE_UNICODE" = yes; then
3851 echo "$ac_t""yes" 1>&6
3852 else
3853 echo "$ac_t""no" 1>&6
3854 fi
3855
3856
1e6feb95 3857 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
77e13408 3858echo "configure:3859: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3859 no_cache=0
3860 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3861if test "${enable_wxprintfv+set}" = set; then
3862 enableval="$enable_wxprintfv"
3863
3864 if test "$enableval" = yes; then
10f2d63a
VZ
3865 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3866 else
3867 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3868 fi
698dcdb6 3869
10f2d63a 3870else
698dcdb6 3871
10f2d63a
VZ
3872 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3873 if test "x$LINE" != x ; then
3874 eval "DEFAULT_$LINE"
3875 else
3876 no_cache=1
3877 fi
3878
3879 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3880
3881fi
10f2d63a
VZ
3882
3883
3884 eval "$ac_cv_use_wxprintfv"
3885 if test "$no_cache" != 1; then
3886 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3887 fi
3888
3889 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3890 echo "$ac_t""yes" 1>&6
10f2d63a 3891 else
698dcdb6 3892 echo "$ac_t""no" 1>&6
10f2d63a 3893 fi
698dcdb6 3894
10f2d63a 3895
698dcdb6 3896 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
77e13408 3897echo "configure:3898: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3898 no_cache=0
3899 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3900if test "${enable_std_iostreams+set}" = set; then
3901 enableval="$enable_std_iostreams"
698dcdb6 3902
10f2d63a
VZ
3903 if test "$enableval" = yes; then
3904 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3905 else
3906 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3907 fi
698dcdb6 3908
10f2d63a 3909else
698dcdb6 3910
10f2d63a
VZ
3911 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3912 if test "x$LINE" != x ; then
3913 eval "DEFAULT_$LINE"
3914 else
3915 no_cache=1
3916 fi
3917
3918 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3919
3920fi
10f2d63a
VZ
3921
3922
3923 eval "$ac_cv_use_std_iostreams"
3924 if test "$no_cache" != 1; then
3925 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3926 fi
3927
3928 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3929 echo "$ac_t""yes" 1>&6
10f2d63a 3930 else
698dcdb6 3931 echo "$ac_t""no" 1>&6
10f2d63a 3932 fi
698dcdb6 3933
10f2d63a 3934
698dcdb6 3935 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
77e13408 3936echo "configure:3937: checking for --enable-filesystem" >&5
24528b0c
VS
3937 no_cache=0
3938 # Check whether --enable-filesystem or --disable-filesystem was given.
3939if test "${enable_filesystem+set}" = set; then
3940 enableval="$enable_filesystem"
698dcdb6 3941
24528b0c
VS
3942 if test "$enableval" = yes; then
3943 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3944 else
3945 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3946 fi
698dcdb6 3947
24528b0c 3948else
698dcdb6 3949
24528b0c
VS
3950 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3951 if test "x$LINE" != x ; then
3952 eval "DEFAULT_$LINE"
3953 else
3954 no_cache=1
3955 fi
3956
3957 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3958
3959fi
24528b0c
VS
3960
3961
3962 eval "$ac_cv_use_filesystem"
3963 if test "$no_cache" != 1; then
3964 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3965 fi
3966
3967 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3968 echo "$ac_t""yes" 1>&6
24528b0c 3969 else
698dcdb6 3970 echo "$ac_t""no" 1>&6
24528b0c 3971 fi
698dcdb6 3972
24528b0c 3973
698dcdb6 3974 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
77e13408 3975echo "configure:3976: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3976 no_cache=0
3977 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3978if test "${enable_fs_inet+set}" = set; then
3979 enableval="$enable_fs_inet"
698dcdb6 3980
10f2d63a
VZ
3981 if test "$enableval" = yes; then
3982 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3983 else
3984 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3985 fi
698dcdb6 3986
10f2d63a 3987else
698dcdb6 3988
10f2d63a
VZ
3989 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3990 if test "x$LINE" != x ; then
3991 eval "DEFAULT_$LINE"
3992 else
3993 no_cache=1
3994 fi
3995
3996 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3997
3998fi
10f2d63a
VZ
3999
4000
4001 eval "$ac_cv_use_fs_inet"
4002 if test "$no_cache" != 1; then
4003 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4004 fi
4005
4006 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4007 echo "$ac_t""yes" 1>&6
10f2d63a 4008 else
698dcdb6 4009 echo "$ac_t""no" 1>&6
10f2d63a 4010 fi
698dcdb6 4011
10f2d63a 4012
698dcdb6 4013 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
77e13408 4014echo "configure:4015: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4015 no_cache=0
4016 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4017if test "${enable_fs_zip+set}" = set; then
4018 enableval="$enable_fs_zip"
698dcdb6 4019
10f2d63a
VZ
4020 if test "$enableval" = yes; then
4021 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4022 else
4023 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4024 fi
698dcdb6 4025
10f2d63a 4026else
698dcdb6 4027
10f2d63a
VZ
4028 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4029 if test "x$LINE" != x ; then
4030 eval "DEFAULT_$LINE"
4031 else
4032 no_cache=1
4033 fi
4034
4035 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4036
4037fi
10f2d63a
VZ
4038
4039
4040 eval "$ac_cv_use_fs_zip"
4041 if test "$no_cache" != 1; then
4042 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4043 fi
4044
4045 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4046 echo "$ac_t""yes" 1>&6
10f2d63a 4047 else
698dcdb6 4048 echo "$ac_t""no" 1>&6
10f2d63a 4049 fi
698dcdb6 4050
10f2d63a 4051
698dcdb6 4052 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
77e13408 4053echo "configure:4054: checking for --enable-zipstream" >&5
10f2d63a
VZ
4054 no_cache=0
4055 # Check whether --enable-zipstream or --disable-zipstream was given.
4056if test "${enable_zipstream+set}" = set; then
4057 enableval="$enable_zipstream"
698dcdb6 4058
10f2d63a
VZ
4059 if test "$enableval" = yes; then
4060 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4061 else
4062 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4063 fi
698dcdb6 4064
10f2d63a 4065else
698dcdb6 4066
10f2d63a
VZ
4067 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4068 if test "x$LINE" != x ; then
4069 eval "DEFAULT_$LINE"
4070 else
4071 no_cache=1
4072 fi
4073
4074 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4075
4076fi
10f2d63a
VZ
4077
4078
4079 eval "$ac_cv_use_zipstream"
4080 if test "$no_cache" != 1; then
4081 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4082 fi
4083
4084 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4085 echo "$ac_t""yes" 1>&6
10f2d63a 4086 else
698dcdb6 4087 echo "$ac_t""no" 1>&6
10f2d63a 4088 fi
698dcdb6 4089
10f2d63a 4090
698dcdb6
VZ
4091
4092 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
77e13408 4093echo "configure:4094: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4094 no_cache=0
4095 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4096if test "${enable_catch_segvs+set}" = set; then
4097 enableval="$enable_catch_segvs"
698dcdb6 4098
eb4efbdc
VZ
4099 if test "$enableval" = yes; then
4100 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4101 else
4102 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4103 fi
698dcdb6 4104
eb4efbdc 4105else
698dcdb6 4106
eb4efbdc
VZ
4107 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4108 if test "x$LINE" != x ; then
4109 eval "DEFAULT_$LINE"
4110 else
4111 no_cache=1
4112 fi
4113
4114 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4115
4116fi
eb4efbdc
VZ
4117
4118
4119 eval "$ac_cv_use_catch_segvs"
4120 if test "$no_cache" != 1; then
4121 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4122 fi
4123
4124 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4125 echo "$ac_t""yes" 1>&6
eb4efbdc 4126 else
698dcdb6 4127 echo "$ac_t""no" 1>&6
eb4efbdc 4128 fi
698dcdb6 4129
eb4efbdc 4130
698dcdb6 4131 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
77e13408 4132echo "configure:4133: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4133 no_cache=0
4134 # Check whether --enable-snglinst or --disable-snglinst was given.
4135if test "${enable_snglinst+set}" = set; then
4136 enableval="$enable_snglinst"
698dcdb6 4137
4f3c5f06
VZ
4138 if test "$enableval" = yes; then
4139 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4140 else
4141 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4142 fi
698dcdb6 4143
4f3c5f06 4144else
698dcdb6 4145
4f3c5f06
VZ
4146 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4147 if test "x$LINE" != x ; then
4148 eval "DEFAULT_$LINE"
4149 else
4150 no_cache=1
4151 fi
4152
4153 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4154
4155fi
4f3c5f06
VZ
4156
4157
4158 eval "$ac_cv_use_snglinst"
4159 if test "$no_cache" != 1; then
4160 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4161 fi
4162
4163 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4164 echo "$ac_t""yes" 1>&6
4f3c5f06 4165 else
698dcdb6 4166 echo "$ac_t""no" 1>&6
4f3c5f06 4167 fi
698dcdb6
VZ
4168
4169
eb4efbdc 4170
1e6feb95 4171 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
77e13408 4172echo "configure:4173: checking for --enable-mimetype" >&5
1e6feb95
VZ
4173 no_cache=0
4174 # Check whether --enable-mimetype or --disable-mimetype was given.
4175if test "${enable_mimetype+set}" = set; then
4176 enableval="$enable_mimetype"
4177
4178 if test "$enableval" = yes; then
4179 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4180 else
4181 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4182 fi
4183
4184else
4185
4186 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4187 if test "x$LINE" != x ; then
4188 eval "DEFAULT_$LINE"
4189 else
4190 no_cache=1
4191 fi
4192
4193 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4194
4195fi
4196
4197
4198 eval "$ac_cv_use_mimetype"
4199 if test "$no_cache" != 1; then
4200 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4201 fi
4202
4203 if test "$wxUSE_MIMETYPE" = yes; then
4204 echo "$ac_t""yes" 1>&6
4205 else
4206 echo "$ac_t""no" 1>&6
4207 fi
4208
4209
3e44f09d 4210 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
77e13408 4211echo "configure:4212: checking for --enable-system_options" >&5
3e44f09d
VZ
4212 no_cache=0
4213 # Check whether --enable-system_options or --disable-system_options was given.
4214if test "${enable_system_options+set}" = set; then
4215 enableval="$enable_system_options"
4216
4217 if test "$enableval" = yes; then
4218 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4219 else
4220 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4221 fi
4222
4223else
4224
4225 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4226 if test "x$LINE" != x ; then
4227 eval "DEFAULT_$LINE"
4228 else
4229 no_cache=1
4230 fi
4231
4232 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4233
4234fi
4235
4236
4237 eval "$ac_cv_use_system_options"
4238 if test "$no_cache" != 1; then
4239 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4240 fi
4241
4242 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4243 echo "$ac_t""yes" 1>&6
4244 else
4245 echo "$ac_t""no" 1>&6
4246 fi
4247
4248
1e6feb95 4249
698dcdb6
VZ
4250
4251 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
77e13408 4252echo "configure:4253: checking for --enable-threads" >&5
10f2d63a
VZ
4253 no_cache=0
4254 # Check whether --enable-threads or --disable-threads was given.
4255if test "${enable_threads+set}" = set; then
4256 enableval="$enable_threads"
698dcdb6 4257
10f2d63a
VZ
4258 if test "$enableval" = yes; then
4259 ac_cv_use_threads='wxUSE_THREADS=yes'
4260 else
4261 ac_cv_use_threads='wxUSE_THREADS=no'
4262 fi
698dcdb6 4263
10f2d63a 4264else
698dcdb6 4265
10f2d63a
VZ
4266 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4267 if test "x$LINE" != x ; then
4268 eval "DEFAULT_$LINE"
4269 else
4270 no_cache=1
4271 fi
4272
4273 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4274
4275fi
10f2d63a
VZ
4276
4277
4278 eval "$ac_cv_use_threads"
4279 if test "$no_cache" != 1; then
4280 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4281 fi
4282
4283 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4284 echo "$ac_t""yes" 1>&6
10f2d63a 4285 else
698dcdb6 4286 echo "$ac_t""no" 1>&6
10f2d63a 4287 fi
698dcdb6 4288
10f2d63a 4289
698dcdb6 4290 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
77e13408 4291echo "configure:4292: checking for --enable-serial" >&5
10f2d63a
VZ
4292 no_cache=0
4293 # Check whether --enable-serial or --disable-serial was given.
4294if test "${enable_serial+set}" = set; then
4295 enableval="$enable_serial"
698dcdb6 4296
10f2d63a
VZ
4297 if test "$enableval" = yes; then
4298 ac_cv_use_serial='wxUSE_SERIAL=yes'
4299 else
4300 ac_cv_use_serial='wxUSE_SERIAL=no'
4301 fi
698dcdb6 4302
10f2d63a 4303else
698dcdb6 4304
10f2d63a
VZ
4305 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4306 if test "x$LINE" != x ; then
4307 eval "DEFAULT_$LINE"
4308 else
4309 no_cache=1
4310 fi
4311
4312 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4313
4314fi
10f2d63a
VZ
4315
4316
4317 eval "$ac_cv_use_serial"
4318 if test "$no_cache" != 1; then
4319 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4320 fi
4321
4322 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4323 echo "$ac_t""yes" 1>&6
10f2d63a 4324 else
698dcdb6 4325 echo "$ac_t""no" 1>&6
10f2d63a 4326 fi
698dcdb6 4327
10f2d63a 4328
b12915c1
VZ
4329if test "$wxUSE_GUI" = "yes"; then
4330
698dcdb6
VZ
4331
4332
4333 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
77e13408 4334echo "configure:4335: checking for --enable-docview" >&5
10f2d63a
VZ
4335 no_cache=0
4336 # Check whether --enable-docview or --disable-docview was given.
4337if test "${enable_docview+set}" = set; then
4338 enableval="$enable_docview"
698dcdb6 4339
10f2d63a
VZ
4340 if test "$enableval" = yes; then
4341 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4342 else
4343 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4344 fi
698dcdb6 4345
10f2d63a 4346else
698dcdb6 4347
10f2d63a
VZ
4348 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4349 if test "x$LINE" != x ; then
4350 eval "DEFAULT_$LINE"
4351 else
4352 no_cache=1
4353 fi
4354
4355 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4356
4357fi
10f2d63a
VZ
4358
4359
4360 eval "$ac_cv_use_docview"
4361 if test "$no_cache" != 1; then
4362 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4363 fi
4364
4365 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4366 echo "$ac_t""yes" 1>&6
10f2d63a 4367 else
698dcdb6 4368 echo "$ac_t""no" 1>&6
10f2d63a 4369 fi
698dcdb6 4370
10f2d63a 4371
698dcdb6 4372 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
77e13408 4373echo "configure:4374: checking for --enable-help" >&5
10f2d63a
VZ
4374 no_cache=0
4375 # Check whether --enable-help or --disable-help was given.
4376if test "${enable_help+set}" = set; then
4377 enableval="$enable_help"
698dcdb6 4378
10f2d63a
VZ
4379 if test "$enableval" = yes; then
4380 ac_cv_use_help='wxUSE_HELP=yes'
4381 else
4382 ac_cv_use_help='wxUSE_HELP=no'
4383 fi
698dcdb6 4384
10f2d63a 4385else
698dcdb6 4386
10f2d63a
VZ
4387 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4388 if test "x$LINE" != x ; then
4389 eval "DEFAULT_$LINE"
4390 else
4391 no_cache=1
4392 fi
4393
4394 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4395
4396fi
10f2d63a
VZ
4397
4398
4399 eval "$ac_cv_use_help"
4400 if test "$no_cache" != 1; then
4401 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4402 fi
4403
4404 if test "$wxUSE_HELP" = yes; then
698dcdb6 4405 echo "$ac_t""yes" 1>&6
10f2d63a 4406 else
698dcdb6 4407 echo "$ac_t""no" 1>&6
10f2d63a 4408 fi
698dcdb6 4409
10f2d63a 4410
29fd3c0c 4411 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
77e13408 4412echo "configure:4413: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4413 no_cache=0
4414 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4415if test "${enable_mshtmlhelp+set}" = set; then
4416 enableval="$enable_mshtmlhelp"
4417
4418 if test "$enableval" = yes; then
4419 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4420 else
4421 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4422 fi
4423
4424else
4425
4426 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4427 if test "x$LINE" != x ; then
4428 eval "DEFAULT_$LINE"
4429 else
4430 no_cache=1
4431 fi
4432
4433 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4434
4435fi
4436
4437
4438 eval "$ac_cv_use_mshtmlhelp"
4439 if test "$no_cache" != 1; then
4440 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4441 fi
4442
4443 if test "$wxUSE_MS_HTML_HELP" = yes; then
4444 echo "$ac_t""yes" 1>&6
4445 else
4446 echo "$ac_t""no" 1>&6
4447 fi
4448
4449
3379ed37 4450 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
77e13408 4451echo "configure:4452: checking for --enable-html" >&5
3379ed37
VZ
4452 no_cache=0
4453 # Check whether --enable-html or --disable-html was given.
4454if test "${enable_html+set}" = set; then
4455 enableval="$enable_html"
4456
4457 if test "$enableval" = yes; then
4458 ac_cv_use_html='wxUSE_HTML=yes'
4459 else
4460 ac_cv_use_html='wxUSE_HTML=no'
4461 fi
4462
4463else
4464
4465 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4466 if test "x$LINE" != x ; then
4467 eval "DEFAULT_$LINE"
4468 else
4469 no_cache=1
4470 fi
4471
4472 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4473
4474fi
4475
4476
4477 eval "$ac_cv_use_html"
4478 if test "$no_cache" != 1; then
4479 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4480 fi
4481
4482 if test "$wxUSE_HTML" = yes; then
4483 echo "$ac_t""yes" 1>&6
4484 else
4485 echo "$ac_t""no" 1>&6
4486 fi
4487
4488
4489 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
77e13408 4490echo "configure:4491: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4491 no_cache=0
4492 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4493if test "${enable_htmlhelp+set}" = set; then
4494 enableval="$enable_htmlhelp"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4498 else
4499 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4500 fi
4501
4502else
4503
4504 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4512
4513fi
4514
4515
4516 eval "$ac_cv_use_htmlhelp"
4517 if test "$no_cache" != 1; then
4518 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4519 fi
4520
4521 if test "$wxUSE_WXHTML_HELP" = yes; then
4522 echo "$ac_t""yes" 1>&6
4523 else
4524 echo "$ac_t""no" 1>&6
4525 fi
4526
4527
698dcdb6 4528 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
77e13408 4529echo "configure:4530: checking for --enable-constraints" >&5
10f2d63a
VZ
4530 no_cache=0
4531 # Check whether --enable-constraints or --disable-constraints was given.
4532if test "${enable_constraints+set}" = set; then
4533 enableval="$enable_constraints"
698dcdb6 4534
10f2d63a
VZ
4535 if test "$enableval" = yes; then
4536 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4537 else
4538 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4539 fi
698dcdb6 4540
10f2d63a 4541else
698dcdb6 4542
10f2d63a
VZ
4543 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4544 if test "x$LINE" != x ; then
4545 eval "DEFAULT_$LINE"
4546 else
4547 no_cache=1
4548 fi
4549
4550 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4551
4552fi
10f2d63a
VZ
4553
4554
4555 eval "$ac_cv_use_constraints"
4556 if test "$no_cache" != 1; then
4557 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4558 fi
4559
4560 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4561 echo "$ac_t""yes" 1>&6
10f2d63a 4562 else
698dcdb6 4563 echo "$ac_t""no" 1>&6
10f2d63a 4564 fi
698dcdb6 4565
10f2d63a 4566
698dcdb6 4567 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
77e13408 4568echo "configure:4569: checking for --enable-printarch" >&5
10f2d63a
VZ
4569 no_cache=0
4570 # Check whether --enable-printarch or --disable-printarch was given.
4571if test "${enable_printarch+set}" = set; then
4572 enableval="$enable_printarch"
698dcdb6 4573
10f2d63a
VZ
4574 if test "$enableval" = yes; then
4575 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4576 else
4577 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4578 fi
698dcdb6 4579
10f2d63a 4580else
698dcdb6 4581
10f2d63a
VZ
4582 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4583 if test "x$LINE" != x ; then
4584 eval "DEFAULT_$LINE"
4585 else
4586 no_cache=1
4587 fi
4588
4589 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4590
4591fi
10f2d63a
VZ
4592
4593
4594 eval "$ac_cv_use_printarch"
4595 if test "$no_cache" != 1; then
4596 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4597 fi
4598
4599 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4600 echo "$ac_t""yes" 1>&6
10f2d63a 4601 else
698dcdb6 4602 echo "$ac_t""no" 1>&6
10f2d63a 4603 fi
698dcdb6 4604
10f2d63a 4605
698dcdb6 4606 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
77e13408 4607echo "configure:4608: checking for --enable-mdi" >&5
10f2d63a
VZ
4608 no_cache=0
4609 # Check whether --enable-mdi or --disable-mdi was given.
4610if test "${enable_mdi+set}" = set; then
4611 enableval="$enable_mdi"
698dcdb6 4612
10f2d63a
VZ
4613 if test "$enableval" = yes; then
4614 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4615 else
4616 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4617 fi
698dcdb6 4618
10f2d63a 4619else
698dcdb6 4620
10f2d63a
VZ
4621 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4622 if test "x$LINE" != x ; then
4623 eval "DEFAULT_$LINE"
4624 else
4625 no_cache=1
4626 fi
4627
4628 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4629
4630fi
10f2d63a
VZ
4631
4632
4633 eval "$ac_cv_use_mdi"
4634 if test "$no_cache" != 1; then
4635 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4636 fi
4637
4638 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4639 echo "$ac_t""yes" 1>&6
10f2d63a 4640 else
698dcdb6 4641 echo "$ac_t""no" 1>&6
10f2d63a 4642 fi
698dcdb6
VZ
4643
4644
1e6feb95 4645 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
77e13408 4646echo "configure:4647: checking for --enable-loggui" >&5
1e6feb95
VZ
4647 no_cache=0
4648 # Check whether --enable-loggui or --disable-loggui was given.
4649if test "${enable_loggui+set}" = set; then
4650 enableval="$enable_loggui"
4651
4652 if test "$enableval" = yes; then
4653 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4654 else
4655 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4656 fi
4657
4658else
4659
4660 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4661 if test "x$LINE" != x ; then
4662 eval "DEFAULT_$LINE"
4663 else
4664 no_cache=1
4665 fi
4666
4667 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4668
4669fi
4670
4671
4672 eval "$ac_cv_use_loggui"
4673 if test "$no_cache" != 1; then
4674 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4675 fi
4676
4677 if test "$wxUSE_LOGGUI" = yes; then
4678 echo "$ac_t""yes" 1>&6
4679 else
4680 echo "$ac_t""no" 1>&6
4681 fi
4682
4683
4684 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
77e13408 4685echo "configure:4686: checking for --enable-logwin" >&5
1e6feb95
VZ
4686 no_cache=0
4687 # Check whether --enable-logwin or --disable-logwin was given.
4688if test "${enable_logwin+set}" = set; then
4689 enableval="$enable_logwin"
4690
4691 if test "$enableval" = yes; then
4692 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4693 else
4694 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4695 fi
4696
4697else
4698
4699 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4700 if test "x$LINE" != x ; then
4701 eval "DEFAULT_$LINE"
4702 else
4703 no_cache=1
4704 fi
4705
4706 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4707
4708fi
4709
4710
4711 eval "$ac_cv_use_logwin"
4712 if test "$no_cache" != 1; then
4713 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4714 fi
4715
4716 if test "$wxUSE_LOGWINDOW" = yes; then
4717 echo "$ac_t""yes" 1>&6
4718 else
4719 echo "$ac_t""no" 1>&6
4720 fi
4721
4722
10f2d63a 4723
698dcdb6 4724 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
77e13408 4725echo "configure:4726: checking for --enable-postscript" >&5
10f2d63a
VZ
4726 no_cache=0
4727 # Check whether --enable-postscript or --disable-postscript was given.
4728if test "${enable_postscript+set}" = set; then
4729 enableval="$enable_postscript"
698dcdb6 4730
10f2d63a
VZ
4731 if test "$enableval" = yes; then
4732 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4733 else
4734 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4735 fi
698dcdb6 4736
10f2d63a 4737else
698dcdb6 4738
10f2d63a
VZ
4739 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4740 if test "x$LINE" != x ; then
4741 eval "DEFAULT_$LINE"
4742 else
4743 no_cache=1
4744 fi
4745
4746 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4747
4748fi
10f2d63a
VZ
4749
4750
4751 eval "$ac_cv_use_postscript"
4752 if test "$no_cache" != 1; then
4753 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4754 fi
4755
4756 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4757 echo "$ac_t""yes" 1>&6
10f2d63a 4758 else
698dcdb6 4759 echo "$ac_t""no" 1>&6
10f2d63a 4760 fi
698dcdb6
VZ
4761
4762
4763
10f2d63a 4764
1e6feb95 4765
698dcdb6 4766 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
77e13408 4767echo "configure:4768: checking for --enable-prologio" >&5
10f2d63a
VZ
4768 no_cache=0
4769 # Check whether --enable-prologio or --disable-prologio was given.
4770if test "${enable_prologio+set}" = set; then
4771 enableval="$enable_prologio"
698dcdb6 4772
10f2d63a
VZ
4773 if test "$enableval" = yes; then
4774 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4775 else
4776 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4777 fi
698dcdb6 4778
10f2d63a 4779else
698dcdb6 4780
10f2d63a
VZ
4781 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4782 if test "x$LINE" != x ; then
4783 eval "DEFAULT_$LINE"
4784 else
4785 no_cache=1
4786 fi
4787
4788 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4789
4790fi
10f2d63a
VZ
4791
4792
4793 eval "$ac_cv_use_prologio"
4794 if test "$no_cache" != 1; then
4795 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4796 fi
4797
4798 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4799 echo "$ac_t""yes" 1>&6
10f2d63a 4800 else
698dcdb6 4801 echo "$ac_t""no" 1>&6
10f2d63a 4802 fi
698dcdb6 4803
10f2d63a 4804
698dcdb6 4805 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
77e13408 4806echo "configure:4807: checking for --enable-resources" >&5
10f2d63a
VZ
4807 no_cache=0
4808 # Check whether --enable-resources or --disable-resources was given.
4809if test "${enable_resources+set}" = set; then
4810 enableval="$enable_resources"
698dcdb6 4811
10f2d63a
VZ
4812 if test "$enableval" = yes; then
4813 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4814 else
4815 ac_cv_use_resources='wxUSE_RESOURCES=no'
4816 fi
698dcdb6 4817
10f2d63a 4818else
698dcdb6 4819
10f2d63a
VZ
4820 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4821 if test "x$LINE" != x ; then
4822 eval "DEFAULT_$LINE"
4823 else
4824 no_cache=1
4825 fi
4826
4827 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4828
4829fi
10f2d63a
VZ
4830
4831
4832 eval "$ac_cv_use_resources"
4833 if test "$no_cache" != 1; then
4834 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4835 fi
4836
4837 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4838 echo "$ac_t""yes" 1>&6
10f2d63a 4839 else
698dcdb6 4840 echo "$ac_t""no" 1>&6
10f2d63a 4841 fi
698dcdb6 4842
10f2d63a 4843
698dcdb6
VZ
4844
4845 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
77e13408 4846echo "configure:4847: checking for --enable-xresources" >&5
10f2d63a
VZ
4847 no_cache=0
4848 # Check whether --enable-xresources or --disable-xresources was given.
4849if test "${enable_xresources+set}" = set; then
4850 enableval="$enable_xresources"
698dcdb6 4851
10f2d63a
VZ
4852 if test "$enableval" = yes; then
4853 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4854 else
4855 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4856 fi
698dcdb6 4857
10f2d63a 4858else
698dcdb6 4859
10f2d63a
VZ
4860 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4861 if test "x$LINE" != x ; then
4862 eval "DEFAULT_$LINE"
4863 else
4864 no_cache=1
4865 fi
4866
4867 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4868
4869fi
10f2d63a
VZ
4870
4871
4872 eval "$ac_cv_use_xresources"
4873 if test "$no_cache" != 1; then
4874 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4875 fi
4876
4877 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4878 echo "$ac_t""yes" 1>&6
10f2d63a 4879 else
698dcdb6 4880 echo "$ac_t""no" 1>&6
10f2d63a 4881 fi
698dcdb6
VZ
4882
4883
10f2d63a 4884
698dcdb6
VZ
4885
4886 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
77e13408 4887echo "configure:4888: checking for --enable-clipboard" >&5
10f2d63a
VZ
4888 no_cache=0
4889 # Check whether --enable-clipboard or --disable-clipboard was given.
4890if test "${enable_clipboard+set}" = set; then
4891 enableval="$enable_clipboard"
698dcdb6 4892
10f2d63a
VZ
4893 if test "$enableval" = yes; then
4894 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4895 else
4896 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4897 fi
698dcdb6 4898
10f2d63a 4899else
698dcdb6 4900
10f2d63a
VZ
4901 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4902 if test "x$LINE" != x ; then
4903 eval "DEFAULT_$LINE"
4904 else
4905 no_cache=1
4906 fi
4907
4908 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4909
4910fi
10f2d63a
VZ
4911
4912
4913 eval "$ac_cv_use_clipboard"
4914 if test "$no_cache" != 1; then
4915 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4916 fi
4917
4918 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4919 echo "$ac_t""yes" 1>&6
10f2d63a 4920 else
698dcdb6 4921 echo "$ac_t""no" 1>&6
10f2d63a 4922 fi
698dcdb6 4923
10f2d63a 4924
698dcdb6 4925 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
77e13408 4926echo "configure:4927: checking for --enable-dnd" >&5
10f2d63a
VZ
4927 no_cache=0
4928 # Check whether --enable-dnd or --disable-dnd was given.
4929if test "${enable_dnd+set}" = set; then
4930 enableval="$enable_dnd"
698dcdb6 4931
10f2d63a
VZ
4932 if test "$enableval" = yes; then
4933 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4934 else
4935 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4936 fi
698dcdb6 4937
10f2d63a 4938else
698dcdb6 4939
10f2d63a
VZ
4940 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4948
4949fi
10f2d63a
VZ
4950
4951
4952 eval "$ac_cv_use_dnd"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 4958 echo "$ac_t""yes" 1>&6
10f2d63a 4959 else
698dcdb6 4960 echo "$ac_t""no" 1>&6
10f2d63a 4961 fi
698dcdb6 4962
10f2d63a 4963
698dcdb6 4964 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
77e13408 4965echo "configure:4966: checking for --enable-metafile" >&5
b64f0a5f
RL
4966 no_cache=0
4967 # Check whether --enable-metafile or --disable-metafile was given.
4968if test "${enable_metafile+set}" = set; then
4969 enableval="$enable_metafile"
698dcdb6 4970
b64f0a5f
RL
4971 if test "$enableval" = yes; then
4972 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4973 else
4974 ac_cv_use_metafile='wxUSE_METAFILE=no'
4975 fi
698dcdb6 4976
b64f0a5f 4977else
698dcdb6 4978
b64f0a5f
RL
4979 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4980 if test "x$LINE" != x ; then
4981 eval "DEFAULT_$LINE"
4982 else
4983 no_cache=1
4984 fi
4985
4986 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4987
4988fi
b64f0a5f
RL
4989
4990
4991 eval "$ac_cv_use_metafile"
4992 if test "$no_cache" != 1; then
4993 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4994 fi
4995
4996 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4997 echo "$ac_t""yes" 1>&6
b64f0a5f 4998 else
698dcdb6 4999 echo "$ac_t""no" 1>&6
b64f0a5f 5000 fi
698dcdb6
VZ
5001
5002
10f2d63a 5003
24176f2c 5004 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
77e13408 5005echo "configure:5006: checking for --enable-treelayout" >&5
10f2d63a 5006 no_cache=0
24176f2c
GD
5007 # Check whether --enable-treelayout or --disable-treelayout was given.
5008if test "${enable_treelayout+set}" = set; then
5009 enableval="$enable_treelayout"
698dcdb6 5010
10f2d63a 5011 if test "$enableval" = yes; then
24176f2c 5012 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5013 else
24176f2c 5014 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5015 fi
698dcdb6 5016
10f2d63a 5017else
698dcdb6 5018
24176f2c 5019 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5020 if test "x$LINE" != x ; then
5021 eval "DEFAULT_$LINE"
5022 else
5023 no_cache=1
5024 fi
5025
24176f2c 5026 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5027
5028fi
10f2d63a
VZ
5029
5030
24176f2c 5031 eval "$ac_cv_use_treelayout"
10f2d63a 5032 if test "$no_cache" != 1; then
24176f2c 5033 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5034 fi
5035
24176f2c 5036 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5037 echo "$ac_t""yes" 1>&6
10f2d63a 5038 else
698dcdb6 5039 echo "$ac_t""no" 1>&6
10f2d63a 5040 fi
698dcdb6 5041
10f2d63a 5042
698dcdb6
VZ
5043
5044
5045 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
77e13408 5046echo "configure:5047: checking for --enable-controls" >&5
10f2d63a
VZ
5047 no_cache=0
5048 # Check whether --enable-controls or --disable-controls was given.
5049if test "${enable_controls+set}" = set; then
5050 enableval="$enable_controls"
698dcdb6 5051
10f2d63a
VZ
5052 if test "$enableval" = yes; then
5053 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5054 else
5055 ac_cv_use_controls='wxUSE_CONTROLS=no'
5056 fi
698dcdb6 5057
10f2d63a 5058else
698dcdb6 5059
10f2d63a
VZ
5060 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5061 if test "x$LINE" != x ; then
5062 eval "DEFAULT_$LINE"
5063 else
5064 no_cache=1
5065 fi
5066
5067 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5068
5069fi
10f2d63a
VZ
5070
5071
5072 eval "$ac_cv_use_controls"
5073 if test "$no_cache" != 1; then
5074 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5075 fi
5076
5077 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5078 echo "$ac_t""yes" 1>&6
10f2d63a 5079 else
698dcdb6 5080 echo "$ac_t""no" 1>&6
10f2d63a 5081 fi
698dcdb6 5082
10f2d63a
VZ
5083
5084if test "$wxUSE_CONTROLS" = "yes"; then
5085 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5086 DEFAULT_wxUSE_BMPBUTTON=yes
5087 DEFAULT_wxUSE_BUTTON=yes
5088 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5089 DEFAULT_wxUSE_CARET=yes
5090 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5091 DEFAULT_wxUSE_CHECKBOX=yes
5092 DEFAULT_wxUSE_CHECKLISTBOX=yes
5093 DEFAULT_wxUSE_CHOICE=yes
5094 DEFAULT_wxUSE_GAUGE=yes
5095 DEFAULT_wxUSE_GRID=yes
cc977e5f 5096 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5097 DEFAULT_wxUSE_IMAGLIST=yes
5098 DEFAULT_wxUSE_LISTBOX=yes
5099 DEFAULT_wxUSE_LISTCTRL=yes
5100 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5101 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5102 DEFAULT_wxUSE_RADIOBOX=yes
5103 DEFAULT_wxUSE_RADIOBTN=yes
5104 DEFAULT_wxUSE_SASH=yes
5105 DEFAULT_wxUSE_SCROLLBAR=yes
5106 DEFAULT_wxUSE_SLIDER=yes
5107 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5108 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5109 DEFAULT_wxUSE_SPLITTER=yes
5110 DEFAULT_wxUSE_STATBMP=yes
5111 DEFAULT_wxUSE_STATBOX=yes
5112 DEFAULT_wxUSE_STATLINE=yes
5113 DEFAULT_wxUSE_STATUSBAR=yes
5114 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5115 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5116 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5117 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5118 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5119 DEFAULT_wxUSE_TOOLTIPS=yes
5120 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5121 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
5122elif test "$wxUSE_CONTROLS" = "no"; then
5123 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5124 DEFAULT_wxUSE_BMPBUTTON=no
5125 DEFAULT_wxUSE_BUTTON=no
5126 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5127 DEFAULT_wxUSE_CARET=no
5128 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5129 DEFAULT_wxUSE_CHECKBOX=no
5130 DEFAULT_wxUSE_CHECKLISTBOX=no
5131 DEFAULT_wxUSE_CHOICE=no
5132 DEFAULT_wxUSE_GAUGE=no
5133 DEFAULT_wxUSE_GRID=no
5134 DEFAULT_wxUSE_NEW_GRID=no
5135 DEFAULT_wxUSE_IMAGLIST=no
5136 DEFAULT_wxUSE_LISTBOX=no
5137 DEFAULT_wxUSE_LISTCTRL=no
5138 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5139 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5140 DEFAULT_wxUSE_RADIOBOX=no
5141 DEFAULT_wxUSE_RADIOBTN=no
5142 DEFAULT_wxUSE_SASH=no
5143 DEFAULT_wxUSE_SCROLLBAR=no
5144 DEFAULT_wxUSE_SLIDER=no
5145 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5146 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5147 DEFAULT_wxUSE_SPLITTER=no
5148 DEFAULT_wxUSE_STATBMP=no
5149 DEFAULT_wxUSE_STATBOX=no
5150 DEFAULT_wxUSE_STATLINE=no
5151 DEFAULT_wxUSE_STATUSBAR=no
5152 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5153 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5154 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5155 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5156 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5157 DEFAULT_wxUSE_TOOLTIPS=no
5158 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5159 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
5160fi
5161
698dcdb6
VZ
5162
5163 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
77e13408 5164echo "configure:5165: checking for --enable-accel" >&5
10f2d63a
VZ
5165 no_cache=0
5166 # Check whether --enable-accel or --disable-accel was given.
5167if test "${enable_accel+set}" = set; then
5168 enableval="$enable_accel"
698dcdb6 5169
10f2d63a
VZ
5170 if test "$enableval" = yes; then
5171 ac_cv_use_accel='wxUSE_ACCEL=yes'
5172 else
5173 ac_cv_use_accel='wxUSE_ACCEL=no'
5174 fi
698dcdb6 5175
10f2d63a 5176else
698dcdb6 5177
10f2d63a
VZ
5178 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5179 if test "x$LINE" != x ; then
5180 eval "DEFAULT_$LINE"
5181 else
5182 no_cache=1
5183 fi
5184
5185 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5186
5187fi
10f2d63a
VZ
5188
5189
5190 eval "$ac_cv_use_accel"
5191 if test "$no_cache" != 1; then
5192 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5193 fi
5194
5195 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5196 echo "$ac_t""yes" 1>&6
10f2d63a 5197 else
698dcdb6 5198 echo "$ac_t""no" 1>&6
10f2d63a 5199 fi
698dcdb6 5200
10f2d63a 5201
1e6feb95 5202 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
77e13408 5203echo "configure:5204: checking for --enable-button" >&5
10f2d63a 5204 no_cache=0
1e6feb95
VZ
5205 # Check whether --enable-button or --disable-button was given.
5206if test "${enable_button+set}" = set; then
5207 enableval="$enable_button"
698dcdb6 5208
10f2d63a 5209 if test "$enableval" = yes; then
1e6feb95 5210 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5211 else
1e6feb95 5212 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5213 fi
698dcdb6 5214
10f2d63a 5215else
698dcdb6 5216
1e6feb95 5217 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5218 if test "x$LINE" != x ; then
5219 eval "DEFAULT_$LINE"
5220 else
5221 no_cache=1
5222 fi
5223
1e6feb95 5224 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5225
5226fi
10f2d63a
VZ
5227
5228
1e6feb95 5229 eval "$ac_cv_use_button"
10f2d63a 5230 if test "$no_cache" != 1; then
1e6feb95 5231 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5232 fi
5233
1e6feb95 5234 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5235 echo "$ac_t""yes" 1>&6
10f2d63a 5236 else
698dcdb6 5237 echo "$ac_t""no" 1>&6
10f2d63a 5238 fi
698dcdb6 5239
10f2d63a 5240
698dcdb6 5241 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
77e13408 5242echo "configure:5243: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5243 no_cache=0
5244 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5245if test "${enable_bmpbutton+set}" = set; then
5246 enableval="$enable_bmpbutton"
698dcdb6 5247
10f2d63a
VZ
5248 if test "$enableval" = yes; then
5249 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5250 else
5251 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5252 fi
698dcdb6 5253
10f2d63a 5254else
698dcdb6 5255
10f2d63a
VZ
5256 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5257 if test "x$LINE" != x ; then
5258 eval "DEFAULT_$LINE"
5259 else
5260 no_cache=1
5261 fi
5262
5263 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5264
5265fi
10f2d63a
VZ
5266
5267
5268 eval "$ac_cv_use_bmpbutton"
5269 if test "$no_cache" != 1; then
5270 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5271 fi
5272
5273 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5274 echo "$ac_t""yes" 1>&6
10f2d63a 5275 else
698dcdb6 5276 echo "$ac_t""no" 1>&6
10f2d63a 5277 fi
698dcdb6 5278
10f2d63a 5279
1e6feb95 5280 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
77e13408 5281echo "configure:5282: checking for --enable-calendar" >&5
1e6feb95
VZ
5282 no_cache=0
5283 # Check whether --enable-calendar or --disable-calendar was given.
5284if test "${enable_calendar+set}" = set; then
5285 enableval="$enable_calendar"
5286
5287 if test "$enableval" = yes; then
5288 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5289 else
5290 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5291 fi
5292
5293else
5294
5295 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5296 if test "x$LINE" != x ; then
5297 eval "DEFAULT_$LINE"
5298 else
5299 no_cache=1
5300 fi
5301
5302 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5303
5304fi
5305
5306
5307 eval "$ac_cv_use_calendar"
5308 if test "$no_cache" != 1; then
5309 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5310 fi
5311
5312 if test "$wxUSE_CALCTRL" = yes; then
5313 echo "$ac_t""yes" 1>&6
5314 else
5315 echo "$ac_t""no" 1>&6
5316 fi
5317
5318
5319 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
77e13408 5320echo "configure:5321: checking for --enable-caret" >&5
1e6feb95
VZ
5321 no_cache=0
5322 # Check whether --enable-caret or --disable-caret was given.
5323if test "${enable_caret+set}" = set; then
5324 enableval="$enable_caret"
5325
5326 if test "$enableval" = yes; then
5327 ac_cv_use_caret='wxUSE_CARET=yes'
5328 else
5329 ac_cv_use_caret='wxUSE_CARET=no'
5330 fi
5331
5332else
5333
5334 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5335 if test "x$LINE" != x ; then
5336 eval "DEFAULT_$LINE"
5337 else
5338 no_cache=1
5339 fi
5340
5341 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5342
5343fi
5344
5345
5346 eval "$ac_cv_use_caret"
5347 if test "$no_cache" != 1; then
5348 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5349 fi
5350
5351 if test "$wxUSE_CARET" = yes; then
5352 echo "$ac_t""yes" 1>&6
5353 else
5354 echo "$ac_t""no" 1>&6
5355 fi
5356
5357
698dcdb6 5358 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
77e13408 5359echo "configure:5360: checking for --enable-checkbox" >&5
10f2d63a
VZ
5360 no_cache=0
5361 # Check whether --enable-checkbox or --disable-checkbox was given.
5362if test "${enable_checkbox+set}" = set; then
5363 enableval="$enable_checkbox"
698dcdb6 5364
10f2d63a
VZ
5365 if test "$enableval" = yes; then
5366 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5367 else
5368 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5369 fi
698dcdb6 5370
10f2d63a 5371else
698dcdb6 5372
10f2d63a
VZ
5373 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5374 if test "x$LINE" != x ; then
5375 eval "DEFAULT_$LINE"
5376 else
5377 no_cache=1
5378 fi
5379
5380 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5381
5382fi
10f2d63a
VZ
5383
5384
5385 eval "$ac_cv_use_checkbox"
5386 if test "$no_cache" != 1; then
5387 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5388 fi
5389
5390 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5391 echo "$ac_t""yes" 1>&6
10f2d63a 5392 else
698dcdb6 5393 echo "$ac_t""no" 1>&6
10f2d63a 5394 fi
698dcdb6 5395
10f2d63a 5396
698dcdb6 5397 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
77e13408 5398echo "configure:5399: checking for --enable-checklst" >&5
10f2d63a
VZ
5399 no_cache=0
5400 # Check whether --enable-checklst or --disable-checklst was given.
5401if test "${enable_checklst+set}" = set; then
5402 enableval="$enable_checklst"
698dcdb6 5403
10f2d63a
VZ
5404 if test "$enableval" = yes; then
5405 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5406 else
5407 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5408 fi
698dcdb6 5409
10f2d63a 5410else
698dcdb6 5411
10f2d63a
VZ
5412 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5413 if test "x$LINE" != x ; then
5414 eval "DEFAULT_$LINE"
5415 else
5416 no_cache=1
5417 fi
5418
5419 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5420
5421fi
10f2d63a
VZ
5422
5423
5424 eval "$ac_cv_use_checklst"
5425 if test "$no_cache" != 1; then
5426 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5427 fi
5428
5429 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5430 echo "$ac_t""yes" 1>&6
10f2d63a 5431 else
698dcdb6 5432 echo "$ac_t""no" 1>&6
10f2d63a 5433 fi
698dcdb6 5434
10f2d63a 5435
698dcdb6 5436 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
77e13408 5437echo "configure:5438: checking for --enable-choice" >&5
10f2d63a
VZ
5438 no_cache=0
5439 # Check whether --enable-choice or --disable-choice was given.
5440if test "${enable_choice+set}" = set; then
5441 enableval="$enable_choice"
698dcdb6 5442
10f2d63a
VZ
5443 if test "$enableval" = yes; then
5444 ac_cv_use_choice='wxUSE_CHOICE=yes'
5445 else
5446 ac_cv_use_choice='wxUSE_CHOICE=no'
5447 fi
698dcdb6 5448
10f2d63a 5449else
698dcdb6 5450
10f2d63a
VZ
5451 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5452 if test "x$LINE" != x ; then
5453 eval "DEFAULT_$LINE"
5454 else
5455 no_cache=1
5456 fi
5457
5458 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5459
5460fi
10f2d63a
VZ
5461
5462
5463 eval "$ac_cv_use_choice"
5464 if test "$no_cache" != 1; then
5465 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5466 fi
5467
5468 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5469 echo "$ac_t""yes" 1>&6
10f2d63a 5470 else
698dcdb6 5471 echo "$ac_t""no" 1>&6
10f2d63a 5472 fi
698dcdb6 5473
10f2d63a 5474
698dcdb6 5475 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
77e13408 5476echo "configure:5477: checking for --enable-combobox" >&5
10f2d63a
VZ
5477 no_cache=0
5478 # Check whether --enable-combobox or --disable-combobox was given.
5479if test "${enable_combobox+set}" = set; then
5480 enableval="$enable_combobox"
698dcdb6 5481
10f2d63a
VZ
5482 if test "$enableval" = yes; then
5483 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5484 else
5485 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5486 fi
698dcdb6 5487
10f2d63a 5488else
698dcdb6 5489
10f2d63a
VZ
5490 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5491 if test "x$LINE" != x ; then
5492 eval "DEFAULT_$LINE"
5493 else
5494 no_cache=1
5495 fi
5496
5497 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5498
5499fi
10f2d63a
VZ
5500
5501
5502 eval "$ac_cv_use_combobox"
5503 if test "$no_cache" != 1; then
5504 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5505 fi
5506
5507 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5508 echo "$ac_t""yes" 1>&6
10f2d63a 5509 else
698dcdb6 5510 echo "$ac_t""no" 1>&6
10f2d63a 5511 fi
698dcdb6 5512
10f2d63a 5513
698dcdb6 5514 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
77e13408 5515echo "configure:5516: checking for --enable-gauge" >&5
10f2d63a
VZ
5516 no_cache=0
5517 # Check whether --enable-gauge or --disable-gauge was given.
5518if test "${enable_gauge+set}" = set; then
5519 enableval="$enable_gauge"
698dcdb6 5520
10f2d63a
VZ
5521 if test "$enableval" = yes; then
5522 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5523 else
5524 ac_cv_use_gauge='wxUSE_GAUGE=no'
5525 fi
698dcdb6 5526
10f2d63a 5527else
698dcdb6 5528
10f2d63a
VZ
5529 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5530 if test "x$LINE" != x ; then
5531 eval "DEFAULT_$LINE"
5532 else
5533 no_cache=1
5534 fi
5535
5536 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5537
5538fi
10f2d63a
VZ
5539
5540
5541 eval "$ac_cv_use_gauge"
5542 if test "$no_cache" != 1; then
5543 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5544 fi
5545
5546 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5547 echo "$ac_t""yes" 1>&6
10f2d63a 5548 else
698dcdb6 5549 echo "$ac_t""no" 1>&6
10f2d63a 5550 fi
698dcdb6 5551
10f2d63a 5552
698dcdb6 5553 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
77e13408 5554echo "configure:5555: checking for --enable-grid" >&5
10f2d63a
VZ
5555 no_cache=0
5556 # Check whether --enable-grid or --disable-grid was given.
5557if test "${enable_grid+set}" = set; then
5558 enableval="$enable_grid"
698dcdb6 5559
10f2d63a
VZ
5560 if test "$enableval" = yes; then
5561 ac_cv_use_grid='wxUSE_GRID=yes'
5562 else
5563 ac_cv_use_grid='wxUSE_GRID=no'
5564 fi
698dcdb6 5565
10f2d63a 5566else
698dcdb6 5567
10f2d63a
VZ
5568 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5569 if test "x$LINE" != x ; then
5570 eval "DEFAULT_$LINE"
5571 else
5572 no_cache=1
5573 fi
5574
5575 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5576
5577fi
10f2d63a
VZ
5578
5579
5580 eval "$ac_cv_use_grid"
5581 if test "$no_cache" != 1; then
5582 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5583 fi
5584
5585 if test "$wxUSE_GRID" = yes; then
698dcdb6 5586 echo "$ac_t""yes" 1>&6
10f2d63a 5587 else
698dcdb6 5588 echo "$ac_t""no" 1>&6
10f2d63a 5589 fi
698dcdb6 5590
10f2d63a 5591
698dcdb6 5592 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
77e13408 5593echo "configure:5594: checking for --enable-newgrid" >&5
10f2d63a
VZ
5594 no_cache=0
5595 # Check whether --enable-newgrid or --disable-newgrid was given.
5596if test "${enable_newgrid+set}" = set; then
5597 enableval="$enable_newgrid"
698dcdb6 5598
10f2d63a
VZ
5599 if test "$enableval" = yes; then
5600 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5601 else
5602 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5603 fi
698dcdb6 5604
10f2d63a 5605else
698dcdb6 5606
10f2d63a
VZ
5607 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5608 if test "x$LINE" != x ; then
5609 eval "DEFAULT_$LINE"
5610 else
5611 no_cache=1
5612 fi
5613
5614 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5615
5616fi
10f2d63a
VZ
5617
5618
5619 eval "$ac_cv_use_newgrid"
5620 if test "$no_cache" != 1; then
5621 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5622 fi
5623
5624 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5625 echo "$ac_t""yes" 1>&6
10f2d63a 5626 else
698dcdb6 5627 echo "$ac_t""no" 1>&6
10f2d63a 5628 fi
698dcdb6 5629
10f2d63a 5630
698dcdb6 5631 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
77e13408 5632echo "configure:5633: checking for --enable-imaglist" >&5
10f2d63a
VZ
5633 no_cache=0
5634 # Check whether --enable-imaglist or --disable-imaglist was given.
5635if test "${enable_imaglist+set}" = set; then
5636 enableval="$enable_imaglist"
698dcdb6 5637
10f2d63a
VZ
5638 if test "$enableval" = yes; then
5639 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5640 else
5641 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5642 fi
698dcdb6 5643
10f2d63a 5644else
698dcdb6 5645
10f2d63a
VZ
5646 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5647 if test "x$LINE" != x ; then
5648 eval "DEFAULT_$LINE"
5649 else
5650 no_cache=1
5651 fi
5652
5653 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5654
5655fi
10f2d63a
VZ
5656
5657
5658 eval "$ac_cv_use_imaglist"
5659 if test "$no_cache" != 1; then
5660 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5661 fi
5662
5663 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5664 echo "$ac_t""yes" 1>&6
10f2d63a 5665 else
698dcdb6 5666 echo "$ac_t""no" 1>&6
10f2d63a 5667 fi
698dcdb6 5668
10f2d63a 5669
698dcdb6 5670 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
77e13408 5671echo "configure:5672: checking for --enable-listbox" >&5
10f2d63a
VZ
5672 no_cache=0
5673 # Check whether --enable-listbox or --disable-listbox was given.
5674if test "${enable_listbox+set}" = set; then
5675 enableval="$enable_listbox"
698dcdb6 5676
10f2d63a
VZ
5677 if test "$enableval" = yes; then
5678 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5679 else
5680 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5681 fi
698dcdb6 5682
10f2d63a 5683else
698dcdb6 5684
10f2d63a
VZ
5685 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5686 if test "x$LINE" != x ; then
5687 eval "DEFAULT_$LINE"
5688 else
5689 no_cache=1
5690 fi
5691
5692 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5693
5694fi
10f2d63a
VZ
5695
5696
5697 eval "$ac_cv_use_listbox"
5698 if test "$no_cache" != 1; then
5699 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5700 fi
5701
5702 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5703 echo "$ac_t""yes" 1>&6
10f2d63a 5704 else
698dcdb6 5705 echo "$ac_t""no" 1>&6
10f2d63a 5706 fi
698dcdb6 5707
10f2d63a 5708
698dcdb6 5709 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
77e13408 5710echo "configure:5711: checking for --enable-listctrl" >&5
10f2d63a
VZ
5711 no_cache=0
5712 # Check whether --enable-listctrl or --disable-listctrl was given.
5713if test "${enable_listctrl+set}" = set; then
5714 enableval="$enable_listctrl"
698dcdb6 5715
10f2d63a
VZ
5716 if test "$enableval" = yes; then
5717 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5718 else
5719 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5720 fi
698dcdb6 5721
10f2d63a 5722else
698dcdb6 5723
10f2d63a
VZ
5724 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5725 if test "x$LINE" != x ; then
5726 eval "DEFAULT_$LINE"
5727 else
5728 no_cache=1
5729 fi
5730
5731 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5732
5733fi
10f2d63a
VZ
5734
5735
5736 eval "$ac_cv_use_listctrl"
5737 if test "$no_cache" != 1; then
5738 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5739 fi
5740
5741 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5742 echo "$ac_t""yes" 1>&6
10f2d63a 5743 else
698dcdb6 5744 echo "$ac_t""no" 1>&6
10f2d63a 5745 fi
698dcdb6 5746
10f2d63a 5747
698dcdb6 5748 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
77e13408 5749echo "configure:5750: checking for --enable-notebook" >&5
10f2d63a
VZ
5750 no_cache=0
5751 # Check whether --enable-notebook or --disable-notebook was given.
5752if test "${enable_notebook+set}" = set; then
5753 enableval="$enable_notebook"
698dcdb6 5754
10f2d63a
VZ
5755 if test "$enableval" = yes; then
5756 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5757 else
5758 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5759 fi
698dcdb6 5760
10f2d63a 5761else
698dcdb6 5762
10f2d63a
VZ
5763 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5764 if test "x$LINE" != x ; then
5765 eval "DEFAULT_$LINE"
5766 else
5767 no_cache=1
5768 fi
5769
5770 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5771
5772fi
10f2d63a
VZ
5773
5774
5775 eval "$ac_cv_use_notebook"
5776 if test "$no_cache" != 1; then
5777 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5778 fi
5779
5780 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5781 echo "$ac_t""yes" 1>&6
10f2d63a 5782 else
698dcdb6 5783 echo "$ac_t""no" 1>&6
10f2d63a 5784 fi
698dcdb6 5785
10f2d63a 5786
24176f2c 5787 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
77e13408 5788echo "configure:5789: checking for --enable-propsheet" >&5
24176f2c
GD
5789 no_cache=0
5790 # Check whether --enable-propsheet or --disable-propsheet was given.
5791if test "${enable_propsheet+set}" = set; then
5792 enableval="$enable_propsheet"
5793
5794 if test "$enableval" = yes; then
5795 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5796 else
5797 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5798 fi
5799
5800else
5801
5802 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5803 if test "x$LINE" != x ; then
5804 eval "DEFAULT_$LINE"
5805 else
5806 no_cache=1
5807 fi
5808
5809 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5810
5811fi
5812
5813
5814 eval "$ac_cv_use_propsheet"
5815 if test "$no_cache" != 1; then
5816 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5817 fi
5818
5819 if test "$wxUSE_PROPSHEET" = yes; then
5820 echo "$ac_t""yes" 1>&6
5821 else
5822 echo "$ac_t""no" 1>&6
5823 fi
5824
5825
698dcdb6 5826 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
77e13408 5827echo "configure:5828: checking for --enable-radiobox" >&5
10f2d63a
VZ
5828 no_cache=0
5829 # Check whether --enable-radiobox or --disable-radiobox was given.
5830if test "${enable_radiobox+set}" = set; then
5831 enableval="$enable_radiobox"
698dcdb6 5832
10f2d63a
VZ
5833 if test "$enableval" = yes; then
5834 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5835 else
5836 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5837 fi
698dcdb6 5838
10f2d63a 5839else
698dcdb6 5840
10f2d63a
VZ
5841 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5842 if test "x$LINE" != x ; then
5843 eval "DEFAULT_$LINE"
5844 else
5845 no_cache=1
5846 fi
5847
5848 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5849
5850fi
10f2d63a
VZ
5851
5852
5853 eval "$ac_cv_use_radiobox"
5854 if test "$no_cache" != 1; then
5855 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5856 fi
5857
5858 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5859 echo "$ac_t""yes" 1>&6
10f2d63a 5860 else
698dcdb6 5861 echo "$ac_t""no" 1>&6
10f2d63a 5862 fi
698dcdb6 5863
10f2d63a 5864
698dcdb6 5865 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
77e13408 5866echo "configure:5867: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5867 no_cache=0
5868 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5869if test "${enable_radiobtn+set}" = set; then
5870 enableval="$enable_radiobtn"
698dcdb6 5871
10f2d63a
VZ
5872 if test "$enableval" = yes; then
5873 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5874 else
5875 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5876 fi
698dcdb6 5877
10f2d63a 5878else
698dcdb6 5879
10f2d63a
VZ
5880 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5881 if test "x$LINE" != x ; then
5882 eval "DEFAULT_$LINE"
5883 else
5884 no_cache=1
5885 fi
5886
5887 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5888
5889fi
10f2d63a
VZ
5890
5891
5892 eval "$ac_cv_use_radiobtn"
5893 if test "$no_cache" != 1; then
5894 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5895 fi
5896
5897 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5898 echo "$ac_t""yes" 1>&6
10f2d63a 5899 else
698dcdb6 5900 echo "$ac_t""no" 1>&6
10f2d63a 5901 fi
698dcdb6 5902
10f2d63a 5903
698dcdb6 5904 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
77e13408 5905echo "configure:5906: checking for --enable-sash" >&5
10f2d63a
VZ
5906 no_cache=0
5907 # Check whether --enable-sash or --disable-sash was given.
5908if test "${enable_sash+set}" = set; then
5909 enableval="$enable_sash"
698dcdb6 5910
10f2d63a
VZ
5911 if test "$enableval" = yes; then
5912 ac_cv_use_sash='wxUSE_SASH=yes'
5913 else
5914 ac_cv_use_sash='wxUSE_SASH=no'
5915 fi
698dcdb6 5916
10f2d63a 5917else
698dcdb6 5918
10f2d63a
VZ
5919 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5920 if test "x$LINE" != x ; then
5921 eval "DEFAULT_$LINE"
5922 else
5923 no_cache=1
5924 fi
5925
5926 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5927
5928fi
10f2d63a
VZ
5929
5930
5931 eval "$ac_cv_use_sash"
5932 if test "$no_cache" != 1; then
5933 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5934 fi
5935
5936 if test "$wxUSE_SASH" = yes; then
698dcdb6 5937 echo "$ac_t""yes" 1>&6
10f2d63a 5938 else
698dcdb6 5939 echo "$ac_t""no" 1>&6
10f2d63a 5940 fi
698dcdb6 5941
10f2d63a 5942
698dcdb6 5943 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
77e13408 5944echo "configure:5945: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5945 no_cache=0
5946 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5947if test "${enable_scrollbar+set}" = set; then
5948 enableval="$enable_scrollbar"
698dcdb6 5949
10f2d63a
VZ
5950 if test "$enableval" = yes; then
5951 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5952 else
5953 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5954 fi
698dcdb6 5955
10f2d63a 5956else
698dcdb6 5957
10f2d63a
VZ
5958 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5959 if test "x$LINE" != x ; then
5960 eval "DEFAULT_$LINE"
5961 else
5962 no_cache=1
5963 fi
5964
5965 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5966
5967fi
10f2d63a
VZ
5968
5969
5970 eval "$ac_cv_use_scrollbar"
5971 if test "$no_cache" != 1; then
5972 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5973 fi
5974
5975 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5976 echo "$ac_t""yes" 1>&6
10f2d63a 5977 else
698dcdb6 5978 echo "$ac_t""no" 1>&6
10f2d63a 5979 fi
698dcdb6 5980
10f2d63a 5981
698dcdb6 5982 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
77e13408 5983echo "configure:5984: checking for --enable-slider" >&5
10f2d63a
VZ
5984 no_cache=0
5985 # Check whether --enable-slider or --disable-slider was given.
5986if test "${enable_slider+set}" = set; then
5987 enableval="$enable_slider"
698dcdb6 5988
10f2d63a
VZ
5989 if test "$enableval" = yes; then
5990 ac_cv_use_slider='wxUSE_SLIDER=yes'
5991 else
5992 ac_cv_use_slider='wxUSE_SLIDER=no'
5993 fi
698dcdb6 5994
10f2d63a 5995else
698dcdb6 5996
10f2d63a
VZ
5997 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5998 if test "x$LINE" != x ; then
5999 eval "DEFAULT_$LINE"
6000 else
6001 no_cache=1
6002 fi
6003
6004 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6005
6006fi
10f2d63a
VZ
6007
6008
6009 eval "$ac_cv_use_slider"
6010 if test "$no_cache" != 1; then
6011 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6012 fi
6013
6014 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6015 echo "$ac_t""yes" 1>&6
10f2d63a 6016 else
698dcdb6 6017 echo "$ac_t""no" 1>&6
10f2d63a 6018 fi
698dcdb6 6019
10f2d63a 6020
698dcdb6 6021 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
77e13408 6022echo "configure:6023: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6023 no_cache=0
6024 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6025if test "${enable_spinbtn+set}" = set; then
6026 enableval="$enable_spinbtn"
698dcdb6 6027
10f2d63a
VZ
6028 if test "$enableval" = yes; then
6029 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6030 else
6031 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6032 fi
698dcdb6 6033
10f2d63a 6034else
698dcdb6 6035
10f2d63a
VZ
6036 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6037 if test "x$LINE" != x ; then
6038 eval "DEFAULT_$LINE"
6039 else
6040 no_cache=1
6041 fi
6042
6043 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6044
6045fi
10f2d63a
VZ
6046
6047
6048 eval "$ac_cv_use_spinbtn"
6049 if test "$no_cache" != 1; then
6050 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6051 fi
6052
6053 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6054 echo "$ac_t""yes" 1>&6
10f2d63a 6055 else
698dcdb6 6056 echo "$ac_t""no" 1>&6
10f2d63a 6057 fi
698dcdb6 6058
10f2d63a 6059
698dcdb6 6060 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
77e13408 6061echo "configure:6062: checking for --enable-spinctrl" >&5
56cfaa52
RR
6062 no_cache=0
6063 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6064if test "${enable_spinctrl+set}" = set; then
6065 enableval="$enable_spinctrl"
698dcdb6 6066
56cfaa52
RR
6067 if test "$enableval" = yes; then
6068 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6069 else
6070 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6071 fi
698dcdb6 6072
56cfaa52 6073else
698dcdb6 6074
56cfaa52
RR
6075 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6076 if test "x$LINE" != x ; then
6077 eval "DEFAULT_$LINE"
6078 else
6079 no_cache=1
6080 fi
6081
6082 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6083
6084fi
56cfaa52
RR
6085
6086
6087 eval "$ac_cv_use_spinctrl"
6088 if test "$no_cache" != 1; then
6089 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6090 fi
6091
6092 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6093 echo "$ac_t""yes" 1>&6
56cfaa52 6094 else
698dcdb6 6095 echo "$ac_t""no" 1>&6
56cfaa52 6096 fi
698dcdb6 6097
56cfaa52 6098
698dcdb6 6099 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
77e13408 6100echo "configure:6101: checking for --enable-splitter" >&5
10f2d63a
VZ
6101 no_cache=0
6102 # Check whether --enable-splitter or --disable-splitter was given.
6103if test "${enable_splitter+set}" = set; then
6104 enableval="$enable_splitter"
698dcdb6 6105
10f2d63a
VZ
6106 if test "$enableval" = yes; then
6107 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6108 else
6109 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6110 fi
698dcdb6 6111
10f2d63a 6112else
698dcdb6 6113
10f2d63a
VZ
6114 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6115 if test "x$LINE" != x ; then
6116 eval "DEFAULT_$LINE"
6117 else
6118 no_cache=1
6119 fi
6120
6121 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6122
6123fi
10f2d63a
VZ
6124
6125
6126 eval "$ac_cv_use_splitter"
6127 if test "$no_cache" != 1; then
6128 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6129 fi
6130
6131 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6132 echo "$ac_t""yes" 1>&6
10f2d63a 6133 else
698dcdb6 6134 echo "$ac_t""no" 1>&6
10f2d63a 6135 fi
698dcdb6 6136
10f2d63a 6137
698dcdb6 6138 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
77e13408 6139echo "configure:6140: checking for --enable-statbmp" >&5
10f2d63a
VZ
6140 no_cache=0
6141 # Check whether --enable-statbmp or --disable-statbmp was given.
6142if test "${enable_statbmp+set}" = set; then
6143 enableval="$enable_statbmp"
698dcdb6 6144
10f2d63a
VZ
6145 if test "$enableval" = yes; then
6146 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6147 else
6148 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6149 fi
698dcdb6 6150
10f2d63a 6151else
698dcdb6 6152
10f2d63a
VZ
6153 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6154 if test "x$LINE" != x ; then
6155 eval "DEFAULT_$LINE"
6156 else
6157 no_cache=1
6158 fi
6159
6160 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6161
6162fi
10f2d63a
VZ
6163
6164
6165 eval "$ac_cv_use_statbmp"
6166 if test "$no_cache" != 1; then
6167 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6168 fi
6169
6170 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6171 echo "$ac_t""yes" 1>&6
10f2d63a 6172 else
698dcdb6 6173 echo "$ac_t""no" 1>&6
10f2d63a 6174 fi
698dcdb6 6175
10f2d63a 6176
698dcdb6 6177 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
77e13408 6178echo "configure:6179: checking for --enable-statbox" >&5
10f2d63a
VZ
6179 no_cache=0
6180 # Check whether --enable-statbox or --disable-statbox was given.
6181if test "${enable_statbox+set}" = set; then
6182 enableval="$enable_statbox"
698dcdb6 6183
10f2d63a
VZ
6184 if test "$enableval" = yes; then
6185 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6186 else
6187 ac_cv_use_statbox='wxUSE_STATBOX=no'
6188 fi
698dcdb6 6189
10f2d63a 6190else
698dcdb6 6191
10f2d63a
VZ
6192 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6193 if test "x$LINE" != x ; then
6194 eval "DEFAULT_$LINE"
6195 else
6196 no_cache=1
6197 fi
6198
6199 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6200
6201fi
10f2d63a
VZ
6202
6203
6204 eval "$ac_cv_use_statbox"
6205 if test "$no_cache" != 1; then
6206 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6207 fi
6208
6209 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6210 echo "$ac_t""yes" 1>&6
10f2d63a 6211 else
698dcdb6 6212 echo "$ac_t""no" 1>&6
10f2d63a 6213 fi
698dcdb6 6214
10f2d63a 6215
698dcdb6 6216 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
77e13408 6217echo "configure:6218: checking for --enable-statline" >&5
10f2d63a
VZ
6218 no_cache=0
6219 # Check whether --enable-statline or --disable-statline was given.
6220if test "${enable_statline+set}" = set; then
6221 enableval="$enable_statline"
698dcdb6 6222
10f2d63a
VZ
6223 if test "$enableval" = yes; then
6224 ac_cv_use_statline='wxUSE_STATLINE=yes'
6225 else
6226 ac_cv_use_statline='wxUSE_STATLINE=no'
6227 fi
698dcdb6 6228
10f2d63a 6229else
698dcdb6 6230
10f2d63a
VZ
6231 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6232 if test "x$LINE" != x ; then
6233 eval "DEFAULT_$LINE"
6234 else
6235 no_cache=1
6236 fi
6237
6238 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6239
6240fi
10f2d63a
VZ
6241
6242
6243 eval "$ac_cv_use_statline"
6244 if test "$no_cache" != 1; then
6245 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6246 fi
6247
6248 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6249 echo "$ac_t""yes" 1>&6
10f2d63a 6250 else
698dcdb6 6251 echo "$ac_t""no" 1>&6
10f2d63a 6252 fi
698dcdb6 6253
10f2d63a 6254
1e6feb95 6255 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
77e13408 6256echo "configure:6257: checking for --enable-stattext" >&5
1e6feb95
VZ
6257 no_cache=0
6258 # Check whether --enable-stattext or --disable-stattext was given.
6259if test "${enable_stattext+set}" = set; then
6260 enableval="$enable_stattext"
6261
6262 if test "$enableval" = yes; then
6263 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6264 else
6265 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6266 fi
6267
6268else
6269
6270 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6271 if test "x$LINE" != x ; then
6272 eval "DEFAULT_$LINE"
6273 else
6274 no_cache=1
6275 fi
6276
6277 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6278
6279fi
6280
6281
6282 eval "$ac_cv_use_stattext"
6283 if test "$no_cache" != 1; then
6284 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6285 fi
6286
6287 if test "$wxUSE_STATTEXT" = yes; then
6288 echo "$ac_t""yes" 1>&6
6289 else
6290 echo "$ac_t""no" 1>&6
6291 fi
6292
6293
698dcdb6 6294 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
77e13408 6295echo "configure:6296: checking for --enable-statusbar" >&5
10f2d63a
VZ
6296 no_cache=0
6297 # Check whether --enable-statusbar or --disable-statusbar was given.
6298if test "${enable_statusbar+set}" = set; then
6299 enableval="$enable_statusbar"
698dcdb6 6300
10f2d63a
VZ
6301 if test "$enableval" = yes; then
6302 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6303 else
6304 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6305 fi
698dcdb6 6306
10f2d63a 6307else
698dcdb6 6308
10f2d63a
VZ
6309 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6310 if test "x$LINE" != x ; then
6311 eval "DEFAULT_$LINE"
6312 else
6313 no_cache=1
6314 fi
6315
6316 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6317
6318fi
10f2d63a
VZ
6319
6320
6321 eval "$ac_cv_use_statusbar"
6322 if test "$no_cache" != 1; then
6323 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6324 fi
6325
6326 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6327 echo "$ac_t""yes" 1>&6
10f2d63a 6328 else
698dcdb6 6329 echo "$ac_t""no" 1>&6
10f2d63a 6330 fi
698dcdb6 6331
10f2d63a 6332
698dcdb6 6333 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
77e13408 6334echo "configure:6335: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6335 no_cache=0
6336 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6337if test "${enable_tabdialog+set}" = set; then
6338 enableval="$enable_tabdialog"
698dcdb6 6339
10f2d63a
VZ
6340 if test "$enableval" = yes; then
6341 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6342 else
6343 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6344 fi
698dcdb6 6345
10f2d63a 6346else
698dcdb6 6347
10f2d63a
VZ
6348 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6349 if test "x$LINE" != x ; then
6350 eval "DEFAULT_$LINE"
6351 else
6352 no_cache=1
6353 fi
6354
6355 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6356
6357fi
10f2d63a
VZ
6358
6359
6360 eval "$ac_cv_use_tabdialog"
6361 if test "$no_cache" != 1; then
6362 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6363 fi
6364
6365 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6366 echo "$ac_t""yes" 1>&6
10f2d63a 6367 else
698dcdb6 6368 echo "$ac_t""no" 1>&6
10f2d63a 6369 fi
698dcdb6 6370
10f2d63a 6371
1e6feb95 6372 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
77e13408 6373echo "configure:6374: checking for --enable-textctrl" >&5
1e6feb95
VZ
6374 no_cache=0
6375 # Check whether --enable-textctrl or --disable-textctrl was given.
6376if test "${enable_textctrl+set}" = set; then
6377 enableval="$enable_textctrl"
6378
6379 if test "$enableval" = yes; then
6380 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6381 else
6382 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6383 fi
6384
6385else
6386
6387 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6388 if test "x$LINE" != x ; then
6389 eval "DEFAULT_$LINE"
6390 else
6391 no_cache=1
6392 fi
6393
6394 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6395
6396fi
6397
6398
6399 eval "$ac_cv_use_textctrl"
6400 if test "$no_cache" != 1; then
6401 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6402 fi
6403
6404 if test "$wxUSE_TEXTCTRL" = yes; then
6405 echo "$ac_t""yes" 1>&6
6406 else
6407 echo "$ac_t""no" 1>&6
6408 fi
6409
6410
698dcdb6 6411 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
77e13408 6412echo "configure:6413: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6413 no_cache=0
6414 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6415if test "${enable_togglebtn+set}" = set; then
6416 enableval="$enable_togglebtn"
698dcdb6 6417
1db8dc4a
VZ
6418 if test "$enableval" = yes; then
6419 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6420 else
6421 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6422 fi
698dcdb6 6423
1db8dc4a 6424else
698dcdb6 6425
1db8dc4a
VZ
6426 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6427 if test "x$LINE" != x ; then
6428 eval "DEFAULT_$LINE"
6429 else
6430 no_cache=1
6431 fi
6432
6433 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6434
6435fi
1db8dc4a
VZ
6436
6437
6438 eval "$ac_cv_use_togglebtn"
6439 if test "$no_cache" != 1; then
6440 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6441 fi
6442
6443 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6444 echo "$ac_t""yes" 1>&6
1db8dc4a 6445 else
698dcdb6 6446 echo "$ac_t""no" 1>&6
1db8dc4a 6447 fi
698dcdb6 6448
1db8dc4a 6449
698dcdb6 6450 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
77e13408 6451echo "configure:6452: checking for --enable-toolbar" >&5
10f2d63a
VZ
6452 no_cache=0
6453 # Check whether --enable-toolbar or --disable-toolbar was given.
6454if test "${enable_toolbar+set}" = set; then
6455 enableval="$enable_toolbar"
698dcdb6 6456
10f2d63a
VZ
6457 if test "$enableval" = yes; then
6458 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6459 else
6460 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6461 fi
698dcdb6 6462
10f2d63a 6463else
698dcdb6 6464
10f2d63a
VZ
6465 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6466 if test "x$LINE" != x ; then
6467 eval "DEFAULT_$LINE"
6468 else
6469 no_cache=1
6470 fi
6471
6472 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6473
6474fi
10f2d63a
VZ
6475
6476
6477 eval "$ac_cv_use_toolbar"
6478 if test "$no_cache" != 1; then
6479 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6480 fi
6481
6482 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6483 echo "$ac_t""yes" 1>&6
10f2d63a 6484 else
698dcdb6 6485 echo "$ac_t""no" 1>&6
10f2d63a 6486 fi
698dcdb6 6487
10f2d63a 6488
698dcdb6 6489 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
77e13408 6490echo "configure:6491: checking for --enable-tbarnative" >&5
360d6699
VZ
6491 no_cache=0
6492 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6493if test "${enable_tbarnative+set}" = set; then
6494 enableval="$enable_tbarnative"
698dcdb6 6495
360d6699
VZ
6496 if test "$enableval" = yes; then
6497 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6498 else
6499 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6500 fi
698dcdb6 6501
360d6699 6502else
698dcdb6 6503
360d6699
VZ
6504 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6505 if test "x$LINE" != x ; then
6506 eval "DEFAULT_$LINE"
6507 else
6508 no_cache=1
6509 fi
6510
6511 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6512
6513fi
360d6699
VZ
6514
6515
6516 eval "$ac_cv_use_tbarnative"
6517 if test "$no_cache" != 1; then
6518 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6519 fi
6520
6521 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6522 echo "$ac_t""yes" 1>&6
360d6699 6523 else
698dcdb6 6524 echo "$ac_t""no" 1>&6
360d6699 6525 fi
698dcdb6 6526
360d6699 6527
698dcdb6 6528 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
77e13408 6529echo "configure:6530: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6530 no_cache=0
6531 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6532if test "${enable_tbarsmpl+set}" = set; then
6533 enableval="$enable_tbarsmpl"
698dcdb6 6534
360d6699
VZ
6535 if test "$enableval" = yes; then
6536 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6537 else
6538 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6539 fi
698dcdb6 6540
360d6699 6541else
698dcdb6 6542
360d6699
VZ
6543 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6544 if test "x$LINE" != x ; then
6545 eval "DEFAULT_$LINE"
6546 else
6547 no_cache=1
6548 fi
6549
6550 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6551
6552fi
360d6699
VZ
6553
6554
6555 eval "$ac_cv_use_tbarsmpl"
6556 if test "$no_cache" != 1; then
6557 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6558 fi
6559
6560 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6561 echo "$ac_t""yes" 1>&6
360d6699 6562 else
698dcdb6 6563 echo "$ac_t""no" 1>&6
360d6699 6564 fi
698dcdb6 6565
360d6699 6566
698dcdb6 6567 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
77e13408 6568echo "configure:6569: checking for --enable-treectrl" >&5
10f2d63a
VZ
6569 no_cache=0
6570 # Check whether --enable-treectrl or --disable-treectrl was given.
6571if test "${enable_treectrl+set}" = set; then
6572 enableval="$enable_treectrl"
698dcdb6 6573
10f2d63a
VZ
6574 if test "$enableval" = yes; then
6575 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6576 else
6577 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6578 fi
698dcdb6 6579
10f2d63a 6580else
698dcdb6 6581
10f2d63a
VZ
6582 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6583 if test "x$LINE" != x ; then
6584 eval "DEFAULT_$LINE"
6585 else
6586 no_cache=1
6587 fi
6588
6589 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6590
6591fi
10f2d63a
VZ
6592
6593
1e6feb95
VZ
6594 eval "$ac_cv_use_treectrl"
6595 if test "$no_cache" != 1; then
6596 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6597 fi
6598
6599 if test "$wxUSE_TREECTRL" = yes; then
6600 echo "$ac_t""yes" 1>&6
6601 else
6602 echo "$ac_t""no" 1>&6
6603 fi
6604
6605
9f41d601 6606 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
77e13408 6607echo "configure:6608: checking for --enable-popupwin" >&5
9f41d601
RR
6608 no_cache=0
6609 # Check whether --enable-popupwin or --disable-popupwin was given.
6610if test "${enable_popupwin+set}" = set; then
6611 enableval="$enable_popupwin"
6612
6613 if test "$enableval" = yes; then
6614 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6615 else
6616 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6617 fi
6618
6619else
6620
6621 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6622 if test "x$LINE" != x ; then
6623 eval "DEFAULT_$LINE"
6624 else
6625 no_cache=1
6626 fi
6627
6628 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6629
6630fi
6631
6632
6633 eval "$ac_cv_use_popupwin"
6634 if test "$no_cache" != 1; then
6635 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6636 fi
6637
6638 if test "$wxUSE_POPUPWIN" = yes; then
6639 echo "$ac_t""yes" 1>&6
6640 else
6641 echo "$ac_t""no" 1>&6
6642 fi
6643
6644
1e6feb95
VZ
6645
6646
6647 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
77e13408 6648echo "configure:6649: checking for --enable-commondlg" >&5
1e6feb95
VZ
6649 no_cache=0
6650 # Check whether --enable-commondlg or --disable-commondlg was given.
6651if test "${enable_commondlg+set}" = set; then
6652 enableval="$enable_commondlg"
6653
6654 if test "$enableval" = yes; then
6655 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6656 else
6657 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6658 fi
6659
6660else
6661
6662 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6663 if test "x$LINE" != x ; then
6664 eval "DEFAULT_$LINE"
6665 else
6666 no_cache=1
6667 fi
6668
6669 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6670
6671fi
6672
6673
6674 eval "$ac_cv_use_commondlg"
6675 if test "$no_cache" != 1; then
6676 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6677 fi
6678
6679 if test "$wxUSE_COMMONDLGS" = yes; then
6680 echo "$ac_t""yes" 1>&6
6681 else
6682 echo "$ac_t""no" 1>&6
6683 fi
6684
6685
6686 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
77e13408 6687echo "configure:6688: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6688 no_cache=0
6689 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6690if test "${enable_choicedlg+set}" = set; then
6691 enableval="$enable_choicedlg"
6692
6693 if test "$enableval" = yes; then
6694 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6695 else
6696 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6697 fi
6698
6699else
6700
6701 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6702 if test "x$LINE" != x ; then
6703 eval "DEFAULT_$LINE"
6704 else
6705 no_cache=1
6706 fi
6707
6708 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6709
6710fi
6711
6712
6713 eval "$ac_cv_use_choicedlg"
6714 if test "$no_cache" != 1; then
6715 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6716 fi
6717
6718 if test "$wxUSE_CHOICEDLG" = yes; then
6719 echo "$ac_t""yes" 1>&6
6720 else
6721 echo "$ac_t""no" 1>&6
6722 fi
6723
6724
6725 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
77e13408 6726echo "configure:6727: checking for --enable-coldlg" >&5
1e6feb95
VZ
6727 no_cache=0
6728 # Check whether --enable-coldlg or --disable-coldlg was given.
6729if test "${enable_coldlg+set}" = set; then
6730 enableval="$enable_coldlg"
6731
6732 if test "$enableval" = yes; then
6733 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6734 else
6735 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6736 fi
6737
6738else
6739
6740 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6741 if test "x$LINE" != x ; then
6742 eval "DEFAULT_$LINE"
6743 else
6744 no_cache=1
6745 fi
6746
6747 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6748
6749fi
6750
6751
6752 eval "$ac_cv_use_coldlg"
6753 if test "$no_cache" != 1; then
6754 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6755 fi
6756
6757 if test "$wxUSE_COLOURDLG" = yes; then
6758 echo "$ac_t""yes" 1>&6
6759 else
6760 echo "$ac_t""no" 1>&6
6761 fi
6762
6763
6764 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
77e13408 6765echo "configure:6766: checking for --enable-filedlg" >&5
1e6feb95
VZ
6766 no_cache=0
6767 # Check whether --enable-filedlg or --disable-filedlg was given.
6768if test "${enable_filedlg+set}" = set; then
6769 enableval="$enable_filedlg"
6770
6771 if test "$enableval" = yes; then
6772 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6773 else
6774 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6775 fi
6776
6777else
6778
6779 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6780 if test "x$LINE" != x ; then
6781 eval "DEFAULT_$LINE"
6782 else
6783 no_cache=1
6784 fi
6785
6786 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6787
6788fi
6789
6790
6791 eval "$ac_cv_use_filedlg"
6792 if test "$no_cache" != 1; then
6793 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6794 fi
6795
6796 if test "$wxUSE_FILEDLG" = yes; then
6797 echo "$ac_t""yes" 1>&6
6798 else
6799 echo "$ac_t""no" 1>&6
6800 fi
6801
6802
8db37e06 6803 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
77e13408 6804echo "configure:6805: checking for --enable-filedlg" >&5
8db37e06
VZ
6805 no_cache=0
6806 # Check whether --enable-filedlg or --disable-filedlg was given.
6807if test "${enable_filedlg+set}" = set; then
6808 enableval="$enable_filedlg"
6809
6810 if test "$enableval" = yes; then
6811 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6812 else
6813 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6814 fi
6815
6816else
6817
6818 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6819 if test "x$LINE" != x ; then
6820 eval "DEFAULT_$LINE"
6821 else
6822 no_cache=1
6823 fi
6824
6825 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6826
6827fi
6828
6829
6830 eval "$ac_cv_use_filedlg"
6831 if test "$no_cache" != 1; then
6832 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6833 fi
6834
6835 if test "$wxUSE_FINDREPLDLG" = yes; then
6836 echo "$ac_t""yes" 1>&6
6837 else
6838 echo "$ac_t""no" 1>&6
6839 fi
6840
6841
1e6feb95 6842 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
77e13408 6843echo "configure:6844: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6844 no_cache=0
6845 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6846if test "${enable_fontdlg+set}" = set; then
6847 enableval="$enable_fontdlg"
6848
6849 if test "$enableval" = yes; then
6850 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6851 else
6852 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6853 fi
6854
6855else
6856
6857 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6858 if test "x$LINE" != x ; then
6859 eval "DEFAULT_$LINE"
6860 else
6861 no_cache=1
6862 fi
6863
6864 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6865
6866fi
6867
6868
6869 eval "$ac_cv_use_fontdlg"
6870 if test "$no_cache" != 1; then
6871 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6872 fi
6873
6874 if test "$wxUSE_FONTDLG" = yes; then
6875 echo "$ac_t""yes" 1>&6
6876 else
6877 echo "$ac_t""no" 1>&6
6878 fi
6879
6880
6881 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
77e13408 6882echo "configure:6883: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6883 no_cache=0
6884 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6885if test "${enable_dirdlg+set}" = set; then
6886 enableval="$enable_dirdlg"
6887
6888 if test "$enableval" = yes; then
6889 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6890 else
6891 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6892 fi
6893
6894else
6895
6896 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6897 if test "x$LINE" != x ; then
6898 eval "DEFAULT_$LINE"
6899 else
6900 no_cache=1
6901 fi
6902
6903 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6904
6905fi
6906
6907
6908 eval "$ac_cv_use_dirdlg"
10f2d63a 6909 if test "$no_cache" != 1; then
1e6feb95 6910 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6911 fi
6912
1e6feb95 6913 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6914 echo "$ac_t""yes" 1>&6
10f2d63a 6915 else
698dcdb6 6916 echo "$ac_t""no" 1>&6
10f2d63a 6917 fi
698dcdb6
VZ
6918
6919
1e6feb95 6920 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
77e13408 6921echo "configure:6922: checking for --enable-msgdlg" >&5
10f2d63a 6922 no_cache=0
1e6feb95
VZ
6923 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6924if test "${enable_msgdlg+set}" = set; then
6925 enableval="$enable_msgdlg"
698dcdb6 6926
10f2d63a 6927 if test "$enableval" = yes; then
1e6feb95 6928 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6929 else
1e6feb95 6930 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6931 fi
698dcdb6 6932
10f2d63a 6933else
698dcdb6 6934
1e6feb95 6935 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6936 if test "x$LINE" != x ; then
6937 eval "DEFAULT_$LINE"
6938 else
6939 no_cache=1
6940 fi
6941
1e6feb95 6942 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6943
6944fi
10f2d63a
VZ
6945
6946
1e6feb95 6947 eval "$ac_cv_use_msgdlg"
10f2d63a 6948 if test "$no_cache" != 1; then
1e6feb95 6949 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6950 fi
6951
1e6feb95 6952 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6953 echo "$ac_t""yes" 1>&6
10f2d63a 6954 else
698dcdb6 6955 echo "$ac_t""no" 1>&6
10f2d63a 6956 fi
698dcdb6 6957
10f2d63a 6958
1e6feb95 6959 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
77e13408 6960echo "configure:6961: checking for --enable-numberdlg" >&5
10f2d63a 6961 no_cache=0
1e6feb95
VZ
6962 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6963if test "${enable_numberdlg+set}" = set; then
6964 enableval="$enable_numberdlg"
698dcdb6 6965
10f2d63a 6966 if test "$enableval" = yes; then
1e6feb95 6967 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6968 else
1e6feb95 6969 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6970 fi
698dcdb6 6971
10f2d63a 6972else
698dcdb6 6973
1e6feb95 6974 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6975 if test "x$LINE" != x ; then
6976 eval "DEFAULT_$LINE"
6977 else
6978 no_cache=1
6979 fi
6980
1e6feb95 6981 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6982
6983fi
10f2d63a
VZ
6984
6985
1e6feb95 6986 eval "$ac_cv_use_numberdlg"
10f2d63a 6987 if test "$no_cache" != 1; then
1e6feb95 6988 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6989 fi
6990
1e6feb95 6991 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6992 echo "$ac_t""yes" 1>&6
10f2d63a 6993 else
698dcdb6 6994 echo "$ac_t""no" 1>&6
10f2d63a 6995 fi
698dcdb6 6996
10f2d63a 6997
cbca9943 6998 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
77e13408 6999echo "configure:7000: checking for --enable-splash" >&5
cbca9943
VZ
7000 no_cache=0
7001 # Check whether --enable-splash or --disable-splash was given.
7002if test "${enable_splash+set}" = set; then
7003 enableval="$enable_splash"
7004
7005 if test "$enableval" = yes; then
7006 ac_cv_use_splash='wxUSE_SPLASH=yes'
7007 else
7008 ac_cv_use_splash='wxUSE_SPLASH=no'
7009 fi
7010
7011else
7012
7013 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7014 if test "x$LINE" != x ; then
7015 eval "DEFAULT_$LINE"
7016 else
7017 no_cache=1
7018 fi
7019
7020 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7021
7022fi
7023
7024
7025 eval "$ac_cv_use_splash"
7026 if test "$no_cache" != 1; then
7027 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7028 fi
7029
7030 if test "$wxUSE_SPLASH" = yes; then
7031 echo "$ac_t""yes" 1>&6
7032 else
7033 echo "$ac_t""no" 1>&6
7034 fi
7035
7036
698dcdb6 7037 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
77e13408 7038echo "configure:7039: checking for --enable-textdlg" >&5
10f2d63a
VZ
7039 no_cache=0
7040 # Check whether --enable-textdlg or --disable-textdlg was given.
7041if test "${enable_textdlg+set}" = set; then
7042 enableval="$enable_textdlg"
698dcdb6 7043
10f2d63a
VZ
7044 if test "$enableval" = yes; then
7045 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7046 else
7047 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7048 fi
698dcdb6 7049
10f2d63a 7050else
698dcdb6 7051
10f2d63a
VZ
7052 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7053 if test "x$LINE" != x ; then
7054 eval "DEFAULT_$LINE"
7055 else
7056 no_cache=1
7057 fi
7058
7059 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7060
7061fi
10f2d63a
VZ
7062
7063
7064 eval "$ac_cv_use_textdlg"
7065 if test "$no_cache" != 1; then
7066 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7067 fi
7068
7069 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7070 echo "$ac_t""yes" 1>&6
10f2d63a 7071 else
698dcdb6 7072 echo "$ac_t""no" 1>&6
10f2d63a 7073 fi
698dcdb6 7074
10f2d63a 7075
698dcdb6 7076 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
77e13408 7077echo "configure:7078: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7078 no_cache=0
7079 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7080if test "${enable_tipdlg+set}" = set; then
7081 enableval="$enable_tipdlg"
698dcdb6 7082
10f2d63a
VZ
7083 if test "$enableval" = yes; then
7084 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7085 else
7086 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7087 fi
698dcdb6 7088
10f2d63a 7089else
698dcdb6 7090
10f2d63a
VZ
7091 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7092 if test "x$LINE" != x ; then
7093 eval "DEFAULT_$LINE"
7094 else
7095 no_cache=1
7096 fi
7097
7098 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7099
7100fi
10f2d63a
VZ
7101
7102
7103 eval "$ac_cv_use_tipdlg"
7104 if test "$no_cache" != 1; then
7105 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7106 fi
7107
7108 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7109 echo "$ac_t""yes" 1>&6
10f2d63a 7110 else
698dcdb6 7111 echo "$ac_t""no" 1>&6
10f2d63a 7112 fi
698dcdb6 7113
10f2d63a 7114
698dcdb6 7115 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
77e13408 7116echo "configure:7117: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7117 no_cache=0
7118 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7119if test "${enable_progressdlg+set}" = set; then
7120 enableval="$enable_progressdlg"
698dcdb6 7121
10f2d63a
VZ
7122 if test "$enableval" = yes; then
7123 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7124 else
7125 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7126 fi
698dcdb6 7127
10f2d63a 7128else
698dcdb6 7129
10f2d63a
VZ
7130 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7131 if test "x$LINE" != x ; then
7132 eval "DEFAULT_$LINE"
7133 else
7134 no_cache=1
7135 fi
7136
7137 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7138
7139fi
10f2d63a
VZ
7140
7141
7142 eval "$ac_cv_use_progressdlg"
7143 if test "$no_cache" != 1; then
7144 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7145 fi
7146
7147 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7148 echo "$ac_t""yes" 1>&6
10f2d63a 7149 else
698dcdb6 7150 echo "$ac_t""no" 1>&6
10f2d63a 7151 fi
698dcdb6 7152
10f2d63a 7153
b1f5d087 7154 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
77e13408 7155echo "configure:7156: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7156 no_cache=0
7157 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7158if test "${enable_wizarddlg+set}" = set; then
7159 enableval="$enable_wizarddlg"
7160
7161 if test "$enableval" = yes; then
7162 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7163 else
7164 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7165 fi
7166
7167else
7168
7169 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7170 if test "x$LINE" != x ; then
7171 eval "DEFAULT_$LINE"
7172 else
7173 no_cache=1
7174 fi
7175
7176 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7177
7178fi
7179
7180
7181 eval "$ac_cv_use_wizarddlg"
7182 if test "$no_cache" != 1; then
7183 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7184 fi
7185
7186 if test "$wxUSE_WIZARDDLG" = yes; then
7187 echo "$ac_t""yes" 1>&6
7188 else
7189 echo "$ac_t""no" 1>&6
7190 fi
7191
7192
7193
7194
1e6feb95 7195 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
77e13408 7196echo "configure:7197: checking for --enable-menus" >&5
1e6feb95
VZ
7197 no_cache=0
7198 # Check whether --enable-menus or --disable-menus was given.
7199if test "${enable_menus+set}" = set; then
7200 enableval="$enable_menus"
7201
7202 if test "$enableval" = yes; then
7203 ac_cv_use_menus='wxUSE_MENUS=yes'
7204 else
7205 ac_cv_use_menus='wxUSE_MENUS=no'
7206 fi
7207
7208else
7209
7210 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7211 if test "x$LINE" != x ; then
7212 eval "DEFAULT_$LINE"
7213 else
7214 no_cache=1
7215 fi
7216
7217 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7218
7219fi
7220
7221
7222 eval "$ac_cv_use_menus"
7223 if test "$no_cache" != 1; then
7224 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7225 fi
7226
7227 if test "$wxUSE_MENUS" = yes; then
7228 echo "$ac_t""yes" 1>&6
7229 else
7230 echo "$ac_t""no" 1>&6
7231 fi
7232
7233
698dcdb6 7234 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
77e13408 7235echo "configure:7236: checking for --enable-miniframe" >&5
10f2d63a
VZ
7236 no_cache=0
7237 # Check whether --enable-miniframe or --disable-miniframe was given.
7238if test "${enable_miniframe+set}" = set; then
7239 enableval="$enable_miniframe"
698dcdb6 7240
10f2d63a
VZ
7241 if test "$enableval" = yes; then
7242 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7243 else
7244 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7245 fi
698dcdb6 7246
10f2d63a 7247else
698dcdb6 7248
10f2d63a
VZ
7249 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7250 if test "x$LINE" != x ; then
7251 eval "DEFAULT_$LINE"
7252 else
7253 no_cache=1
7254 fi
7255
7256 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7257
7258fi
10f2d63a
VZ
7259
7260
7261 eval "$ac_cv_use_miniframe"
7262 if test "$no_cache" != 1; then
7263 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7264 fi
7265
7266 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7267 echo "$ac_t""yes" 1>&6
10f2d63a 7268 else
698dcdb6 7269 echo "$ac_t""no" 1>&6
10f2d63a 7270 fi
698dcdb6 7271
10f2d63a 7272
698dcdb6 7273 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
77e13408 7274echo "configure:7275: checking for --enable-tooltips" >&5
10f2d63a
VZ
7275 no_cache=0
7276 # Check whether --enable-tooltips or --disable-tooltips was given.
7277if test "${enable_tooltips+set}" = set; then
7278 enableval="$enable_tooltips"
698dcdb6 7279
10f2d63a
VZ
7280 if test "$enableval" = yes; then
7281 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7282 else
7283 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7284 fi
698dcdb6 7285
10f2d63a 7286else
698dcdb6 7287
10f2d63a
VZ
7288 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7289 if test "x$LINE" != x ; then
7290 eval "DEFAULT_$LINE"
7291 else
7292 no_cache=1
7293 fi
7294
7295 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7296
7297fi
10f2d63a
VZ
7298
7299
7300 eval "$ac_cv_use_tooltips"
7301 if test "$no_cache" != 1; then
7302 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7303 fi
7304
7305 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7306 echo "$ac_t""yes" 1>&6
10f2d63a 7307 else
698dcdb6 7308 echo "$ac_t""no" 1>&6
10f2d63a 7309 fi
698dcdb6 7310
10f2d63a 7311
698dcdb6 7312 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
77e13408 7313echo "configure:7314: checking for --enable-splines" >&5
10f2d63a
VZ
7314 no_cache=0
7315 # Check whether --enable-splines or --disable-splines was given.
7316if test "${enable_splines+set}" = set; then
7317 enableval="$enable_splines"
698dcdb6 7318
10f2d63a
VZ
7319 if test "$enableval" = yes; then
7320 ac_cv_use_splines='wxUSE_SPLINES=yes'
7321 else
7322 ac_cv_use_splines='wxUSE_SPLINES=no'
7323 fi
698dcdb6 7324
10f2d63a 7325else
698dcdb6 7326
10f2d63a
VZ
7327 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7328 if test "x$LINE" != x ; then
7329 eval "DEFAULT_$LINE"
7330 else
7331 no_cache=1
7332 fi
7333
7334 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7335
7336fi
10f2d63a
VZ
7337
7338
7339 eval "$ac_cv_use_splines"
7340 if test "$no_cache" != 1; then
7341 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7342 fi
7343
7344 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7345 echo "$ac_t""yes" 1>&6
10f2d63a 7346 else
698dcdb6 7347 echo "$ac_t""no" 1>&6
10f2d63a 7348 fi
698dcdb6 7349
10f2d63a 7350
698dcdb6 7351 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
77e13408 7352echo "configure:7353: checking for --enable-validators" >&5
10f2d63a
VZ
7353 no_cache=0
7354 # Check whether --enable-validators or --disable-validators was given.
7355if test "${enable_validators+set}" = set; then
7356 enableval="$enable_validators"
698dcdb6 7357
10f2d63a
VZ
7358 if test "$enableval" = yes; then
7359 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7360 else
7361 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7362 fi
698dcdb6 7363
10f2d63a 7364else
698dcdb6 7365
10f2d63a
VZ
7366 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7367 if test "x$LINE" != x ; then
7368 eval "DEFAULT_$LINE"
7369 else
7370 no_cache=1
7371 fi
7372
7373 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7374
7375fi
10f2d63a
VZ
7376
7377
7378 eval "$ac_cv_use_validators"
7379 if test "$no_cache" != 1; then
7380 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7381 fi
7382
7383 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7384 echo "$ac_t""yes" 1>&6
10f2d63a 7385 else
698dcdb6 7386 echo "$ac_t""no" 1>&6
10f2d63a 7387 fi
698dcdb6 7388
10f2d63a 7389
698dcdb6 7390 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
77e13408 7391echo "configure:7392: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7392 no_cache=0
7393 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7394if test "${enable_busyinfo+set}" = set; then
7395 enableval="$enable_busyinfo"
698dcdb6 7396
10f2d63a
VZ
7397 if test "$enableval" = yes; then
7398 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7399 else
7400 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7401 fi
698dcdb6 7402
10f2d63a 7403else
698dcdb6 7404
10f2d63a
VZ
7405 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7406 if test "x$LINE" != x ; then
7407 eval "DEFAULT_$LINE"
7408 else
7409 no_cache=1
7410 fi
7411
7412 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7413
7414fi
10f2d63a
VZ
7415
7416
7417 eval "$ac_cv_use_busyinfo"
7418 if test "$no_cache" != 1; then
7419 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7420 fi
7421
7422 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7423 echo "$ac_t""yes" 1>&6
10f2d63a 7424 else
698dcdb6 7425 echo "$ac_t""no" 1>&6
10f2d63a 7426 fi
698dcdb6 7427
10f2d63a 7428
698dcdb6 7429 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
77e13408 7430echo "configure:7431: checking for --enable-joystick" >&5
f6bcfd97
BP
7431 no_cache=0
7432 # Check whether --enable-joystick or --disable-joystick was given.
7433if test "${enable_joystick+set}" = set; then
7434 enableval="$enable_joystick"
698dcdb6 7435
f6bcfd97
BP
7436 if test "$enableval" = yes; then
7437 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7438 else
7439 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7440 fi
698dcdb6 7441
f6bcfd97 7442else
698dcdb6 7443
f6bcfd97
BP
7444 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7445 if test "x$LINE" != x ; then
7446 eval "DEFAULT_$LINE"
7447 else
7448 no_cache=1
7449 fi
7450
7451 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7452
7453fi
f6bcfd97
BP
7454
7455
7456 eval "$ac_cv_use_joystick"
7457 if test "$no_cache" != 1; then
7458 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7459 fi
7460
7461 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7462 echo "$ac_t""yes" 1>&6
f6bcfd97 7463 else
698dcdb6 7464 echo "$ac_t""no" 1>&6
f6bcfd97 7465 fi
698dcdb6
VZ
7466
7467
1e6feb95 7468 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
77e13408 7469echo "configure:7470: checking for --enable-metafile" >&5
1e6feb95
VZ
7470 no_cache=0
7471 # Check whether --enable-metafile or --disable-metafile was given.
7472if test "${enable_metafile+set}" = set; then
7473 enableval="$enable_metafile"
7474
7475 if test "$enableval" = yes; then
7476 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7477 else
7478 ac_cv_use_metafile='wxUSE_METAFILE=no'
7479 fi
7480
7481else
7482
7483 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7484 if test "x$LINE" != x ; then
7485 eval "DEFAULT_$LINE"
7486 else
7487 no_cache=1
7488 fi
7489
7490 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7491
7492fi
7493
7494
7495 eval "$ac_cv_use_metafile"
7496 if test "$no_cache" != 1; then
7497 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7498 fi
7499
7500 if test "$wxUSE_METAFILE" = yes; then
7501 echo "$ac_t""yes" 1>&6
7502 else
7503 echo "$ac_t""no" 1>&6
7504 fi
7505
7506
24fd6d87 7507 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
77e13408 7508echo "configure:7509: checking for --enable-dragimage" >&5
24fd6d87
VZ
7509 no_cache=0
7510 # Check whether --enable-dragimage or --disable-dragimage was given.
7511if test "${enable_dragimage+set}" = set; then
7512 enableval="$enable_dragimage"
7513
7514 if test "$enableval" = yes; then
7515 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7516 else
7517 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7518 fi
7519
7520else
7521
7522 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7523 if test "x$LINE" != x ; then
7524 eval "DEFAULT_$LINE"
7525 else
7526 no_cache=1
7527 fi
7528
7529 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7530
7531fi
7532
7533
7534 eval "$ac_cv_use_dragimage"
7535 if test "$no_cache" != 1; then
7536 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7537 fi
7538
7539 if test "$wxUSE_DRAGIMAGE" = yes; then
7540 echo "$ac_t""yes" 1>&6
7541 else
7542 echo "$ac_t""no" 1>&6
7543 fi
7544
7545
10f2d63a 7546
698dcdb6 7547
edae8572 7548 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
77e13408 7549echo "configure:7550: checking for --enable-palette" >&5
edae8572
VZ
7550 no_cache=0
7551 # Check whether --enable-palette or --disable-palette was given.
7552if test "${enable_palette+set}" = set; then
7553 enableval="$enable_palette"
7554
7555 if test "$enableval" = yes; then
7556 ac_cv_use_palette='wxUSE_PALETTE=yes'
7557 else
7558 ac_cv_use_palette='wxUSE_PALETTE=no'
7559 fi
7560
7561else
7562
7563 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7564 if test "x$LINE" != x ; then
7565 eval "DEFAULT_$LINE"
7566 else
7567 no_cache=1
7568 fi
7569
7570 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7571
7572fi
7573
7574
7575 eval "$ac_cv_use_palette"
7576 if test "$no_cache" != 1; then
7577 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7578 fi
7579
7580 if test "$wxUSE_PALETTE" = yes; then
7581 echo "$ac_t""yes" 1>&6
7582 else
7583 echo "$ac_t""no" 1>&6
7584 fi
7585
7586
698dcdb6 7587 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
77e13408 7588echo "configure:7589: checking for --enable-image" >&5
0046ff7c
VS
7589 no_cache=0
7590 # Check whether --enable-image or --disable-image was given.
7591if test "${enable_image+set}" = set; then
7592 enableval="$enable_image"
698dcdb6 7593
0046ff7c
VS
7594 if test "$enableval" = yes; then
7595 ac_cv_use_image='wxUSE_IMAGE=yes'
7596 else
7597 ac_cv_use_image='wxUSE_IMAGE=no'
7598 fi
698dcdb6 7599
0046ff7c 7600else
698dcdb6 7601
0046ff7c
VS
7602 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7603 if test "x$LINE" != x ; then
7604 eval "DEFAULT_$LINE"
7605 else
7606 no_cache=1
7607 fi
7608
7609 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7610
7611fi
0046ff7c
VS
7612
7613
7614 eval "$ac_cv_use_image"
7615 if test "$no_cache" != 1; then
7616 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7617 fi
7618
7619 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7620 echo "$ac_t""yes" 1>&6
0046ff7c 7621 else
698dcdb6 7622 echo "$ac_t""no" 1>&6
0046ff7c 7623 fi
698dcdb6 7624
0046ff7c 7625
698dcdb6 7626 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
77e13408 7627echo "configure:7628: checking for --enable-gif" >&5
10f2d63a
VZ
7628 no_cache=0
7629 # Check whether --enable-gif or --disable-gif was given.
7630if test "${enable_gif+set}" = set; then
7631 enableval="$enable_gif"
698dcdb6 7632
10f2d63a
VZ
7633 if test "$enableval" = yes; then
7634 ac_cv_use_gif='wxUSE_GIF=yes'
7635 else
7636 ac_cv_use_gif='wxUSE_GIF=no'
7637 fi
698dcdb6 7638
10f2d63a 7639else
698dcdb6 7640
10f2d63a
VZ
7641 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7642 if test "x$LINE" != x ; then
7643 eval "DEFAULT_$LINE"
7644 else
7645 no_cache=1
7646 fi
7647
7648 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7649
7650fi
10f2d63a
VZ
7651
7652
7653 eval "$ac_cv_use_gif"
7654 if test "$no_cache" != 1; then
7655 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7656 fi
7657
7658 if test "$wxUSE_GIF" = yes; then
698dcdb6 7659 echo "$ac_t""yes" 1>&6
10f2d63a 7660 else
698dcdb6 7661 echo "$ac_t""no" 1>&6
10f2d63a 7662 fi
698dcdb6 7663
10f2d63a 7664
698dcdb6 7665 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
77e13408 7666echo "configure:7667: checking for --enable-pcx" >&5
10f2d63a
VZ
7667 no_cache=0
7668 # Check whether --enable-pcx or --disable-pcx was given.
7669if test "${enable_pcx+set}" = set; then
7670 enableval="$enable_pcx"
698dcdb6 7671
10f2d63a
VZ
7672 if test "$enableval" = yes; then
7673 ac_cv_use_pcx='wxUSE_PCX=yes'
7674 else
7675 ac_cv_use_pcx='wxUSE_PCX=no'
7676 fi
698dcdb6 7677
10f2d63a 7678else
698dcdb6 7679
10f2d63a
VZ
7680 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7681 if test "x$LINE" != x ; then
7682 eval "DEFAULT_$LINE"
7683 else
7684 no_cache=1
7685 fi
7686
7687 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7688
7689fi
10f2d63a
VZ
7690
7691
7692 eval "$ac_cv_use_pcx"
7693 if test "$no_cache" != 1; then
7694 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7695 fi
7696
7697 if test "$wxUSE_PCX" = yes; then
698dcdb6 7698 echo "$ac_t""yes" 1>&6
10f2d63a 7699 else
698dcdb6 7700 echo "$ac_t""no" 1>&6
10f2d63a 7701 fi
698dcdb6 7702
10f2d63a 7703
698dcdb6 7704 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
77e13408 7705echo "configure:7706: checking for --enable-pnm" >&5
10f2d63a
VZ
7706 no_cache=0
7707 # Check whether --enable-pnm or --disable-pnm was given.
7708if test "${enable_pnm+set}" = set; then
7709 enableval="$enable_pnm"
698dcdb6 7710
10f2d63a
VZ
7711 if test "$enableval" = yes; then
7712 ac_cv_use_pnm='wxUSE_PNM=yes'
7713 else
7714 ac_cv_use_pnm='wxUSE_PNM=no'
7715 fi
698dcdb6 7716
10f2d63a 7717else
698dcdb6 7718
10f2d63a
VZ
7719 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7720 if test "x$LINE" != x ; then
7721 eval "DEFAULT_$LINE"
7722 else
7723 no_cache=1
7724 fi
7725
7726 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7727
7728fi
10f2d63a
VZ
7729
7730
7731 eval "$ac_cv_use_pnm"
7732 if test "$no_cache" != 1; then
7733 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7734 fi
7735
7736 if test "$wxUSE_PNM" = yes; then
698dcdb6 7737 echo "$ac_t""yes" 1>&6
10f2d63a 7738 else
698dcdb6 7739 echo "$ac_t""no" 1>&6
10f2d63a 7740 fi
698dcdb6 7741
10f2d63a 7742
698dcdb6 7743 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
77e13408 7744echo "configure:7745: checking for --enable-pnm" >&5
0046ff7c
VS
7745 no_cache=0
7746 # Check whether --enable-pnm or --disable-pnm was given.
7747if test "${enable_pnm+set}" = set; then
7748 enableval="$enable_pnm"
698dcdb6 7749
0046ff7c
VS
7750 if test "$enableval" = yes; then
7751 ac_cv_use_pnm='wxUSE_XPM=yes'
7752 else
7753 ac_cv_use_pnm='wxUSE_XPM=no'
7754 fi
698dcdb6 7755
0046ff7c 7756else
698dcdb6 7757
0046ff7c
VS
7758 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7759 if test "x$LINE" != x ; then
7760 eval "DEFAULT_$LINE"
7761 else
7762 no_cache=1
7763 fi
7764
7765 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7766
7767fi
0046ff7c
VS
7768
7769
7770 eval "$ac_cv_use_pnm"
7771 if test "$no_cache" != 1; then
7772 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7773 fi
7774
7775 if test "$wxUSE_XPM" = yes; then
698dcdb6 7776 echo "$ac_t""yes" 1>&6
0046ff7c 7777 else
698dcdb6 7778 echo "$ac_t""no" 1>&6
0046ff7c 7779 fi
698dcdb6 7780
0046ff7c 7781
b12915c1
VZ
7782fi
7783
698dcdb6 7784
10f2d63a
VZ
7785 echo "saving argument cache $wx_arg_cache_file"
7786 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7787
10f2d63a 7788
698dcdb6
VZ
7789
7790echo $ac_n "checking for toolkit""... $ac_c" 1>&6
77e13408 7791echo "configure:7792: checking for toolkit" >&5
10f2d63a
VZ
7792
7793if test "$wxUSE_GUI" = "yes"; then
7794
3a922bb4
RL
7795 if test "$USE_BEOS" = 1; then
7796 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7797 fi
b12915c1 7798
3a922bb4
RL
7799 if test "$TOOLKIT_GIVEN" = 1; then
7800 for toolkit in `echo $ALL_TOOLKITS`; do
7801 var=wxUSE_$toolkit
7802 eval "value=\$${var}"
7803 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7804 done
10f2d63a 7805 else
3a922bb4
RL
7806 for toolkit in `echo $ALL_TOOLKITS`; do
7807 if test "$has_toolkit_in_cache" != 1; then
7808 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7809 else
7810 var=DEFAULT_wxUSE_$toolkit
7811 fi
7812 eval "wxUSE_$toolkit=\$${var}"
7813 done
10f2d63a 7814 fi
10f2d63a 7815
3a922bb4 7816 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
77e13408 7817 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0}`
10f2d63a 7818
3a922bb4 7819 case "${host}" in
6fa882bd 7820 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4
RL
7821 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7822 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7823 LEX_STEM="lexyy"
7824 ;;
7825 *)
7826 PATH_IFS=':'
7827 LEX_STEM="lex.yy"
7828 ;;
7829 esac
10f2d63a 7830
3a922bb4
RL
7831 case "$NUM_TOOLKITS" in
7832 1)
7833 ;;
7834 0)
7835 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7836 ;;
7837 *)
7838 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7839 esac
10f2d63a 7840
3a922bb4
RL
7841 for toolkit in `echo $ALL_TOOLKITS`; do
7842 var=wxUSE_$toolkit
7843 eval "value=\$${var}"
7844 if test "x$value" != x; then
7845 cache_var=CACHE_$toolkit
7846 eval "cache=\$${cache_var}"
7847 if test "$cache" = 1; then
7848 echo "$var=$value" >> ${wx_arg_cache_file}
7849 fi
7850 if test "$value" = 1; then
7851 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7852 echo "$ac_t""$toolkit_echo" 1>&6
7853 fi
7854 fi
7855 done
10f2d63a 7856else
cf27ef00 7857 PATH_IFS=':'
3a922bb4 7858 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
7859fi
7860
698dcdb6
VZ
7861
7862cat > confcache <<\EOF
10f2d63a
VZ
7863# This file is a shell script that caches the results of configure
7864# tests run on this system so they can be shared between configure
698dcdb6
VZ
7865# scripts and configure runs. It is not useful on other systems.
7866# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7867#
698dcdb6
VZ
7868# By default, configure uses ./config.cache as the cache file,
7869# creating it if it does not exist already. You can give configure
7870# the --cache-file=FILE option to use a different cache file; that is
7871# what configure does when it calls configure scripts in
7872# subdirectories, so they share the cache.
7873# Giving --cache-file=/dev/null disables caching, for debugging configure.
7874# config.status only pays attention to the cache file if you give it the
7875# --recheck option to rerun configure.
10f2d63a 7876#
698dcdb6 7877EOF
10f2d63a
VZ
7878# The following way of writing the cache mishandles newlines in values,
7879# but we know of no workaround that is simple, portable, and efficient.
7880# So, don't put newlines in cache variables' values.
7881# Ultrix sh set writes to stderr and can't be redirected directly,
7882# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7883(set) 2>&1 |
7884 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7885 *ac_space=\ *)
7886 # `set' does not quote correctly, so add quotes (double-quote substitution
7887 # turns \\\\ into \\, and sed turns \\ into \).
7888 sed -n \
7889 -e "s/'/'\\\\''/g" \
7890 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7891 ;;
7892 *)
7893 # `set' quotes correctly as required by POSIX, so do not add quotes.
7894 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7895 ;;
7896 esac >> confcache
7897if cmp -s $cache_file confcache; then
7898 :
7899else
10f2d63a 7900 if test -w $cache_file; then
698dcdb6
VZ
7901 echo "updating cache $cache_file"
7902 cat confcache > $cache_file
10f2d63a
VZ
7903 else
7904 echo "not updating unwritable cache $cache_file"
7905 fi
7906fi
7907rm -f confcache
7908
698dcdb6 7909
e59890c3 7910if test "$build" != "$host" ; then
3a922bb4
RL
7911 if test "$USE_WIN32" = 1 ; then
7912 CC=$host_alias-gcc
7913 CXX=$host_alias-c++
7914 AR=$host_alias-ar
7915 RANLIB=$host_alias-ranlib
7916 DLLTOOL=$host_alias-dlltool
7917 RESCOMP=$host_alias-windres
7918 LD=$host_alias-ld
7919 NM=$host_alias-nm
7920 STRIP=$host_alias-strip
7921 else
7922 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
7923 fi
10f2d63a
VZ
7924fi
7925
698dcdb6 7926# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7927set dummy gcc; ac_word=$2
698dcdb6 7928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
77e13408 7929echo "configure:7930: checking for $ac_word" >&5
698dcdb6
VZ
7930if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7931 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7932else
7933 if test -n "$CC"; then
7934 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7935else
698dcdb6
VZ
7936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7937 ac_dummy="$PATH"
7938 for ac_dir in $ac_dummy; do
7939 test -z "$ac_dir" && ac_dir=.
7940 if test -f $ac_dir/$ac_word; then
7941 ac_cv_prog_CC="gcc"
7942 break
7943 fi
7944 done
7945 IFS="$ac_save_ifs"
10f2d63a 7946fi
6232543b 7947fi
698dcdb6 7948CC="$ac_cv_prog_CC"
6232543b 7949if test -n "$CC"; then
698dcdb6 7950 echo "$ac_t""$CC" 1>&6
1e487827 7951else
698dcdb6 7952 echo "$ac_t""no" 1>&6
1e487827 7953fi
6232543b 7954
1e487827
VS
7955if test -z "$CC"; then
7956 # Extract the first word of "cc", so it can be a program name with args.
7957set dummy cc; ac_word=$2
698dcdb6 7958echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
77e13408 7959echo "configure:7960: checking for $ac_word" >&5
698dcdb6
VZ
7960if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7961 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7962else
7963 if test -n "$CC"; then
7964 ac_cv_prog_CC="$CC" # Let the user override the test.
7965else
698dcdb6 7966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7967 ac_prog_rejected=no
698dcdb6
VZ
7968 ac_dummy="$PATH"
7969 for ac_dir in $ac_dummy; do
7970 test -z "$ac_dir" && ac_dir=.
7971 if test -f $ac_dir/$ac_word; then
7972 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7973 ac_prog_rejected=yes
7974 continue
7975 fi
7976 ac_cv_prog_CC="cc"
7977 break
7978 fi
7979 done
7980 IFS="$ac_save_ifs"
1e487827
VS
7981if test $ac_prog_rejected = yes; then
7982 # We found a bogon in the path, so make sure we never use it.
7983 set dummy $ac_cv_prog_CC
7984 shift
698dcdb6 7985 if test $# -gt 0; then
1e487827
VS
7986 # We chose a different compiler from the bogus one.
7987 # However, it has the same basename, so the bogon will be chosen
7988 # first if we set CC to just the basename; use the full file name.
7989 shift
698dcdb6 7990 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7991 shift
7992 ac_cv_prog_CC="$@"
703e0a69 7993 fi
1e487827
VS
7994fi
7995fi
7996fi
698dcdb6 7997CC="$ac_cv_prog_CC"
1e487827 7998if test -n "$CC"; then
698dcdb6 7999 echo "$ac_t""$CC" 1>&6
703e0a69 8000else
698dcdb6 8001 echo "$ac_t""no" 1>&6
703e0a69 8002fi
1e487827 8003
698dcdb6
VZ
8004 if test -z "$CC"; then
8005 case "`uname -s`" in
8006 *win32* | *WIN32*)
8007 # Extract the first word of "cl", so it can be a program name with args.
8008set dummy cl; ac_word=$2
8009echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
77e13408 8010echo "configure:8011: checking for $ac_word" >&5
698dcdb6
VZ
8011if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8012 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8013else
8014 if test -n "$CC"; then
8015 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8016else
698dcdb6
VZ
8017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8018 ac_dummy="$PATH"
8019 for ac_dir in $ac_dummy; do
8020 test -z "$ac_dir" && ac_dir=.
8021 if test -f $ac_dir/$ac_word; then
8022 ac_cv_prog_CC="cl"
8023 break
8024 fi
8025 done
8026 IFS="$ac_save_ifs"
703e0a69 8027fi
1e487827 8028fi
698dcdb6 8029CC="$ac_cv_prog_CC"
1e487827 8030if test -n "$CC"; then
698dcdb6 8031 echo "$ac_t""$CC" 1>&6
1e487827 8032else
698dcdb6 8033 echo "$ac_t""no" 1>&6
1e487827 8034fi
698dcdb6
VZ
8035 ;;
8036 esac
8037 fi
8038 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8039fi
8040
698dcdb6 8041echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
77e13408 8042echo "configure:8043: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8043
698dcdb6
VZ
8044ac_ext=c
8045# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8046ac_cpp='$CPP $CPPFLAGS'
8047ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8048ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8049cross_compiling=$ac_cv_prog_cc_cross
6232543b 8050
698dcdb6 8051cat > conftest.$ac_ext << EOF
1e487827 8052
77e13408 8053#line 8054 "configure"
1e487827
VS
8054#include "confdefs.h"
8055
698dcdb6
VZ
8056main(){return(0);}
8057EOF
77e13408 8058if { (eval echo configure:8059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8059 ac_cv_prog_cc_works=yes
8060 # If we can't run a trivial program, we are probably using a cross compiler.
8061 if (./conftest; exit) 2>/dev/null; then
8062 ac_cv_prog_cc_cross=no
8063 else
8064 ac_cv_prog_cc_cross=yes
8065 fi
8066else
8067 echo "configure: failed program was:" >&5
8068 cat conftest.$ac_ext >&5
8069 ac_cv_prog_cc_works=no
8070fi
8071rm -fr conftest*
8072ac_ext=c
8073# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8074ac_cpp='$CPP $CPPFLAGS'
8075ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8076ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8077cross_compiling=$ac_cv_prog_cc_cross
8078
8079echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8080if test $ac_cv_prog_cc_works = no; then
8081 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8082fi
8083echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
77e13408 8084echo "configure:8085: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8085echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8086cross_compiling=$ac_cv_prog_cc_cross
8087
8088echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
77e13408 8089echo "configure:8090: checking whether we are using GNU C" >&5
698dcdb6
VZ
8090if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8091 echo $ac_n "(cached) $ac_c" 1>&6
8092else
8093 cat > conftest.c <<EOF
8094#ifdef __GNUC__
8095 yes;
1e487827 8096#endif
698dcdb6 8097EOF
77e13408 8098if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8099 ac_cv_prog_gcc=yes
8100else
8101 ac_cv_prog_gcc=no
8102fi
8103fi
1e487827 8104
698dcdb6 8105echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8106
698dcdb6
VZ
8107if test $ac_cv_prog_gcc = yes; then
8108 GCC=yes
8109else
8110 GCC=
8111fi
1e487827 8112
698dcdb6
VZ
8113ac_test_CFLAGS="${CFLAGS+set}"
8114ac_save_CFLAGS="$CFLAGS"
8115CFLAGS=
8116echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
77e13408 8117echo "configure:8118: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8118if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8119 echo $ac_n "(cached) $ac_c" 1>&6
8120else
8121 echo 'void f(){}' > conftest.c
8122if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8123 ac_cv_prog_cc_g=yes
8124else
698dcdb6 8125 ac_cv_prog_cc_g=no
10f2d63a 8126fi
698dcdb6
VZ
8127rm -f conftest*
8128
10f2d63a 8129fi
698dcdb6
VZ
8130
8131echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8132if test "$ac_test_CFLAGS" = set; then
698dcdb6 8133 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8134elif test $ac_cv_prog_cc_g = yes; then
8135 if test "$GCC" = yes; then
8136 CFLAGS="-g -O2"
8137 else
8138 CFLAGS="-g"
8139 fi
8140else
8141 if test "$GCC" = yes; then
8142 CFLAGS="-O2"
8143 else
8144 CFLAGS=
8145 fi
8146fi
8147
8148
8149CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8150
698dcdb6 8151echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
77e13408 8152echo "configure:8153: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8153# On Suns, sometimes $CPP names a directory.
8154if test -n "$CPP" && test -d "$CPP"; then
8155 CPP=
8156fi
8157if test -z "$CPP"; then
698dcdb6
VZ
8158if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8159 echo $ac_n "(cached) $ac_c" 1>&6
8160else
8161 # This must be in double quotes, not single quotes, because CPP may get
8162 # substituted into the Makefile and "${CC-cc}" will confuse make.
8163 CPP="${CC-cc} -E"
10f2d63a 8164 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8165 # not just through cpp.
8166 cat > conftest.$ac_ext <<EOF
77e13408 8167#line 8168 "configure"
10f2d63a
VZ
8168#include "confdefs.h"
8169#include <assert.h>
698dcdb6
VZ
8170Syntax Error
8171EOF
8172ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
77e13408 8173{ (eval echo configure:8174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8174ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8175if test -z "$ac_err"; then
10f2d63a
VZ
8176 :
8177else
698dcdb6
VZ
8178 echo "$ac_err" >&5
8179 echo "configure: failed program was:" >&5
10f2d63a 8180 cat conftest.$ac_ext >&5
698dcdb6
VZ
8181 rm -rf conftest*
8182 CPP="${CC-cc} -E -traditional-cpp"
8183 cat > conftest.$ac_ext <<EOF
77e13408 8184#line 8185 "configure"
10f2d63a 8185#include "confdefs.h"
698dcdb6
VZ
8186#include <assert.h>
8187Syntax Error
8188EOF
8189ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
77e13408 8190{ (eval echo configure:8191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8191ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8192if test -z "$ac_err"; then
8193 :
10f2d63a 8194else
698dcdb6
VZ
8195 echo "$ac_err" >&5
8196 echo "configure: failed program was:" >&5
10f2d63a 8197 cat conftest.$ac_ext >&5
698dcdb6
VZ
8198 rm -rf conftest*
8199 CPP="${CC-cc} -nologo -E"
8200 cat > conftest.$ac_ext <<EOF
77e13408 8201#line 8202 "configure"
10f2d63a
VZ
8202#include "confdefs.h"
8203#include <assert.h>
698dcdb6
VZ
8204Syntax Error
8205EOF
8206ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
77e13408 8207{ (eval echo configure:8208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8208ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8209if test -z "$ac_err"; then
10f2d63a
VZ
8210 :
8211else
698dcdb6
VZ
8212 echo "$ac_err" >&5
8213 echo "configure: failed program was:" >&5
10f2d63a 8214 cat conftest.$ac_ext >&5
698dcdb6
VZ
8215 rm -rf conftest*
8216 CPP=/lib/cpp
10f2d63a 8217fi
698dcdb6 8218rm -f conftest*
10f2d63a 8219fi
698dcdb6 8220rm -f conftest*
703e0a69 8221fi
698dcdb6
VZ
8222rm -f conftest*
8223 ac_cv_prog_CPP="$CPP"
8224fi
8225 CPP="$ac_cv_prog_CPP"
10f2d63a 8226else
698dcdb6 8227 ac_cv_prog_CPP="$CPP"
10f2d63a 8228fi
698dcdb6 8229echo "$ac_t""$CPP" 1>&6
10f2d63a 8230
698dcdb6
VZ
8231if test $ac_cv_prog_gcc = yes; then
8232 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
77e13408 8233echo "configure:8234: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8234if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8235 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8236else
8237 ac_pattern="Autoconf.*'x'"
698dcdb6 8238 cat > conftest.$ac_ext <<EOF
77e13408 8239#line 8240 "configure"
10f2d63a
VZ
8240#include "confdefs.h"
8241#include <sgtty.h>
8242Autoconf TIOCGETP
698dcdb6 8243EOF
10f2d63a
VZ
8244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8245 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8246 rm -rf conftest*
10f2d63a
VZ
8247 ac_cv_prog_gcc_traditional=yes
8248else
698dcdb6 8249 rm -rf conftest*
10f2d63a
VZ
8250 ac_cv_prog_gcc_traditional=no
8251fi
8252rm -f conftest*
8253
698dcdb6 8254
10f2d63a 8255 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8256 cat > conftest.$ac_ext <<EOF
77e13408 8257#line 8258 "configure"
10f2d63a
VZ
8258#include "confdefs.h"
8259#include <termio.h>
8260Autoconf TCGETA
698dcdb6 8261EOF
10f2d63a
VZ
8262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8263 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8264 rm -rf conftest*
10f2d63a
VZ
8265 ac_cv_prog_gcc_traditional=yes
8266fi
8267rm -f conftest*
8268
8269 fi
8270fi
698dcdb6
VZ
8271
8272echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8273 if test $ac_cv_prog_gcc_traditional = yes; then
8274 CC="$CC -traditional"
8275 fi
8276fi
8277
703e0a69 8278
698dcdb6
VZ
8279
8280ac_ext=C
8281# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8282ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8283ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8284ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8285cross_compiling=$ac_cv_prog_cxx_cross
8286
8287
8288for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8289do
8290# Extract the first word of "$ac_prog", so it can be a program name with args.
8291set dummy $ac_prog; ac_word=$2
8292echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
77e13408 8293echo "configure:8294: checking for $ac_word" >&5
698dcdb6
VZ
8294if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8295 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8296else
8297 if test -n "$CXX"; then
8298 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8299else
698dcdb6
VZ
8300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8301 ac_dummy="$PATH"
8302 for ac_dir in $ac_dummy; do
8303 test -z "$ac_dir" && ac_dir=.
8304 if test -f $ac_dir/$ac_word; then
8305 ac_cv_prog_CXX="$ac_prog"
8306 break
8307 fi
8308 done
8309 IFS="$ac_save_ifs"
10f2d63a
VZ
8310fi
8311fi
698dcdb6 8312CXX="$ac_cv_prog_CXX"
10f2d63a 8313if test -n "$CXX"; then
698dcdb6 8314 echo "$ac_t""$CXX" 1>&6
10f2d63a 8315else
698dcdb6 8316 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8317fi
8318
698dcdb6 8319test -n "$CXX" && break
10f2d63a 8320done
698dcdb6 8321test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8322
8323
698dcdb6 8324echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
77e13408 8325echo "configure:8326: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8326
698dcdb6
VZ
8327ac_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
703e0a69 8333
698dcdb6
VZ
8334cat > conftest.$ac_ext << EOF
8335
77e13408 8336#line 8337 "configure"
10f2d63a
VZ
8337#include "confdefs.h"
8338
698dcdb6
VZ
8339int main(){return(0);}
8340EOF
77e13408 8341if { (eval echo configure:8342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8342 ac_cv_prog_cxx_works=yes
8343 # If we can't run a trivial program, we are probably using a cross compiler.
8344 if (./conftest; exit) 2>/dev/null; then
8345 ac_cv_prog_cxx_cross=no
8346 else
8347 ac_cv_prog_cxx_cross=yes
8348 fi
8349else
8350 echo "configure: failed program was:" >&5
8351 cat conftest.$ac_ext >&5
8352 ac_cv_prog_cxx_works=no
8353fi
8354rm -fr conftest*
8355ac_ext=C
8356# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8357ac_cpp='$CXXCPP $CPPFLAGS'
8358ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8359ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8360cross_compiling=$ac_cv_prog_cxx_cross
8361
8362echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8363if test $ac_cv_prog_cxx_works = no; then
8364 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8365fi
8366echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
77e13408 8367echo "configure:8368: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8368echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8369cross_compiling=$ac_cv_prog_cxx_cross
8370
8371echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
77e13408 8372echo "configure:8373: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8373if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8374 echo $ac_n "(cached) $ac_c" 1>&6
8375else
8376 cat > conftest.C <<EOF
8377#ifdef __GNUC__
8378 yes;
10f2d63a 8379#endif
698dcdb6 8380EOF
77e13408 8381if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8382 ac_cv_prog_gxx=yes
8383else
8384 ac_cv_prog_gxx=no
8385fi
8386fi
10f2d63a 8387
698dcdb6 8388echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8389
698dcdb6
VZ
8390if test $ac_cv_prog_gxx = yes; then
8391 GXX=yes
8392else
8393 GXX=
8394fi
10f2d63a 8395
698dcdb6
VZ
8396ac_test_CXXFLAGS="${CXXFLAGS+set}"
8397ac_save_CXXFLAGS="$CXXFLAGS"
8398CXXFLAGS=
8399echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
77e13408 8400echo "configure:8401: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8401if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8402 echo $ac_n "(cached) $ac_c" 1>&6
8403else
8404 echo 'void f(){}' > conftest.cc
8405if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8406 ac_cv_prog_cxx_g=yes
8407else
698dcdb6 8408 ac_cv_prog_cxx_g=no
10f2d63a 8409fi
698dcdb6
VZ
8410rm -f conftest*
8411
10f2d63a 8412fi
698dcdb6
VZ
8413
8414echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8415if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8416 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8417elif test $ac_cv_prog_cxx_g = yes; then
8418 if test "$GXX" = yes; then
8419 CXXFLAGS="-g -O2"
8420 else
8421 CXXFLAGS="-g"
8422 fi
8423else
8424 if test "$GXX" = yes; then
8425 CXXFLAGS="-O2"
8426 else
8427 CXXFLAGS=
8428 fi
8429fi
8430
8431
10f2d63a
VZ
8432CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8433
8434ac_ext=c
698dcdb6 8435# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8436ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8437ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8438ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8439cross_compiling=$ac_cv_prog_cc_cross
8440
8441
8442# Extract the first word of "ranlib", so it can be a program name with args.
8443set dummy ranlib; ac_word=$2
8444echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
77e13408 8445echo "configure:8446: checking for $ac_word" >&5
698dcdb6
VZ
8446if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8447 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8448else
8449 if test -n "$RANLIB"; then
8450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8451else
698dcdb6
VZ
8452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8453 ac_dummy="$PATH"
8454 for ac_dir in $ac_dummy; do
8455 test -z "$ac_dir" && ac_dir=.
8456 if test -f $ac_dir/$ac_word; then
8457 ac_cv_prog_RANLIB="ranlib"
8458 break
8459 fi
8460 done
8461 IFS="$ac_save_ifs"
8462 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8463fi
8464fi
698dcdb6 8465RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8466if test -n "$RANLIB"; then
698dcdb6 8467 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8468else
698dcdb6 8469 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8470fi
8471
8472
8473# Extract the first word of "ar", so it can be a program name with args.
8474set dummy ar; ac_word=$2
698dcdb6 8475echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
77e13408 8476echo "configure:8477: checking for $ac_word" >&5
698dcdb6
VZ
8477if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8478 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8479else
8480 if test -n "$AR"; then
8481 ac_cv_prog_AR="$AR" # Let the user override the test.
8482else
698dcdb6
VZ
8483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8484 ac_dummy="$PATH"
8485 for ac_dir in $ac_dummy; do
8486 test -z "$ac_dir" && ac_dir=.
8487 if test -f $ac_dir/$ac_word; then
8488 ac_cv_prog_AR="ar"
8489 break
8490 fi
8491 done
8492 IFS="$ac_save_ifs"
10f2d63a
VZ
8493 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8494fi
8495fi
698dcdb6 8496AR="$ac_cv_prog_AR"
10f2d63a 8497if test -n "$AR"; then
698dcdb6 8498 echo "$ac_t""$AR" 1>&6
10f2d63a 8499else
698dcdb6 8500 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8501fi
8502
698dcdb6 8503
6054113a 8504# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
8505# so one script is as good as another. But avoid the broken or
8506# incompatible versions:
8507# SysV /etc/install, /usr/sbin/install
8508# SunOS /usr/etc/install
8509# IRIX /sbin/install
8510# AIX /bin/install
8511# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8512# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8513# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8514# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8515echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6054113a 8516echo "configure:8517: checking for a BSD compatible install" >&5
10f2d63a 8517if test -z "$INSTALL"; then
698dcdb6
VZ
8518if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8519 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8520else
698dcdb6 8521 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8522 for ac_dir in $PATH; do
8523 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8524 case "$ac_dir/" in
8525 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8526 *)
8527 # OSF1 and SCO ODT 3.0 have their own names for install.
8528 # Don't use installbsd from OSF since it installs stuff as root
8529 # by default.
8530 for ac_prog in ginstall scoinst install; do
698dcdb6 8531 if test -f $ac_dir/$ac_prog; then
10f2d63a 8532 if test $ac_prog = install &&
698dcdb6 8533 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8534 # AIX install. It has an incompatible calling convention.
8535 :
8536 else
8537 ac_cv_path_install="$ac_dir/$ac_prog -c"
8538 break 2
8539 fi
8540 fi
8541 done
8542 ;;
8543 esac
8544 done
698dcdb6 8545 IFS="$ac_save_IFS"
10f2d63a
VZ
8546
8547fi
8548 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8549 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8550 else
8551 # As a last resort, use the slow shell script. We don't cache a
8552 # path for INSTALL within a source directory, because that will
8553 # break other packages using the cache if that directory is
8554 # removed, or if the path is relative.
698dcdb6 8555 INSTALL="$ac_install_sh"
10f2d63a
VZ
8556 fi
8557fi
698dcdb6 8558echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8559
8560# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8561# It thinks the first close brace ends the variable substitution.
8562test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8563
698dcdb6 8564test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8565
8566test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8567
6054113a
GD
8568case "${host}" in
8569
b5853384
GD
8570 powerpc-*-darwin* )
8571 INSTALL_PROGRAM="cp -p"
8572 INSTALL_DATA="cp -p"
6054113a
GD
8573 ;;
8574 *)
8575 ;;
d6853540 8576esac
698dcdb6 8577
10f2d63a
VZ
8578# Extract the first word of "strip", so it can be a program name with args.
8579set dummy strip; ac_word=$2
698dcdb6 8580echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6054113a 8581echo "configure:8582: checking for $ac_word" >&5
698dcdb6
VZ
8582if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8583 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8584else
8585 if test -n "$STRIP"; then
8586 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8587else
698dcdb6
VZ
8588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8589 ac_dummy="$PATH"
8590 for ac_dir in $ac_dummy; do
8591 test -z "$ac_dir" && ac_dir=.
8592 if test -f $ac_dir/$ac_word; then
8593 ac_cv_prog_STRIP="strip"
8594 break
8595 fi
8596 done
8597 IFS="$ac_save_ifs"
10f2d63a
VZ
8598 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8599fi
8600fi
698dcdb6 8601STRIP="$ac_cv_prog_STRIP"
10f2d63a 8602if test -n "$STRIP"; then
698dcdb6 8603 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8604else
698dcdb6 8605 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8606fi
8607
698dcdb6
VZ
8608
8609echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
6054113a 8610echo "configure:8611: checking make for VPATH support" >&5
10f2d63a
VZ
8611cat - << EOF > confMake
8612check : file
8613 cp \$? \$@
8614 cp \$? final_file
8615EOF
8616
8617if test ! -d sub ; then
8618 mkdir sub
8619fi
8620echo dummy > sub/file
f6bcfd97 8621${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8622RESULT=$?
8623rm -f sub/file check final_file confMake
8624rmdir sub
8625if test "$RESULT" = 0; then
698dcdb6 8626 echo "$ac_t""yes" 1>&6
10f2d63a 8627else
698dcdb6
VZ
8628 echo "$ac_t""no" 1>&6
8629 { echo "configure: error:
1e487827
VS
8630You need a make-utility that is able to use the variable
8631VPATH correctly.
8632If your version of make does not support VPATH correctly,
8633please install GNU-make (possibly as gmake), and start
8634configure with the following command:
8635export MAKE=gmake; ./configure for sh-type shells
8636setenv MAKE gmake; ./configure for csh-type shells
8637Also please do remember to use gmake in this case every time
8638you are trying to compile.
698dcdb6 8639" 1>&2; exit 1; }
10f2d63a
VZ
8640fi
8641
8642for ac_prog in 'bison -y' byacc
8643do
698dcdb6 8644# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8645set dummy $ac_prog; ac_word=$2
698dcdb6 8646echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6054113a 8647echo "configure:8648: checking for $ac_word" >&5
698dcdb6
VZ
8648if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8649 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8650else
8651 if test -n "$YACC"; then
8652 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8653else
698dcdb6
VZ
8654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8655 ac_dummy="$PATH"
8656 for ac_dir in $ac_dummy; do
8657 test -z "$ac_dir" && ac_dir=.
8658 if test -f $ac_dir/$ac_word; then
8659 ac_cv_prog_YACC="$ac_prog"
8660 break
8661 fi
8662 done
8663 IFS="$ac_save_ifs"
10f2d63a
VZ
8664fi
8665fi
698dcdb6 8666YACC="$ac_cv_prog_YACC"
10f2d63a 8667if test -n "$YACC"; then
698dcdb6 8668 echo "$ac_t""$YACC" 1>&6
10f2d63a 8669else
698dcdb6 8670 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8671fi
8672
698dcdb6 8673test -n "$YACC" && break
10f2d63a
VZ
8674done
8675test -n "$YACC" || YACC="yacc"
8676
698dcdb6
VZ
8677
8678# Extract the first word of "flex", so it can be a program name with args.
8679set dummy flex; ac_word=$2
8680echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6054113a 8681echo "configure:8682: checking for $ac_word" >&5
698dcdb6
VZ
8682if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8683 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8684else
8685 if test -n "$LEX"; then
8686 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8687else
698dcdb6
VZ
8688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8689 ac_dummy="$PATH"
8690 for ac_dir in $ac_dummy; do
8691 test -z "$ac_dir" && ac_dir=.
8692 if test -f $ac_dir/$ac_word; then
8693 ac_cv_prog_LEX="flex"
8694 break
8695 fi
8696 done
8697 IFS="$ac_save_ifs"
8698 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8699fi
8700fi
698dcdb6 8701LEX="$ac_cv_prog_LEX"
10f2d63a 8702if test -n "$LEX"; then
698dcdb6 8703 echo "$ac_t""$LEX" 1>&6
10f2d63a 8704else
698dcdb6 8705 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8706fi
8707
8708if test -z "$LEXLIB"
8709then
698dcdb6
VZ
8710 case "$LEX" in
8711 flex*) ac_lib=fl ;;
8712 *) ac_lib=l ;;
8713 esac
8714 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
6054113a 8715echo "configure:8716: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8716ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8717if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8718 echo $ac_n "(cached) $ac_c" 1>&6
8719else
8720 ac_save_LIBS="$LIBS"
8721LIBS="-l$ac_lib $LIBS"
8722cat > conftest.$ac_ext <<EOF
6054113a 8723#line 8724 "configure"
10f2d63a
VZ
8724#include "confdefs.h"
8725/* Override any gcc2 internal prototype to avoid an error. */
8726/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8727 builtin and then its argument prototype would still apply. */
8728char yywrap();
10f2d63a 8729
698dcdb6
VZ
8730int main() {
8731yywrap()
8732; return 0; }
8733EOF
6054113a 8734if { (eval echo configure:8735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8735 rm -rf conftest*
8736 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8737else
698dcdb6
VZ
8738 echo "configure: failed program was:" >&5
8739 cat conftest.$ac_ext >&5
8740 rm -rf conftest*
8741 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8742fi
698dcdb6
VZ
8743rm -f conftest*
8744LIBS="$ac_save_LIBS"
8745
10f2d63a 8746fi
698dcdb6
VZ
8747if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8748 echo "$ac_t""yes" 1>&6
8749 LEXLIB="-l$ac_lib"
8750else
8751 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8752fi
8753
8754fi
8755
8756
698dcdb6 8757echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6054113a 8758echo "configure:8759: checking whether ln -s works" >&5
698dcdb6
VZ
8759if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8760 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8761else
698dcdb6
VZ
8762 rm -f conftestdata
8763if ln -s X conftestdata 2>/dev/null
8764then
8765 rm -f conftestdata
8766 ac_cv_prog_LN_S="ln -s"
10f2d63a 8767else
698dcdb6 8768 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8769fi
8770fi
698dcdb6
VZ
8771LN_S="$ac_cv_prog_LN_S"
8772if test "$ac_cv_prog_LN_S" = "ln -s"; then
8773 echo "$ac_t""yes" 1>&6
10f2d63a 8774else
698dcdb6 8775 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8776fi
8777
8778
8779
8780SEARCH_INCLUDE="\
8781 /usr/local/include \
8782 \
8783 /usr/Motif-1.2/include \
8784 /usr/Motif-2.1/include \
8785 \
8786 /usr/include/Motif1.2 \
8787 /opt/xpm/include/X11 \
8788 /opt/GBxpm/include/ \
8789 /opt/GBxpm/X11/include/ \
8790 \
8791 /usr/Motif1.2/include \
8792 /usr/dt/include \
afc31813
VZ
8793 /usr/openwin/include \
8794 \
10f2d63a
VZ
8795 /usr/include/Xm \
8796 \
8797 /usr/X11R6/include \
afc31813 8798 /usr/X11R6.4/include \
10f2d63a
VZ
8799 /usr/X11R5/include \
8800 /usr/X11R4/include \
8801 \
10f2d63a
VZ
8802 /usr/include/X11R6 \
8803 /usr/include/X11R5 \
8804 /usr/include/X11R4 \
8805 \
8806 /usr/local/X11R6/include \
8807 /usr/local/X11R5/include \
8808 /usr/local/X11R4/include \
8809 \
8810 /usr/local/include/X11R6 \
8811 /usr/local/include/X11R5 \
8812 /usr/local/include/X11R4 \
8813 \
8814 /usr/X11/include \
8815 /usr/include/X11 \
8816 /usr/local/X11/include \
8817 /usr/local/include/X11 \
8818 \
8819 /usr/X386/include \
8820 /usr/x386/include \
8821 /usr/XFree86/include/X11 \
8822 \
cf27ef00 8823 X:/XFree86/include \
ec14dd32
VZ
8824 X:/XFree86/include/X11 \
8825 \
10f2d63a
VZ
8826 /usr/include/gtk \
8827 /usr/local/include/gtk \
8828 /usr/include/glib \
8829 /usr/local/include/glib \
8830 \
8831 /usr/include/qt \
8832 /usr/local/include/qt \
8833 \
8834 /usr/include/windows \
8835 /usr/include/wine \
8836 /usr/local/include/wine \
8837 \
8838 /usr/unsupported/include \
8839 /usr/athena/include \
8840 /usr/local/x11r5/include \
8841 /usr/lpp/Xamples/include \
8842 \
10f2d63a 8843 /usr/openwin/share/include \
928b5c08
VZ
8844 \
8845 /usr/include"
10f2d63a
VZ
8846
8847SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8848
698dcdb6
VZ
8849
8850cat > confcache <<\EOF
10f2d63a
VZ
8851# This file is a shell script that caches the results of configure
8852# tests run on this system so they can be shared between configure
698dcdb6
VZ
8853# scripts and configure runs. It is not useful on other systems.
8854# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8855#
698dcdb6
VZ
8856# By default, configure uses ./config.cache as the cache file,
8857# creating it if it does not exist already. You can give configure
8858# the --cache-file=FILE option to use a different cache file; that is
8859# what configure does when it calls configure scripts in
8860# subdirectories, so they share the cache.
8861# Giving --cache-file=/dev/null disables caching, for debugging configure.
8862# config.status only pays attention to the cache file if you give it the
8863# --recheck option to rerun configure.
10f2d63a 8864#
698dcdb6 8865EOF
10f2d63a
VZ
8866# The following way of writing the cache mishandles newlines in values,
8867# but we know of no workaround that is simple, portable, and efficient.
8868# So, don't put newlines in cache variables' values.
8869# Ultrix sh set writes to stderr and can't be redirected directly,
8870# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8871(set) 2>&1 |
8872 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8873 *ac_space=\ *)
8874 # `set' does not quote correctly, so add quotes (double-quote substitution
8875 # turns \\\\ into \\, and sed turns \\ into \).
8876 sed -n \
8877 -e "s/'/'\\\\''/g" \
8878 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8879 ;;
8880 *)
8881 # `set' quotes correctly as required by POSIX, so do not add quotes.
8882 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8883 ;;
8884 esac >> confcache
8885if cmp -s $cache_file confcache; then
8886 :
8887else
10f2d63a 8888 if test -w $cache_file; then
698dcdb6
VZ
8889 echo "updating cache $cache_file"
8890 cat confcache > $cache_file
10f2d63a
VZ
8891 else
8892 echo "not updating unwritable cache $cache_file"
8893 fi
8894fi
8895rm -f confcache
8896
698dcdb6
VZ
8897
8898
4f14bcd8 8899
18dbb1f6
VZ
8900REGEX_INCLUDE=
8901if test "$wxUSE_REGEX" != "no"; then
4f14bcd8
GD
8902 cat >> confdefs.h <<\EOF
8903#define wxUSE_REGEX 1
8904EOF
8905
8906
8907 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
8908 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
18dbb1f6 8909echo $ac_n "checking for regex.h""... $ac_c" 1>&6
6054113a 8910echo "configure:8911: checking for regex.h" >&5
18dbb1f6
VZ
8911if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8912 echo $ac_n "(cached) $ac_c" 1>&6
8913else
8914 cat > conftest.$ac_ext <<EOF
6054113a 8915#line 8916 "configure"
18dbb1f6
VZ
8916#include "confdefs.h"
8917#include <regex.h>
8918EOF
8919ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 8920{ (eval echo configure:8921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
8921ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8922if test -z "$ac_err"; then
8923 rm -rf conftest*
8924 eval "ac_cv_header_$ac_safe=yes"
8925else
8926 echo "$ac_err" >&5
8927 echo "configure: failed program was:" >&5
8928 cat conftest.$ac_ext >&5
8929 rm -rf conftest*
8930 eval "ac_cv_header_$ac_safe=no"
8931fi
8932rm -f conftest*
8933fi
8934if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8935 echo "$ac_t""yes" 1>&6
8936 for ac_func in regcomp
8937do
8938echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 8939echo "configure:8940: checking for $ac_func" >&5
18dbb1f6
VZ
8940if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8941 echo $ac_n "(cached) $ac_c" 1>&6
8942else
8943 cat > conftest.$ac_ext <<EOF
6054113a 8944#line 8945 "configure"
18dbb1f6
VZ
8945#include "confdefs.h"
8946/* System header to define __stub macros and hopefully few prototypes,
8947 which can conflict with char $ac_func(); below. */
8948#include <assert.h>
8949/* Override any gcc2 internal prototype to avoid an error. */
8950/* We use char because int might match the return type of a gcc2
8951 builtin and then its argument prototype would still apply. */
8952char $ac_func();
8953
8954int main() {
8955
8956/* The GNU C library defines this for functions which it implements
8957 to always fail with ENOSYS. Some functions are actually named
8958 something starting with __ and the normal name is an alias. */
8959#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8960choke me
8961#else
8962$ac_func();
8963#endif
8964
8965; return 0; }
8966EOF
6054113a 8967if { (eval echo configure:8968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
8968 rm -rf conftest*
8969 eval "ac_cv_func_$ac_func=yes"
8970else
8971 echo "configure: failed program was:" >&5
8972 cat conftest.$ac_ext >&5
8973 rm -rf conftest*
8974 eval "ac_cv_func_$ac_func=no"
8975fi
8976rm -f conftest*
8977fi
8978
8979if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8980 echo "$ac_t""yes" 1>&6
8981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8982 cat >> confdefs.h <<EOF
8983#define $ac_tr_func 1
8984EOF
8985
8986else
8987 echo "$ac_t""no" 1>&6
8988fi
8989done
8990
8991else
8992 echo "$ac_t""no" 1>&6
8993fi
8994
8995
4f14bcd8
GD
8996 if test "x$ac_cv_func_regcomp" != "xyes"; then
8997 if test "$wxUSE_REGEX" = "sys" ; then
8998 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
8999 else
a3df447d 9000 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9001 wxUSE_REGEX=builtin
9002 fi
9003 else
9004 wxUSE_REGEX=sys
18dbb1f6 9005 fi
18dbb1f6
VZ
9006 fi
9007
4f14bcd8
GD
9008 if test "$wxUSE_REGEX" = "builtin" ; then
9009 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9010 fi
18dbb1f6
VZ
9011fi
9012
9013
4f14bcd8
GD
9014ZLIB_INCLUDE=
9015ZLIB_LINK=
9016if test "$wxUSE_ZLIB" != "no" ; then
9017 cat >> confdefs.h <<\EOF
9018#define wxUSE_ZLIB 1
9019EOF
dad6c0ea 9020
10f2d63a 9021
4f14bcd8
GD
9022 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9023 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9024echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
6054113a 9025echo "configure:9026: checking for zlib.h" >&5
3a922bb4
RL
9026if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9027 echo $ac_n "(cached) $ac_c" 1>&6
9028else
9029 cat > conftest.$ac_ext <<EOF
6054113a 9030#line 9031 "configure"
3a922bb4 9031#include "confdefs.h"
4f14bcd8 9032#include <zlib.h>
3a922bb4
RL
9033EOF
9034ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 9035{ (eval echo configure:9036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9036ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9037if test -z "$ac_err"; then
9038 rm -rf conftest*
9039 eval "ac_cv_header_$ac_safe=yes"
9040else
9041 echo "$ac_err" >&5
9042 echo "configure: failed program was:" >&5
9043 cat conftest.$ac_ext >&5
9044 rm -rf conftest*
9045 eval "ac_cv_header_$ac_safe=no"
9046fi
9047rm -f conftest*
9048fi
9049if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9050 echo "$ac_t""yes" 1>&6
4f14bcd8 9051 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
6054113a 9052echo "configure:9053: checking for deflate in -lz" >&5
4f14bcd8
GD
9053ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9054if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9055 echo $ac_n "(cached) $ac_c" 1>&6
9056else
9057 ac_save_LIBS="$LIBS"
9058LIBS="-lz $LIBS"
9059cat > conftest.$ac_ext <<EOF
6054113a 9060#line 9061 "configure"
4f14bcd8
GD
9061#include "confdefs.h"
9062/* Override any gcc2 internal prototype to avoid an error. */
9063/* We use char because int might match the return type of a gcc2
9064 builtin and then its argument prototype would still apply. */
9065char deflate();
9066
9067int main() {
9068deflate()
9069; return 0; }
3a922bb4 9070EOF
6054113a 9071if { (eval echo configure:9072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9072 rm -rf conftest*
9073 eval "ac_cv_lib_$ac_lib_var=yes"
9074else
9075 echo "configure: failed program was:" >&5
9076 cat conftest.$ac_ext >&5
9077 rm -rf conftest*
9078 eval "ac_cv_lib_$ac_lib_var=no"
9079fi
9080rm -f conftest*
9081LIBS="$ac_save_LIBS"
9082
9083fi
9084if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9085 echo "$ac_t""yes" 1>&6
9086 ZLIB_LINK="-lz"
3a922bb4
RL
9087else
9088 echo "$ac_t""no" 1>&6
9089fi
10f2d63a 9090
4f14bcd8
GD
9091else
9092 echo "$ac_t""no" 1>&6
9093fi
9094
9095
9096 if test "x$ZLIB_LINK" = "x" ; then
9097 if test "$wxUSE_ZLIB" = "sys" ; then
9098 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9099 else
a3df447d 9100 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9101 wxUSE_ZLIB=builtin
9102 fi
9103 else
9104 wxUSE_ZLIB=sys
9105 fi
9106 fi
9107
9108 if test "$wxUSE_ZLIB" = "builtin" ; then
9109 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9110 fi
9111fi
9112
9113
9114PNG_INCLUDE=
9115PNG_LINK=
9116if test "$wxUSE_LIBPNG" != "no" ; then
9117 cat >> confdefs.h <<\EOF
9118#define wxUSE_LIBPNG 1
9119EOF
9120
9121
9122 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a3df447d 9123 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
4f14bcd8
GD
9124 wxUSE_LIBPNG=builtin
9125 fi
9126
9127 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9128 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9129echo $ac_n "checking for png.h""... $ac_c" 1>&6
6054113a 9130echo "configure:9131: checking for png.h" >&5
d4158b5d
VS
9131if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9132 echo $ac_n "(cached) $ac_c" 1>&6
9133else
9134 cat > conftest.$ac_ext <<EOF
6054113a 9135#line 9136 "configure"
d4158b5d 9136#include "confdefs.h"
4f14bcd8 9137#include <png.h>
d4158b5d
VS
9138EOF
9139ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 9140{ (eval echo configure:9141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
9141ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9142if test -z "$ac_err"; then
9143 rm -rf conftest*
9144 eval "ac_cv_header_$ac_safe=yes"
9145else
9146 echo "$ac_err" >&5
9147 echo "configure: failed program was:" >&5
9148 cat conftest.$ac_ext >&5
9149 rm -rf conftest*
9150 eval "ac_cv_header_$ac_safe=no"
9151fi
9152rm -f conftest*
9153fi
9154if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9155 echo "$ac_t""yes" 1>&6
4f14bcd8 9156 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
6054113a 9157echo "configure:9158: checking for png_check_sig in -lpng" >&5
4f14bcd8
GD
9158ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9159if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3a922bb4
RL
9160 echo $ac_n "(cached) $ac_c" 1>&6
9161else
4f14bcd8
GD
9162 ac_save_LIBS="$LIBS"
9163LIBS="-lpng -lz -lm $LIBS"
9164cat > conftest.$ac_ext <<EOF
6054113a 9165#line 9166 "configure"
3a922bb4 9166#include "confdefs.h"
4f14bcd8
GD
9167/* Override any gcc2 internal prototype to avoid an error. */
9168/* We use char because int might match the return type of a gcc2
9169 builtin and then its argument prototype would still apply. */
9170char png_check_sig();
f6bcfd97 9171
4f14bcd8
GD
9172int main() {
9173png_check_sig()
3a922bb4
RL
9174; return 0; }
9175EOF
6054113a 9176if { (eval echo configure:9177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 9177 rm -rf conftest*
4f14bcd8 9178 eval "ac_cv_lib_$ac_lib_var=yes"
3a922bb4
RL
9179else
9180 echo "configure: failed program was:" >&5
9181 cat conftest.$ac_ext >&5
9182 rm -rf conftest*
4f14bcd8 9183 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4
RL
9184fi
9185rm -f conftest*
4f14bcd8 9186LIBS="$ac_save_LIBS"
10f2d63a 9187
4f14bcd8
GD
9188fi
9189if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9190 echo "$ac_t""yes" 1>&6
9191 PNG_LINK="-lpng"
9192else
9193 echo "$ac_t""no" 1>&6
9194fi
32832908 9195
4f14bcd8
GD
9196
9197else
9198 echo "$ac_t""no" 1>&6
9199fi
3a922bb4 9200
7b7a7637 9201
4f14bcd8
GD
9202 if test "x$PNG_LINK" = "x" ; then
9203 if test "$wxUSE_LIBPNG" = "sys" ; then
9204 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9205 else
a3df447d 9206 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9207 wxUSE_LIBPNG=builtin
9208 fi
9209 else
9210 wxUSE_LIBPNG=yes
9211 fi
3a922bb4
RL
9212 fi
9213
4f14bcd8
GD
9214 if test "$wxUSE_LIBPNG" = "builtin" ; then
9215 PNG_INCLUDE="-I\${top_srcdir}/src/png"
3a922bb4
RL
9216 fi
9217
4f14bcd8 9218 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
3a922bb4
RL
9219fi
9220
32832908 9221
4f14bcd8
GD
9222JPEG_INCLUDE=
9223JPEG_LINK=
9224if test "$wxUSE_LIBJPEG" != "no" ; then
9225 cat >> confdefs.h <<\EOF
9226#define wxUSE_LIBJPEG 1
9227EOF
10f2d63a 9228
8168de4c 9229
4f14bcd8
GD
9230 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9231 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6054113a 9232echo "configure:9233: checking for jpeglib.h" >&5
4f14bcd8 9233 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
8168de4c
VZ
9234 echo $ac_n "(cached) $ac_c" 1>&6
9235else
4f14bcd8 9236 cat > conftest.$ac_ext <<EOF
6054113a 9237#line 9238 "configure"
4f14bcd8 9238#include "confdefs.h"
8168de4c 9239
4f14bcd8
GD
9240 #undef HAVE_STDLIB_H
9241 #include <stdio.h>
9242 #include <jpeglib.h>
9243
9244int main() {
9245
9246
9247; return 0; }
9248EOF
6054113a 9249if { (eval echo configure:9250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9250 rm -rf conftest*
9251 ac_cv_header_jpeglib_h=yes
6f72b082 9252else
4f14bcd8
GD
9253 echo "configure: failed program was:" >&5
9254 cat conftest.$ac_ext >&5
9255 rm -rf conftest*
9256 ac_cv_header_jpeglib_h=no
9257
9258fi
9259rm -f conftest*
9260
698dcdb6 9261fi
6f72b082 9262
4f14bcd8
GD
9263 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9264
9265 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9266 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
6054113a 9267echo "configure:9268: checking for jpeg_read_header in -ljpeg" >&5
4f14bcd8
GD
9268ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9269if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9270 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9271else
4f14bcd8
GD
9272 ac_save_LIBS="$LIBS"
9273LIBS="-ljpeg $LIBS"
9274cat > conftest.$ac_ext <<EOF
6054113a 9275#line 9276 "configure"
4f14bcd8
GD
9276#include "confdefs.h"
9277/* Override any gcc2 internal prototype to avoid an error. */
9278/* We use char because int might match the return type of a gcc2
9279 builtin and then its argument prototype would still apply. */
9280char jpeg_read_header();
698dcdb6 9281
4f14bcd8
GD
9282int main() {
9283jpeg_read_header()
9284; return 0; }
9285EOF
6054113a 9286if { (eval echo configure:9287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9287 rm -rf conftest*
9288 eval "ac_cv_lib_$ac_lib_var=yes"
6f72b082 9289else
4f14bcd8
GD
9290 echo "configure: failed program was:" >&5
9291 cat conftest.$ac_ext >&5
9292 rm -rf conftest*
9293 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6 9294fi
4f14bcd8
GD
9295rm -f conftest*
9296LIBS="$ac_save_LIBS"
698dcdb6 9297
4f14bcd8
GD
9298fi
9299if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9300 echo "$ac_t""yes" 1>&6
9301 JPEG_LINK="-ljpeg"
9302else
9303 echo "$ac_t""no" 1>&6
9304fi
9305
9306 fi
9307
9308 if test "x$JPEG_LINK" = "x" ; then
9309 if test "$wxUSE_LIBJPEG" = "sys" ; then
9310 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9311 else
a3df447d 9312 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9313 wxUSE_LIBJPEG=builtin
9314 fi
9315 else
9316 wxUSE_LIBJPEG=sys
9317 fi
9318 fi
9319
9320 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9321 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9322 fi
9323fi
9324
9325
9326TIFF_INCLUDE=
9327TIFF_LINK=
9328if test "$wxUSE_LIBTIFF" != "no" ; then
9329 cat >> confdefs.h <<\EOF
9330#define wxUSE_LIBTIFF 1
9331EOF
9332
9333
9334 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9335 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9336echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
6054113a 9337echo "configure:9338: checking for tiffio.h" >&5
4f14bcd8
GD
9338if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9339 echo $ac_n "(cached) $ac_c" 1>&6
9340else
9341 cat > conftest.$ac_ext <<EOF
6054113a 9342#line 9343 "configure"
4f14bcd8
GD
9343#include "confdefs.h"
9344#include <tiffio.h>
9345EOF
9346ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 9347{ (eval echo configure:9348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9348ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9349if test -z "$ac_err"; then
9350 rm -rf conftest*
9351 eval "ac_cv_header_$ac_safe=yes"
9352else
9353 echo "$ac_err" >&5
9354 echo "configure: failed program was:" >&5
9355 cat conftest.$ac_ext >&5
9356 rm -rf conftest*
9357 eval "ac_cv_header_$ac_safe=no"
9358fi
9359rm -f conftest*
9360fi
9361if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9362 echo "$ac_t""yes" 1>&6
9363 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
6054113a 9364echo "configure:9365: checking for TIFFError in -ltiff" >&5
4f14bcd8
GD
9365ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9366if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9367 echo $ac_n "(cached) $ac_c" 1>&6
9368else
9369 ac_save_LIBS="$LIBS"
9370LIBS="-ltiff -lm $LIBS"
9371cat > conftest.$ac_ext <<EOF
6054113a 9372#line 9373 "configure"
4f14bcd8
GD
9373#include "confdefs.h"
9374/* Override any gcc2 internal prototype to avoid an error. */
9375/* We use char because int might match the return type of a gcc2
9376 builtin and then its argument prototype would still apply. */
9377char TIFFError();
9378
9379int main() {
9380TIFFError()
9381; return 0; }
9382EOF
6054113a 9383if { (eval echo configure:9384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9384 rm -rf conftest*
9385 eval "ac_cv_lib_$ac_lib_var=yes"
9386else
9387 echo "configure: failed program was:" >&5
9388 cat conftest.$ac_ext >&5
9389 rm -rf conftest*
9390 eval "ac_cv_lib_$ac_lib_var=no"
9391fi
9392rm -f conftest*
9393LIBS="$ac_save_LIBS"
9394
9395fi
9396if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9397 echo "$ac_t""yes" 1>&6
9398 TIFF_LINK="-ltiff"
9399else
9400 echo "$ac_t""no" 1>&6
9401fi
9402
9403
9404else
9405 echo "$ac_t""no" 1>&6
9406fi
9407
9408
9409 if test "x$TIFF_LINK" = "x" ; then
9410 if test "$wxUSE_LIBTIFF" = "sys" ; then
9411 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
9412 else
a3df447d 9413 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9414 wxUSE_LIBTIFF=builtin
9415 fi
9416 else
9417 wxUSE_LIBTIFF=sys
9418 fi
9419 fi
9420
9421 if test "$wxUSE_LIBTIFF" = "builtin" ; then
9422 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
9423 fi
9424fi
9425
9426
9427FREETYPE_INCLUDE=
9428FREETYPE_LINK=
9429if test "$wxUSE_FREETYPE" != "no" ; then
9430 cat >> confdefs.h <<\EOF
9431#define wxUSE_FREETYPE 1
9432EOF
9433
9434
9435 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
9436 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
9437echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
6054113a 9438echo "configure:9439: checking for freetype.h" >&5
4f14bcd8
GD
9439if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9440 echo $ac_n "(cached) $ac_c" 1>&6
9441else
9442 cat > conftest.$ac_ext <<EOF
6054113a 9443#line 9444 "configure"
4f14bcd8
GD
9444#include "confdefs.h"
9445#include <freetype.h>
9446EOF
9447ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 9448{ (eval echo configure:9449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9449ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9450if test -z "$ac_err"; then
9451 rm -rf conftest*
9452 eval "ac_cv_header_$ac_safe=yes"
9453else
9454 echo "$ac_err" >&5
9455 echo "configure: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9457 rm -rf conftest*
9458 eval "ac_cv_header_$ac_safe=no"
9459fi
9460rm -f conftest*
9461fi
9462if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9463 echo "$ac_t""yes" 1>&6
9464 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
6054113a 9465echo "configure:9466: checking for FT_Render_Glyph in -lfreetype" >&5
4f14bcd8
GD
9466ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
9467if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9468 echo $ac_n "(cached) $ac_c" 1>&6
9469else
9470 ac_save_LIBS="$LIBS"
9471LIBS="-lfreetype -lm $LIBS"
9472cat > conftest.$ac_ext <<EOF
6054113a 9473#line 9474 "configure"
4f14bcd8
GD
9474#include "confdefs.h"
9475/* Override any gcc2 internal prototype to avoid an error. */
9476/* We use char because int might match the return type of a gcc2
9477 builtin and then its argument prototype would still apply. */
9478char FT_Render_Glyph();
9479
9480int main() {
9481FT_Render_Glyph()
9482; return 0; }
9483EOF
6054113a 9484if { (eval echo configure:9485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9485 rm -rf conftest*
9486 eval "ac_cv_lib_$ac_lib_var=yes"
9487else
9488 echo "configure: failed program was:" >&5
9489 cat conftest.$ac_ext >&5
9490 rm -rf conftest*
9491 eval "ac_cv_lib_$ac_lib_var=no"
9492fi
9493rm -f conftest*
9494LIBS="$ac_save_LIBS"
9495
9496fi
9497if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9498 echo "$ac_t""yes" 1>&6
9499 FREETYPE_LINK="-lfreetype"
9500else
9501 echo "$ac_t""no" 1>&6
9502fi
9503
9504
9505else
9506 echo "$ac_t""no" 1>&6
9507fi
9508
9509
9510 if test "x$FREETYPE_LINK" = "x" ; then
9511 if test "$wxUSE_FREETYPE" = "sys" ; then
9512 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
9513 else
a3df447d 9514 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9515 wxUSE_FREETYPE=builtin
9516 fi
9517 else
9518 wxUSE_FREETYPE=sys
9519 fi
9520 fi
9521
9522 if test "$wxUSE_FREETYPE" = "builtin" ; then
9523 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
9524 fi
9525fi
9526
9527
9528AFMINSTALL=
9529
9530TOOLKIT=
9531TOOLKIT_INCLUDE=
9532WIDGET_SET=
9533
9534if test "$USE_WIN32" = 1 ; then
9535 for ac_hdr in w32api.h
9536do
9537ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9538echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6054113a 9539echo "configure:9540: checking for $ac_hdr" >&5
4f14bcd8
GD
9540if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9541 echo $ac_n "(cached) $ac_c" 1>&6
9542else
9543 cat > conftest.$ac_ext <<EOF
6054113a 9544#line 9545 "configure"
4f14bcd8
GD
9545#include "confdefs.h"
9546#include <$ac_hdr>
9547EOF
9548ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 9549{ (eval echo configure:9550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9550ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9551if test -z "$ac_err"; then
9552 rm -rf conftest*
9553 eval "ac_cv_header_$ac_safe=yes"
9554else
9555 echo "$ac_err" >&5
9556 echo "configure: failed program was:" >&5
9557 cat conftest.$ac_ext >&5
9558 rm -rf conftest*
9559 eval "ac_cv_header_$ac_safe=no"
9560fi
9561rm -f conftest*
9562fi
9563if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9564 echo "$ac_t""yes" 1>&6
9565 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9566 cat >> confdefs.h <<EOF
9567#define $ac_tr_hdr 1
9568EOF
9569
9570else
9571 echo "$ac_t""no" 1>&6
9572fi
9573done
9574
9575 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9576echo $ac_n "checking for windows.h""... $ac_c" 1>&6
6054113a 9577echo "configure:9578: checking for windows.h" >&5
4f14bcd8
GD
9578if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9579 echo $ac_n "(cached) $ac_c" 1>&6
9580else
9581 cat > conftest.$ac_ext <<EOF
6054113a 9582#line 9583 "configure"
4f14bcd8
GD
9583#include "confdefs.h"
9584#include <windows.h>
9585EOF
9586ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 9587{ (eval echo configure:9588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9588ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9589if test -z "$ac_err"; then
9590 rm -rf conftest*
9591 eval "ac_cv_header_$ac_safe=yes"
9592else
9593 echo "$ac_err" >&5
9594 echo "configure: failed program was:" >&5
9595 cat conftest.$ac_ext >&5
9596 rm -rf conftest*
9597 eval "ac_cv_header_$ac_safe=no"
9598fi
9599rm -f conftest*
9600fi
9601if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9602 echo "$ac_t""yes" 1>&6
9603 :
9604else
9605 echo "$ac_t""no" 1>&6
9606
9607 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9608
9609fi
9610
9611
9612 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
6054113a 9613echo "configure:9614: checking if w32api has good enough MSIE support" >&5
ea7682f0 9614if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
4f14bcd8
GD
9615 echo $ac_n "(cached) $ac_c" 1>&6
9616else
9617
9618 cat > conftest.$ac_ext <<EOF
6054113a 9619#line 9620 "configure"
4f14bcd8
GD
9620#include "confdefs.h"
9621#include <w32api.h>
9622int main() {
9623
9624 #define wxCHECK_W32API_VERSION( major, minor ) \
9625 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9626 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9627 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9628
9629 #if !wxCHECK_W32API_VERSION(1,1)
9630 #error You need w32api 1.1 or newer
9631 #endif
9632
9633; return 0; }
9634EOF
6054113a 9635if { (eval echo configure:9636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9636 rm -rf conftest*
9637
ea7682f0 9638 wx_cv_w32api_win32_ie=yes
4f14bcd8
GD
9639
9640else
9641 echo "configure: failed program was:" >&5
9642 cat conftest.$ac_ext >&5
9643 rm -rf conftest*
9644
ea7682f0 9645 wx_cv_w32api_win32_ie=no
4f14bcd8
GD
9646
9647fi
9648rm -f conftest*
9649
9650fi
9651
ea7682f0
VS
9652echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
9653 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
9654 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
9655 fi
4f14bcd8
GD
9656
9657 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9658
77e13408
RL
9659 case "${host}" in
9660 *-*-cygwin* )
9661 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9662 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
9663 esac
4f14bcd8
GD
9664
9665 if test "$wxUSE_ODBC" = "yes" ; then
9666 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9667 fi
9668
4f14bcd8
GD
9669 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9670 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9671fi
9672
9673if test "$wxUSE_GUI" = "yes"; then
9674 USE_GUI=1
9675
9676 GUI_TK_LIBRARY=
9677
9678 WXGTK12=
9679 WXGTK127=
9680 WXGTK20=
9681
77e13408 9682 if test "$wxUSE_MSW" = 1 ; then
4f14bcd8
GD
9683 TOOLKIT=MSW
9684 GUIDIST=MSW_DIST
77e13408
RL
9685
9686 case "${host}" in
9687 *-*-mingw32* )
9688 EXTRA_LIBS="$EXTRA_LIBS -Wl,--subsystem,windows -mwindows"
9689 esac
4f14bcd8
GD
9690 fi
9691
9692 if test "$wxUSE_GTK" = 1; then
9693 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
6054113a 9694echo "configure:9695: checking for GTK+ version" >&5
4f14bcd8
GD
9695
9696 gtk_version_cached=1
9697 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9698 echo $ac_n "(cached) $ac_c" 1>&6
9699else
9700
9701 gtk_version_cached=0
9702 echo "$ac_t""""" 1>&6
9703
9704 wx_cv_lib_gtk=
9705 if test "x$wxUSE_GTK2" = "xyes"; then
9706 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9707if test "${with_gtk_prefix+set}" = set; then
9708 withval="$with_gtk_prefix"
9709 gtk_config_prefix="$withval"
9710else
9711 gtk_config_prefix=""
9712fi
9713
9714# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9715if test "${with_gtk_exec_prefix+set}" = set; then
9716 withval="$with_gtk_exec_prefix"
9717 gtk_config_exec_prefix="$withval"
9718else
9719 gtk_config_exec_prefix=""
9720fi
9721
9722# Check whether --enable-gtktest or --disable-gtktest was given.
9723if test "${enable_gtktest+set}" = set; then
9724 enableval="$enable_gtktest"
9725 :
9726else
9727 enable_gtktest=yes
9728fi
9729
9730
9731 for module in .
9732 do
6f72b082 9733 case "$module" in
8168de4c 9734 gthread)
6f72b082
OK
9735 gtk_config_args="$gtk_config_args gthread"
9736 ;;
9737 esac
9738 done
9739
9740 if test x$gtk_config_exec_prefix != x ; then
9741 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9742 if test x${GTK_CONFIG_2_0+set} != xset ; then
9743 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9744 fi
9745 fi
9746 if test x$gtk_config_prefix != x ; then
9747 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9748 if test x${GTK_CONFIG_2_0+set} != xset ; then
9749 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9750 fi
9751 fi
9752
9753 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9754set dummy gtk-config-2.0; ac_word=$2
698dcdb6 9755echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6054113a 9756echo "configure:9757: checking for $ac_word" >&5
698dcdb6
VZ
9757if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9758 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9759else
698dcdb6
VZ
9760 case "$GTK_CONFIG_2_0" in
9761 /*)
6f72b082
OK
9762 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9763 ;;
698dcdb6
VZ
9764 ?:/*)
9765 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9766 ;;
6f72b082 9767 *)
698dcdb6
VZ
9768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9769 ac_dummy="$PATH"
9770 for ac_dir in $ac_dummy; do
9771 test -z "$ac_dir" && ac_dir=.
9772 if test -f $ac_dir/$ac_word; then
9773 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9774 break
9775 fi
9776 done
9777 IFS="$ac_save_ifs"
6f72b082
OK
9778 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9779 ;;
9780esac
9781fi
698dcdb6 9782GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 9783if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 9784 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 9785else
698dcdb6 9786 echo "$ac_t""no" 1>&6
6f72b082
OK
9787fi
9788
9789 min_gtk_version=1.3.1
698dcdb6 9790 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6054113a 9791echo "configure:9792: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
9792 no_gtk=""
9793 if test "$GTK_CONFIG_2_0" = "no" ; then
9794 no_gtk=yes
9795 else
9796 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9797 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9798 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9799 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9800 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9801 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9802 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9803 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9804 if test "x$enable_gtktest" = "xyes" ; then
9805 ac_save_CFLAGS="$CFLAGS"
9806 ac_save_LIBS="$LIBS"
9807 CFLAGS="$CFLAGS $GTK_CFLAGS"
9808 LIBS="$GTK_LIBS $LIBS"
9809 rm -f conf.gtktest
9810 if test "$cross_compiling" = yes; then
9811 echo $ac_n "cross compiling; assumed OK... $ac_c"
9812else
698dcdb6 9813 cat > conftest.$ac_ext <<EOF
6054113a 9814#line 9815 "configure"
6f72b082
OK
9815#include "confdefs.h"
9816
9817#include <gtk/gtk.h>
9818#include <stdio.h>
9819#include <stdlib.h>
9820
8168de4c 9821int
6f72b082
OK
9822main ()
9823{
9824 int major, minor, micro;
9825 char *tmp_version;
9826
9827 system ("touch conf.gtktest");
9828
9829 /* HP/UX 9 (%@#!) writes to sscanf strings */
9830 tmp_version = g_strdup("$min_gtk_version");
9831 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9832 printf("%s, bad version string\n", "$min_gtk_version");
9833 exit(1);
9834 }
9835
9836 if ((gtk_major_version != $gtk_config_major_version) ||
9837 (gtk_minor_version != $gtk_config_minor_version) ||
9838 (gtk_micro_version != $gtk_config_micro_version))
9839 {
8168de4c 9840 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
9841 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9842 gtk_major_version, gtk_minor_version, gtk_micro_version);
9843 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9844 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9845 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9846 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9847 printf("*** required on your system.\n");
9848 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9849 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9850 printf("*** before re-running configure\n");
8168de4c 9851 }
6f72b082
OK
9852#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9853 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 9854 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
9855 (gtk_micro_version != GTK_MICRO_VERSION))
9856 {
9857 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 9858 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 9859 printf("*** library (version %d.%d.%d)\n",
8168de4c 9860 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
9861 }
9862#endif /* defined (GTK_MAJOR_VERSION) ... */
9863 else
9864 {
9865 if ((gtk_major_version > major) ||
9866 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9867 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9868 {
9869 return 0;
9870 }
9871 else
9872 {
9873 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9874 gtk_major_version, gtk_minor_version, gtk_micro_version);
9875 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 9876 major, minor, micro);
6f72b082
OK
9877 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9878 printf("***\n");
9879 printf("*** If you have already installed a sufficiently new version, this error\n");
9880 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9881 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9882 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9883 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9884 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9885 printf("*** so that the correct libraries are found at run-time))\n");
9886 }
9887 }
9888 return 1;
9889}
9890
698dcdb6 9891EOF
6054113a 9892if { (eval echo configure:9893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9893then
6f72b082
OK
9894 :
9895else
698dcdb6
VZ
9896 echo "configure: failed program was:" >&5
9897 cat conftest.$ac_ext >&5
9898 rm -fr conftest*
9899 no_gtk=yes
6f72b082 9900fi
698dcdb6 9901rm -fr conftest*
6f72b082 9902fi
698dcdb6 9903
6f72b082
OK
9904 CFLAGS="$ac_save_CFLAGS"
9905 LIBS="$ac_save_LIBS"
9906 fi
9907 fi
9908 if test "x$no_gtk" = x ; then
698dcdb6 9909 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 9910 wx_cv_lib_gtk=2.0
6f72b082 9911 else
698dcdb6 9912 echo "$ac_t""no" 1>&6
6f72b082
OK
9913 if test "$GTK_CONFIG_2_0" = "no" ; then
9914 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9915 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9916 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9917 echo "*** full path to gtk-config-2.0."
9918 else
9919 if test -f conf.gtktest ; then
9920 :
9921 else
9922 echo "*** Could not run GTK test program, checking why..."
9923 CFLAGS="$CFLAGS $GTK_CFLAGS"
9924 LIBS="$LIBS $GTK_LIBS"
698dcdb6 9925 cat > conftest.$ac_ext <<EOF
6054113a 9926#line 9927 "configure"
6f72b082
OK
9927#include "confdefs.h"
9928
9929#include <gtk/gtk.h>
9930#include <stdio.h>
9931
698dcdb6
VZ
9932int main() {
9933 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9934; return 0; }
9935EOF
6054113a 9936if { (eval echo configure:9937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9937 rm -rf conftest*
6f72b082
OK
9938 echo "*** The test program compiled, but did not run. This usually means"
9939 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9940 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9941 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9942 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9943 echo "*** is required on your system"
8168de4c 9944 echo "***"
6f72b082
OK
9945 echo "*** If you have an old version installed, it is best to remove it, although"
9946 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9947 echo "***"
9948 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9949 echo "*** came with the system with the command"
9950 echo "***"
698dcdb6 9951 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 9952else
698dcdb6
VZ
9953 echo "configure: failed program was:" >&5
9954 cat conftest.$ac_ext >&5
9955 rm -rf conftest*
9956 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
9957 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9958 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 9959 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 9960fi
698dcdb6 9961rm -f conftest*
6f72b082
OK
9962 CFLAGS="$ac_save_CFLAGS"
9963 LIBS="$ac_save_LIBS"
9964 fi
9965 fi
9966 GTK_CFLAGS=""
9967 GTK_LIBS=""
8168de4c
VZ
9968 gthread
9969 fi
9970
9971
9972 rm -f conf.gtktest
9973
9974 fi
9975
9976 if test -z "$wx_cv_lib_gtk"; then
9977
10f2d63a
VZ
9978 if test x$gtk_config_exec_prefix != x ; then
9979 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9980 if test x${GTK_CONFIG+set} != xset ; then
9981 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9982 fi
9983 fi
9984 if test x$gtk_config_prefix != x ; then
9985 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9986 if test x${GTK_CONFIG+set} != xset ; then
9987 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9988 fi
9989 fi
9990
9991 # Extract the first word of "gtk-config", so it can be a program name with args.
9992set dummy gtk-config; ac_word=$2
698dcdb6 9993echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6054113a 9994echo "configure:9995: checking for $ac_word" >&5
698dcdb6
VZ
9995if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9996 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 9997else
698dcdb6
VZ
9998 case "$GTK_CONFIG" in
9999 /*)
f6bcfd97
BP
10000 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10001 ;;
698dcdb6
VZ
10002 ?:/*)
10003 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10004 ;;
f6bcfd97 10005 *)
698dcdb6
VZ
10006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10007 ac_dummy="$PATH"
10008 for ac_dir in $ac_dummy; do
10009 test -z "$ac_dir" && ac_dir=.
10010 if test -f $ac_dir/$ac_word; then
10011 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10012 break
10013 fi
10014 done
10015 IFS="$ac_save_ifs"
f6bcfd97
BP
10016 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10017 ;;
10018esac
10019fi
698dcdb6 10020GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 10021if test -n "$GTK_CONFIG"; then
698dcdb6 10022 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 10023else
698dcdb6 10024 echo "$ac_t""no" 1>&6
f6bcfd97
BP
10025fi
10026
10027 min_gtk_version=1.2.7
698dcdb6 10028 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6054113a 10029echo "configure:10030: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
10030 no_gtk=""
10031 if test "$GTK_CONFIG" != "no" ; then
10032 GTK_CFLAGS=`$GTK_CONFIG --cflags`
10033 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10034 ac_save_CFLAGS="$CFLAGS"
10035 ac_save_LIBS="$LIBS"
10036 CFLAGS="$CFLAGS $GTK_CFLAGS"
10037 LIBS="$LIBS $GTK_LIBS"
10038 if test "$cross_compiling" = yes; then
10039 echo $ac_n "cross compiling; assumed OK... $ac_c"
10040else
698dcdb6 10041 cat > conftest.$ac_ext <<EOF
6054113a 10042#line 10043 "configure"
f6bcfd97
BP
10043#include "confdefs.h"
10044
10045#include <gtk/gtk.h>
10046#include <gtk/gtkfeatures.h>
10047#include <stdio.h>
10048#include <stdlib.h>
10049
10050int
10051main ()
10052{
10053 int major, minor, micro;
10054
10055 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10056 printf("%s, bad version string\n", "$min_gtk_version");
10057 exit(1);
10058 }
10059
10060 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10061 (GTK_MINOR_VERSION != gtk_minor_version) ||
10062 (GTK_MICRO_VERSION != gtk_micro_version)) {
10063 printf("Headers vs. library version mismatch!\n");
10064 exit(1);
10065 }
10066
10067 if (gtk_minor_version == 1) return FALSE;
10068
10069 return !((gtk_major_version > major) ||
10070 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10071 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10072}
10073
698dcdb6 10074EOF
6054113a 10075if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10076then
f6bcfd97
BP
10077 :
10078else
698dcdb6
VZ
10079 echo "configure: failed program was:" >&5
10080 cat conftest.$ac_ext >&5
10081 rm -fr conftest*
10082 no_gtk=yes
f6bcfd97 10083fi
698dcdb6 10084rm -fr conftest*
f6bcfd97 10085fi
698dcdb6 10086
f6bcfd97
BP
10087 CFLAGS="$ac_save_CFLAGS"
10088 LIBS="$ac_save_LIBS"
10089 else
10090 no_gtk=yes
10091 fi
10092 if test "x$no_gtk" = x ; then
698dcdb6 10093 echo "$ac_t""yes" 1>&6
8168de4c 10094 wx_cv_lib_gtk=1.2.7
f6bcfd97 10095 else
698dcdb6 10096 echo "$ac_t""no" 1>&6
f6bcfd97
BP
10097 GTK_CFLAGS=""
10098 GTK_LIBS=""
10099 :
10100 fi
698dcdb6
VZ
10101
10102
f6bcfd97 10103
8168de4c
VZ
10104 fi
10105
10106 if test -z "$wx_cv_lib_gtk"; then
10107
f6bcfd97
BP
10108 if test x$gtk_config_exec_prefix != x ; then
10109 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10110 if test x${GTK_CONFIG+set} != xset ; then
10111 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10112 fi
10113 fi
10114 if test x$gtk_config_prefix != x ; then
10115 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10116 if test x${GTK_CONFIG+set} != xset ; then
10117 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10118 fi
10119 fi
10120
10121 # Extract the first word of "gtk-config", so it can be a program name with args.
10122set dummy gtk-config; ac_word=$2
698dcdb6 10123echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6054113a 10124echo "configure:10125: checking for $ac_word" >&5
698dcdb6
VZ
10125if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10126 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10127else
698dcdb6
VZ
10128 case "$GTK_CONFIG" in
10129 /*)
10f2d63a
VZ
10130 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10131 ;;
698dcdb6
VZ
10132 ?:/*)
10133 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10134 ;;
10f2d63a 10135 *)
698dcdb6
VZ
10136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10137 ac_dummy="$PATH"
10138 for ac_dir in $ac_dummy; do
10139 test -z "$ac_dir" && ac_dir=.
10140 if test -f $ac_dir/$ac_word; then
10141 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10142 break
10143 fi
10144 done
10145 IFS="$ac_save_ifs"
10f2d63a
VZ
10146 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10147 ;;
10148esac
10149fi
698dcdb6 10150GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 10151if test -n "$GTK_CONFIG"; then
698dcdb6 10152 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 10153else
698dcdb6 10154 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10155fi
10156
04165bec 10157 min_gtk_version=1.2.3
698dcdb6 10158 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6054113a 10159echo "configure:10160: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
10160 no_gtk=""
10161 if test "$GTK_CONFIG" != "no" ; then
10162 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 10163 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
10164 ac_save_CFLAGS="$CFLAGS"
10165 ac_save_LIBS="$LIBS"
10166 CFLAGS="$CFLAGS $GTK_CFLAGS"
10167 LIBS="$LIBS $GTK_LIBS"
10168 if test "$cross_compiling" = yes; then
10169 echo $ac_n "cross compiling; assumed OK... $ac_c"
10170else
698dcdb6 10171 cat > conftest.$ac_ext <<EOF
6054113a 10172#line 10173 "configure"
10f2d63a
VZ
10173#include "confdefs.h"
10174
10175#include <gtk/gtk.h>
f49f2b0c 10176#include <gtk/gtkfeatures.h>
10f2d63a 10177#include <stdio.h>
32832908 10178#include <stdlib.h>
10f2d63a
VZ
10179
10180int
10181main ()
10182{
10183 int major, minor, micro;
10184
10185 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10186 printf("%s, bad version string\n", "$min_gtk_version");
10187 exit(1);
10188 }
10189
f49f2b0c
RR
10190 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10191 (GTK_MINOR_VERSION != gtk_minor_version) ||
10192 (GTK_MICRO_VERSION != gtk_micro_version)) {
10193 printf("Headers vs. library version mismatch!\n");
10194 exit(1);
10195 }
10196
10f2d63a
VZ
10197 if (gtk_minor_version == 1) return FALSE;
10198
10199 return !((gtk_major_version > major) ||
10200 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10201 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10202}
10203
698dcdb6 10204EOF
6054113a 10205if { (eval echo configure:10206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10206then
10f2d63a
VZ
10207 :
10208else
698dcdb6
VZ
10209 echo "configure: failed program was:" >&5
10210 cat conftest.$ac_ext >&5
10211 rm -fr conftest*
10212 no_gtk=yes
10f2d63a 10213fi
698dcdb6 10214rm -fr conftest*
10f2d63a 10215fi
698dcdb6 10216
10f2d63a
VZ
10217 CFLAGS="$ac_save_CFLAGS"
10218 LIBS="$ac_save_LIBS"
10219 else
10220 no_gtk=yes
10221 fi
10222 if test "x$no_gtk" = x ; then
698dcdb6 10223 echo "$ac_t""yes" 1>&6
8168de4c 10224 wx_cv_lib_gtk=1.2.3
10f2d63a 10225 else
698dcdb6 10226 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10227 GTK_CFLAGS=""
10228 GTK_LIBS=""
7e99ad86 10229 :
10f2d63a 10230 fi
698dcdb6
VZ
10231
10232
10f2d63a 10233
8168de4c
VZ
10234 fi
10235
10236 if test -z "$wx_cv_lib_gtk"; then
10237 wx_cv_lib_gtk=none
138be253
VZ
10238 else
10239 wx_cv_cflags_gtk=$GTK_CFLAGS
10240 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
10241 fi
10242
1e6feb95 10243
8168de4c 10244fi
703e0a69 10245
698dcdb6 10246
8168de4c
VZ
10247 if test "$gtk_version_cached" = 1; then
10248 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 10249 fi
698dcdb6 10250
8168de4c
VZ
10251 case "$wx_cv_lib_gtk" in
10252 2.0) WXGTK20=1
10253 ;;
10254 1.2.7) WXGTK127=1
d1a8d972 10255 WXGTK12=1
8168de4c
VZ
10256 ;;
10257 1.2.3) WXGTK12=1
10258 ;;
10259 *) { echo "configure: error:
10260Please check that gtk-config is in path, the directory
10261where GTK+ libraries are installed (returned by
10262'gtk-config --libs' command) is in LD_LIBRARY_PATH or
10263equivalent variable and GTK+ is version 1.2.3 or above.
10264 " 1>&2; exit 1; }
10265 ;;
10266 esac
2224580a 10267
138be253 10268 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 10269 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 10270
1e6feb95
VZ
10271 AFMINSTALL=afminstall
10272 TOOLKIT=GTK
10273 GUIDIST=GTK_DIST
7ec2881a 10274
1e6feb95 10275 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
6054113a 10276echo "configure:10277: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
10277ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
10278if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10279 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 10280else
698dcdb6 10281 ac_save_LIBS="$LIBS"
7ec2881a 10282LIBS="-lgdk $LIBS"
698dcdb6 10283cat > conftest.$ac_ext <<EOF
6054113a 10284#line 10285 "configure"
7ec2881a
RR
10285#include "confdefs.h"
10286/* Override any gcc2 internal prototype to avoid an error. */
10287/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10288 builtin and then its argument prototype would still apply. */
10289char gdk_im_open();
10290
10291int main() {
10292gdk_im_open()
10293; return 0; }
10294EOF
6054113a 10295if { (eval echo configure:10296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10296 rm -rf conftest*
10297 eval "ac_cv_lib_$ac_lib_var=yes"
10298else
10299 echo "configure: failed program was:" >&5
10300 cat conftest.$ac_ext >&5
10301 rm -rf conftest*
10302 eval "ac_cv_lib_$ac_lib_var=no"
10303fi
10304rm -f conftest*
10305LIBS="$ac_save_LIBS"
10306
10307fi
10308if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10309 echo "$ac_t""yes" 1>&6
10310 cat >> confdefs.h <<\EOF
7ec2881a
RR
10311#define HAVE_XIM 1
10312EOF
10313
698dcdb6
VZ
10314else
10315 echo "$ac_t""no" 1>&6
7ec2881a
RR
10316fi
10317
1e6feb95 10318 fi
10f2d63a 10319
1e6feb95
VZ
10320 if test "$wxUSE_MGL" = 1; then
10321
10322 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
6054113a 10323echo "configure:10324: checking for SciTech MGL library" >&5
1e6feb95
VZ
10324 if test "x$MGL_ROOT" = x ; then
10325 echo "$ac_t""not found" 1>&6
10326 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
10327 else
10328 echo "$ac_t""$MGL_ROOT" 1>&6
10329 fi
10330
3a922bb4
RL
10331 mgl_os=linux/gcc/glibc
10332 mgl_lib_type=""
1e6feb95
VZ
10333
10334 if test "$wxUSE_DEBUG_FLAG" = yes ; then
3a922bb4
RL
10335 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then
10336 mgl_lib_type=debug
1e6feb95
VZ
10337 fi
10338 fi
3a922bb4
RL
10339 if test "x$mgl_lib_type" = x ; then
10340 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then
10341 mgl_lib_type=release
1e6feb95
VZ
10342 else
10343 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
10344 fi
10345 fi
10346
10347 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 10348 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
10349
10350 AFMINSTALL=afminstall
10351 TOOLKIT=MGL
10352 GUIDIST=MGL_DIST
10353 fi
10354
10355 if test "$wxUSE_WINE" = 1; then
3a922bb4
RL
10356 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10357echo $ac_n "checking for windows.h""... $ac_c" 1>&6
6054113a 10358echo "configure:10359: checking for windows.h" >&5
3a922bb4
RL
10359if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10360 echo $ac_n "(cached) $ac_c" 1>&6
10361else
10362 cat > conftest.$ac_ext <<EOF
6054113a 10363#line 10364 "configure"
3a922bb4
RL
10364#include "confdefs.h"
10365#include <windows.h>
10366EOF
10367ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 10368{ (eval echo configure:10369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
10369ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10370if test -z "$ac_err"; then
10371 rm -rf conftest*
10372 eval "ac_cv_header_$ac_safe=yes"
10373else
10374 echo "$ac_err" >&5
10375 echo "configure: failed program was:" >&5
10376 cat conftest.$ac_ext >&5
10377 rm -rf conftest*
10378 eval "ac_cv_header_$ac_safe=no"
10379fi
10380rm -f conftest*
10381fi
10382if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10383 echo "$ac_t""yes" 1>&6
10384 :
10385else
10386 echo "$ac_t""no" 1>&6
10f2d63a 10387
1e6feb95 10388 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
3a922bb4
RL
10389
10390fi
10391
10f2d63a 10392
3a922bb4 10393 xpm_link=""
1e6feb95 10394 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6054113a 10395echo "configure:10396: checking for Xpm library" >&5
1e6feb95 10396
10f2d63a
VZ
10397ac_find_libraries=
10398for ac_dir in $SEARCH_LIB;
10399 do
f11bdd03 10400 for ac_extension in a so sl dylib; do
10f2d63a
VZ
10401 if test -f "$ac_dir/libXpm.$ac_extension"; then
10402 ac_find_libraries=$ac_dir
10403 break 2
10404 fi
10405 done
10406 done
10407
1e6feb95
VZ
10408 if test "$ac_find_libraries" != "" ; then
10409 GUI_TK_LIBRARY="-L$ac_find_libraries"
3a922bb4 10410 xpm_link="-lXpm"
1e6feb95 10411 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10412#define wxHAVE_LIB_XPM 1
10413EOF
10414
1e6feb95
VZ
10415 echo "$ac_t""found at $ac_find_libraries" 1>&6
10416 else
10417 echo "$ac_t""no" 1>&6
10418 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10419 fi
10f2d63a 10420
3a922bb4 10421 mesa_link=""
1e6feb95 10422 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
6054113a 10423echo "configure:10424: checking for Mesa library" >&5
1e6feb95 10424
10f2d63a
VZ
10425ac_find_libraries=
10426for ac_dir in $SEARCH_LIB;
10427 do
f11bdd03 10428 for ac_extension in a so sl dylib; do
10f2d63a
VZ
10429 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
10430 ac_find_libraries=$ac_dir
10431 break 2
10432 fi
10433 done
10434 done
10435
1e6feb95
VZ
10436 if test "$ac_find_libraries" != "" ; then
10437 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
3a922bb4 10438 mesa_link="-lMesaGL"
1e6feb95
VZ
10439 echo "$ac_t""found at $ac_find_libraries" 1>&6
10440 else
10441 { echo "configure: error: no" 1>&2; exit 1; }
10442 fi
10f2d63a 10443
3a922bb4 10444 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
1e6feb95
VZ
10445 TOOLKIT=MSW
10446 GUIDIST=MSW_DIST
3a922bb4 10447 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
1e6feb95 10448 fi
698dcdb6 10449
d714471b
VZ
10450 if test "$wxUSE_MOTIF" = 1; then
10451 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
10452# paths, otherwise set no_x=yes.
10453# Uses ac_ vars as temps to allow command line to override cache and checks.
10454# --without-x overrides everything else, but does not touch the cache.
10455echo $ac_n "checking for X""... $ac_c" 1>&6
6054113a 10456echo "configure:10457: checking for X" >&5
ab9b9eab
VZ
10457
10458# Check whether --with-x or --without-x was given.
10459if test "${with_x+set}" = set; then
10460 withval="$with_x"
698dcdb6
VZ
10461 :
10462fi
ba337fe7 10463
ab9b9eab
VZ
10464# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10465if test "x$with_x" = xno; then
10466 # The user explicitly disabled X.
10467 have_x=disabled
10468else
10469 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10470 # Both variables are already set.
10471 have_x=yes
10472 else
698dcdb6
VZ
10473if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10474 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
10475else
10476 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
10477ac_x_includes=NO ac_x_libraries=NO
10478rm -fr conftestdir
10479if mkdir conftestdir; then
10480 cd conftestdir
ab9b9eab 10481 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 10482 cat > Imakefile <<'EOF'
ab9b9eab
VZ
10483acfindx:
10484 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10485EOF
10486 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10487 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10488 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10489 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 10490 for ac_extension in a so sl; do
ab9b9eab 10491 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 10492 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 10493 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
10494 fi
10495 done
ab9b9eab
VZ
10496 # Screen out bogus values from the imake configuration. They are
10497 # bogus both because they are the default anyway, and because
10498 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 10499 case "$ac_im_incroot" in
ab9b9eab 10500 /usr/include) ;;
698dcdb6 10501 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 10502 esac
698dcdb6 10503 case "$ac_im_usrlibdir" in
ab9b9eab 10504 /usr/lib | /lib) ;;
698dcdb6 10505 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 10506 esac
ba337fe7 10507 fi
ab9b9eab 10508 cd ..
698dcdb6 10509 rm -fr conftestdir
ab9b9eab 10510fi
10f2d63a 10511
698dcdb6
VZ
10512if test "$ac_x_includes" = NO; then
10513 # Guess where to find include files, by looking for this one X11 .h file.
10514 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
10515
ab9b9eab 10516 # First, try using that file with no special directory specified.
698dcdb6 10517cat > conftest.$ac_ext <<EOF
6054113a 10518#line 10519 "configure"
ab9b9eab 10519#include "confdefs.h"
698dcdb6
VZ
10520#include <$x_direct_test_include>
10521EOF
10522ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 10523{ (eval echo configure:10524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10524ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10525if test -z "$ac_err"; then
10526 rm -rf conftest*
ab9b9eab
VZ
10527 # We can compile using X headers with no special include directory.
10528ac_x_includes=
10529else
698dcdb6
VZ
10530 echo "$ac_err" >&5
10531 echo "configure: failed program was:" >&5
ab9b9eab 10532 cat conftest.$ac_ext >&5
698dcdb6
VZ
10533 rm -rf conftest*
10534 # Look for the header file in a standard set of common directories.
10535# Check X11 before X11Rn because it is often a symlink to the current release.
10536 for ac_dir in \
10537 /usr/X11/include \
10538 /usr/X11R6/include \
10539 /usr/X11R5/include \
10540 /usr/X11R4/include \
10541 \
10542 /usr/include/X11 \
10543 /usr/include/X11R6 \
10544 /usr/include/X11R5 \
10545 /usr/include/X11R4 \
10546 \
10547 /usr/local/X11/include \
10548 /usr/local/X11R6/include \
10549 /usr/local/X11R5/include \
10550 /usr/local/X11R4/include \
10551 \
10552 /usr/local/include/X11 \
10553 /usr/local/include/X11R6 \
10554 /usr/local/include/X11R5 \
10555 /usr/local/include/X11R4 \
10556 \
10557 /usr/X386/include \
10558 /usr/x386/include \
10559 /usr/XFree86/include/X11 \
10560 \
10561 /usr/include \
10562 /usr/local/include \
10563 /usr/unsupported/include \
10564 /usr/athena/include \
10565 /usr/local/x11r5/include \
10566 /usr/lpp/Xamples/include \
10567 \
10568 /usr/openwin/include \
10569 /usr/openwin/share/include \
10570 ; \
10571 do
10572 if test -r "$ac_dir/$x_direct_test_include"; then
10573 ac_x_includes=$ac_dir
10574 break
10575 fi
10576 done
ab9b9eab 10577fi
698dcdb6
VZ
10578rm -f conftest*
10579fi # $ac_x_includes = NO
10f2d63a 10580
698dcdb6 10581if test "$ac_x_libraries" = NO; then
ab9b9eab 10582 # Check for the libraries.
698dcdb6
VZ
10583
10584 test -z "$x_direct_test_library" && x_direct_test_library=Xt
10585 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10586
ab9b9eab
VZ
10587 # See if we find them without any special options.
10588 # Don't add to $LIBS permanently.
698dcdb6
VZ
10589 ac_save_LIBS="$LIBS"
10590 LIBS="-l$x_direct_test_library $LIBS"
10591cat > conftest.$ac_ext <<EOF
6054113a 10592#line 10593 "configure"
ab9b9eab 10593#include "confdefs.h"
698dcdb6
VZ
10594
10595int main() {
10596${x_direct_test_function}()
10597; return 0; }
10598EOF
6054113a 10599if { (eval echo configure:10600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10600 rm -rf conftest*
10601 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
10602# We can link X programs with no special library path.
10603ac_x_libraries=
10604else
698dcdb6
VZ
10605 echo "configure: failed program was:" >&5
10606 cat conftest.$ac_ext >&5
10607 rm -rf conftest*
10608 LIBS="$ac_save_LIBS"
10609# First see if replacing the include by lib works.
10610# Check X11 before X11Rn because it is often a symlink to the current release.
10611for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10612 /usr/X11/lib \
10613 /usr/X11R6/lib \
10614 /usr/X11R5/lib \
10615 /usr/X11R4/lib \
10616 \
10617 /usr/lib/X11 \
10618 /usr/lib/X11R6 \
10619 /usr/lib/X11R5 \
10620 /usr/lib/X11R4 \
10621 \
10622 /usr/local/X11/lib \
10623 /usr/local/X11R6/lib \
10624 /usr/local/X11R5/lib \
10625 /usr/local/X11R4/lib \
10626 \
10627 /usr/local/lib/X11 \
10628 /usr/local/lib/X11R6 \
10629 /usr/local/lib/X11R5 \
10630 /usr/local/lib/X11R4 \
10631 \
10632 /usr/X386/lib \
10633 /usr/x386/lib \
10634 /usr/XFree86/lib/X11 \
10635 \
10636 /usr/lib \
10637 /usr/local/lib \
10638 /usr/unsupported/lib \
10639 /usr/athena/lib \
10640 /usr/local/x11r5/lib \
10641 /usr/lpp/Xamples/lib \
10642 /lib/usr/lib/X11 \
10643 \
10644 /usr/openwin/lib \
10645 /usr/openwin/share/lib \
10646 ; \
ab9b9eab
VZ
10647do
10648 for ac_extension in a so sl; do
698dcdb6 10649 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
10650 ac_x_libraries=$ac_dir
10651 break 2
10f2d63a 10652 fi
10f2d63a 10653 done
ab9b9eab
VZ
10654done
10655fi
698dcdb6
VZ
10656rm -f conftest*
10657fi # $ac_x_libraries = NO
10f2d63a 10658
698dcdb6 10659if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
10660 # Didn't find X anywhere. Cache the known absence of X.
10661 ac_cv_have_x="have_x=no"
10662else
10663 # Record where we found X for the cache.
10664 ac_cv_have_x="have_x=yes \
10665 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10666fi
10667fi
10f2d63a 10668 fi
ab9b9eab
VZ
10669 eval "$ac_cv_have_x"
10670fi # $with_x != no
10f2d63a 10671
ab9b9eab 10672if test "$have_x" != yes; then
698dcdb6 10673 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
10674 no_x=yes
10675else
10676 # If each of the values was on the command line, it overrides each guess.
10677 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10678 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10679 # Update the cache value to reflect the command line values.
10680 ac_cv_have_x="have_x=yes \
10681 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 10682 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 10683fi
10f2d63a 10684
ab9b9eab
VZ
10685if test "$no_x" = yes; then
10686 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 10687 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10688#define X_DISPLAY_MISSING 1
10689EOF
10f2d63a 10690
ab9b9eab
VZ
10691 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10692else
10693 if test -n "$x_includes"; then
10694 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
10695 fi
10696
ab9b9eab
VZ
10697 # It would also be nice to do this for all -L options, not just this one.
10698 if test -n "$x_libraries"; then
10699 X_LIBS="$X_LIBS -L$x_libraries"
10700 # For Solaris; some versions of Sun CC require a space after -R and
10701 # others require no space. Words are not sufficient . . . .
698dcdb6 10702 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 10703 "SunOS 5"*)
698dcdb6 10704 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6054113a 10705echo "configure:10706: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
10706 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10707 cat > conftest.$ac_ext <<EOF
6054113a 10708#line 10709 "configure"
ab9b9eab 10709#include "confdefs.h"
10f2d63a 10710
698dcdb6 10711int main() {
788deba1 10712
698dcdb6
VZ
10713; return 0; }
10714EOF
6054113a 10715if { (eval echo configure:10716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10716 rm -rf conftest*
ab9b9eab
VZ
10717 ac_R_nospace=yes
10718else
698dcdb6
VZ
10719 echo "configure: failed program was:" >&5
10720 cat conftest.$ac_ext >&5
10721 rm -rf conftest*
10722 ac_R_nospace=no
ab9b9eab 10723fi
698dcdb6 10724rm -f conftest*
ab9b9eab 10725 if test $ac_R_nospace = yes; then
698dcdb6 10726 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10727 X_LIBS="$X_LIBS -R$x_libraries"
10728 else
10729 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 10730 cat > conftest.$ac_ext <<EOF
6054113a 10731#line 10732 "configure"
ab9b9eab 10732#include "confdefs.h"
788deba1 10733
698dcdb6 10734int main() {
ab9b9eab 10735
698dcdb6
VZ
10736; return 0; }
10737EOF
6054113a 10738if { (eval echo configure:10739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10739 rm -rf conftest*
ab9b9eab
VZ
10740 ac_R_space=yes
10741else
698dcdb6
VZ
10742 echo "configure: failed program was:" >&5
10743 cat conftest.$ac_ext >&5
10744 rm -rf conftest*
10745 ac_R_space=no
ab9b9eab 10746fi
698dcdb6 10747rm -f conftest*
ab9b9eab 10748 if test $ac_R_space = yes; then
698dcdb6 10749 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
10750 X_LIBS="$X_LIBS -R $x_libraries"
10751 else
698dcdb6 10752 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
10753 fi
10754 fi
698dcdb6 10755 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
10756 esac
10757 fi
10758
10759 # Check for system-dependent libraries X programs must link with.
10760 # Do this before checking for the system-independent R6 libraries
10761 # (-lICE), since we may need -lsocket or whatever for X linking.
10762
10763 if test "$ISC" = yes; then
10764 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10765 else
698dcdb6
VZ
10766 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10767 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 10768 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 10769 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6054113a 10770echo "configure:10771: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
10771ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10772if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10773 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10774else
698dcdb6 10775 ac_save_LIBS="$LIBS"
ab9b9eab 10776LIBS="-ldnet $LIBS"
698dcdb6 10777cat > conftest.$ac_ext <<EOF
6054113a 10778#line 10779 "configure"
ab9b9eab
VZ
10779#include "confdefs.h"
10780/* Override any gcc2 internal prototype to avoid an error. */
10781/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10782 builtin and then its argument prototype would still apply. */
10783char dnet_ntoa();
10784
10785int main() {
10786dnet_ntoa()
10787; return 0; }
10788EOF
6054113a 10789if { (eval echo configure:10790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10790 rm -rf conftest*
10791 eval "ac_cv_lib_$ac_lib_var=yes"
10792else
10793 echo "configure: failed program was:" >&5
10794 cat conftest.$ac_ext >&5
10795 rm -rf conftest*
10796 eval "ac_cv_lib_$ac_lib_var=no"
10797fi
10798rm -f conftest*
10799LIBS="$ac_save_LIBS"
10800
10801fi
10802if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10803 echo "$ac_t""yes" 1>&6
ab9b9eab 10804 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
10805else
10806 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10807fi
10808
10809 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 10810 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6054113a 10811echo "configure:10812: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
10812ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10813if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10814 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10815else
698dcdb6 10816 ac_save_LIBS="$LIBS"
ab9b9eab 10817LIBS="-ldnet_stub $LIBS"
698dcdb6 10818cat > conftest.$ac_ext <<EOF
6054113a 10819#line 10820 "configure"
ab9b9eab
VZ
10820#include "confdefs.h"
10821/* Override any gcc2 internal prototype to avoid an error. */
10822/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10823 builtin and then its argument prototype would still apply. */
10824char dnet_ntoa();
10825
10826int main() {
10827dnet_ntoa()
10828; return 0; }
10829EOF
6054113a 10830if { (eval echo configure:10831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10831 rm -rf conftest*
10832 eval "ac_cv_lib_$ac_lib_var=yes"
10833else
10834 echo "configure: failed program was:" >&5
10835 cat conftest.$ac_ext >&5
10836 rm -rf conftest*
10837 eval "ac_cv_lib_$ac_lib_var=no"
10838fi
10839rm -f conftest*
10840LIBS="$ac_save_LIBS"
10841
10842fi
10843if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10844 echo "$ac_t""yes" 1>&6
ab9b9eab 10845 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
10846else
10847 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10848fi
10849
10850 fi
10851
10852 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10853 # to get the SysV transport functions.
698dcdb6 10854 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
10855 # needs -lnsl.
10856 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
10857 # on Irix 5.2, according to dickey@clark.net.
10858 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6054113a 10859echo "configure:10860: checking for gethostbyname" >&5
698dcdb6
VZ
10860if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10861 echo $ac_n "(cached) $ac_c" 1>&6
10862else
10863 cat > conftest.$ac_ext <<EOF
6054113a 10864#line 10865 "configure"
ab9b9eab
VZ
10865#include "confdefs.h"
10866/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10867 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
10868#include <assert.h>
10869/* Override any gcc2 internal prototype to avoid an error. */
10870/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10871 builtin and then its argument prototype would still apply. */
10872char gethostbyname();
10873
10874int main() {
ab9b9eab
VZ
10875
10876/* The GNU C library defines this for functions which it implements
10877 to always fail with ENOSYS. Some functions are actually named
10878 something starting with __ and the normal name is an alias. */
10879#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10880choke me
10881#else
698dcdb6 10882gethostbyname();
ab9b9eab
VZ
10883#endif
10884
698dcdb6
VZ
10885; return 0; }
10886EOF
6054113a 10887if { (eval echo configure:10888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10888 rm -rf conftest*
10889 eval "ac_cv_func_gethostbyname=yes"
10890else
10891 echo "configure: failed program was:" >&5
10892 cat conftest.$ac_ext >&5
10893 rm -rf conftest*
10894 eval "ac_cv_func_gethostbyname=no"
10895fi
10896rm -f conftest*
10897fi
10898
10899if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10900 echo "$ac_t""yes" 1>&6
10901 :
10902else
10903 echo "$ac_t""no" 1>&6
10904fi
ab9b9eab
VZ
10905
10906 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 10907 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6054113a 10908echo "configure:10909: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
10909ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10910if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10911 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10912else
698dcdb6 10913 ac_save_LIBS="$LIBS"
ab9b9eab 10914LIBS="-lnsl $LIBS"
698dcdb6 10915cat > conftest.$ac_ext <<EOF
6054113a 10916#line 10917 "configure"
ab9b9eab
VZ
10917#include "confdefs.h"
10918/* Override any gcc2 internal prototype to avoid an error. */
10919/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10920 builtin and then its argument prototype would still apply. */
10921char gethostbyname();
6232543b 10922
698dcdb6
VZ
10923int main() {
10924gethostbyname()
10925; return 0; }
10926EOF
6054113a 10927if { (eval echo configure:10928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10928 rm -rf conftest*
10929 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 10930else
698dcdb6
VZ
10931 echo "configure: failed program was:" >&5
10932 cat conftest.$ac_ext >&5
10933 rm -rf conftest*
10934 eval "ac_cv_lib_$ac_lib_var=no"
10935fi
10936rm -f conftest*
10937LIBS="$ac_save_LIBS"
1e487827 10938
698dcdb6
VZ
10939fi
10940if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10941 echo "$ac_t""yes" 1>&6
10942 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10943else
10944 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10945fi
10946
10947 fi
10948
10949 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10950 # socket/setsockopt and other routines are undefined under SCO ODT
10951 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
10952 # on later versions), says simon@lia.di.epfl.ch: it contains
10953 # gethostby* variants that don't use the nameserver (or something).
10954 # -lsocket must be given before -lnsl if both are needed.
10955 # We assume that if connect needs -lnsl, so does gethostbyname.
10956 echo $ac_n "checking for connect""... $ac_c" 1>&6
6054113a 10957echo "configure:10958: checking for connect" >&5
698dcdb6
VZ
10958if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10959 echo $ac_n "(cached) $ac_c" 1>&6
10960else
10961 cat > conftest.$ac_ext <<EOF
6054113a 10962#line 10963 "configure"
ab9b9eab
VZ
10963#include "confdefs.h"
10964/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10965 which can conflict with char connect(); below. */
ab9b9eab
VZ
10966#include <assert.h>
10967/* Override any gcc2 internal prototype to avoid an error. */
10968/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10969 builtin and then its argument prototype would still apply. */
10970char connect();
10971
10972int main() {
ab9b9eab
VZ
10973
10974/* The GNU C library defines this for functions which it implements
10975 to always fail with ENOSYS. Some functions are actually named
10976 something starting with __ and the normal name is an alias. */
10977#if defined (__stub_connect) || defined (__stub___connect)
10978choke me
10979#else
698dcdb6 10980connect();
ab9b9eab
VZ
10981#endif
10982
698dcdb6
VZ
10983; return 0; }
10984EOF
6054113a 10985if { (eval echo configure:10986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10986 rm -rf conftest*
10987 eval "ac_cv_func_connect=yes"
10988else
10989 echo "configure: failed program was:" >&5
10990 cat conftest.$ac_ext >&5
10991 rm -rf conftest*
10992 eval "ac_cv_func_connect=no"
10993fi
10994rm -f conftest*
10995fi
10996
10997if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10998 echo "$ac_t""yes" 1>&6
10999 :
11000else
11001 echo "$ac_t""no" 1>&6
11002fi
ab9b9eab
VZ
11003
11004 if test $ac_cv_func_connect = no; then
698dcdb6 11005 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6054113a 11006echo "configure:11007: checking for connect in -lsocket" >&5
698dcdb6
VZ
11007ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11008if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11009 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11010else
698dcdb6 11011 ac_save_LIBS="$LIBS"
ab9b9eab 11012LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 11013cat > conftest.$ac_ext <<EOF
6054113a 11014#line 11015 "configure"
ab9b9eab
VZ
11015#include "confdefs.h"
11016/* Override any gcc2 internal prototype to avoid an error. */
11017/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11018 builtin and then its argument prototype would still apply. */
11019char connect();
11020
11021int main() {
11022connect()
11023; return 0; }
11024EOF
6054113a 11025if { (eval echo configure:11026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11026 rm -rf conftest*
11027 eval "ac_cv_lib_$ac_lib_var=yes"
11028else
11029 echo "configure: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11031 rm -rf conftest*
11032 eval "ac_cv_lib_$ac_lib_var=no"
11033fi
11034rm -f conftest*
11035LIBS="$ac_save_LIBS"
11036
11037fi
11038if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11039 echo "$ac_t""yes" 1>&6
ab9b9eab 11040 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
11041else
11042 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11043fi
11044
11045 fi
11046
698dcdb6
VZ
11047 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11048 echo $ac_n "checking for remove""... $ac_c" 1>&6
6054113a 11049echo "configure:11050: checking for remove" >&5
698dcdb6
VZ
11050if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11051 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11052else
698dcdb6 11053 cat > conftest.$ac_ext <<EOF
6054113a 11054#line 11055 "configure"
ab9b9eab
VZ
11055#include "confdefs.h"
11056/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11057 which can conflict with char remove(); below. */
ab9b9eab
VZ
11058#include <assert.h>
11059/* Override any gcc2 internal prototype to avoid an error. */
11060/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11061 builtin and then its argument prototype would still apply. */
11062char remove();
11063
11064int main() {
ab9b9eab
VZ
11065
11066/* The GNU C library defines this for functions which it implements
11067 to always fail with ENOSYS. Some functions are actually named
11068 something starting with __ and the normal name is an alias. */
11069#if defined (__stub_remove) || defined (__stub___remove)
11070choke me
11071#else
698dcdb6 11072remove();
ab9b9eab
VZ
11073#endif
11074
698dcdb6
VZ
11075; return 0; }
11076EOF
6054113a 11077if { (eval echo configure:11078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11078 rm -rf conftest*
11079 eval "ac_cv_func_remove=yes"
11080else
11081 echo "configure: failed program was:" >&5
11082 cat conftest.$ac_ext >&5
11083 rm -rf conftest*
11084 eval "ac_cv_func_remove=no"
11085fi
11086rm -f conftest*
11087fi
11088
11089if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11090 echo "$ac_t""yes" 1>&6
11091 :
11092else
11093 echo "$ac_t""no" 1>&6
11094fi
ab9b9eab
VZ
11095
11096 if test $ac_cv_func_remove = no; then
698dcdb6 11097 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6054113a 11098echo "configure:11099: checking for remove in -lposix" >&5
698dcdb6
VZ
11099ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11100if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11101 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11102else
698dcdb6 11103 ac_save_LIBS="$LIBS"
ab9b9eab 11104LIBS="-lposix $LIBS"
698dcdb6 11105cat > conftest.$ac_ext <<EOF
6054113a 11106#line 11107 "configure"
ab9b9eab
VZ
11107#include "confdefs.h"
11108/* Override any gcc2 internal prototype to avoid an error. */
11109/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11110 builtin and then its argument prototype would still apply. */
11111char remove();
11112
11113int main() {
11114remove()
11115; return 0; }
11116EOF
6054113a 11117if { (eval echo configure:11118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11118 rm -rf conftest*
11119 eval "ac_cv_lib_$ac_lib_var=yes"
11120else
11121 echo "configure: failed program was:" >&5
11122 cat conftest.$ac_ext >&5
11123 rm -rf conftest*
11124 eval "ac_cv_lib_$ac_lib_var=no"
11125fi
11126rm -f conftest*
11127LIBS="$ac_save_LIBS"
11128
11129fi
11130if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11131 echo "$ac_t""yes" 1>&6
ab9b9eab 11132 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
11133else
11134 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11135fi
11136
11137 fi
11138
11139 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 11140 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6054113a 11141echo "configure:11142: checking for shmat" >&5
698dcdb6
VZ
11142if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11143 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11144else
698dcdb6 11145 cat > conftest.$ac_ext <<EOF
6054113a 11146#line 11147 "configure"
ab9b9eab
VZ
11147#include "confdefs.h"
11148/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11149 which can conflict with char shmat(); below. */
ab9b9eab
VZ
11150#include <assert.h>
11151/* Override any gcc2 internal prototype to avoid an error. */
11152/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11153 builtin and then its argument prototype would still apply. */
11154char shmat();
11155
11156int main() {
ab9b9eab
VZ
11157
11158/* The GNU C library defines this for functions which it implements
11159 to always fail with ENOSYS. Some functions are actually named
11160 something starting with __ and the normal name is an alias. */
11161#if defined (__stub_shmat) || defined (__stub___shmat)
11162choke me
11163#else
698dcdb6 11164shmat();
ab9b9eab
VZ
11165#endif
11166
698dcdb6
VZ
11167; return 0; }
11168EOF
6054113a 11169if { (eval echo configure:11170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11170 rm -rf conftest*
11171 eval "ac_cv_func_shmat=yes"
11172else
11173 echo "configure: failed program was:" >&5
11174 cat conftest.$ac_ext >&5
11175 rm -rf conftest*
11176 eval "ac_cv_func_shmat=no"
11177fi
11178rm -f conftest*
11179fi
11180
11181if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
11182 echo "$ac_t""yes" 1>&6
11183 :
11184else
11185 echo "$ac_t""no" 1>&6
11186fi
ab9b9eab
VZ
11187
11188 if test $ac_cv_func_shmat = no; then
698dcdb6 11189 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6054113a 11190echo "configure:11191: checking for shmat in -lipc" >&5
698dcdb6
VZ
11191ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
11192if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11193 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11194else
698dcdb6 11195 ac_save_LIBS="$LIBS"
ab9b9eab 11196LIBS="-lipc $LIBS"
698dcdb6 11197cat > conftest.$ac_ext <<EOF
6054113a 11198#line 11199 "configure"
ab9b9eab
VZ
11199#include "confdefs.h"
11200/* Override any gcc2 internal prototype to avoid an error. */
11201/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11202 builtin and then its argument prototype would still apply. */
11203char shmat();
11204
11205int main() {
11206shmat()
11207; return 0; }
11208EOF
6054113a 11209if { (eval echo configure:11210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11210 rm -rf conftest*
11211 eval "ac_cv_lib_$ac_lib_var=yes"
11212else
11213 echo "configure: failed program was:" >&5
11214 cat conftest.$ac_ext >&5
11215 rm -rf conftest*
11216 eval "ac_cv_lib_$ac_lib_var=no"
11217fi
11218rm -f conftest*
11219LIBS="$ac_save_LIBS"
11220
11221fi
11222if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11223 echo "$ac_t""yes" 1>&6
ab9b9eab 11224 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
11225else
11226 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11227fi
11228
11229 fi
11230 fi
11231
11232 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 11233 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
11234 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11235 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11236 # check for ICE first), but we must link in the order -lSM -lICE or
11237 # we get undefined symbols. So assume we have SM if we have ICE.
11238 # These have to be linked with before -lX11, unlike the other
11239 # libraries we check for below, so use a different variable.
698dcdb6
VZ
11240 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
11241 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6054113a 11242echo "configure:11243: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
11243ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
11244if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11245 echo $ac_n "(cached) $ac_c" 1>&6
11246else
11247 ac_save_LIBS="$LIBS"
ab9b9eab 11248LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 11249cat > conftest.$ac_ext <<EOF
6054113a 11250#line 11251 "configure"
ab9b9eab
VZ
11251#include "confdefs.h"
11252/* Override any gcc2 internal prototype to avoid an error. */
11253/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11254 builtin and then its argument prototype would still apply. */
11255char IceConnectionNumber();
11256
11257int main() {
11258IceConnectionNumber()
11259; return 0; }
11260EOF
6054113a 11261if { (eval echo configure:11262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11262 rm -rf conftest*
11263 eval "ac_cv_lib_$ac_lib_var=yes"
11264else
11265 echo "configure: failed program was:" >&5
11266 cat conftest.$ac_ext >&5
11267 rm -rf conftest*
11268 eval "ac_cv_lib_$ac_lib_var=no"
11269fi
11270rm -f conftest*
11271LIBS="$ac_save_LIBS"
11272
11273fi
11274if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11275 echo "$ac_t""yes" 1>&6
ab9b9eab 11276 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
11277else
11278 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11279fi
11280
698dcdb6 11281 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
11282
11283fi
11284
11285
1e6feb95
VZ
11286 if test "$no_x" = "yes"; then
11287 { echo "configure: error: X11 not found" 1>&2; exit 1; }
11288 fi
ab9b9eab 11289
1e6feb95
VZ
11290 GUI_TK_LIBRARY="$X_LIBS"
11291 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 11292 AFMINSTALL=afminstall
1e6feb95 11293 COMPILED_X_PROGRAM=0
cd6d6d5b 11294
1e6feb95 11295 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
6054113a 11296echo "configure:11297: checking for Motif/Lesstif headers" >&5
1e6feb95 11297
ab9b9eab
VZ
11298ac_find_includes=
11299for ac_dir in $SEARCH_INCLUDE;
11300 do
11301 if test -f "$ac_dir/Xm/Xm.h"; then
11302 ac_find_includes=$ac_dir
11303 break
11304 fi
11305 done
11306
1e6feb95
VZ
11307 if test "$ac_find_includes" != "" ; then
11308 echo "$ac_t""found $ac_find_includes" 1>&6
11309 else
11310 cat > conftest.$ac_ext <<EOF
6054113a 11311#line 11312 "configure"
cd6d6d5b
VZ
11312#include "confdefs.h"
11313
1e6feb95
VZ
11314 #include <Xm/Xm.h>
11315
698dcdb6 11316int main() {
cd6d6d5b 11317
1e6feb95 11318 int version;
1e6feb95
VZ
11319 version = xmUseVersion;
11320
698dcdb6
VZ
11321; return 0; }
11322EOF
6054113a 11323if { (eval echo configure:11324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11324 rm -rf conftest*
11325
1e6feb95
VZ
11326 echo "$ac_t""found in default search path" 1>&6
11327 COMPILED_X_PROGRAM=1
11328
cd6d6d5b 11329else
698dcdb6
VZ
11330 echo "configure: failed program was:" >&5
11331 cat conftest.$ac_ext >&5
11332 rm -rf conftest*
11333
1e6feb95
VZ
11334 echo "$ac_t""no" 1>&6
11335 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
11336
698dcdb6 11337
cd6d6d5b 11338fi
698dcdb6 11339rm -f conftest*
1e6feb95 11340 fi
ab9b9eab 11341
1e6feb95
VZ
11342 if test "$COMPILED_X_PROGRAM" = 0; then
11343 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
6054113a 11344echo "configure:11345: checking for Motif/Lesstif library" >&5
1e6feb95 11345
ab9b9eab
VZ
11346ac_find_libraries=
11347for ac_dir in $SEARCH_LIB;
11348 do
f11bdd03 11349 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
11350 if test -f "$ac_dir/libXm.$ac_extension"; then
11351 ac_find_libraries=$ac_dir
11352 break 2
11353 fi
11354 done
11355 done
11356
1e6feb95
VZ
11357 if test "$ac_find_libraries" != "" ; then
11358
ab9b9eab
VZ
11359 ac_path_to_include=$ac_find_includes
11360 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
11361 result=$?
11362 if test $result = 0; then
11363 ac_path_to_include=""
11364 else
11365 ac_path_to_include="-I$ac_find_includes"
11366 fi
11367
1e6feb95 11368
ab9b9eab
VZ
11369 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11370 result=$?
11371 if test $result = 0; then
11372 ac_path_to_link=""
11373 else
11374 ac_path_to_link="-L$ac_find_libraries"
11375 fi
11376
698dcdb6 11377
1e6feb95
VZ
11378 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
11379 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
11380 echo "$ac_t""found at $ac_find_libraries" 1>&6
11381 else
11382 cat > conftest.$ac_ext <<EOF
6054113a 11383#line 11384 "configure"
cd6d6d5b 11384#include "confdefs.h"
ab9b9eab 11385
1e6feb95
VZ
11386 #include <Xm/Xm.h>
11387
698dcdb6 11388int main() {
ab9b9eab 11389
1e6feb95 11390 int version;
1e6feb95
VZ
11391 version = xmUseVersion;
11392
698dcdb6
VZ
11393; return 0; }
11394EOF
6054113a 11395if { (eval echo configure:11396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11396 rm -rf conftest*
11397
1e6feb95
VZ
11398 echo "$ac_t""found in default search path" 1>&6
11399 COMPILED_X_PROGRAM=1
11400
cd6d6d5b 11401else
698dcdb6
VZ
11402 echo "configure: failed program was:" >&5
11403 cat conftest.$ac_ext >&5
11404 rm -rf conftest*
11405
1e6feb95
VZ
11406 echo "$ac_t""no" 1>&6
11407 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
11408
698dcdb6 11409
cd6d6d5b 11410fi
698dcdb6 11411rm -f conftest*
1e6feb95 11412 fi
cd6d6d5b 11413 fi
ab9b9eab 11414
3a922bb4 11415 xpm_link=""
1e6feb95 11416 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6054113a 11417echo "configure:11418: checking for Xpm library" >&5
1e6feb95 11418
ab9b9eab
VZ
11419ac_find_libraries=
11420for ac_dir in $SEARCH_LIB;
11421 do
f11bdd03 11422 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
11423 if test -f "$ac_dir/libXpm.$ac_extension"; then
11424 ac_find_libraries=$ac_dir
11425 break 2
11426 fi
11427 done
11428 done
11429
1e6feb95
VZ
11430 if test "$ac_find_libraries" != "" ; then
11431
ab9b9eab
VZ
11432 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11433 result=$?
11434 if test $result = 0; then
11435 ac_path_to_link=""
11436 else
11437 ac_path_to_link="-L$ac_find_libraries"
11438 fi
11439
1e6feb95 11440 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
3a922bb4 11441 xpm_link="-lXpm "
1e6feb95 11442 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
11443#define wxHAVE_LIB_XPM 1
11444EOF
11445
1e6feb95
VZ
11446 echo "$ac_t""found at $ac_find_libraries" 1>&6
11447 else
11448 cat > conftest.$ac_ext <<EOF
6054113a 11449#line 11450 "configure"
cd6d6d5b
VZ
11450#include "confdefs.h"
11451
1e6feb95
VZ
11452 #include <X11/xpm.h>
11453
698dcdb6 11454int main() {
cd6d6d5b 11455
1e6feb95 11456 int version;
1e6feb95
VZ
11457 version = XpmLibraryVersion();
11458
698dcdb6
VZ
11459; return 0; }
11460EOF
6054113a 11461if { (eval echo configure:11462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11462 rm -rf conftest*
11463
3a922bb4
RL
11464 xpm_link="-lXpm "
11465 cat >> confdefs.h <<\EOF
3ace2e6d
SN
11466#define wxHAVE_LIB_XPM 1
11467EOF
11468
1e6feb95
VZ
11469 echo "$ac_t""found in default search path" 1>&6
11470 COMPILED_X_PROGRAM=0
11471
cd6d6d5b 11472else
698dcdb6
VZ
11473 echo "configure: failed program was:" >&5
11474 cat conftest.$ac_ext >&5
11475 rm -rf conftest*
11476
1e6feb95
VZ
11477 echo "$ac_t""no" 1>&6
11478 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11479
698dcdb6 11480
cd6d6d5b 11481fi
698dcdb6 11482rm -f conftest*
1e6feb95
VZ
11483 fi
11484
3a922bb4 11485 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11"
334f0d2c 11486 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
1e6feb95
VZ
11487 TOOLKIT=MOTIF
11488 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
11489 fi
11490
683dccda
GD
11491 if test "$wxUSE_MAC" = 1; then
11492 if test "$wxUSE_PRECOMP" = "yes"; then
11493 CPPFLAGS="${CPPFLAGS} -cpp-precomp"
11494 fi
13c0541d 11495 CPPFLAGS="${CPPFLAGS} -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
d08b457b
GD
11496 CFLAGS="${CFLAGS} -fpascal-strings"
11497 CXXFLAGS="${CXXFLAGS} -fpascal-strings"
11498 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON"
11499
13c0541d 11500 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
1e6feb95 11501 TOOLKIT=MAC
683dccda 11502 GUIDIST=MACX_DIST
1e6feb95 11503 fi
10f2d63a 11504
1e6feb95
VZ
11505 if test "$wxUSE_PM" = 1; then
11506 TOOLKIT=PM
11507 GUIDIST=GTK_DIST
11508 fi
b4085ce6 11509
3a922bb4 11510 if test "$TOOLKIT" = "PM" ; then
1e6feb95 11511 TOOLKIT_DIR="os2"
3a922bb4
RL
11512 else
11513 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 11514 fi
e07802fc 11515
3a922bb4 11516 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 11517
3a922bb4
RL
11518 if test "$wxUSE_UNIVERSAL" = "yes"; then
11519 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
11520 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
11521 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
11522 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
11523 WIDGET_SET=univ
f6bcfd97 11524 else
3a922bb4 11525 ALL_OBJECTS="\$(GUIOBJS)"
1e6feb95
VZ
11526 fi
11527
11528 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
11529
11530 if test "$TOOLKIT" != "MSW"; then
11531 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
11532 fi
11533
11534 if test "$wxUSE_HTML" = "yes"; then
11535 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
11536 fi
3fcdd07b 11537
3a922bb4
RL
11538 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
11539 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
831b3152 11540 fi
4f14bcd8 11541 if test "$wxUSE_LIBJPEG" = "builtin" ; then
2224580a 11542 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d 11543 fi
4f14bcd8 11544 if test "$wxUSE_LIBTIFF" = "builtin" ; then
d9d8273d
RR
11545 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
11546 fi
4f14bcd8 11547 if test "$wxUSE_LIBPNG" = "builtin" ; then
d9d8273d
RR
11548 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
11549 fi
4f14bcd8 11550 if test "$wxUSE_FREETYPE" = "builtin" ; then
3fed1840
RR
11551 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
11552 fi
2224580a 11553
2224580a
VZ
11554 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
11555 RPM_SPEC="wx\$(TOOLKIT).spec"
11556
11557 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
11558 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 11559else
dad6c0ea
VZ
11560 USE_GUI=0
11561
3a922bb4 11562 TOOLKIT_DIR="base"
f6bcfd97 11563
3a922bb4
RL
11564 if test "$USE_WIN32" = 1 ; then
11565 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
11566 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 11567
3a922bb4 11568 TOOLKIT="MSW"
f6bcfd97 11569 else
3a922bb4
RL
11570 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
11571 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
11572 fi
11573
831b3152 11574 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
11575 RPM_FILES="src/rpmfiles.lst"
11576 RPM_SPEC="wxBase.spec"
11577
11578 GUIDIST="BASE_DIST"
11579 DISTDIR="wxBase"
10f2d63a
VZ
11580fi
11581
4f14bcd8 11582if test "$wxUSE_REGEX" = "builtin" ; then
3a922bb4
RL
11583 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
11584fi
4f14bcd8 11585if test "$wxUSE_ZLIB" = "builtin" ; then
3a922bb4
RL
11586 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
11587fi
10f2d63a 11588
3a922bb4
RL
11589if test "$wxUSE_OPENGL" = "yes"; then
11590 if test "$wxUSE_MAC" = 1; then
3a922bb4 11591 OPENGL_LIBS="-framework OpenGL -framework AGL"
3a922bb4 11592 else
6f754473 11593 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
3a922bb4 11594echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
6054113a 11595echo "configure:11596: checking for GL/gl.h" >&5
3a922bb4
RL
11596if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11597 echo $ac_n "(cached) $ac_c" 1>&6
11598else
11599 cat > conftest.$ac_ext <<EOF
6054113a 11600#line 11601 "configure"
3a922bb4
RL
11601#include "confdefs.h"
11602#include <GL/gl.h>
11603EOF
11604ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 11605{ (eval echo configure:11606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
11606ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11607if test -z "$ac_err"; then
11608 rm -rf conftest*
11609 eval "ac_cv_header_$ac_safe=yes"
11610else
11611 echo "$ac_err" >&5
11612 echo "configure: failed program was:" >&5
11613 cat conftest.$ac_ext >&5
11614 rm -rf conftest*
11615 eval "ac_cv_header_$ac_safe=no"
11616fi
11617rm -f conftest*
11618fi
11619if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11620 echo "$ac_t""yes" 1>&6
11621
3a922bb4 11622 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
6054113a 11623echo "configure:11624: checking for glFlush in -lGL" >&5
3a922bb4
RL
11624ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
11625if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11626 echo $ac_n "(cached) $ac_c" 1>&6
11627else
11628 ac_save_LIBS="$LIBS"
11629LIBS="-lGL $LIBS"
11630cat > conftest.$ac_ext <<EOF
6054113a 11631#line 11632 "configure"
3a922bb4
RL
11632#include "confdefs.h"
11633/* Override any gcc2 internal prototype to avoid an error. */
11634/* We use char because int might match the return type of a gcc2
11635 builtin and then its argument prototype would still apply. */
11636char glFlush();
55e80573 11637
3a922bb4
RL
11638int main() {
11639glFlush()
11640; return 0; }
11641EOF
6054113a 11642if { (eval echo configure:11643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4
RL
11643 rm -rf conftest*
11644 eval "ac_cv_lib_$ac_lib_var=yes"
11645else
11646 echo "configure: failed program was:" >&5
11647 cat conftest.$ac_ext >&5
11648 rm -rf conftest*
11649 eval "ac_cv_lib_$ac_lib_var=no"
11650fi
11651rm -f conftest*
11652LIBS="$ac_save_LIBS"
55e80573 11653
3a922bb4
RL
11654fi
11655if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11656 echo "$ac_t""yes" 1>&6
11657
11658 OPENGL_LIBS="-lGL -lGLU"
11659
11660else
11661 echo "$ac_t""no" 1>&6
11662
6f754473 11663 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
6054113a 11664echo "configure:11665: checking for glFlush in -lMesaGL" >&5
3a922bb4
RL
11665ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
11666if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11667 echo $ac_n "(cached) $ac_c" 1>&6
11668else
11669 ac_save_LIBS="$LIBS"
11670LIBS="-lMesaGL $LIBS"
11671cat > conftest.$ac_ext <<EOF
6054113a 11672#line 11673 "configure"
3a922bb4
RL
11673#include "confdefs.h"
11674/* Override any gcc2 internal prototype to avoid an error. */
11675/* We use char because int might match the return type of a gcc2
11676 builtin and then its argument prototype would still apply. */
11677char glFlush();
11678
11679int main() {
11680glFlush()
11681; return 0; }
11682EOF
6054113a 11683if { (eval echo configure:11684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4
RL
11684 rm -rf conftest*
11685 eval "ac_cv_lib_$ac_lib_var=yes"
11686else
11687 echo "configure: failed program was:" >&5
11688 cat conftest.$ac_ext >&5
11689 rm -rf conftest*
11690 eval "ac_cv_lib_$ac_lib_var=no"
11691fi
11692rm -f conftest*
11693LIBS="$ac_save_LIBS"
11694
11695fi
11696if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11697 echo "$ac_t""yes" 1>&6
11698
11699 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11700
11701else
11702 echo "$ac_t""no" 1>&6
11703fi
55e80573 11704
6f754473 11705
3a922bb4
RL
11706fi
11707
6f754473 11708
3a922bb4
RL
11709else
11710 echo "$ac_t""no" 1>&6
3a922bb4
RL
11711fi
11712
6f754473
VZ
11713
11714 if test "x$OPENGL_LIBS" = "x"; then
11715 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
11716 fi
11717 fi
11718
11719 if test "$wxUSE_OPENGL" = "yes"; then
11720 cat >> confdefs.h <<\EOF
11721#define wxUSE_OPENGL 1
11722EOF
11723
11724 cat >> confdefs.h <<\EOF
11725#define wxUSE_GLCANVAS 1
11726EOF
11727
11728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
3a922bb4
RL
11729 fi
11730fi
11731
11732if test -z "$TOOLKIT_VPATH" ; then
11733 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11734fi
11735
11736if test -n "$TOOLKIT" ; then
11737 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11738fi
11739
f676c7ff
MB
11740lib_unicode_suffix=
11741if test "$wxUSE_UNICODE" = "yes"; then
11742 lib_unicode_suffix=u
11743fi
11744
3a922bb4
RL
11745lib_debug_suffix=
11746if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11747 lib_debug_suffix=d
3a922bb4
RL
11748fi
11749
f676c7ff
MB
11750TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
11751TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
3a922bb4
RL
11752
11753if test "$cross_compiling" = "yes"; then
11754 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11755 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11756fi
11757
11758WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11759WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11760
11761WXCONFIG_LIBS="-l${WX_LIBRARY}"
11762
11763if test "$wxUSE_OPENGL" = "yes"; then
11764 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS"
11765fi
11766
11767WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11768WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11769
11770WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11771WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11772
11773WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11774WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11775WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11776WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11777
d08b457b 11778WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
e23081de 11779WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
3a922bb4
RL
11780
11781
11782if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
11783
11784 if test "$wxUSE_OPENGL" = "yes"; then
11785 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 11786 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
11787 else
11788 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 11789 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
11790 fi
11791
dd4f7467 11792 if test "$GCC" = "yes"; then
55e80573 11793 PIC_FLAG="-fPIC"
dd4f7467 11794 fi
55e80573
VZ
11795
11796 SHARED_LD="${CXX} -shared -o"
698dcdb6 11797
10f2d63a
VZ
11798 case "${host}" in
11799 *-hp-hpux* )
55e80573 11800 if test "$GCC" != "yes"; then
f6bcfd97
BP
11801 LDFLAGS="-L/usr/lib"
11802
10f2d63a
VZ
11803 SHARED_LD="${CXX} -b -o"
11804 PIC_FLAG="+Z"
11805 fi
55e80573 11806
7b7a7637
RL
11807 if test "$wxUSE_OPENGL" = "yes"; then
11808 WX_ALL_INSTALLED="preinstall_gl"
11809 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11810 else
11811 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11812 fi
10f2d63a 11813 ;;
b12915c1 11814
55e80573
VZ
11815 *-*-linux* )
11816 if test "$GCC" != "yes"; then
11817 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
6054113a 11818echo "configure:11819: checking for Intel compiler" >&5
55e80573
VZ
11819if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11820 echo $ac_n "(cached) $ac_c" 1>&6
11821else
11822
11823 cat > conftest.$ac_ext <<EOF
6054113a 11824#line 11825 "configure"
55e80573
VZ
11825#include "confdefs.h"
11826
11827int main() {
11828
11829 #ifndef __INTEL_COMPILER
dd4f7467 11830 #error Not icc
55e80573
VZ
11831 #endif
11832
11833; return 0; }
11834EOF
6054113a 11835if { (eval echo configure:11836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
11836 rm -rf conftest*
11837 wx_cv_prog_icc=yes
11838else
11839 echo "configure: failed program was:" >&5
11840 cat conftest.$ac_ext >&5
11841 rm -rf conftest*
11842 wx_cv_prog_icc=no
11843
11844fi
11845rm -f conftest*
11846
11847fi
11848
11849echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
11850 if test "$wx_cv_prog_icc" = "yes"; then
11851 PIC_FLAG="-KPIC"
11852 fi
11853 fi
11854
3a922bb4
RL
11855 if test "$wxUSE_SONAME" = "yes" ; then
11856 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11857 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 11858 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 11859 fi
10f2d63a 11860 ;;
55e80573 11861
10f2d63a
VZ
11862 *-*-solaris2* )
11863 if test "$GCC" = yes ; then
f6bcfd97 11864 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
11865 else
11866 SHARED_LD="${CXX} -G -o"
11867 PIC_FLAG="-KPIC"
7b7a7637
RL
11868 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
11869 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
10f2d63a 11870 fi
10f2d63a 11871 ;;
55e80573 11872
b4085ce6 11873 *-*-darwin* )
d08b457b
GD
11874 CFLAGS="${CFLAGS} -fno-common"
11875 CXXFLAGS="${CXXFLAGS} -fno-common"
ea5999b9
GD
11876 SHARED_LD="${CXX} -dynamiclib -o"
11877 PIC_FLAG="-dynamic -fPIC"
10f2d63a 11878 ;;
55e80573 11879
10f2d63a
VZ
11880 *-*-aix* )
11881 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 11882 ;;
55e80573 11883
7b7a7637 11884 *-*-cygwin* | *-*-mingw32* )
77e13408
RL
11885
11886 if test "$cross_compiling" != "yes"; then
11887 WX_LIBRARY="wxmsw${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}${WX_RELEASE_NUMBER}${lib_unicode_suffix}${lib_debug_suffix}"
11888 WX_LIBRARY_GL=${WX_LIBRARY} "wxmsw${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}${WX_RELEASE_NUMBER}${lib_unicode_suffix}${lib_debug_suffix}"
11889 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
11890 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
11891 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11892 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11893 fi
11894
11895 WX_LIBRARY_IMPORTLIB="lib${WX_LIBRARY}.lib"
11896
11897 if test "$wxUSE_SHARED" = "yes" ; then
11898 WXCONFIG_LIBS="${WX_LIBRARY_IMPORTLIB}"
11899 else
11900 WXCONFIG_LIBS="-l${WX_LIBRARY}"
11901 fi
11902
11903 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
3a922bb4 11904 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1"
18dbb1f6 11905 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
11906
11907 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 11908 WX_ALL_INSTALLED="preinstall_gl"
4fb788e4 11909 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 11910 else
4fb788e4 11911 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
f6bcfd97 11912 fi
4fb788e4 11913 PIC_FLAG=
10f2d63a 11914 ;;
55e80573 11915
6fa882bd 11916 *-pc-os2_emx | *-pc-os2-emx )
7b7a7637 11917 wxUSE_SHARED=no
10f2d63a 11918 ;;
55e80573 11919
b12915c1 11920 *-*-beos* )
e2b8b066 11921 SHARED_LD="${LD} -shared -o"
b12915c1 11922 ;;
55e80573
VZ
11923
11924 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
11925 *-*-sunos4* | \
11926 *-*-irix5* | *-*-irix6* | \
11927 *-*-osf* | \
11928 *-*-dgux5* | \
11929 *-*-sysv5* )
11930 ;;
11931
10f2d63a 11932 *)
7b7a7637 11933 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
11934 esac
11935
11936 if test "x$WX_TARGET_LIBRARY" = "x"; then
11937 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 11938 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 11939 fi
55e80573 11940
3711412e 11941 WX_TARGET_LIBRARY_TYPE="so"
3a922bb4 11942fi
f6bcfd97 11943
3a922bb4 11944if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 11945
3a922bb4 11946 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
11947 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11948 fi
11949
6fa882bd
RR
11950 if test "$wxUSE_MAC" = 1; then
11951 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11952 fi
11953
3a922bb4
RL
11954 if test "$wxUSE_OPENGL" = "yes"; then
11955 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
11956 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
11957 else
11958 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11959 fi
698dcdb6 11960
3a922bb4
RL
11961 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11962 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11963
11964 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a 11965fi
10f2d63a 11966
d08b457b
GD
11967if test "$wxUSE_MAC" = 1; then
11968 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
e23081de 11969 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
d08b457b
GD
11970 # Extract the first word of "Rez", so it can be a program name with args.
11971set dummy Rez; ac_word=$2
11972echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6054113a 11973echo "configure:11974: checking for $ac_word" >&5
d08b457b
GD
11974if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
11975 echo $ac_n "(cached) $ac_c" 1>&6
11976else
11977 if test -n "$RESCOMP"; then
11978 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
11979else
11980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11981 ac_dummy="$PATH"
11982 for ac_dir in $ac_dummy; do
11983 test -z "$ac_dir" && ac_dir=.
11984 if test -f $ac_dir/$ac_word; then
11985 ac_cv_prog_RESCOMP="Rez"
11986 break
11987 fi
11988 done
11989 IFS="$ac_save_ifs"
11990 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
11991fi
11992fi
11993RESCOMP="$ac_cv_prog_RESCOMP"
11994if test -n "$RESCOMP"; then
11995 echo "$ac_t""$RESCOMP" 1>&6
11996else
11997 echo "$ac_t""no" 1>&6
11998fi
11999
12000 # Extract the first word of "Derez", so it can be a program name with args.
12001set dummy Derez; ac_word=$2
12002echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6054113a 12003echo "configure:12004: checking for $ac_word" >&5
d08b457b
GD
12004if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12005 echo $ac_n "(cached) $ac_c" 1>&6
12006else
12007 if test -n "$DEREZ"; then
12008 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12009else
12010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12011 ac_dummy="$PATH"
12012 for ac_dir in $ac_dummy; do
12013 test -z "$ac_dir" && ac_dir=.
12014 if test -f $ac_dir/$ac_word; then
12015 ac_cv_prog_DEREZ="Derez"
12016 break
12017 fi
12018 done
12019 IFS="$ac_save_ifs"
12020 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
12021fi
12022fi
12023DEREZ="$ac_cv_prog_DEREZ"
12024if test -n "$DEREZ"; then
12025 echo "$ac_t""$DEREZ" 1>&6
12026else
12027 echo "$ac_t""no" 1>&6
12028fi
12029
12030 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12031 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
e23081de 12032 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
d08b457b
GD
12033fi
12034
3a922bb4 12035
13c0541d
GD
12036if test "$wxUSE_MAC" != 1; then
12037 for ac_hdr in strings.h
9cfadba2 12038do
698dcdb6
VZ
12039ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12040echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6054113a 12041echo "configure:12042: checking for $ac_hdr" >&5
698dcdb6
VZ
12042if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12043 echo $ac_n "(cached) $ac_c" 1>&6
12044else
12045 cat > conftest.$ac_ext <<EOF
6054113a 12046#line 12047 "configure"
9cfadba2 12047#include "confdefs.h"
698dcdb6
VZ
12048#include <$ac_hdr>
12049EOF
12050ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 12051{ (eval echo configure:12052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12052ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12053if test -z "$ac_err"; then
12054 rm -rf conftest*
12055 eval "ac_cv_header_$ac_safe=yes"
6232543b 12056else
698dcdb6
VZ
12057 echo "$ac_err" >&5
12058 echo "configure: failed program was:" >&5
9cfadba2 12059 cat conftest.$ac_ext >&5
698dcdb6
VZ
12060 rm -rf conftest*
12061 eval "ac_cv_header_$ac_safe=no"
9cfadba2 12062fi
698dcdb6 12063rm -f conftest*
9cfadba2 12064fi
698dcdb6
VZ
12065if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12066 echo "$ac_t""yes" 1>&6
12067 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12068 cat >> confdefs.h <<EOF
12069#define $ac_tr_hdr 1
9cfadba2 12070EOF
698dcdb6
VZ
12071
12072else
12073 echo "$ac_t""no" 1>&6
9cfadba2
VZ
12074fi
12075done
10f2d63a 12076
13c0541d
GD
12077fi
12078
3a922bb4 12079for ac_hdr in stdlib.h
10f2d63a 12080do
698dcdb6
VZ
12081ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12082echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6054113a 12083echo "configure:12084: checking for $ac_hdr" >&5
698dcdb6
VZ
12084if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12085 echo $ac_n "(cached) $ac_c" 1>&6
12086else
12087 cat > conftest.$ac_ext <<EOF
6054113a 12088#line 12089 "configure"
10f2d63a 12089#include "confdefs.h"
698dcdb6
VZ
12090#include <$ac_hdr>
12091EOF
12092ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 12093{ (eval echo configure:12094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12094ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12095if test -z "$ac_err"; then
12096 rm -rf conftest*
12097 eval "ac_cv_header_$ac_safe=yes"
6232543b 12098else
698dcdb6
VZ
12099 echo "$ac_err" >&5
12100 echo "configure: failed program was:" >&5
10f2d63a 12101 cat conftest.$ac_ext >&5
698dcdb6
VZ
12102 rm -rf conftest*
12103 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12104fi
698dcdb6 12105rm -f conftest*
10f2d63a 12106fi
698dcdb6
VZ
12107if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12108 echo "$ac_t""yes" 1>&6
12109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12110 cat >> confdefs.h <<EOF
12111#define $ac_tr_hdr 1
10f2d63a 12112EOF
698dcdb6
VZ
12113
12114else
12115 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12116fi
12117done
12118
3a922bb4 12119for ac_hdr in unistd.h
10f2d63a 12120do
698dcdb6
VZ
12121ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12122echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6054113a 12123echo "configure:12124: checking for $ac_hdr" >&5
698dcdb6
VZ
12124if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12125 echo $ac_n "(cached) $ac_c" 1>&6
12126else
12127 cat > conftest.$ac_ext <<EOF
6054113a 12128#line 12129 "configure"
10f2d63a 12129#include "confdefs.h"
698dcdb6
VZ
12130#include <$ac_hdr>
12131EOF
12132ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 12133{ (eval echo configure:12134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12134ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12135if test -z "$ac_err"; then
12136 rm -rf conftest*
12137 eval "ac_cv_header_$ac_safe=yes"
6f72b082 12138else
698dcdb6
VZ
12139 echo "$ac_err" >&5
12140 echo "configure: failed program was:" >&5
6f72b082 12141 cat conftest.$ac_ext >&5
698dcdb6
VZ
12142 rm -rf conftest*
12143 eval "ac_cv_header_$ac_safe=no"
6f72b082 12144fi
698dcdb6 12145rm -f conftest*
6f72b082 12146fi
698dcdb6
VZ
12147if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12148 echo "$ac_t""yes" 1>&6
12149 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12150 cat >> confdefs.h <<EOF
12151#define $ac_tr_hdr 1
6f72b082 12152EOF
698dcdb6
VZ
12153
12154else
12155 echo "$ac_t""no" 1>&6
6f72b082
OK
12156fi
12157done
12158
3a922bb4 12159for ac_hdr in wchar.h
6f72b082 12160do
698dcdb6
VZ
12161ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12162echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6054113a 12163echo "configure:12164: checking for $ac_hdr" >&5
698dcdb6
VZ
12164if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12165 echo $ac_n "(cached) $ac_c" 1>&6
12166else
12167 cat > conftest.$ac_ext <<EOF
6054113a 12168#line 12169 "configure"
6f72b082 12169#include "confdefs.h"
698dcdb6
VZ
12170#include <$ac_hdr>
12171EOF
12172ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 12173{ (eval echo configure:12174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12174ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12175if test -z "$ac_err"; then
12176 rm -rf conftest*
12177 eval "ac_cv_header_$ac_safe=yes"
6f72b082 12178else
698dcdb6
VZ
12179 echo "$ac_err" >&5
12180 echo "configure: failed program was:" >&5
6f72b082 12181 cat conftest.$ac_ext >&5
698dcdb6
VZ
12182 rm -rf conftest*
12183 eval "ac_cv_header_$ac_safe=no"
6f72b082 12184fi
698dcdb6 12185rm -f conftest*
6f72b082 12186fi
698dcdb6
VZ
12187if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12188 echo "$ac_t""yes" 1>&6
12189 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12190 cat >> confdefs.h <<EOF
12191#define $ac_tr_hdr 1
6f72b082 12192EOF
698dcdb6
VZ
12193
12194else
12195 echo "$ac_t""no" 1>&6
6f72b082
OK
12196fi
12197done
12198
3a922bb4 12199for ac_hdr in wcstr.h
6f72b082 12200do
698dcdb6
VZ
12201ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12202echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6054113a 12203echo "configure:12204: checking for $ac_hdr" >&5
698dcdb6
VZ
12204if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12205 echo $ac_n "(cached) $ac_c" 1>&6
12206else
12207 cat > conftest.$ac_ext <<EOF
6054113a 12208#line 12209 "configure"
6f72b082 12209#include "confdefs.h"
698dcdb6
VZ
12210#include <$ac_hdr>
12211EOF
12212ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 12213{ (eval echo configure:12214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12214ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12215if test -z "$ac_err"; then
12216 rm -rf conftest*
12217 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12218else
698dcdb6
VZ
12219 echo "$ac_err" >&5
12220 echo "configure: failed program was:" >&5
10f2d63a 12221 cat conftest.$ac_ext >&5
698dcdb6
VZ
12222 rm -rf conftest*
12223 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12224fi
698dcdb6 12225rm -f conftest*
10f2d63a 12226fi
698dcdb6
VZ
12227if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12228 echo "$ac_t""yes" 1>&6
12229 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12230 cat >> confdefs.h <<EOF
12231#define $ac_tr_hdr 1
10f2d63a 12232EOF
698dcdb6
VZ
12233
12234else
12235 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12236fi
12237done
12238
3a922bb4 12239for ac_hdr in fnmatch.h
0fb0dd83 12240do
698dcdb6
VZ
12241ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12242echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6054113a 12243echo "configure:12244: checking for $ac_hdr" >&5
698dcdb6
VZ
12244if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12245 echo $ac_n "(cached) $ac_c" 1>&6
12246else
12247 cat > conftest.$ac_ext <<EOF
6054113a 12248#line 12249 "configure"
0fb0dd83 12249#include "confdefs.h"
698dcdb6
VZ
12250#include <$ac_hdr>
12251EOF
12252ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 12253{ (eval echo configure:12254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12254ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12255if test -z "$ac_err"; then
12256 rm -rf conftest*
12257 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 12258else
698dcdb6
VZ
12259 echo "$ac_err" >&5
12260 echo "configure: failed program was:" >&5
0fb0dd83 12261 cat conftest.$ac_ext >&5
698dcdb6
VZ
12262 rm -rf conftest*
12263 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 12264fi
698dcdb6 12265rm -f conftest*
0fb0dd83 12266fi
698dcdb6
VZ
12267if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12268 echo "$ac_t""yes" 1>&6
12269 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12270 cat >> confdefs.h <<EOF
12271#define $ac_tr_hdr 1
0fb0dd83 12272EOF
698dcdb6
VZ
12273
12274else
12275 echo "$ac_t""no" 1>&6
0fb0dd83
RR
12276fi
12277done
12278
3a922bb4 12279for ac_hdr in iconv.h
1f8ae82f 12280do
698dcdb6
VZ
12281ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12282echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6054113a 12283echo "configure:12284: checking for $ac_hdr" >&5
698dcdb6
VZ
12284if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12285 echo $ac_n "(cached) $ac_c" 1>&6
12286else
12287 cat > conftest.$ac_ext <<EOF
6054113a 12288#line 12289 "configure"
1f8ae82f 12289#include "confdefs.h"
698dcdb6
VZ
12290#include <$ac_hdr>
12291EOF
12292ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 12293{ (eval echo configure:12294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12294ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12295if test -z "$ac_err"; then
12296 rm -rf conftest*
12297 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 12298else
698dcdb6
VZ
12299 echo "$ac_err" >&5
12300 echo "configure: failed program was:" >&5
1f8ae82f 12301 cat conftest.$ac_ext >&5
698dcdb6
VZ
12302 rm -rf conftest*
12303 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 12304fi
698dcdb6 12305rm -f conftest*
1f8ae82f 12306fi
698dcdb6
VZ
12307if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12308 echo "$ac_t""yes" 1>&6
12309 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12310 cat >> confdefs.h <<EOF
12311#define $ac_tr_hdr 1
1f8ae82f 12312EOF
698dcdb6
VZ
12313
12314else
12315 echo "$ac_t""no" 1>&6
1f8ae82f
GD
12316fi
12317done
12318
3a922bb4 12319for ac_hdr in langinfo.h
10f2d63a 12320do
698dcdb6
VZ
12321ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12322echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6054113a 12323echo "configure:12324: checking for $ac_hdr" >&5
698dcdb6
VZ
12324if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12325 echo $ac_n "(cached) $ac_c" 1>&6
12326else
12327 cat > conftest.$ac_ext <<EOF
6054113a 12328#line 12329 "configure"
10f2d63a 12329#include "confdefs.h"
698dcdb6
VZ
12330#include <$ac_hdr>
12331EOF
12332ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 12333{ (eval echo configure:12334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12334ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12335if test -z "$ac_err"; then
12336 rm -rf conftest*
12337 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12338else
698dcdb6
VZ
12339 echo "$ac_err" >&5
12340 echo "configure: failed program was:" >&5
10f2d63a 12341 cat conftest.$ac_ext >&5
698dcdb6
VZ
12342 rm -rf conftest*
12343 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12344fi
698dcdb6 12345rm -f conftest*
10f2d63a 12346fi
698dcdb6
VZ
12347if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12348 echo "$ac_t""yes" 1>&6
12349 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12350 cat >> confdefs.h <<EOF
12351#define $ac_tr_hdr 1
10f2d63a 12352EOF
698dcdb6
VZ
12353
12354else
12355 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12356fi
12357done
12358
10f2d63a 12359
3a922bb4
RL
12360if test "$wxUSE_GUI" = "yes"; then
12361 if test "$wxUSE_UNIX" = "yes"; then
12362 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
12363do
12364ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12365echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6054113a 12366echo "configure:12367: checking for $ac_hdr" >&5
29fd3c0c
VS
12367if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12368 echo $ac_n "(cached) $ac_c" 1>&6
12369else
12370 cat > conftest.$ac_ext <<EOF
6054113a 12371#line 12372 "configure"
29fd3c0c
VS
12372#include "confdefs.h"
12373#include <$ac_hdr>
12374EOF
12375ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 12376{ (eval echo configure:12377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
12377ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12378if test -z "$ac_err"; then
12379 rm -rf conftest*
12380 eval "ac_cv_header_$ac_safe=yes"
12381else
12382 echo "$ac_err" >&5
12383 echo "configure: failed program was:" >&5
12384 cat conftest.$ac_ext >&5
12385 rm -rf conftest*
12386 eval "ac_cv_header_$ac_safe=no"
12387fi
12388rm -f conftest*
12389fi
12390if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12391 echo "$ac_t""yes" 1>&6
12392 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12393 cat >> confdefs.h <<EOF
12394#define $ac_tr_hdr 1
12395EOF
12396
12397else
12398 echo "$ac_t""no" 1>&6
12399fi
12400done
12401
3a922bb4 12402 fi
29fd3c0c
VS
12403fi
12404
698dcdb6
VZ
12405
12406echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6054113a 12407echo "configure:12408: checking for ANSI C header files" >&5
698dcdb6
VZ
12408if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
12409 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12410else
698dcdb6 12411 cat > conftest.$ac_ext <<EOF
6054113a 12412#line 12413 "configure"
10f2d63a
VZ
12413#include "confdefs.h"
12414#include <stdlib.h>
12415#include <stdarg.h>
12416#include <string.h>
12417#include <float.h>
698dcdb6
VZ
12418EOF
12419ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 12420{ (eval echo configure:12421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12421ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12422if test -z "$ac_err"; then
12423 rm -rf conftest*
10f2d63a
VZ
12424 ac_cv_header_stdc=yes
12425else
698dcdb6
VZ
12426 echo "$ac_err" >&5
12427 echo "configure: failed program was:" >&5
10f2d63a 12428 cat conftest.$ac_ext >&5
698dcdb6 12429 rm -rf conftest*
10f2d63a
VZ
12430 ac_cv_header_stdc=no
12431fi
698dcdb6 12432rm -f conftest*
10f2d63a
VZ
12433
12434if test $ac_cv_header_stdc = yes; then
12435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 12436cat > conftest.$ac_ext <<EOF
6054113a 12437#line 12438 "configure"
10f2d63a
VZ
12438#include "confdefs.h"
12439#include <string.h>
698dcdb6 12440EOF
10f2d63a
VZ
12441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12442 egrep "memchr" >/dev/null 2>&1; then
12443 :
12444else
698dcdb6 12445 rm -rf conftest*
10f2d63a
VZ
12446 ac_cv_header_stdc=no
12447fi
12448rm -f conftest*
12449
12450fi
12451
12452if test $ac_cv_header_stdc = yes; then
12453 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 12454cat > conftest.$ac_ext <<EOF
6054113a 12455#line 12456 "configure"
10f2d63a
VZ
12456#include "confdefs.h"
12457#include <stdlib.h>
698dcdb6 12458EOF
10f2d63a
VZ
12459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12460 egrep "free" >/dev/null 2>&1; then
12461 :
12462else
698dcdb6 12463 rm -rf conftest*
10f2d63a
VZ
12464 ac_cv_header_stdc=no
12465fi
12466rm -f conftest*
12467
12468fi
12469
12470if test $ac_cv_header_stdc = yes; then
12471 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 12472if test "$cross_compiling" = yes; then
10f2d63a
VZ
12473 :
12474else
698dcdb6 12475 cat > conftest.$ac_ext <<EOF
6054113a 12476#line 12477 "configure"
10f2d63a
VZ
12477#include "confdefs.h"
12478#include <ctype.h>
698dcdb6
VZ
12479#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12480#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 12481#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
12482int main () { int i; for (i = 0; i < 256; i++)
12483if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12484exit (0); }
12485
12486EOF
6054113a 12487if { (eval echo configure:12488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12488then
10f2d63a
VZ
12489 :
12490else
698dcdb6
VZ
12491 echo "configure: failed program was:" >&5
12492 cat conftest.$ac_ext >&5
12493 rm -fr conftest*
12494 ac_cv_header_stdc=no
10f2d63a 12495fi
698dcdb6 12496rm -fr conftest*
10f2d63a 12497fi
698dcdb6 12498
10f2d63a
VZ
12499fi
12500fi
1e487827 12501
698dcdb6
VZ
12502echo "$ac_t""$ac_cv_header_stdc" 1>&6
12503if test $ac_cv_header_stdc = yes; then
12504 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12505#define STDC_HEADERS 1
12506EOF
12507
12508fi
12509
698dcdb6 12510echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6054113a 12511echo "configure:12512: checking for mode_t" >&5
698dcdb6
VZ
12512if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
12513 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 12514else
698dcdb6 12515 cat > conftest.$ac_ext <<EOF
6054113a 12516#line 12517 "configure"
1e487827 12517#include "confdefs.h"
698dcdb6
VZ
12518#include <sys/types.h>
12519#if STDC_HEADERS
12520#include <stdlib.h>
12521#include <stddef.h>
12522#endif
12523EOF
12524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12525 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12526 rm -rf conftest*
10f2d63a
VZ
12527 ac_cv_type_mode_t=yes
12528else
698dcdb6
VZ
12529 rm -rf conftest*
12530 ac_cv_type_mode_t=no
703e0a69 12531fi
698dcdb6 12532rm -f conftest*
1e487827 12533
698dcdb6
VZ
12534fi
12535echo "$ac_t""$ac_cv_type_mode_t" 1>&6
12536if test $ac_cv_type_mode_t = no; then
12537 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12538#define mode_t int
12539EOF
12540
12541fi
12542
698dcdb6 12543echo $ac_n "checking for off_t""... $ac_c" 1>&6
6054113a 12544echo "configure:12545: checking for off_t" >&5
698dcdb6
VZ
12545if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
12546 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12547else
698dcdb6 12548 cat > conftest.$ac_ext <<EOF
6054113a 12549#line 12550 "configure"
10f2d63a 12550#include "confdefs.h"
698dcdb6
VZ
12551#include <sys/types.h>
12552#if STDC_HEADERS
12553#include <stdlib.h>
12554#include <stddef.h>
12555#endif
12556EOF
12557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12558 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12559 rm -rf conftest*
10f2d63a
VZ
12560 ac_cv_type_off_t=yes
12561else
698dcdb6
VZ
12562 rm -rf conftest*
12563 ac_cv_type_off_t=no
703e0a69 12564fi
698dcdb6 12565rm -f conftest*
1e487827 12566
698dcdb6
VZ
12567fi
12568echo "$ac_t""$ac_cv_type_off_t" 1>&6
12569if test $ac_cv_type_off_t = no; then
12570 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12571#define off_t long
12572EOF
12573
12574fi
12575
698dcdb6 12576echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6054113a 12577echo "configure:12578: checking for pid_t" >&5
698dcdb6
VZ
12578if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
12579 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12580else
698dcdb6 12581 cat > conftest.$ac_ext <<EOF
6054113a 12582#line 12583 "configure"
10f2d63a 12583#include "confdefs.h"
698dcdb6
VZ
12584#include <sys/types.h>
12585#if STDC_HEADERS
12586#include <stdlib.h>
12587#include <stddef.h>
12588#endif
12589EOF
12590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12591 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12592 rm -rf conftest*
10f2d63a
VZ
12593 ac_cv_type_pid_t=yes
12594else
698dcdb6
VZ
12595 rm -rf conftest*
12596 ac_cv_type_pid_t=no
703e0a69 12597fi
698dcdb6 12598rm -f conftest*
1e487827 12599
698dcdb6
VZ
12600fi
12601echo "$ac_t""$ac_cv_type_pid_t" 1>&6
12602if test $ac_cv_type_pid_t = no; then
12603 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12604#define pid_t int
12605EOF
12606
12607fi
12608
698dcdb6 12609echo $ac_n "checking for size_t""... $ac_c" 1>&6
6054113a 12610echo "configure:12611: checking for size_t" >&5
698dcdb6
VZ
12611if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
12612 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12613else
698dcdb6 12614 cat > conftest.$ac_ext <<EOF
6054113a 12615#line 12616 "configure"
10f2d63a 12616#include "confdefs.h"
698dcdb6
VZ
12617#include <sys/types.h>
12618#if STDC_HEADERS
12619#include <stdlib.h>
12620#include <stddef.h>
12621#endif
12622EOF
12623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12624 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12625 rm -rf conftest*
10f2d63a
VZ
12626 ac_cv_type_size_t=yes
12627else
698dcdb6
VZ
12628 rm -rf conftest*
12629 ac_cv_type_size_t=no
703e0a69 12630fi
698dcdb6 12631rm -f conftest*
1e487827 12632
698dcdb6
VZ
12633fi
12634echo "$ac_t""$ac_cv_type_size_t" 1>&6
12635if test $ac_cv_type_size_t = no; then
12636 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12637#define size_t unsigned
12638EOF
12639
12640fi
12641
698dcdb6 12642echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6054113a 12643echo "configure:12644: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
12644if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12645 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12646else
698dcdb6 12647 cat > conftest.$ac_ext <<EOF
6054113a 12648#line 12649 "configure"
10f2d63a
VZ
12649#include "confdefs.h"
12650#include <sys/types.h>
698dcdb6 12651EOF
10f2d63a
VZ
12652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12653 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 12654 rm -rf conftest*
10f2d63a
VZ
12655 ac_cv_type_uid_t=yes
12656else
698dcdb6 12657 rm -rf conftest*
10f2d63a
VZ
12658 ac_cv_type_uid_t=no
12659fi
12660rm -f conftest*
12661
12662fi
1e487827 12663
698dcdb6
VZ
12664echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12665if test $ac_cv_type_uid_t = no; then
12666 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12667#define uid_t int
12668EOF
12669
698dcdb6 12670 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12671#define gid_t int
12672EOF
12673
12674fi
12675
1e487827 12676
698dcdb6 12677echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
6054113a 12678echo "configure:12679: checking for wchar_t" >&5
698dcdb6
VZ
12679if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12680 echo $ac_n "(cached) $ac_c" 1>&6
12681else
12682
12683 cat > conftest.$ac_ext <<EOF
6054113a 12684#line 12685 "configure"
0046ff7c
VS
12685#include "confdefs.h"
12686#include <wchar.h>
698dcdb6 12687int main() {
0046ff7c 12688
d836ee96
VZ
12689 wchar_t wc, *ws;
12690 wc = L'a';
12691 ws = L"Hello, world!";
698dcdb6
VZ
12692
12693; return 0; }
12694EOF
6054113a 12695if { (eval echo configure:12696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12696 rm -rf conftest*
1f8ae82f 12697 wx_cv_type_wchar_t=yes
0046ff7c 12698else
698dcdb6
VZ
12699 echo "configure: failed program was:" >&5
12700 cat conftest.$ac_ext >&5
12701 rm -rf conftest*
12702 wx_cv_type_wchar_t=no
d836ee96 12703
6232543b 12704fi
698dcdb6 12705rm -f conftest*
703e0a69 12706
1e487827 12707fi
698dcdb6
VZ
12708
12709echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
12710
12711if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 12712 cat >> confdefs.h <<\EOF
0046ff7c
VS
12713#define wxUSE_WCHAR_T 1
12714EOF
12715
12716fi
12717
19af3b06
VZ
12718
12719ac_ext=C
12720# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12721ac_cpp='$CXXCPP $CPPFLAGS'
12722ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12723ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12724cross_compiling=$ac_cv_prog_cxx_cross
12725
d836ee96 12726echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
6054113a 12727echo "configure:12728: checking if size_t is unsigned int" >&5
d836ee96
VZ
12728if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12729 echo $ac_n "(cached) $ac_c" 1>&6
12730else
dd2c8b7c 12731 cat > conftest.$ac_ext <<EOF
6054113a 12732#line 12733 "configure"
d836ee96
VZ
12733#include "confdefs.h"
12734#include <stddef.h>
12735int main() {
12736
dd2c8b7c
VZ
12737 return 0; }
12738
d836ee96 12739 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
12740
12741 int bar() {
d836ee96
VZ
12742
12743; return 0; }
12744EOF
6054113a 12745if { (eval echo configure:12746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12746 rm -rf conftest*
12747 wx_cv_size_t_is_uint=no
12748else
12749 echo "configure: failed program was:" >&5
12750 cat conftest.$ac_ext >&5
12751 rm -rf conftest*
12752 wx_cv_size_t_is_uint=yes
12753
12754fi
12755rm -f conftest*
12756
12757fi
12758
12759echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12760
12761if test "$wx_cv_size_t_is_uint" = "yes"; then
12762 cat >> confdefs.h <<\EOF
12763#define wxSIZE_T_IS_UINT 1
12764EOF
12765
12766else
12767 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
6054113a 12768echo "configure:12769: checking if size_t is unsigned long" >&5
d836ee96
VZ
12769if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12770 echo $ac_n "(cached) $ac_c" 1>&6
12771else
12772 cat > conftest.$ac_ext <<EOF
6054113a 12773#line 12774 "configure"
d836ee96
VZ
12774#include "confdefs.h"
12775#include <stddef.h>
12776int main() {
12777
dd2c8b7c
VZ
12778 return 0; }
12779
d836ee96 12780 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
12781
12782 int bar() {
d836ee96
VZ
12783
12784; return 0; }
12785EOF
6054113a 12786if { (eval echo configure:12787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12787 rm -rf conftest*
12788 wx_cv_size_t_is_ulong=no
12789else
12790 echo "configure: failed program was:" >&5
12791 cat conftest.$ac_ext >&5
12792 rm -rf conftest*
12793 wx_cv_size_t_is_ulong=yes
12794
12795fi
12796rm -f conftest*
12797
12798fi
12799
12800echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12801
12802 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12803 cat >> confdefs.h <<\EOF
12804#define wxSIZE_T_IS_ULONG 1
12805EOF
12806
12807 fi
12808fi
12809
19af3b06
VZ
12810ac_ext=c
12811# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12812ac_cpp='$CPP $CPPFLAGS'
12813ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12814ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12815cross_compiling=$ac_cv_prog_cc_cross
12816
12817
1e487827 12818
698dcdb6 12819echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
6054113a 12820echo "configure:12821: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
12821if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12822 echo $ac_n "(cached) $ac_c" 1>&6
12823else
12824
12825 cat > conftest.$ac_ext <<EOF
6054113a 12826#line 12827 "configure"
b12915c1
VZ
12827#include "confdefs.h"
12828#include <pwd.h>
698dcdb6 12829int main() {
b12915c1
VZ
12830
12831 char *p;
12832 struct passwd *pw;
12833 p = pw->pw_gecos;
698dcdb6
VZ
12834
12835; return 0; }
12836EOF
6054113a 12837if { (eval echo configure:12838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12838 rm -rf conftest*
12839
b12915c1 12840 wx_cv_struct_pw_gecos=yes
698dcdb6 12841
b12915c1 12842else
698dcdb6
VZ
12843 echo "configure: failed program was:" >&5
12844 cat conftest.$ac_ext >&5
12845 rm -rf conftest*
12846
b12915c1 12847 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
12848
12849
6232543b 12850fi
698dcdb6
VZ
12851rm -f conftest*
12852
703e0a69 12853
1e487827 12854fi
698dcdb6
VZ
12855
12856echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 12857
bd3277fe 12858if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 12859 cat >> confdefs.h <<\EOF
bd3277fe
VZ
12860#define HAVE_PW_GECOS 1
12861EOF
12862
12863fi
12864
698dcdb6
VZ
12865
12866echo $ac_n "checking for working const""... $ac_c" 1>&6
6054113a 12867echo "configure:12868: checking for working const" >&5
698dcdb6
VZ
12868if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12869 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12870else
698dcdb6 12871 cat > conftest.$ac_ext <<EOF
6054113a 12872#line 12873 "configure"
10f2d63a 12873#include "confdefs.h"
698dcdb6
VZ
12874
12875int main() {
12876
12877/* Ultrix mips cc rejects this. */
a3df447d 12878typedef int charset[2]; const charset x;
698dcdb6
VZ
12879/* SunOS 4.1.1 cc rejects this. */
12880char const *const *ccp;
12881char **p;
12882/* NEC SVR4.0.2 mips cc rejects this. */
12883struct point {int x, y;};
12884static struct point const zero = {0,0};
12885/* AIX XL C 1.02.0.0 rejects this.
12886 It does not let you subtract one const X* pointer from another in an arm
12887 of an if-expression whose if-part is not a constant expression */
12888const char *g = "string";
12889ccp = &g + (g ? g-g : 0);
12890/* HPUX 7.0 cc rejects these. */
12891++ccp;
12892p = (char**) ccp;
12893ccp = (char const *const *) p;
12894{ /* SCO 3.2v4 cc rejects this. */
12895 char *t;
12896 char const *s = 0 ? (char *) 0 : (char const *) 0;
12897
12898 *t++ = 0;
10f2d63a 12899}
698dcdb6
VZ
12900{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12901 int x[] = {25, 17};
12902 const int *foo = &x[0];
12903 ++foo;
703e0a69 12904}
698dcdb6
VZ
12905{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12906 typedef const int *iptr;
12907 iptr p = 0;
12908 ++p;
6232543b 12909}
698dcdb6
VZ
12910{ /* AIX XL C 1.02.0.0 rejects this saying
12911 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12912 struct s { int j; const int *ap[3]; };
12913 struct s *b; b->j = 5;
1e487827 12914}
698dcdb6
VZ
12915{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12916 const int foo = 10;
12917}
4f14bcd8
GD
12918
12919; return 0; }
698dcdb6 12920EOF
6054113a 12921if { (eval echo configure:12922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
12922 rm -rf conftest*
12923 ac_cv_c_const=yes
698dcdb6
VZ
12924else
12925 echo "configure: failed program was:" >&5
12926 cat conftest.$ac_ext >&5
4f14bcd8
GD
12927 rm -rf conftest*
12928 ac_cv_c_const=no
703e0a69 12929fi
4f14bcd8 12930rm -f conftest*
698dcdb6
VZ
12931fi
12932
4f14bcd8
GD
12933echo "$ac_t""$ac_cv_c_const" 1>&6
12934if test $ac_cv_c_const = no; then
12935 cat >> confdefs.h <<\EOF
12936#define const
698dcdb6
VZ
12937EOF
12938
4f14bcd8 12939fi
698dcdb6 12940
4f14bcd8 12941echo $ac_n "checking for inline""... $ac_c" 1>&6
6054113a 12942echo "configure:12943: checking for inline" >&5
4f14bcd8 12943if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
698dcdb6 12944 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12945else
4f14bcd8
GD
12946 ac_cv_c_inline=no
12947for ac_kw in inline __inline__ __inline; do
698dcdb6 12948 cat > conftest.$ac_ext <<EOF
6054113a 12949#line 12950 "configure"
10f2d63a 12950#include "confdefs.h"
4f14bcd8
GD
12951
12952int main() {
a3df447d 12953} $ac_kw foo() {
4f14bcd8 12954; return 0; }
698dcdb6 12955EOF
6054113a 12956if { (eval echo configure:12957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
12957 rm -rf conftest*
12958 ac_cv_c_inline=$ac_kw; break
10f2d63a 12959else
698dcdb6
VZ
12960 echo "configure: failed program was:" >&5
12961 cat conftest.$ac_ext >&5
10f2d63a 12962fi
4f14bcd8
GD
12963rm -f conftest*
12964done
698dcdb6 12965
10f2d63a 12966fi
4f14bcd8
GD
12967
12968echo "$ac_t""$ac_cv_c_inline" 1>&6
12969case "$ac_cv_c_inline" in
12970 inline | yes) ;;
12971 no) cat >> confdefs.h <<\EOF
12972#define inline
12973EOF
12974 ;;
12975 *) cat >> confdefs.h <<EOF
12976#define inline $ac_cv_c_inline
698dcdb6 12977EOF
4f14bcd8
GD
12978 ;;
12979esac
698dcdb6
VZ
12980
12981
4f14bcd8 12982echo $ac_n "checking size of char""... $ac_c" 1>&6
6054113a 12983echo "configure:12984: checking size of char" >&5
4f14bcd8 12984if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
698dcdb6
VZ
12985 echo $ac_n "(cached) $ac_c" 1>&6
12986else
12987 if test "$cross_compiling" = yes; then
4f14bcd8 12988 ac_cv_sizeof_char=1
698dcdb6
VZ
12989else
12990 cat > conftest.$ac_ext <<EOF
6054113a 12991#line 12992 "configure"
698dcdb6
VZ
12992#include "confdefs.h"
12993#include <stdio.h>
12994main()
12995{
12996 FILE *f=fopen("conftestval", "w");
12997 if (!f) exit(1);
4f14bcd8 12998 fprintf(f, "%d\n", sizeof(char));
698dcdb6
VZ
12999 exit(0);
13000}
13001EOF
6054113a 13002if { (eval echo configure:13003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13003then
4f14bcd8 13004 ac_cv_sizeof_char=`cat conftestval`
6232543b 13005else
698dcdb6
VZ
13006 echo "configure: failed program was:" >&5
13007 cat conftest.$ac_ext >&5
13008 rm -fr conftest*
4f14bcd8 13009 ac_cv_sizeof_char=0
6232543b 13010fi
698dcdb6
VZ
13011rm -fr conftest*
13012fi
13013
703e0a69 13014fi
4f14bcd8 13015echo "$ac_t""$ac_cv_sizeof_char" 1>&6
698dcdb6 13016cat >> confdefs.h <<EOF
4f14bcd8 13017#define SIZEOF_CHAR $ac_cv_sizeof_char
10f2d63a
VZ
13018EOF
13019
1e487827 13020
4f14bcd8 13021echo $ac_n "checking size of short""... $ac_c" 1>&6
6054113a 13022echo "configure:13023: checking size of short" >&5
4f14bcd8 13023if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
698dcdb6
VZ
13024 echo $ac_n "(cached) $ac_c" 1>&6
13025else
4f14bcd8
GD
13026 if test "$cross_compiling" = yes; then
13027 ac_cv_sizeof_short=2
b93d0d08 13028else
698dcdb6 13029 cat > conftest.$ac_ext <<EOF
6054113a 13030#line 13031 "configure"
b93d0d08 13031#include "confdefs.h"
4f14bcd8
GD
13032#include <stdio.h>
13033main()
13034{
13035 FILE *f=fopen("conftestval", "w");
13036 if (!f) exit(1);
13037 fprintf(f, "%d\n", sizeof(short));
13038 exit(0);
13039}
698dcdb6 13040EOF
6054113a 13041if { (eval echo configure:13042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13042then
4f14bcd8 13043 ac_cv_sizeof_short=`cat conftestval`
b93d0d08 13044else
698dcdb6
VZ
13045 echo "configure: failed program was:" >&5
13046 cat conftest.$ac_ext >&5
13047 rm -fr conftest*
4f14bcd8 13048 ac_cv_sizeof_short=0
b93d0d08 13049fi
698dcdb6 13050rm -fr conftest*
b93d0d08
VS
13051fi
13052
b93d0d08 13053fi
4f14bcd8 13054echo "$ac_t""$ac_cv_sizeof_short" 1>&6
698dcdb6 13055cat >> confdefs.h <<EOF
4f14bcd8 13056#define SIZEOF_SHORT $ac_cv_sizeof_short
b93d0d08
VS
13057EOF
13058
698dcdb6 13059
4f14bcd8 13060echo $ac_n "checking size of int *""... $ac_c" 1>&6
6054113a 13061echo "configure:13062: checking size of int *" >&5
4f14bcd8 13062if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
698dcdb6 13063 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13064else
4f14bcd8
GD
13065 if test "$cross_compiling" = yes; then
13066 ac_cv_sizeof_int_p=4
3a922bb4 13067else
3a922bb4 13068 cat > conftest.$ac_ext <<EOF
6054113a 13069#line 13070 "configure"
3a922bb4 13070#include "confdefs.h"
4f14bcd8
GD
13071#include <stdio.h>
13072main()
13073{
13074 FILE *f=fopen("conftestval", "w");
13075 if (!f) exit(1);
13076 fprintf(f, "%d\n", sizeof(int *));
13077 exit(0);
13078}
13079EOF
6054113a 13080if { (eval echo configure:13081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13081then
13082 ac_cv_sizeof_int_p=`cat conftestval`
13083else
13084 echo "configure: failed program was:" >&5
13085 cat conftest.$ac_ext >&5
13086 rm -fr conftest*
13087 ac_cv_sizeof_int_p=0
3a922bb4 13088fi
4f14bcd8 13089rm -fr conftest*
3a922bb4 13090fi
698dcdb6 13091
4f14bcd8
GD
13092fi
13093echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
13094cat >> confdefs.h <<EOF
13095#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
13096EOF
13097
703e0a69 13098
4f14bcd8 13099echo $ac_n "checking size of int""... $ac_c" 1>&6
6054113a 13100echo "configure:13101: checking size of int" >&5
4f14bcd8 13101if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
698dcdb6 13102 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
13103else
13104 if test "$cross_compiling" = yes; then
13105 ac_cv_sizeof_int=4
698dcdb6
VZ
13106else
13107 cat > conftest.$ac_ext <<EOF
6054113a 13108#line 13109 "configure"
10f2d63a 13109#include "confdefs.h"
4f14bcd8
GD
13110#include <stdio.h>
13111main()
13112{
13113 FILE *f=fopen("conftestval", "w");
13114 if (!f) exit(1);
13115 fprintf(f, "%d\n", sizeof(int));
13116 exit(0);
13117}
698dcdb6 13118EOF
6054113a 13119if { (eval echo configure:13120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13120then
13121 ac_cv_sizeof_int=`cat conftestval`
10f2d63a 13122else
698dcdb6 13123 echo "configure: failed program was:" >&5
10f2d63a 13124 cat conftest.$ac_ext >&5
4f14bcd8
GD
13125 rm -fr conftest*
13126 ac_cv_sizeof_int=0
10f2d63a 13127fi
4f14bcd8 13128rm -fr conftest*
10f2d63a 13129fi
10f2d63a 13130
4f14bcd8
GD
13131fi
13132echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13133cat >> confdefs.h <<EOF
13134#define SIZEOF_INT $ac_cv_sizeof_int
10f2d63a
VZ
13135EOF
13136
698dcdb6 13137
4f14bcd8 13138echo $ac_n "checking size of long""... $ac_c" 1>&6
6054113a 13139echo "configure:13140: checking size of long" >&5
4f14bcd8 13140if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
698dcdb6
VZ
13141 echo $ac_n "(cached) $ac_c" 1>&6
13142else
4f14bcd8
GD
13143 if test "$cross_compiling" = yes; then
13144 ac_cv_sizeof_long=4
13145else
13146 cat > conftest.$ac_ext <<EOF
6054113a 13147#line 13148 "configure"
10f2d63a 13148#include "confdefs.h"
4f14bcd8
GD
13149#include <stdio.h>
13150main()
13151{
13152 FILE *f=fopen("conftestval", "w");
13153 if (!f) exit(1);
13154 fprintf(f, "%d\n", sizeof(long));
13155 exit(0);
13156}
698dcdb6 13157EOF
6054113a 13158if { (eval echo configure:13159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13159then
13160 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 13161else
698dcdb6
VZ
13162 echo "configure: failed program was:" >&5
13163 cat conftest.$ac_ext >&5
4f14bcd8
GD
13164 rm -fr conftest*
13165 ac_cv_sizeof_long=0
10f2d63a 13166fi
4f14bcd8 13167rm -fr conftest*
10f2d63a 13168fi
698dcdb6 13169
4f14bcd8
GD
13170fi
13171echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13172cat >> confdefs.h <<EOF
13173#define SIZEOF_LONG $ac_cv_sizeof_long
10f2d63a
VZ
13174EOF
13175
698dcdb6 13176
4f14bcd8 13177echo $ac_n "checking size of long long""... $ac_c" 1>&6
6054113a 13178echo "configure:13179: checking size of long long" >&5
4f14bcd8 13179if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
698dcdb6 13180 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13181else
4f14bcd8
GD
13182 if test "$cross_compiling" = yes; then
13183 ac_cv_sizeof_long_long=0
13184else
13185 cat > conftest.$ac_ext <<EOF
6054113a 13186#line 13187 "configure"
10f2d63a 13187#include "confdefs.h"
4f14bcd8
GD
13188#include <stdio.h>
13189main()
13190{
13191 FILE *f=fopen("conftestval", "w");
13192 if (!f) exit(1);
13193 fprintf(f, "%d\n", sizeof(long long));
13194 exit(0);
13195}
698dcdb6 13196EOF
6054113a 13197if { (eval echo configure:13198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13198then
13199 ac_cv_sizeof_long_long=`cat conftestval`
698dcdb6
VZ
13200else
13201 echo "configure: failed program was:" >&5
13202 cat conftest.$ac_ext >&5
4f14bcd8
GD
13203 rm -fr conftest*
13204 ac_cv_sizeof_long_long=0
13205fi
13206rm -fr conftest*
698dcdb6 13207fi
698dcdb6
VZ
13208
13209fi
4f14bcd8
GD
13210echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
13211cat >> confdefs.h <<EOF
13212#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10f2d63a
VZ
13213EOF
13214
10f2d63a 13215
4f14bcd8
GD
13216
13217echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
6054113a 13218echo "configure:13219: checking size of wchar_t" >&5
4f14bcd8 13219if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
698dcdb6 13220 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13221else
4f14bcd8
GD
13222
13223 if test "$cross_compiling" = yes; then
13224 wx_cv_sizeof_wchar_t=4
13225
13226else
13227 cat > conftest.$ac_ext <<EOF
6054113a 13228#line 13229 "configure"
10f2d63a 13229#include "confdefs.h"
698dcdb6 13230
4f14bcd8
GD
13231 #ifdef HAVE_WCHAR_H
13232 # include <wchar.h>
13233 #endif
13234 #ifdef HAVE_STDLIB_H
13235 # include <stdlib.h>
13236 #endif
13237 #include <stdio.h>
13238 int main()
13239 {
13240 FILE *f=fopen("conftestval", "w");
13241 if (!f) exit(1);
13242 fprintf(f, "%i", sizeof(wchar_t));
13243 exit(0);
13244 }
13245
698dcdb6 13246EOF
6054113a 13247if { (eval echo configure:13248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13248then
13249 wx_cv_sizeof_wchar_t=`cat conftestval`
698dcdb6
VZ
13250else
13251 echo "configure: failed program was:" >&5
13252 cat conftest.$ac_ext >&5
4f14bcd8
GD
13253 rm -fr conftest*
13254 wx_cv_sizeof_wchar_t=0
698dcdb6 13255fi
4f14bcd8
GD
13256rm -fr conftest*
13257fi
13258
698dcdb6
VZ
13259
13260fi
4f14bcd8
GD
13261
13262echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
13263
13264cat >> confdefs.h <<EOF
13265#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10f2d63a
VZ
13266EOF
13267
18dbb1f6 13268
4f14bcd8 13269echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
6054113a 13270echo "configure:13271: checking whether byte ordering is bigendian" >&5
4f14bcd8 13271if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
18dbb1f6
VZ
13272 echo $ac_n "(cached) $ac_c" 1>&6
13273else
4f14bcd8
GD
13274 ac_cv_c_bigendian=unknown
13275# See if sys/param.h defines the BYTE_ORDER macro.
18dbb1f6 13276cat > conftest.$ac_ext <<EOF
6054113a 13277#line 13278 "configure"
18dbb1f6 13278#include "confdefs.h"
4f14bcd8
GD
13279#include <sys/types.h>
13280#include <sys/param.h>
13281int main() {
18dbb1f6 13282
4f14bcd8
GD
13283#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13284 bogus endian macros
13285#endif
13286; return 0; }
13287EOF
6054113a 13288if { (eval echo configure:13289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13289 rm -rf conftest*
13290 # It does; now see whether it defined to BIG_ENDIAN or not.
13291cat > conftest.$ac_ext <<EOF
6054113a 13292#line 13293 "configure"
4f14bcd8
GD
13293#include "confdefs.h"
13294#include <sys/types.h>
13295#include <sys/param.h>
18dbb1f6 13296int main() {
4f14bcd8
GD
13297
13298#if BYTE_ORDER != BIG_ENDIAN
13299 not big endian
13300#endif
18dbb1f6
VZ
13301; return 0; }
13302EOF
6054113a 13303if { (eval echo configure:13304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18dbb1f6 13304 rm -rf conftest*
4f14bcd8 13305 ac_cv_c_bigendian=yes
18dbb1f6
VZ
13306else
13307 echo "configure: failed program was:" >&5
13308 cat conftest.$ac_ext >&5
13309 rm -rf conftest*
4f14bcd8 13310 ac_cv_c_bigendian=no
18dbb1f6
VZ
13311fi
13312rm -f conftest*
698dcdb6 13313else
4f14bcd8
GD
13314 echo "configure: failed program was:" >&5
13315 cat conftest.$ac_ext >&5
1e487827 13316fi
4f14bcd8
GD
13317rm -f conftest*
13318if test $ac_cv_c_bigendian = unknown; then
13319if test "$cross_compiling" = yes; then
13320 ac_cv_c_bigendian=unknown
b3e8d00a
VZ
13321else
13322 cat > conftest.$ac_ext <<EOF
6054113a 13323#line 13324 "configure"
b3e8d00a 13324#include "confdefs.h"
4f14bcd8
GD
13325main () {
13326 /* Are we little or big endian? From Harbison&Steele. */
13327 union
13328 {
13329 long l;
13330 char c[sizeof (long)];
13331 } u;
13332 u.l = 1;
13333 exit (u.c[sizeof (long) - 1] == 1);
13334}
b3e8d00a 13335EOF
6054113a 13336if { (eval echo configure:13337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13337then
13338 ac_cv_c_bigendian=no
b3e8d00a
VZ
13339else
13340 echo "configure: failed program was:" >&5
13341 cat conftest.$ac_ext >&5
4f14bcd8
GD
13342 rm -fr conftest*
13343 ac_cv_c_bigendian=yes
b3e8d00a 13344fi
4f14bcd8 13345rm -fr conftest*
b3e8d00a
VZ
13346fi
13347
4f14bcd8
GD
13348fi
13349fi
13350
13351echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13352if test $ac_cv_c_bigendian = unknown; then
13353 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
13354fi
13355if test $ac_cv_c_bigendian = yes; then
13356 cat >> confdefs.h <<\EOF
13357#define WORDS_BIGENDIAN 1
b3e8d00a 13358EOF
4f14bcd8 13359
b3e8d00a 13360fi
b3e8d00a
VZ
13361
13362
4f14bcd8 13363echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6054113a 13364echo "configure:13365: checking how to run the C++ preprocessor" >&5
4f14bcd8
GD
13365if test -z "$CXXCPP"; then
13366if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6
VZ
13367 echo $ac_n "(cached) $ac_c" 1>&6
13368else
4f14bcd8
GD
13369 ac_ext=C
13370# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13371ac_cpp='$CXXCPP $CPPFLAGS'
13372ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13373ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13374cross_compiling=$ac_cv_prog_cxx_cross
13375 CXXCPP="${CXX-g++} -E"
698dcdb6 13376 cat > conftest.$ac_ext <<EOF
6054113a 13377#line 13378 "configure"
10f2d63a 13378#include "confdefs.h"
4f14bcd8 13379#include <stdlib.h>
698dcdb6 13380EOF
4f14bcd8 13381ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 13382{ (eval echo configure:13383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
13383ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13384if test -z "$ac_err"; then
13385 :
698dcdb6 13386else
4f14bcd8 13387 echo "$ac_err" >&5
698dcdb6
VZ
13388 echo "configure: failed program was:" >&5
13389 cat conftest.$ac_ext >&5
13390 rm -rf conftest*
4f14bcd8 13391 CXXCPP=/lib/cpp
698dcdb6
VZ
13392fi
13393rm -f conftest*
4f14bcd8
GD
13394 ac_cv_prog_CXXCPP="$CXXCPP"
13395ac_ext=C
13396# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13397ac_cpp='$CXXCPP $CPPFLAGS'
13398ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13399ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13400cross_compiling=$ac_cv_prog_cxx_cross
13401fi
698dcdb6 13402fi
4f14bcd8
GD
13403CXXCPP="$ac_cv_prog_CXXCPP"
13404echo "$ac_t""$CXXCPP" 1>&6
698dcdb6 13405
4f14bcd8
GD
13406
13407 if test "$cross_compiling" = "yes"; then
13408 cat >> confdefs.h <<\EOF
13409#define wxUSE_IOSTREAMH 1
698dcdb6
VZ
13410EOF
13411
4f14bcd8
GD
13412 else
13413
13414 ac_ext=C
13415# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13416ac_cpp='$CXXCPP $CPPFLAGS'
13417ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13418ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13419cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 13420
4f14bcd8
GD
13421
13422 for ac_hdr in iostream
13423do
13424ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13425echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6054113a 13426echo "configure:13427: checking for $ac_hdr" >&5
4f14bcd8 13427if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6
VZ
13428 echo $ac_n "(cached) $ac_c" 1>&6
13429else
13430 cat > conftest.$ac_ext <<EOF
6054113a 13431#line 13432 "configure"
10f2d63a 13432#include "confdefs.h"
4f14bcd8 13433#include <$ac_hdr>
698dcdb6 13434EOF
4f14bcd8 13435ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 13436{ (eval echo configure:13437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
13437ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13438if test -z "$ac_err"; then
698dcdb6 13439 rm -rf conftest*
4f14bcd8 13440 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 13441else
4f14bcd8 13442 echo "$ac_err" >&5
698dcdb6
VZ
13443 echo "configure: failed program was:" >&5
13444 cat conftest.$ac_ext >&5
13445 rm -rf conftest*
4f14bcd8 13446 eval "ac_cv_header_$ac_safe=no"
698dcdb6
VZ
13447fi
13448rm -f conftest*
13449fi
4f14bcd8 13450if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
698dcdb6 13451 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
13452 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13453 cat >> confdefs.h <<EOF
13454#define $ac_tr_hdr 1
10f2d63a 13455EOF
4f14bcd8 13456
698dcdb6
VZ
13457else
13458 echo "$ac_t""no" 1>&6
10f2d63a 13459fi
4f14bcd8 13460done
10f2d63a 13461
10f2d63a 13462
4f14bcd8
GD
13463 if test "$ac_cv_header_iostream" = "yes" ; then
13464 :
13465 else
13466 cat >> confdefs.h <<\EOF
13467#define wxUSE_IOSTREAMH 1
13468EOF
13469
13470 fi
1e487827 13471
4f14bcd8
GD
13472 ac_ext=c
13473# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13474ac_cpp='$CPP $CPPFLAGS'
13475ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13476ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13477cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 13478
4f14bcd8 13479 fi
698dcdb6
VZ
13480
13481
13482
4f14bcd8 13483 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
6054113a 13484echo "configure:13485: checking if C++ compiler supports bool" >&5
4f14bcd8 13485if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6
VZ
13486 echo $ac_n "(cached) $ac_c" 1>&6
13487else
13488
4f14bcd8
GD
13489
13490 ac_ext=C
13491# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13492ac_cpp='$CXXCPP $CPPFLAGS'
13493ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13494ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13495cross_compiling=$ac_cv_prog_cxx_cross
f6bcfd97 13496
10f2d63a 13497
4f14bcd8 13498 cat > conftest.$ac_ext <<EOF
6054113a 13499#line 13500 "configure"
4f14bcd8 13500#include "confdefs.h"
10f2d63a 13501
4f14bcd8
GD
13502
13503int main() {
f6bcfd97 13504
4f14bcd8 13505 bool b = true;
f6bcfd97 13506
4f14bcd8
GD
13507 return 0;
13508
698dcdb6
VZ
13509; return 0; }
13510EOF
6054113a 13511if { (eval echo configure:13512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13512 rm -rf conftest*
13513
4f14bcd8
GD
13514 wx_cv_cpp_bool=yes
13515
10f2d63a 13516else
698dcdb6
VZ
13517 echo "configure: failed program was:" >&5
13518 cat conftest.$ac_ext >&5
13519 rm -rf conftest*
13520
4f14bcd8
GD
13521 wx_cv_cpp_bool=no
13522
13523
13524fi
13525rm -f conftest*
c521c494 13526
4f14bcd8
GD
13527 ac_ext=c
13528# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13529ac_cpp='$CPP $CPPFLAGS'
13530ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13531ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13532cross_compiling=$ac_cv_prog_cc_cross
c521c494 13533
4f14bcd8
GD
13534
13535fi
c521c494 13536
4f14bcd8 13537echo "$ac_t""$wx_cv_cpp_bool" 1>&6
c521c494 13538
4f14bcd8
GD
13539 if test "$wx_cv_cpp_bool" = "yes"; then
13540 cat >> confdefs.h <<\EOF
13541#define HAVE_BOOL 1
13542EOF
c521c494 13543
4f14bcd8
GD
13544 fi
13545
13546
13547
13548echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
6054113a 13549echo "configure:13550: checking for wcslen in -lc" >&5
4f14bcd8
GD
13550ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
13551if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13552 echo $ac_n "(cached) $ac_c" 1>&6
13553else
13554 ac_save_LIBS="$LIBS"
13555LIBS="-lc $LIBS"
13556cat > conftest.$ac_ext <<EOF
6054113a 13557#line 13558 "configure"
4f14bcd8
GD
13558#include "confdefs.h"
13559/* Override any gcc2 internal prototype to avoid an error. */
13560/* We use char because int might match the return type of a gcc2
13561 builtin and then its argument prototype would still apply. */
13562char wcslen();
13563
13564int main() {
13565wcslen()
698dcdb6
VZ
13566; return 0; }
13567EOF
6054113a 13568if { (eval echo configure:13569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13569 rm -rf conftest*
4f14bcd8 13570 eval "ac_cv_lib_$ac_lib_var=yes"
c521c494 13571else
698dcdb6
VZ
13572 echo "configure: failed program was:" >&5
13573 cat conftest.$ac_ext >&5
13574 rm -rf conftest*
4f14bcd8 13575 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 13576fi
698dcdb6 13577rm -f conftest*
4f14bcd8 13578LIBS="$ac_save_LIBS"
703e0a69 13579
1e487827 13580fi
4f14bcd8
GD
13581if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13582 echo "$ac_t""yes" 1>&6
13583
13584 cat >> confdefs.h <<\EOF
13585#define HAVE_WCSLEN 1
9d8deca0
VZ
13586EOF
13587
4f14bcd8
GD
13588 WCHAR_LINK=""
13589
9d8deca0 13590else
4f14bcd8 13591 echo "$ac_t""no" 1>&6
9d8deca0 13592
4f14bcd8 13593 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
6054113a 13594echo "configure:13595: checking for wcslen in -lw" >&5
4f14bcd8
GD
13595ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
13596if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 13597 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13598else
4f14bcd8
GD
13599 ac_save_LIBS="$LIBS"
13600LIBS="-lw $LIBS"
13601cat > conftest.$ac_ext <<EOF
6054113a 13602#line 13603 "configure"
10f2d63a 13603#include "confdefs.h"
4f14bcd8
GD
13604/* Override any gcc2 internal prototype to avoid an error. */
13605/* We use char because int might match the return type of a gcc2
13606 builtin and then its argument prototype would still apply. */
13607char wcslen();
10f2d63a 13608
698dcdb6 13609int main() {
4f14bcd8 13610wcslen()
698dcdb6
VZ
13611; return 0; }
13612EOF
6054113a 13613if { (eval echo configure:13614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13614 rm -rf conftest*
4f14bcd8 13615 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 13616else
698dcdb6
VZ
13617 echo "configure: failed program was:" >&5
13618 cat conftest.$ac_ext >&5
13619 rm -rf conftest*
4f14bcd8 13620 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 13621fi
698dcdb6 13622rm -f conftest*
4f14bcd8 13623LIBS="$ac_save_LIBS"
703e0a69 13624
1e487827 13625fi
4f14bcd8
GD
13626if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13627 echo "$ac_t""yes" 1>&6
13628
13629 cat >> confdefs.h <<\EOF
13630#define HAVE_WCSLEN 1
9d8deca0
VZ
13631EOF
13632
4f14bcd8
GD
13633 WCHAR_LINK="-lw"
13634
13635else
13636 echo "$ac_t""no" 1>&6
698dcdb6 13637
4f14bcd8 13638 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
6054113a 13639echo "configure:13640: checking for wcslen in -lmsvcrt" >&5
4f14bcd8
GD
13640ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13641if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
13642 echo $ac_n "(cached) $ac_c" 1>&6
13643else
4f14bcd8
GD
13644 ac_save_LIBS="$LIBS"
13645LIBS="-lmsvcrt $LIBS"
13646cat > conftest.$ac_ext <<EOF
6054113a 13647#line 13648 "configure"
95c8801c 13648#include "confdefs.h"
4f14bcd8
GD
13649/* Override any gcc2 internal prototype to avoid an error. */
13650/* We use char because int might match the return type of a gcc2
13651 builtin and then its argument prototype would still apply. */
13652char wcslen();
95c8801c 13653
4f14bcd8
GD
13654int main() {
13655wcslen()
698dcdb6
VZ
13656; return 0; }
13657EOF
6054113a 13658if { (eval echo configure:13659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13659 rm -rf conftest*
4f14bcd8 13660 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 13661else
698dcdb6
VZ
13662 echo "configure: failed program was:" >&5
13663 cat conftest.$ac_ext >&5
13664 rm -rf conftest*
4f14bcd8 13665 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 13666fi
698dcdb6 13667rm -f conftest*
4f14bcd8 13668LIBS="$ac_save_LIBS"
95c8801c
VS
13669
13670fi
4f14bcd8
GD
13671if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13672 echo "$ac_t""yes" 1>&6
13673
13674 cat >> confdefs.h <<\EOF
13675#define HAVE_WCSLEN 1
13676EOF
698dcdb6 13677
4f14bcd8
GD
13678 WCHAR_LINK=""
13679
13680else
13681 echo "$ac_t""no" 1>&6
13682fi
10f2d63a 13683
4f14bcd8
GD
13684
13685fi
95c8801c 13686
4f14bcd8 13687
95c8801c 13688fi
10f2d63a 13689
1e487827 13690
4f14bcd8 13691for ac_func in wcsrtombs
eb4efbdc 13692do
698dcdb6 13693echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 13694echo "configure:13695: checking for $ac_func" >&5
698dcdb6
VZ
13695if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13696 echo $ac_n "(cached) $ac_c" 1>&6
13697else
13698 cat > conftest.$ac_ext <<EOF
6054113a 13699#line 13700 "configure"
eb4efbdc
VZ
13700#include "confdefs.h"
13701/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13702 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
13703#include <assert.h>
13704/* Override any gcc2 internal prototype to avoid an error. */
13705/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13706 builtin and then its argument prototype would still apply. */
13707char $ac_func();
13708
13709int main() {
eb4efbdc
VZ
13710
13711/* The GNU C library defines this for functions which it implements
13712 to always fail with ENOSYS. Some functions are actually named
13713 something starting with __ and the normal name is an alias. */
13714#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13715choke me
13716#else
698dcdb6 13717$ac_func();
eb4efbdc
VZ
13718#endif
13719
698dcdb6 13720; return 0; }
eb4efbdc 13721EOF
6054113a 13722if { (eval echo configure:13723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13723 rm -rf conftest*
13724 eval "ac_cv_func_$ac_func=yes"
13725else
13726 echo "configure: failed program was:" >&5
13727 cat conftest.$ac_ext >&5
13728 rm -rf conftest*
13729 eval "ac_cv_func_$ac_func=no"
13730fi
13731rm -f conftest*
13732fi
eb4efbdc 13733
698dcdb6
VZ
13734if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13735 echo "$ac_t""yes" 1>&6
13736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13737 cat >> confdefs.h <<EOF
13738#define $ac_tr_func 1
13739EOF
13740
13741else
13742 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
13743fi
13744done
13745
698dcdb6 13746
4f14bcd8 13747echo $ac_n "checking for vprintf""... $ac_c" 1>&6
6054113a 13748echo "configure:13749: checking for vprintf" >&5
4f14bcd8 13749if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
13750 echo $ac_n "(cached) $ac_c" 1>&6
13751else
4f14bcd8 13752 cat > conftest.$ac_ext <<EOF
6054113a 13753#line 13754 "configure"
f6bcfd97 13754#include "confdefs.h"
4f14bcd8
GD
13755/* System header to define __stub macros and hopefully few prototypes,
13756 which can conflict with char vprintf(); below. */
13757#include <assert.h>
13758/* Override any gcc2 internal prototype to avoid an error. */
13759/* We use char because int might match the return type of a gcc2
13760 builtin and then its argument prototype would still apply. */
13761char vprintf();
13762
698dcdb6 13763int main() {
f6bcfd97 13764
4f14bcd8
GD
13765/* The GNU C library defines this for functions which it implements
13766 to always fail with ENOSYS. Some functions are actually named
13767 something starting with __ and the normal name is an alias. */
13768#if defined (__stub_vprintf) || defined (__stub___vprintf)
13769choke me
13770#else
13771vprintf();
13772#endif
f6bcfd97 13773
698dcdb6
VZ
13774; return 0; }
13775EOF
6054113a 13776if { (eval echo configure:13777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13777 rm -rf conftest*
4f14bcd8 13778 eval "ac_cv_func_vprintf=yes"
f6bcfd97 13779else
698dcdb6
VZ
13780 echo "configure: failed program was:" >&5
13781 cat conftest.$ac_ext >&5
13782 rm -rf conftest*
4f14bcd8 13783 eval "ac_cv_func_vprintf=no"
6232543b 13784fi
698dcdb6 13785rm -f conftest*
1e487827 13786fi
698dcdb6 13787
4f14bcd8
GD
13788if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13789 echo "$ac_t""yes" 1>&6
13790 cat >> confdefs.h <<\EOF
13791#define HAVE_VPRINTF 1
f6bcfd97
BP
13792EOF
13793
4f14bcd8
GD
13794else
13795 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
13796fi
13797
4f14bcd8
GD
13798if test "$ac_cv_func_vprintf" != yes; then
13799echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
6054113a 13800echo "configure:13801: checking for _doprnt" >&5
4f14bcd8 13801if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
13802 echo $ac_n "(cached) $ac_c" 1>&6
13803else
13804 cat > conftest.$ac_ext <<EOF
6054113a 13805#line 13806 "configure"
10f2d63a
VZ
13806#include "confdefs.h"
13807/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 13808 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
13809#include <assert.h>
13810/* Override any gcc2 internal prototype to avoid an error. */
13811/* We use char because int might match the return type of a gcc2
698dcdb6 13812 builtin and then its argument prototype would still apply. */
4f14bcd8 13813char _doprnt();
698dcdb6
VZ
13814
13815int main() {
10f2d63a
VZ
13816
13817/* The GNU C library defines this for functions which it implements
13818 to always fail with ENOSYS. Some functions are actually named
13819 something starting with __ and the normal name is an alias. */
4f14bcd8 13820#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
13821choke me
13822#else
4f14bcd8 13823_doprnt();
10f2d63a
VZ
13824#endif
13825
698dcdb6 13826; return 0; }
10f2d63a 13827EOF
6054113a 13828if { (eval echo configure:13829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13829 rm -rf conftest*
4f14bcd8 13830 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
13831else
13832 echo "configure: failed program was:" >&5
13833 cat conftest.$ac_ext >&5
13834 rm -rf conftest*
4f14bcd8 13835 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
13836fi
13837rm -f conftest*
13838fi
270a909e 13839
4f14bcd8 13840if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 13841 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
13842 cat >> confdefs.h <<\EOF
13843#define HAVE_DOPRNT 1
698dcdb6 13844EOF
4f14bcd8 13845
698dcdb6
VZ
13846else
13847 echo "$ac_t""no" 1>&6
270a909e 13848fi
270a909e 13849
4f14bcd8 13850fi
1e487827 13851
52e8b690 13852
52e8b690 13853
52e8b690 13854
52e8b690 13855
52e8b690 13856
4f14bcd8 13857echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
6054113a 13858echo "configure:13859: checking for vsnprintf" >&5
4f14bcd8 13859if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 13860 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13861else
4f14bcd8 13862
af15babd 13863 cat > conftest.$ac_ext <<EOF
6054113a 13864#line 13865 "configure"
c63c7106 13865#include "confdefs.h"
698dcdb6 13866
4f14bcd8
GD
13867 #include <stdio.h>
13868 #include <stdarg.h>
13869
af15babd
VZ
13870int main() {
13871
4f14bcd8
GD
13872 int wx_test_vsnprintf(const char *, ...);
13873
13874 wx_test_vsnprintf("%s");
13875 return 0;
13876 }
13877
13878 int wx_test_vsnprintf(const char *fmt, ...)
13879 {
13880 char *s;
13881
13882 va_list argp;
13883 va_start(argp, fmt);
13884 vsnprintf(s, 42, fmt, argp);
13885 va_end(argp);
13886
af15babd
VZ
13887; return 0; }
13888EOF
6054113a 13889if { (eval echo configure:13890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd
VZ
13890 rm -rf conftest*
13891
4f14bcd8
GD
13892 wx_cv_func_vsnprintf=yes
13893
af15babd
VZ
13894else
13895 echo "configure: failed program was:" >&5
13896 cat conftest.$ac_ext >&5
13897 rm -rf conftest*
13898
4f14bcd8 13899 cat > conftest.$ac_ext <<EOF
6054113a 13900#line 13901 "configure"
af15babd 13901#include "confdefs.h"
af15babd 13902
4f14bcd8
GD
13903 #include <stdio.h>
13904 #include <stdarg.h>
13905
af15babd
VZ
13906int main() {
13907
4f14bcd8
GD
13908 int wx_test_vsnprintf(const char *, ...);
13909
13910 wx_test_vsnprintf("%s");
13911 return 0;
13912 }
13913
13914 int wx_test_vsnprintf(const char *fmt, ...)
13915 {
13916 char *s;
af15babd 13917
4f14bcd8
GD
13918 va_list argp;
13919 va_start(argp, fmt);
13920 _vsnprintf(s, 42, fmt, argp);
13921 va_end(argp);
13922
af15babd
VZ
13923; return 0; }
13924EOF
6054113a 13925if { (eval echo configure:13926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 13926 rm -rf conftest*
4f14bcd8
GD
13927
13928 wx_cv_func_vsnprintf=yes
13929
af15babd
VZ
13930else
13931 echo "configure: failed program was:" >&5
13932 cat conftest.$ac_ext >&5
13933 rm -rf conftest*
4f14bcd8
GD
13934
13935 wx_cv_func_vsnprintf=no
13936
af15babd
VZ
13937fi
13938rm -f conftest*
4f14bcd8 13939
af15babd 13940fi
4f14bcd8 13941rm -f conftest*
af15babd 13942
af15babd 13943fi
af15babd 13944
4f14bcd8 13945echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 13946
4f14bcd8
GD
13947if test "$wx_cv_func_vsnprintf" = yes; then
13948 cat >> confdefs.h <<\EOF
13949#define HAVE_VSNPRINTF 1
13950EOF
13951
13952else
13953 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
af15babd
VZ
13954fi
13955
4f14bcd8 13956echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
6054113a 13957echo "configure:13958: checking for vsscanf" >&5
4f14bcd8 13958if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
13959 echo $ac_n "(cached) $ac_c" 1>&6
13960else
4f14bcd8 13961
af15babd 13962 cat > conftest.$ac_ext <<EOF
6054113a 13963#line 13964 "configure"
af15babd 13964#include "confdefs.h"
af15babd 13965
4f14bcd8
GD
13966 #include <stdio.h>
13967 #include <stdarg.h>
13968
af15babd
VZ
13969int main() {
13970
4f14bcd8
GD
13971 int wx_test_vsscanf(const char *, ...);
13972
13973 wx_test_vsscanf("%d");
13974 return 0;
13975 }
af15babd 13976
4f14bcd8
GD
13977 int wx_test_vsscanf(const char *fmt, ...)
13978 {
13979 va_list argp;
13980 va_start(argp, fmt);
13981 vsscanf("42", fmt, argp);
13982 va_end(argp);
13983
af15babd
VZ
13984; return 0; }
13985EOF
6054113a 13986if { (eval echo configure:13987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 13987 rm -rf conftest*
4f14bcd8
GD
13988
13989 wx_cv_func_vsscanf=yes
13990
af15babd
VZ
13991else
13992 echo "configure: failed program was:" >&5
13993 cat conftest.$ac_ext >&5
13994 rm -rf conftest*
4f14bcd8
GD
13995
13996 wx_cv_func_vsscanf=no
13997
af15babd
VZ
13998fi
13999rm -f conftest*
4f14bcd8 14000
af15babd
VZ
14001fi
14002
4f14bcd8
GD
14003echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
14004
14005if test "$wx_cv_func_vsscanf" = yes; then
14006 cat >> confdefs.h <<\EOF
14007#define HAVE_VSSCANF 1
af15babd 14008EOF
4f14bcd8 14009
af15babd 14010fi
af15babd 14011
4f14bcd8 14012if test "$TOOLKIT" != "MSW"; then
af15babd 14013
4f14bcd8
GD
14014
14015
14016ac_ext=C
14017# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14018ac_cpp='$CXXCPP $CPPFLAGS'
14019ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14020ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14021cross_compiling=$ac_cv_prog_cxx_cross
14022
14023echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
6054113a 14024echo "configure:14025: checking if iconv() takes char**" >&5
4f14bcd8 14025if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
af15babd
VZ
14026 echo $ac_n "(cached) $ac_c" 1>&6
14027else
4f14bcd8
GD
14028
14029 cat > conftest.$ac_ext <<EOF
6054113a 14030#line 14031 "configure"
af15babd 14031#include "confdefs.h"
4f14bcd8 14032#include <iconv.h>
af15babd
VZ
14033int main() {
14034
4f14bcd8
GD
14035 char **inbuf, **outbuf;
14036 iconv_t cd;
14037 size_t insz, outsz;
14038 iconv(cd, inbuf, &insz, outbuf, &outsz);
14039
af15babd
VZ
14040; return 0; }
14041EOF
6054113a 14042if { (eval echo configure:14043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14043 rm -rf conftest*
4f14bcd8 14044 wx_cv_iconv_takes_char=yes
af15babd
VZ
14045else
14046 echo "configure: failed program was:" >&5
14047 cat conftest.$ac_ext >&5
14048 rm -rf conftest*
4f14bcd8 14049 wx_cv_iconv_takes_char=no
af15babd
VZ
14050fi
14051rm -f conftest*
af15babd 14052
af15babd 14053fi
af15babd 14054
4f14bcd8
GD
14055echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
14056ac_ext=c
14057# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14058ac_cpp='$CPP $CPPFLAGS'
14059ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14060ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14061cross_compiling=$ac_cv_prog_cc_cross
af15babd 14062
4f14bcd8
GD
14063if test "$wx_cv_iconv_takes_char" = yes ; then
14064 cat >> confdefs.h <<\EOF
14065#define WX_ICONV_TAKES_CHAR 1
af15babd
VZ
14066EOF
14067
af15babd
VZ
14068fi
14069
af15babd 14070
4f14bcd8
GD
14071if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
14072 for ac_func in sigaction
af15babd
VZ
14073do
14074echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 14075echo "configure:14076: checking for $ac_func" >&5
af15babd
VZ
14076if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14077 echo $ac_n "(cached) $ac_c" 1>&6
14078else
14079 cat > conftest.$ac_ext <<EOF
6054113a 14080#line 14081 "configure"
af15babd
VZ
14081#include "confdefs.h"
14082/* System header to define __stub macros and hopefully few prototypes,
14083 which can conflict with char $ac_func(); below. */
14084#include <assert.h>
14085/* Override any gcc2 internal prototype to avoid an error. */
14086/* We use char because int might match the return type of a gcc2
14087 builtin and then its argument prototype would still apply. */
14088char $ac_func();
14089
14090int main() {
14091
14092/* The GNU C library defines this for functions which it implements
14093 to always fail with ENOSYS. Some functions are actually named
14094 something starting with __ and the normal name is an alias. */
14095#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14096choke me
14097#else
14098$ac_func();
14099#endif
14100
14101; return 0; }
14102EOF
6054113a 14103if { (eval echo configure:14104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14104 rm -rf conftest*
14105 eval "ac_cv_func_$ac_func=yes"
14106else
14107 echo "configure: failed program was:" >&5
14108 cat conftest.$ac_ext >&5
14109 rm -rf conftest*
14110 eval "ac_cv_func_$ac_func=no"
14111fi
14112rm -f conftest*
14113fi
14114
14115if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14116 echo "$ac_t""yes" 1>&6
14117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14118 cat >> confdefs.h <<EOF
14119#define $ac_tr_func 1
14120EOF
4f14bcd8 14121
af15babd
VZ
14122else
14123 echo "$ac_t""no" 1>&6
4f14bcd8
GD
14124fi
14125done
14126
14127
14128 if test "$ac_cv_func_sigaction" = "no"; then
14129 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
14130 wxUSE_ON_FATAL_EXCEPTION=no
14131 fi
14132
14133 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
14134
14135 ac_ext=C
14136# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14137ac_cpp='$CXXCPP $CPPFLAGS'
14138ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14139ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14140cross_compiling=$ac_cv_prog_cxx_cross
14141
14142
14143 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
6054113a 14144echo "configure:14145: checking for sa_handler type" >&5
4f14bcd8 14145if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
14146 echo $ac_n "(cached) $ac_c" 1>&6
14147else
4f14bcd8
GD
14148
14149 cat > conftest.$ac_ext <<EOF
6054113a 14150#line 14151 "configure"
af15babd 14151#include "confdefs.h"
4f14bcd8 14152#include <signal.h>
af15babd 14153int main() {
4f14bcd8
GD
14154
14155 extern void testSigHandler(int);
14156
14157 struct sigaction sa;
14158 sa.sa_handler = testSigHandler;
14159
af15babd
VZ
14160; return 0; }
14161EOF
6054113a 14162if { (eval echo configure:14163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14163 rm -rf conftest*
4f14bcd8
GD
14164
14165 wx_cv_type_sa_handler=int
14166
af15babd
VZ
14167else
14168 echo "configure: failed program was:" >&5
14169 cat conftest.$ac_ext >&5
14170 rm -rf conftest*
4f14bcd8
GD
14171
14172 wx_cv_type_sa_handler=void
14173
af15babd
VZ
14174fi
14175rm -f conftest*
4f14bcd8
GD
14176
14177fi
14178
14179echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
14180
14181 ac_ext=c
14182# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14183ac_cpp='$CPP $CPPFLAGS'
14184ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14185ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14186cross_compiling=$ac_cv_prog_cc_cross
af15babd 14187
4f14bcd8
GD
14188
14189 cat >> confdefs.h <<EOF
14190#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
14191EOF
14192
4f14bcd8
GD
14193 fi
14194fi
af15babd 14195
4f14bcd8 14196for ac_func in vfork
af15babd
VZ
14197do
14198echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 14199echo "configure:14200: checking for $ac_func" >&5
af15babd
VZ
14200if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14201 echo $ac_n "(cached) $ac_c" 1>&6
14202else
14203 cat > conftest.$ac_ext <<EOF
6054113a 14204#line 14205 "configure"
af15babd
VZ
14205#include "confdefs.h"
14206/* System header to define __stub macros and hopefully few prototypes,
14207 which can conflict with char $ac_func(); below. */
14208#include <assert.h>
14209/* Override any gcc2 internal prototype to avoid an error. */
14210/* We use char because int might match the return type of a gcc2
14211 builtin and then its argument prototype would still apply. */
14212char $ac_func();
14213
14214int main() {
14215
14216/* The GNU C library defines this for functions which it implements
14217 to always fail with ENOSYS. Some functions are actually named
14218 something starting with __ and the normal name is an alias. */
14219#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14220choke me
14221#else
14222$ac_func();
14223#endif
14224
14225; return 0; }
14226EOF
6054113a 14227if { (eval echo configure:14228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14228 rm -rf conftest*
14229 eval "ac_cv_func_$ac_func=yes"
14230else
14231 echo "configure: failed program was:" >&5
14232 cat conftest.$ac_ext >&5
14233 rm -rf conftest*
14234 eval "ac_cv_func_$ac_func=no"
14235fi
14236rm -f conftest*
14237fi
14238
14239if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14240 echo "$ac_t""yes" 1>&6
14241 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14242 cat >> confdefs.h <<EOF
14243#define $ac_tr_func 1
14244EOF
4f14bcd8 14245
af15babd
VZ
14246else
14247 echo "$ac_t""no" 1>&6
af15babd
VZ
14248fi
14249done
14250
af15babd 14251
4f14bcd8 14252echo $ac_n "checking for statfs""... $ac_c" 1>&6
6054113a 14253echo "configure:14254: checking for statfs" >&5
4f14bcd8
GD
14254if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
14255 echo $ac_n "(cached) $ac_c" 1>&6
14256else
14257 cat > conftest.$ac_ext <<EOF
6054113a 14258#line 14259 "configure"
4f14bcd8
GD
14259#include "confdefs.h"
14260
14261 #if defined(__BSD__)
14262 #include <sys/param.h>
14263 #include <sys/mount.h>
14264 #else
14265 #include <sys/vfs.h>
14266 #endif
14267
14268int main() {
14269
14270 long l;
14271 struct statfs fs;
14272 statfs("/", &fs);
14273 l = fs.f_bsize;
14274 l += fs.f_blocks;
14275 l += fs.f_bavail;
14276
14277; return 0; }
14278EOF
6054113a 14279if { (eval echo configure:14280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14280 rm -rf conftest*
14281
14282 wx_cv_func_statfs=yes
14283
14284else
14285 echo "configure: failed program was:" >&5
14286 cat conftest.$ac_ext >&5
14287 rm -rf conftest*
14288
14289 wx_cv_func_statfs=no
af15babd
VZ
14290
14291
14292fi
4f14bcd8 14293rm -f conftest*
af15babd
VZ
14294
14295fi
14296
4f14bcd8
GD
14297echo "$ac_t""$wx_cv_func_statfs" 1>&6
14298
14299if test "$wx_cv_func_statfs" = "yes"; then
14300 cat >> confdefs.h <<\EOF
14301#define HAVE_STATFS 1
14302EOF
14303
14304else
14305 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
6054113a 14306echo "configure:14307: checking for statvfs" >&5
4f14bcd8 14307if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
14308 echo $ac_n "(cached) $ac_c" 1>&6
14309else
14310 cat > conftest.$ac_ext <<EOF
6054113a 14311#line 14312 "configure"
af15babd 14312#include "confdefs.h"
af15babd 14313
4f14bcd8
GD
14314 #include <sys/statvfs.h>
14315
af15babd
VZ
14316int main() {
14317
4f14bcd8
GD
14318 long l;
14319 struct statvfs fs;
14320 statvfs("/", &fs);
14321 l = fs.f_bsize;
14322 l += fs.f_blocks;
14323 l += fs.f_bavail;
14324
af15babd
VZ
14325; return 0; }
14326EOF
6054113a 14327if { (eval echo configure:14328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14328 rm -rf conftest*
4f14bcd8
GD
14329
14330 wx_cv_func_statvfs=yes
14331
af15babd
VZ
14332else
14333 echo "configure: failed program was:" >&5
14334 cat conftest.$ac_ext >&5
14335 rm -rf conftest*
4f14bcd8
GD
14336
14337 wx_cv_func_statvfs=no
14338
14339
af15babd
VZ
14340fi
14341rm -f conftest*
4f14bcd8 14342
af15babd
VZ
14343fi
14344
4f14bcd8 14345echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 14346
4f14bcd8
GD
14347 if test "$wx_cv_func_statvfs" = "yes"; then
14348 cat >> confdefs.h <<\EOF
14349#define HAVE_STATVFS 1
14350EOF
af15babd 14351
4f14bcd8
GD
14352 else
14353 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
14354 fi
14355fi
af15babd 14356
4f14bcd8
GD
14357if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
14358 for ac_func in fcntl flock
af15babd
VZ
14359do
14360echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 14361echo "configure:14362: checking for $ac_func" >&5
af15babd
VZ
14362if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14363 echo $ac_n "(cached) $ac_c" 1>&6
14364else
14365 cat > conftest.$ac_ext <<EOF
6054113a 14366#line 14367 "configure"
af15babd
VZ
14367#include "confdefs.h"
14368/* System header to define __stub macros and hopefully few prototypes,
14369 which can conflict with char $ac_func(); below. */
14370#include <assert.h>
14371/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
14372/* We use char because int might match the return type of a gcc2
14373 builtin and then its argument prototype would still apply. */
14374char $ac_func();
14375
14376int main() {
14377
14378/* The GNU C library defines this for functions which it implements
14379 to always fail with ENOSYS. Some functions are actually named
14380 something starting with __ and the normal name is an alias. */
14381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14382choke me
14383#else
14384$ac_func();
14385#endif
14386
14387; return 0; }
14388EOF
6054113a 14389if { (eval echo configure:14390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14390 rm -rf conftest*
14391 eval "ac_cv_func_$ac_func=yes"
14392else
14393 echo "configure: failed program was:" >&5
14394 cat conftest.$ac_ext >&5
14395 rm -rf conftest*
14396 eval "ac_cv_func_$ac_func=no"
14397fi
14398rm -f conftest*
14399fi
14400
14401if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14402 echo "$ac_t""yes" 1>&6
14403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14404 cat >> confdefs.h <<EOF
14405#define $ac_tr_func 1
14406EOF
4f14bcd8 14407 break
af15babd
VZ
14408else
14409 echo "$ac_t""no" 1>&6
14410fi
14411done
14412
14413
4f14bcd8
GD
14414 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
14415 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
14416 wxUSE_SNGLINST_CHECKER=no
14417 fi
14418fi
af15babd 14419
4f14bcd8 14420for ac_func in timegm
af15babd
VZ
14421do
14422echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 14423echo "configure:14424: checking for $ac_func" >&5
af15babd
VZ
14424if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14425 echo $ac_n "(cached) $ac_c" 1>&6
14426else
14427 cat > conftest.$ac_ext <<EOF
6054113a 14428#line 14429 "configure"
af15babd
VZ
14429#include "confdefs.h"
14430/* System header to define __stub macros and hopefully few prototypes,
14431 which can conflict with char $ac_func(); below. */
14432#include <assert.h>
14433/* Override any gcc2 internal prototype to avoid an error. */
14434/* We use char because int might match the return type of a gcc2
14435 builtin and then its argument prototype would still apply. */
14436char $ac_func();
14437
698dcdb6 14438int main() {
698dcdb6 14439
af15babd
VZ
14440/* The GNU C library defines this for functions which it implements
14441 to always fail with ENOSYS. Some functions are actually named
14442 something starting with __ and the normal name is an alias. */
14443#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14444choke me
14445#else
14446$ac_func();
14447#endif
14448
698dcdb6
VZ
14449; return 0; }
14450EOF
6054113a 14451if { (eval echo configure:14452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14452 rm -rf conftest*
af15babd 14453 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
14454else
14455 echo "configure: failed program was:" >&5
14456 cat conftest.$ac_ext >&5
14457 rm -rf conftest*
af15babd 14458 eval "ac_cv_func_$ac_func=no"
1e487827 14459fi
9952adac 14460rm -f conftest*
af15babd 14461fi
703e0a69 14462
af15babd
VZ
14463if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14464 echo "$ac_t""yes" 1>&6
14465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
14466 cat >> confdefs.h <<EOF
14467#define $ac_tr_func 1
14468EOF
14469
14470else
14471 echo "$ac_t""no" 1>&6
af15babd
VZ
14472fi
14473done
14474
14475
4f14bcd8 14476for ac_func in putenv setenv
10f2d63a 14477do
698dcdb6 14478echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 14479echo "configure:14480: checking for $ac_func" >&5
698dcdb6
VZ
14480if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14481 echo $ac_n "(cached) $ac_c" 1>&6
14482else
14483 cat > conftest.$ac_ext <<EOF
6054113a 14484#line 14485 "configure"
af15babd
VZ
14485#include "confdefs.h"
14486/* System header to define __stub macros and hopefully few prototypes,
14487 which can conflict with char $ac_func(); below. */
14488#include <assert.h>
14489/* Override any gcc2 internal prototype to avoid an error. */
14490/* We use char because int might match the return type of a gcc2
14491 builtin and then its argument prototype would still apply. */
14492char $ac_func();
14493
14494int main() {
14495
14496/* The GNU C library defines this for functions which it implements
14497 to always fail with ENOSYS. Some functions are actually named
14498 something starting with __ and the normal name is an alias. */
14499#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14500choke me
14501#else
14502$ac_func();
14503#endif
14504
14505; return 0; }
14506EOF
6054113a 14507if { (eval echo configure:14508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14508 rm -rf conftest*
14509 eval "ac_cv_func_$ac_func=yes"
14510else
14511 echo "configure: failed program was:" >&5
14512 cat conftest.$ac_ext >&5
14513 rm -rf conftest*
14514 eval "ac_cv_func_$ac_func=no"
14515fi
14516rm -f conftest*
14517fi
14518
14519if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14520 echo "$ac_t""yes" 1>&6
14521 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14522 cat >> confdefs.h <<EOF
14523#define $ac_tr_func 1
14524EOF
4f14bcd8 14525 break
af15babd
VZ
14526else
14527 echo "$ac_t""no" 1>&6
14528fi
af15babd
VZ
14529done
14530
14531
4f14bcd8
GD
14532HAVE_SOME_SLEEP_FUNC=0
14533if test "$USE_BEOS" = 1; then
14534 cat >> confdefs.h <<\EOF
14535#define HAVE_SLEEP 1
af15babd
VZ
14536EOF
14537
4f14bcd8 14538 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
14539fi
14540
4f14bcd8
GD
14541if test "$USE_DARWIN" = 1; then
14542 cat >> confdefs.h <<\EOF
14543#define HAVE_USLEEP 1
af15babd 14544EOF
10f2d63a 14545
4f14bcd8 14546 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
14547fi
14548
4f14bcd8
GD
14549if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
14550 POSIX4_LINK=
14551 for ac_func in nanosleep
14552do
14553echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 14554echo "configure:14555: checking for $ac_func" >&5
4f14bcd8 14555if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 14556 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14557else
4f14bcd8 14558 cat > conftest.$ac_ext <<EOF
6054113a 14559#line 14560 "configure"
10f2d63a 14560#include "confdefs.h"
4f14bcd8
GD
14561/* System header to define __stub macros and hopefully few prototypes,
14562 which can conflict with char $ac_func(); below. */
14563#include <assert.h>
10f2d63a
VZ
14564/* Override any gcc2 internal prototype to avoid an error. */
14565/* We use char because int might match the return type of a gcc2
698dcdb6 14566 builtin and then its argument prototype would still apply. */
4f14bcd8 14567char $ac_func();
698dcdb6
VZ
14568
14569int main() {
4f14bcd8
GD
14570
14571/* The GNU C library defines this for functions which it implements
14572 to always fail with ENOSYS. Some functions are actually named
14573 something starting with __ and the normal name is an alias. */
14574#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14575choke me
14576#else
14577$ac_func();
14578#endif
14579
698dcdb6
VZ
14580; return 0; }
14581EOF
6054113a 14582if { (eval echo configure:14583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14583 rm -rf conftest*
4f14bcd8 14584 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
14585else
14586 echo "configure: failed program was:" >&5
14587 cat conftest.$ac_ext >&5
14588 rm -rf conftest*
4f14bcd8 14589 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
14590fi
14591rm -f conftest*
698dcdb6 14592fi
4f14bcd8
GD
14593
14594if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 14595 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14596 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14597 cat >> confdefs.h <<EOF
14598#define $ac_tr_func 1
14599EOF
14600 cat >> confdefs.h <<\EOF
14601#define HAVE_NANOSLEEP 1
14602EOF
14603
10f2d63a 14604else
698dcdb6 14605 echo "$ac_t""no" 1>&6
4f14bcd8 14606echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
6054113a 14607echo "configure:14608: checking for nanosleep in -lposix4" >&5
4f14bcd8 14608ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
14609if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14610 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14611else
698dcdb6 14612 ac_save_LIBS="$LIBS"
4f14bcd8 14613LIBS="-lposix4 $LIBS"
698dcdb6 14614cat > conftest.$ac_ext <<EOF
6054113a 14615#line 14616 "configure"
10f2d63a
VZ
14616#include "confdefs.h"
14617/* Override any gcc2 internal prototype to avoid an error. */
14618/* We use char because int might match the return type of a gcc2
698dcdb6 14619 builtin and then its argument prototype would still apply. */
4f14bcd8 14620char nanosleep();
698dcdb6
VZ
14621
14622int main() {
4f14bcd8 14623nanosleep()
698dcdb6
VZ
14624; return 0; }
14625EOF
6054113a 14626if { (eval echo configure:14627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14627 rm -rf conftest*
14628 eval "ac_cv_lib_$ac_lib_var=yes"
14629else
14630 echo "configure: failed program was:" >&5
14631 cat conftest.$ac_ext >&5
14632 rm -rf conftest*
14633 eval "ac_cv_lib_$ac_lib_var=no"
14634fi
14635rm -f conftest*
14636LIBS="$ac_save_LIBS"
10f2d63a 14637
698dcdb6
VZ
14638fi
14639if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14640 echo "$ac_t""yes" 1>&6
14641
4f14bcd8
GD
14642 cat >> confdefs.h <<\EOF
14643#define HAVE_NANOSLEEP 1
14644EOF
14645
14646 POSIX4_LINK="-lposix4"
14647
10f2d63a 14648else
698dcdb6 14649 echo "$ac_t""no" 1>&6
10f2d63a 14650
4f14bcd8
GD
14651 for ac_func in usleep
14652do
14653echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 14654echo "configure:14655: checking for $ac_func" >&5
4f14bcd8 14655if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 14656 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14657else
698dcdb6 14658 cat > conftest.$ac_ext <<EOF
6054113a 14659#line 14660 "configure"
10f2d63a 14660#include "confdefs.h"
4f14bcd8
GD
14661/* System header to define __stub macros and hopefully few prototypes,
14662 which can conflict with char $ac_func(); below. */
14663#include <assert.h>
14664/* Override any gcc2 internal prototype to avoid an error. */
14665/* We use char because int might match the return type of a gcc2
14666 builtin and then its argument prototype would still apply. */
14667char $ac_func();
14668
14669int main() {
14670
14671/* The GNU C library defines this for functions which it implements
14672 to always fail with ENOSYS. Some functions are actually named
14673 something starting with __ and the normal name is an alias. */
14674#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14675choke me
14676#else
14677$ac_func();
14678#endif
14679
14680; return 0; }
698dcdb6 14681EOF
6054113a 14682if { (eval echo configure:14683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14683 rm -rf conftest*
4f14bcd8 14684 eval "ac_cv_func_$ac_func=yes"
1e487827 14685else
698dcdb6 14686 echo "configure: failed program was:" >&5
10f2d63a 14687 cat conftest.$ac_ext >&5
698dcdb6 14688 rm -rf conftest*
4f14bcd8 14689 eval "ac_cv_func_$ac_func=no"
10f2d63a 14690fi
698dcdb6 14691rm -f conftest*
10f2d63a 14692fi
4f14bcd8
GD
14693
14694if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 14695 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14697 cat >> confdefs.h <<EOF
14698#define $ac_tr_func 1
14699EOF
14700 cat >> confdefs.h <<\EOF
14701#define HAVE_USLEEP 1
14702EOF
14703
698dcdb6
VZ
14704else
14705 echo "$ac_t""no" 1>&6
4f14bcd8
GD
14706echo "configure: warning: wxSleep() function will not work" 1>&2
14707
10f2d63a 14708fi
4f14bcd8 14709done
10f2d63a 14710
4f14bcd8 14711
698dcdb6 14712
6232543b 14713fi
10f2d63a 14714
698dcdb6 14715
4f14bcd8 14716
1e487827 14717fi
4f14bcd8 14718done
703e0a69 14719
10f2d63a
VZ
14720fi
14721
4f14bcd8 14722for ac_func in uname gethostname
70846f0a 14723do
698dcdb6 14724echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 14725echo "configure:14726: checking for $ac_func" >&5
698dcdb6
VZ
14726if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14727 echo $ac_n "(cached) $ac_c" 1>&6
14728else
14729 cat > conftest.$ac_ext <<EOF
6054113a 14730#line 14731 "configure"
70846f0a
VZ
14731#include "confdefs.h"
14732/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14733 which can conflict with char $ac_func(); below. */
70846f0a
VZ
14734#include <assert.h>
14735/* Override any gcc2 internal prototype to avoid an error. */
14736/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14737 builtin and then its argument prototype would still apply. */
14738char $ac_func();
14739
14740int main() {
70846f0a
VZ
14741
14742/* The GNU C library defines this for functions which it implements
14743 to always fail with ENOSYS. Some functions are actually named
14744 something starting with __ and the normal name is an alias. */
14745#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14746choke me
14747#else
698dcdb6 14748$ac_func();
70846f0a
VZ
14749#endif
14750
698dcdb6 14751; return 0; }
70846f0a 14752EOF
6054113a 14753if { (eval echo configure:14754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14754 rm -rf conftest*
14755 eval "ac_cv_func_$ac_func=yes"
14756else
14757 echo "configure: failed program was:" >&5
14758 cat conftest.$ac_ext >&5
14759 rm -rf conftest*
14760 eval "ac_cv_func_$ac_func=no"
14761fi
14762rm -f conftest*
14763fi
70846f0a 14764
698dcdb6
VZ
14765if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14766 echo "$ac_t""yes" 1>&6
14767 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14768 cat >> confdefs.h <<EOF
14769#define $ac_tr_func 1
14770EOF
4f14bcd8 14771 break
698dcdb6
VZ
14772else
14773 echo "$ac_t""no" 1>&6
70846f0a
VZ
14774fi
14775done
14776
698dcdb6 14777
4f14bcd8
GD
14778
14779ac_ext=C
14780# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14781ac_cpp='$CXXCPP $CPPFLAGS'
14782ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14783ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14784cross_compiling=$ac_cv_prog_cxx_cross
14785
14786
14787for ac_func in strtok_r
10f2d63a 14788do
4f14bcd8 14789echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 14790echo "configure:14791: checking for $ac_func" >&5
4f14bcd8 14791if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
14792 echo $ac_n "(cached) $ac_c" 1>&6
14793else
14794 cat > conftest.$ac_ext <<EOF
6054113a 14795#line 14796 "configure"
10f2d63a 14796#include "confdefs.h"
4f14bcd8
GD
14797/* System header to define __stub macros and hopefully few prototypes,
14798 which can conflict with char $ac_func(); below. */
14799#include <assert.h>
14800/* Override any gcc2 internal prototype to avoid an error. */
14801#ifdef __cplusplus
14802extern "C"
14803#endif
14804/* We use char because int might match the return type of a gcc2
14805 builtin and then its argument prototype would still apply. */
14806char $ac_func();
14807
14808int main() {
14809
14810/* The GNU C library defines this for functions which it implements
14811 to always fail with ENOSYS. Some functions are actually named
14812 something starting with __ and the normal name is an alias. */
14813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14814choke me
14815#else
14816$ac_func();
14817#endif
14818
14819; return 0; }
698dcdb6 14820EOF
6054113a 14821if { (eval echo configure:14822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14822 rm -rf conftest*
4f14bcd8 14823 eval "ac_cv_func_$ac_func=yes"
1e487827 14824else
698dcdb6 14825 echo "configure: failed program was:" >&5
10f2d63a 14826 cat conftest.$ac_ext >&5
698dcdb6 14827 rm -rf conftest*
4f14bcd8 14828 eval "ac_cv_func_$ac_func=no"
10f2d63a 14829fi
698dcdb6 14830rm -f conftest*
10f2d63a 14831fi
4f14bcd8
GD
14832
14833if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 14834 echo "$ac_t""yes" 1>&6
4f14bcd8 14835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 14836 cat >> confdefs.h <<EOF
4f14bcd8 14837#define $ac_tr_func 1
10f2d63a 14838EOF
698dcdb6
VZ
14839
14840else
14841 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14842fi
14843done
14844
698dcdb6 14845
4f14bcd8
GD
14846ac_ext=c
14847# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14848ac_cpp='$CPP $CPPFLAGS'
14849ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14850ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14851cross_compiling=$ac_cv_prog_cc_cross
14852
14853
14854INET_LINK=
14855for ac_func in inet_addr
14856do
14857echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 14858echo "configure:14859: checking for $ac_func" >&5
4f14bcd8 14859if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 14860 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14861else
4f14bcd8 14862 cat > conftest.$ac_ext <<EOF
6054113a 14863#line 14864 "configure"
10f2d63a 14864#include "confdefs.h"
4f14bcd8
GD
14865/* System header to define __stub macros and hopefully few prototypes,
14866 which can conflict with char $ac_func(); below. */
14867#include <assert.h>
10f2d63a
VZ
14868/* Override any gcc2 internal prototype to avoid an error. */
14869/* We use char because int might match the return type of a gcc2
698dcdb6 14870 builtin and then its argument prototype would still apply. */
4f14bcd8 14871char $ac_func();
698dcdb6
VZ
14872
14873int main() {
4f14bcd8
GD
14874
14875/* The GNU C library defines this for functions which it implements
14876 to always fail with ENOSYS. Some functions are actually named
14877 something starting with __ and the normal name is an alias. */
14878#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14879choke me
14880#else
14881$ac_func();
14882#endif
14883
698dcdb6
VZ
14884; return 0; }
14885EOF
6054113a 14886if { (eval echo configure:14887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14887 rm -rf conftest*
4f14bcd8 14888 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
14889else
14890 echo "configure: failed program was:" >&5
14891 cat conftest.$ac_ext >&5
14892 rm -rf conftest*
4f14bcd8 14893 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
14894fi
14895rm -f conftest*
698dcdb6 14896fi
4f14bcd8
GD
14897
14898if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 14899 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14900 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14901 cat >> confdefs.h <<EOF
14902#define $ac_tr_func 1
14903EOF
14904 cat >> confdefs.h <<\EOF
14905#define HAVE_INET_ADDR 1
10f2d63a
VZ
14906EOF
14907
14908else
698dcdb6 14909 echo "$ac_t""no" 1>&6
4f14bcd8 14910echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
6054113a 14911echo "configure:14912: checking for inet_addr in -lnsl" >&5
4f14bcd8 14912ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
14913if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14914 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14915else
698dcdb6 14916 ac_save_LIBS="$LIBS"
4f14bcd8 14917LIBS="-lnsl $LIBS"
698dcdb6 14918cat > conftest.$ac_ext <<EOF
6054113a 14919#line 14920 "configure"
10f2d63a
VZ
14920#include "confdefs.h"
14921/* Override any gcc2 internal prototype to avoid an error. */
14922/* We use char because int might match the return type of a gcc2
698dcdb6 14923 builtin and then its argument prototype would still apply. */
4f14bcd8 14924char inet_addr();
698dcdb6
VZ
14925
14926int main() {
4f14bcd8 14927inet_addr()
698dcdb6
VZ
14928; return 0; }
14929EOF
6054113a 14930if { (eval echo configure:14931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14931 rm -rf conftest*
14932 eval "ac_cv_lib_$ac_lib_var=yes"
14933else
14934 echo "configure: failed program was:" >&5
14935 cat conftest.$ac_ext >&5
14936 rm -rf conftest*
14937 eval "ac_cv_lib_$ac_lib_var=no"
14938fi
14939rm -f conftest*
14940LIBS="$ac_save_LIBS"
14941
14942fi
14943if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14944 echo "$ac_t""yes" 1>&6
4f14bcd8 14945 INET_LINK="nsl"
10f2d63a 14946else
698dcdb6 14947 echo "$ac_t""no" 1>&6
4f14bcd8 14948echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
6054113a 14949echo "configure:14950: checking for inet_addr in -lresolv" >&5
4f14bcd8 14950ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
14951if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14952 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14953else
698dcdb6 14954 ac_save_LIBS="$LIBS"
4f14bcd8 14955LIBS="-lresolv $LIBS"
698dcdb6 14956cat > conftest.$ac_ext <<EOF
6054113a 14957#line 14958 "configure"
10f2d63a
VZ
14958#include "confdefs.h"
14959/* Override any gcc2 internal prototype to avoid an error. */
14960/* We use char because int might match the return type of a gcc2
698dcdb6 14961 builtin and then its argument prototype would still apply. */
4f14bcd8 14962char inet_addr();
698dcdb6
VZ
14963
14964int main() {
4f14bcd8 14965inet_addr()
698dcdb6
VZ
14966; return 0; }
14967EOF
6054113a 14968if { (eval echo configure:14969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14969 rm -rf conftest*
14970 eval "ac_cv_lib_$ac_lib_var=yes"
14971else
14972 echo "configure: failed program was:" >&5
14973 cat conftest.$ac_ext >&5
14974 rm -rf conftest*
14975 eval "ac_cv_lib_$ac_lib_var=no"
14976fi
14977rm -f conftest*
14978LIBS="$ac_save_LIBS"
14979
14980fi
14981if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14982 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14983 INET_LINK="resolv"
14984
698dcdb6 14985else
4f14bcd8
GD
14986 echo "$ac_t""no" 1>&6
14987fi
698dcdb6 14988
4f14bcd8 14989
698dcdb6 14990fi
4f14bcd8
GD
14991
14992
698dcdb6
VZ
14993
14994fi
4f14bcd8
GD
14995done
14996
14997
14998for ac_func in inet_aton
14999do
15000echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 15001echo "configure:15002: checking for $ac_func" >&5
4f14bcd8 15002if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15003 echo $ac_n "(cached) $ac_c" 1>&6
15004else
4f14bcd8 15005 cat > conftest.$ac_ext <<EOF
6054113a 15006#line 15007 "configure"
f6bcfd97 15007#include "confdefs.h"
4f14bcd8
GD
15008/* System header to define __stub macros and hopefully few prototypes,
15009 which can conflict with char $ac_func(); below. */
15010#include <assert.h>
f6bcfd97
BP
15011/* Override any gcc2 internal prototype to avoid an error. */
15012/* We use char because int might match the return type of a gcc2
698dcdb6 15013 builtin and then its argument prototype would still apply. */
4f14bcd8 15014char $ac_func();
698dcdb6
VZ
15015
15016int main() {
4f14bcd8
GD
15017
15018/* The GNU C library defines this for functions which it implements
15019 to always fail with ENOSYS. Some functions are actually named
15020 something starting with __ and the normal name is an alias. */
15021#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15022choke me
15023#else
15024$ac_func();
15025#endif
15026
698dcdb6
VZ
15027; return 0; }
15028EOF
6054113a 15029if { (eval echo configure:15030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15030 rm -rf conftest*
4f14bcd8 15031 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15032else
15033 echo "configure: failed program was:" >&5
15034 cat conftest.$ac_ext >&5
15035 rm -rf conftest*
4f14bcd8 15036 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15037fi
15038rm -f conftest*
698dcdb6 15039fi
4f14bcd8
GD
15040
15041if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15042 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15044 cat >> confdefs.h <<EOF
15045#define $ac_tr_func 1
15046EOF
15047 cat >> confdefs.h <<\EOF
15048#define HAVE_INET_ATON 1
15049EOF
15050
10f2d63a 15051else
698dcdb6 15052 echo "$ac_t""no" 1>&6
4f14bcd8 15053 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
6054113a 15054echo "configure:15055: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 15055ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15056if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15057 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 15058else
698dcdb6 15059 ac_save_LIBS="$LIBS"
4f14bcd8 15060LIBS="-l$INET_LINK $LIBS"
698dcdb6 15061cat > conftest.$ac_ext <<EOF
6054113a 15062#line 15063 "configure"
10f2d63a 15063#include "confdefs.h"
6232543b 15064/* Override any gcc2 internal prototype to avoid an error. */
6232543b 15065/* We use char because int might match the return type of a gcc2
698dcdb6 15066 builtin and then its argument prototype would still apply. */
4f14bcd8 15067char inet_aton();
698dcdb6
VZ
15068
15069int main() {
4f14bcd8 15070inet_aton()
698dcdb6
VZ
15071; return 0; }
15072EOF
6054113a 15073if { (eval echo configure:15074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15074 rm -rf conftest*
15075 eval "ac_cv_lib_$ac_lib_var=yes"
15076else
15077 echo "configure: failed program was:" >&5
15078 cat conftest.$ac_ext >&5
15079 rm -rf conftest*
15080 eval "ac_cv_lib_$ac_lib_var=no"
15081fi
15082rm -f conftest*
15083LIBS="$ac_save_LIBS"
10f2d63a 15084
698dcdb6
VZ
15085fi
15086if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15087 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15088 cat >> confdefs.h <<\EOF
15089#define HAVE_INET_ATON 1
15090EOF
15091
698dcdb6
VZ
15092else
15093 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15094fi
15095
4f14bcd8 15096
10f2d63a 15097fi
4f14bcd8 15098done
10f2d63a 15099
4f14bcd8
GD
15100
15101if test "x$INET_LINK" != "x"; then
15102 cat >> confdefs.h <<\EOF
15103#define HAVE_INET_ADDR 1
15104EOF
15105
15106 INET_LINK="-l$INET_LINK"
6232543b 15107fi
10f2d63a 15108
1e487827 15109fi
703e0a69 15110
698dcdb6 15111
4f14bcd8
GD
15112cat > confcache <<\EOF
15113# This file is a shell script that caches the results of configure
15114# tests run on this system so they can be shared between configure
15115# scripts and configure runs. It is not useful on other systems.
15116# If it contains results you don't want to keep, you may remove or edit it.
15117#
15118# By default, configure uses ./config.cache as the cache file,
15119# creating it if it does not exist already. You can give configure
15120# the --cache-file=FILE option to use a different cache file; that is
15121# what configure does when it calls configure scripts in
15122# subdirectories, so they share the cache.
15123# Giving --cache-file=/dev/null disables caching, for debugging configure.
15124# config.status only pays attention to the cache file if you give it the
15125# --recheck option to rerun configure.
15126#
f6bcfd97 15127EOF
4f14bcd8
GD
15128# The following way of writing the cache mishandles newlines in values,
15129# but we know of no workaround that is simple, portable, and efficient.
15130# So, don't put newlines in cache variables' values.
15131# Ultrix sh set writes to stderr and can't be redirected directly,
15132# and sets the high bit in the cache file unless we assign to the vars.
15133(set) 2>&1 |
15134 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15135 *ac_space=\ *)
15136 # `set' does not quote correctly, so add quotes (double-quote substitution
15137 # turns \\\\ into \\, and sed turns \\ into \).
15138 sed -n \
15139 -e "s/'/'\\\\''/g" \
15140 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15141 ;;
15142 *)
15143 # `set' quotes correctly as required by POSIX, so do not add quotes.
15144 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15145 ;;
15146 esac >> confcache
15147if cmp -s $cache_file confcache; then
15148 :
15149else
15150 if test -w $cache_file; then
15151 echo "updating cache $cache_file"
15152 cat confcache > $cache_file
f6bcfd97 15153 else
4f14bcd8 15154 echo "not updating unwritable cache $cache_file"
f6bcfd97 15155 fi
4f14bcd8
GD
15156fi
15157rm -f confcache
f6bcfd97 15158
4f14bcd8
GD
15159
15160
15161if test "$TOOLKIT" != "MSW"; then
15162
15163
15164THREADS_LINK=
15165THREADS_OBJ=
15166CODE_GEN_FLAGS=
15167CODE_GEN_FLAGS_CXX=
15168
15169if test "$wxUSE_THREADS" = "yes" ; then
15170 if test "$wxUSE_WINE" = 1 ; then
15171 echo "configure: warning: Threads are not supported under WINE" 1>&2
15172 wxUSE_THREADS="no"
15173 elif test "$USE_BEOS" = 1; then
15174 echo "configure: warning: BeOS threads are not yet supported" 1>&2
15175 wxUSE_THREADS="no"
15176 fi
15177fi
15178
15179if test "$wxUSE_THREADS" = "yes" ; then
15180
15181 if test "$USE_AIX" = 1; then
15182 THREADS_LIB=pthreads
15183 else
15184 THREADS_LIB=pthread
15185 fi
15186
15187 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
6054113a 15188echo "configure:15189: checking for pthread_create in -l$THREADS_LIB" >&5
4f14bcd8 15189ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15190if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15191 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15192else
698dcdb6 15193 ac_save_LIBS="$LIBS"
4f14bcd8 15194LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 15195cat > conftest.$ac_ext <<EOF
6054113a 15196#line 15197 "configure"
10f2d63a
VZ
15197#include "confdefs.h"
15198/* Override any gcc2 internal prototype to avoid an error. */
15199/* We use char because int might match the return type of a gcc2
698dcdb6 15200 builtin and then its argument prototype would still apply. */
4f14bcd8 15201char pthread_create();
698dcdb6
VZ
15202
15203int main() {
4f14bcd8 15204pthread_create()
698dcdb6
VZ
15205; return 0; }
15206EOF
6054113a 15207if { (eval echo configure:15208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15208 rm -rf conftest*
15209 eval "ac_cv_lib_$ac_lib_var=yes"
15210else
15211 echo "configure: failed program was:" >&5
15212 cat conftest.$ac_ext >&5
15213 rm -rf conftest*
15214 eval "ac_cv_lib_$ac_lib_var=no"
15215fi
15216rm -f conftest*
15217LIBS="$ac_save_LIBS"
15218
15219fi
15220if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15221 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15222
15223 THREADS_OBJ="threadpsx.lo"
15224 THREADS_LINK=$THREADS_LIB
15225
10f2d63a 15226else
698dcdb6 15227 echo "$ac_t""no" 1>&6
10f2d63a 15228
4f14bcd8 15229 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
6054113a 15230echo "configure:15231: checking for pthread_create in -lc_r" >&5
4f14bcd8
GD
15231ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
15232if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15233 echo $ac_n "(cached) $ac_c" 1>&6
15234else
4f14bcd8
GD
15235 ac_save_LIBS="$LIBS"
15236LIBS="-lc_r $LIBS"
15237cat > conftest.$ac_ext <<EOF
6054113a 15238#line 15239 "configure"
10f2d63a 15239#include "confdefs.h"
4f14bcd8
GD
15240/* Override any gcc2 internal prototype to avoid an error. */
15241/* We use char because int might match the return type of a gcc2
15242 builtin and then its argument prototype would still apply. */
15243char pthread_create();
10f2d63a 15244
4f14bcd8
GD
15245int main() {
15246pthread_create()
698dcdb6
VZ
15247; return 0; }
15248EOF
6054113a 15249if { (eval echo configure:15250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15250 rm -rf conftest*
4f14bcd8 15251 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15252else
698dcdb6
VZ
15253 echo "configure: failed program was:" >&5
15254 cat conftest.$ac_ext >&5
15255 rm -rf conftest*
4f14bcd8 15256 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15257fi
698dcdb6 15258rm -f conftest*
4f14bcd8 15259LIBS="$ac_save_LIBS"
d9b9876f 15260
4f14bcd8
GD
15261fi
15262if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15263 echo "$ac_t""yes" 1>&6
15264
15265 THREADS_OBJ="threadpsx.lo"
15266 THREADS_LINK="c_r"
15267
15268else
15269 echo "$ac_t""no" 1>&6
ab252f7b 15270
4f14bcd8
GD
15271 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
15272echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
6054113a 15273echo "configure:15274: checking for sys/prctl.h" >&5
4f14bcd8 15274if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 15275 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 15276else
4f14bcd8 15277 cat > conftest.$ac_ext <<EOF
6054113a 15278#line 15279 "configure"
d9b9876f 15279#include "confdefs.h"
4f14bcd8 15280#include <sys/prctl.h>
698dcdb6 15281EOF
4f14bcd8 15282ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 15283{ (eval echo configure:15284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15284ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15285if test -z "$ac_err"; then
698dcdb6 15286 rm -rf conftest*
4f14bcd8 15287 eval "ac_cv_header_$ac_safe=yes"
d9b9876f 15288else
4f14bcd8 15289 echo "$ac_err" >&5
698dcdb6
VZ
15290 echo "configure: failed program was:" >&5
15291 cat conftest.$ac_ext >&5
15292 rm -rf conftest*
4f14bcd8 15293 eval "ac_cv_header_$ac_safe=no"
6232543b 15294fi
698dcdb6 15295rm -f conftest*
4f14bcd8
GD
15296fi
15297if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15298 echo "$ac_t""yes" 1>&6
698dcdb6 15299
4f14bcd8
GD
15300 THREADS_OBJ="threadsgi.lo"
15301
15302else
15303 echo "$ac_t""no" 1>&6
1e487827 15304fi
698dcdb6 15305
4f14bcd8
GD
15306
15307fi
d9b9876f 15308
4f14bcd8
GD
15309
15310fi
d9b9876f 15311
4f14bcd8
GD
15312
15313 if test -z "$THREADS_OBJ" ; then
15314 wxUSE_THREADS=no
15315 echo "configure: warning: No thread support on this system" 1>&2
15316 fi
15317fi
15318
15319if test "$wxUSE_THREADS" = "yes" ; then
15320 for ac_func in thr_setconcurrency
15321do
15322echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 15323echo "configure:15324: checking for $ac_func" >&5
4f14bcd8 15324if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15325 echo $ac_n "(cached) $ac_c" 1>&6
15326else
4f14bcd8 15327 cat > conftest.$ac_ext <<EOF
6054113a 15328#line 15329 "configure"
d9b9876f 15329#include "confdefs.h"
4f14bcd8
GD
15330/* System header to define __stub macros and hopefully few prototypes,
15331 which can conflict with char $ac_func(); below. */
15332#include <assert.h>
15333/* Override any gcc2 internal prototype to avoid an error. */
15334/* We use char because int might match the return type of a gcc2
15335 builtin and then its argument prototype would still apply. */
15336char $ac_func();
15337
698dcdb6 15338int main() {
d9b9876f 15339
4f14bcd8
GD
15340/* The GNU C library defines this for functions which it implements
15341 to always fail with ENOSYS. Some functions are actually named
15342 something starting with __ and the normal name is an alias. */
15343#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15344choke me
15345#else
15346$ac_func();
15347#endif
15348
698dcdb6
VZ
15349; return 0; }
15350EOF
6054113a 15351if { (eval echo configure:15352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15352 rm -rf conftest*
4f14bcd8 15353 eval "ac_cv_func_$ac_func=yes"
d9b9876f 15354else
698dcdb6
VZ
15355 echo "configure: failed program was:" >&5
15356 cat conftest.$ac_ext >&5
15357 rm -rf conftest*
4f14bcd8 15358 eval "ac_cv_func_$ac_func=no"
6232543b 15359fi
698dcdb6 15360rm -f conftest*
1e487827 15361fi
698dcdb6 15362
4f14bcd8
GD
15363if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15364 echo "$ac_t""yes" 1>&6
15365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15366 cat >> confdefs.h <<EOF
15367#define $ac_tr_func 1
d9b9876f 15368EOF
4f14bcd8
GD
15369
15370else
15371 echo "$ac_t""no" 1>&6
10f2d63a 15372fi
4f14bcd8 15373done
10f2d63a 15374
10f2d63a 15375
4f14bcd8
GD
15376
15377 for ac_hdr in sched.h
15378do
15379ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15380echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6054113a 15381echo "configure:15382: checking for $ac_hdr" >&5
4f14bcd8
GD
15382if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15383 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15384else
4f14bcd8 15385 cat > conftest.$ac_ext <<EOF
6054113a 15386#line 15387 "configure"
4f14bcd8
GD
15387#include "confdefs.h"
15388#include <$ac_hdr>
13111b2a 15389EOF
4f14bcd8 15390ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 15391{ (eval echo configure:15392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15392ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15393if test -z "$ac_err"; then
15394 rm -rf conftest*
15395 eval "ac_cv_header_$ac_safe=yes"
15396else
15397 echo "$ac_err" >&5
15398 echo "configure: failed program was:" >&5
15399 cat conftest.$ac_ext >&5
15400 rm -rf conftest*
15401 eval "ac_cv_header_$ac_safe=no"
13111b2a 15402fi
4f14bcd8 15403rm -f conftest*
10f2d63a 15404fi
4f14bcd8
GD
15405if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15406 echo "$ac_t""yes" 1>&6
15407 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 15408 cat >> confdefs.h <<EOF
4f14bcd8 15409#define $ac_tr_hdr 1
f6bcfd97 15410EOF
4f14bcd8
GD
15411
15412else
15413 echo "$ac_t""no" 1>&6
f6bcfd97 15414fi
4f14bcd8 15415done
f6bcfd97 15416
10f2d63a 15417
4f14bcd8 15418 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
6054113a 15419echo "configure:15420: checking for sched_yield in -l$THREADS_LINK" >&5
4f14bcd8
GD
15420ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
15421if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15422 echo $ac_n "(cached) $ac_c" 1>&6
15423else
15424 ac_save_LIBS="$LIBS"
15425LIBS="-l$THREADS_LINK $LIBS"
15426cat > conftest.$ac_ext <<EOF
6054113a 15427#line 15428 "configure"
4f14bcd8
GD
15428#include "confdefs.h"
15429/* Override any gcc2 internal prototype to avoid an error. */
15430/* We use char because int might match the return type of a gcc2
15431 builtin and then its argument prototype would still apply. */
15432char sched_yield();
10f2d63a 15433
4f14bcd8
GD
15434int main() {
15435sched_yield()
15436; return 0; }
10f2d63a 15437EOF
6054113a 15438if { (eval echo configure:15439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
15439 rm -rf conftest*
15440 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15441else
4f14bcd8
GD
15442 echo "configure: failed program was:" >&5
15443 cat conftest.$ac_ext >&5
15444 rm -rf conftest*
15445 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 15446fi
4f14bcd8
GD
15447rm -f conftest*
15448LIBS="$ac_save_LIBS"
10f2d63a 15449
4f14bcd8
GD
15450fi
15451if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15452 echo "$ac_t""yes" 1>&6
15453 cat >> confdefs.h <<\EOF
15454#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
15455EOF
15456
4f14bcd8
GD
15457else
15458 echo "$ac_t""no" 1>&6
15459echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
6054113a 15460echo "configure:15461: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
15461ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
15462if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15463 echo $ac_n "(cached) $ac_c" 1>&6
15464else
15465 ac_save_LIBS="$LIBS"
15466LIBS="-lposix4 $LIBS"
15467cat > conftest.$ac_ext <<EOF
6054113a 15468#line 15469 "configure"
4f14bcd8
GD
15469#include "confdefs.h"
15470/* Override any gcc2 internal prototype to avoid an error. */
15471/* We use char because int might match the return type of a gcc2
15472 builtin and then its argument prototype would still apply. */
15473char sched_yield();
47c13eb7 15474
4f14bcd8
GD
15475int main() {
15476sched_yield()
15477; return 0; }
10f2d63a 15478EOF
6054113a 15479if { (eval echo configure:15480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
15480 rm -rf conftest*
15481 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15482else
4f14bcd8
GD
15483 echo "configure: failed program was:" >&5
15484 cat conftest.$ac_ext >&5
15485 rm -rf conftest*
15486 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 15487fi
4f14bcd8
GD
15488rm -f conftest*
15489LIBS="$ac_save_LIBS"
10f2d63a 15490
54276ccf 15491fi
4f14bcd8
GD
15492if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15493 echo "$ac_t""yes" 1>&6
15494 cat >> confdefs.h <<\EOF
15495#define HAVE_SCHED_YIELD 1
54276ccf 15496EOF
4f14bcd8
GD
15497 POSIX4_LINK="-lposix4"
15498else
15499 echo "$ac_t""no" 1>&6
15500echo "configure: warning: wxThread::Yield will not work properly" 1>&2
15501
54276ccf
VZ
15502fi
15503
4f14bcd8
GD
15504
15505fi
698dcdb6 15506
10f2d63a 15507
4f14bcd8
GD
15508 HAVE_PRIOR_FUNCS=0
15509 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
6054113a 15510echo "configure:15511: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
4f14bcd8
GD
15511ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
15512if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15513 echo $ac_n "(cached) $ac_c" 1>&6
15514else
4f14bcd8
GD
15515 ac_save_LIBS="$LIBS"
15516LIBS="-l$THREADS_LINK $LIBS"
15517cat > conftest.$ac_ext <<EOF
6054113a 15518#line 15519 "configure"
422107f9 15519#include "confdefs.h"
4f14bcd8
GD
15520/* Override any gcc2 internal prototype to avoid an error. */
15521/* We use char because int might match the return type of a gcc2
15522 builtin and then its argument prototype would still apply. */
15523char pthread_attr_getschedpolicy();
15524
15525int main() {
15526pthread_attr_getschedpolicy()
15527; return 0; }
698dcdb6 15528EOF
6054113a 15529if { (eval echo configure:15530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15530 rm -rf conftest*
4f14bcd8 15531 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 15532else
698dcdb6 15533 echo "configure: failed program was:" >&5
422107f9 15534 cat conftest.$ac_ext >&5
698dcdb6 15535 rm -rf conftest*
4f14bcd8 15536 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 15537fi
698dcdb6 15538rm -f conftest*
4f14bcd8
GD
15539LIBS="$ac_save_LIBS"
15540
422107f9 15541fi
4f14bcd8 15542if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 15543 echo "$ac_t""yes" 1>&6
4f14bcd8 15544 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
6054113a 15545echo "configure:15546: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
4f14bcd8 15546ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15547if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15548 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15549else
698dcdb6 15550 ac_save_LIBS="$LIBS"
4f14bcd8 15551LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 15552cat > conftest.$ac_ext <<EOF
6054113a 15553#line 15554 "configure"
422107f9
VZ
15554#include "confdefs.h"
15555/* Override any gcc2 internal prototype to avoid an error. */
15556/* We use char because int might match the return type of a gcc2
698dcdb6 15557 builtin and then its argument prototype would still apply. */
4f14bcd8 15558char pthread_attr_setschedparam();
698dcdb6
VZ
15559
15560int main() {
4f14bcd8 15561pthread_attr_setschedparam()
698dcdb6
VZ
15562; return 0; }
15563EOF
6054113a 15564if { (eval echo configure:15565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15565 rm -rf conftest*
15566 eval "ac_cv_lib_$ac_lib_var=yes"
15567else
15568 echo "configure: failed program was:" >&5
15569 cat conftest.$ac_ext >&5
15570 rm -rf conftest*
15571 eval "ac_cv_lib_$ac_lib_var=no"
15572fi
15573rm -f conftest*
15574LIBS="$ac_save_LIBS"
15575
15576fi
15577if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15578 echo "$ac_t""yes" 1>&6
4f14bcd8 15579 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
6054113a 15580echo "configure:15581: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
4f14bcd8
GD
15581ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15582if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15583 echo $ac_n "(cached) $ac_c" 1>&6
15584else
4f14bcd8
GD
15585 ac_save_LIBS="$LIBS"
15586LIBS="-l$THREADS_LINK $LIBS"
15587cat > conftest.$ac_ext <<EOF
6054113a 15588#line 15589 "configure"
422107f9 15589#include "confdefs.h"
4f14bcd8
GD
15590/* Override any gcc2 internal prototype to avoid an error. */
15591/* We use char because int might match the return type of a gcc2
15592 builtin and then its argument prototype would still apply. */
15593char sched_get_priority_max();
15594
15595int main() {
15596sched_get_priority_max()
15597; return 0; }
698dcdb6 15598EOF
6054113a 15599if { (eval echo configure:15600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15600 rm -rf conftest*
4f14bcd8 15601 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 15602else
698dcdb6 15603 echo "configure: failed program was:" >&5
422107f9 15604 cat conftest.$ac_ext >&5
698dcdb6 15605 rm -rf conftest*
4f14bcd8 15606 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 15607fi
698dcdb6 15608rm -f conftest*
4f14bcd8
GD
15609LIBS="$ac_save_LIBS"
15610
422107f9 15611fi
4f14bcd8 15612if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 15613 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15614 HAVE_PRIOR_FUNCS=1
15615else
15616 echo "$ac_t""no" 1>&6
15617echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
6054113a 15618echo "configure:15619: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 15619ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15620if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15621 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15622else
698dcdb6 15623 ac_save_LIBS="$LIBS"
4f14bcd8 15624LIBS="-lposix4 $LIBS"
698dcdb6 15625cat > conftest.$ac_ext <<EOF
6054113a 15626#line 15627 "configure"
422107f9
VZ
15627#include "confdefs.h"
15628/* Override any gcc2 internal prototype to avoid an error. */
15629/* We use char because int might match the return type of a gcc2
698dcdb6 15630 builtin and then its argument prototype would still apply. */
4f14bcd8 15631char sched_get_priority_max();
698dcdb6
VZ
15632
15633int main() {
4f14bcd8 15634sched_get_priority_max()
698dcdb6
VZ
15635; return 0; }
15636EOF
6054113a 15637if { (eval echo configure:15638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15638 rm -rf conftest*
15639 eval "ac_cv_lib_$ac_lib_var=yes"
15640else
15641 echo "configure: failed program was:" >&5
15642 cat conftest.$ac_ext >&5
15643 rm -rf conftest*
15644 eval "ac_cv_lib_$ac_lib_var=no"
15645fi
15646rm -f conftest*
15647LIBS="$ac_save_LIBS"
15648
15649fi
15650if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15651 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15652
15653 HAVE_PRIOR_FUNCS=1
15654 POSIX4_LINK="-lposix4"
15655
698dcdb6
VZ
15656else
15657 echo "$ac_t""no" 1>&6
422107f9
VZ
15658fi
15659
698dcdb6 15660
422107f9
VZ
15661fi
15662
4f14bcd8
GD
15663
15664else
15665 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15666fi
15667
4f14bcd8 15668
698dcdb6 15669else
4f14bcd8
GD
15670 echo "$ac_t""no" 1>&6
15671fi
463abc64 15672
463abc64 15673
4f14bcd8
GD
15674 if test "$HAVE_PRIOR_FUNCS" = 1; then
15675 cat >> confdefs.h <<\EOF
15676#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 15677EOF
463abc64 15678
4f14bcd8
GD
15679 else
15680 echo "configure: warning: Setting thread priority will not work" 1>&2
15681 fi
463abc64 15682
4f14bcd8 15683 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
6054113a 15684echo "configure:15685: checking for pthread_cancel in -l$THREADS_LINK" >&5
4f14bcd8 15685ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15686if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15687 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15688else
698dcdb6 15689 ac_save_LIBS="$LIBS"
4f14bcd8 15690LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 15691cat > conftest.$ac_ext <<EOF
6054113a 15692#line 15693 "configure"
422107f9
VZ
15693#include "confdefs.h"
15694/* Override any gcc2 internal prototype to avoid an error. */
15695/* We use char because int might match the return type of a gcc2
698dcdb6 15696 builtin and then its argument prototype would still apply. */
4f14bcd8 15697char pthread_cancel();
698dcdb6
VZ
15698
15699int main() {
4f14bcd8 15700pthread_cancel()
698dcdb6
VZ
15701; return 0; }
15702EOF
6054113a 15703if { (eval echo configure:15704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15704 rm -rf conftest*
15705 eval "ac_cv_lib_$ac_lib_var=yes"
15706else
15707 echo "configure: failed program was:" >&5
15708 cat conftest.$ac_ext >&5
15709 rm -rf conftest*
15710 eval "ac_cv_lib_$ac_lib_var=no"
15711fi
15712rm -f conftest*
15713LIBS="$ac_save_LIBS"
15714
15715fi
15716if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15717 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15718 cat >> confdefs.h <<\EOF
15719#define HAVE_PTHREAD_CANCEL 1
15720EOF
15721
698dcdb6
VZ
15722else
15723 echo "$ac_t""no" 1>&6
4f14bcd8 15724echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
15725fi
15726
422107f9 15727
4f14bcd8 15728 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
6054113a 15729echo "configure:15730: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
15730if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15731 echo $ac_n "(cached) $ac_c" 1>&6
15732else
15733
15734 cat > conftest.$ac_ext <<EOF
6054113a 15735#line 15736 "configure"
4f14bcd8
GD
15736#include "confdefs.h"
15737#include <pthread.h>
15738int main() {
15739
15740 pthread_cleanup_push(NULL, NULL);
15741 pthread_cleanup_pop(0);
15742
15743; return 0; }
15744EOF
6054113a 15745if { (eval echo configure:15746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
15746 rm -rf conftest*
15747
15748 wx_cv_func_pthread_cleanup_push=yes
15749
15750else
15751 echo "configure: failed program was:" >&5
15752 cat conftest.$ac_ext >&5
15753 rm -rf conftest*
15754
15755 wx_cv_func_pthread_cleanup_push=no
15756
15757fi
15758rm -f conftest*
15759
10f2d63a
VZ
15760fi
15761
4f14bcd8
GD
15762echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
15763
15764 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
15765 cat >> confdefs.h <<\EOF
15766#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
15767EOF
15768
4f14bcd8
GD
15769 fi
15770
15771
15772 if test "x$wx_lib_glibc21" = "xyes"; then
15773 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
15774 fi
15775
15776 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
6054113a 15777echo "configure:15778: checking for pthread_mutexattr_t" >&5
4f14bcd8 15778if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
15779 echo $ac_n "(cached) $ac_c" 1>&6
15780else
4f14bcd8
GD
15781
15782 cat > conftest.$ac_ext <<EOF
6054113a 15783#line 15784 "configure"
0dcf9893 15784#include "confdefs.h"
4f14bcd8
GD
15785#include <pthread.h>
15786int main() {
15787
15788 pthread_mutexattr_t attr;
15789 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
15790
15791; return 0; }
698dcdb6 15792EOF
6054113a 15793if { (eval echo configure:15794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15794 rm -rf conftest*
4f14bcd8
GD
15795
15796 wx_cv_type_pthread_mutexattr_t=yes
15797
3fed1840 15798else
698dcdb6 15799 echo "configure: failed program was:" >&5
3fed1840 15800 cat conftest.$ac_ext >&5
698dcdb6 15801 rm -rf conftest*
4f14bcd8
GD
15802
15803 wx_cv_type_pthread_mutexattr_t=no
15804
15805
3fed1840 15806fi
698dcdb6 15807rm -f conftest*
4f14bcd8 15808
3fed1840 15809fi
4f14bcd8
GD
15810
15811echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
15812
15813 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
15814 cat >> confdefs.h <<\EOF
15815#define HAVE_PTHREAD_MUTEXATTR_T 1
15816EOF
15817
15818 else
15819 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
6054113a 15820echo "configure:15821: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 15821if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 15822 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 15823else
4f14bcd8
GD
15824
15825 cat > conftest.$ac_ext <<EOF
6054113a 15826#line 15827 "configure"
3fed1840 15827#include "confdefs.h"
4f14bcd8 15828#include <pthread.h>
698dcdb6 15829int main() {
4f14bcd8
GD
15830
15831 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
15832
698dcdb6
VZ
15833; return 0; }
15834EOF
6054113a 15835if { (eval echo configure:15836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15836 rm -rf conftest*
4f14bcd8
GD
15837
15838 wx_cv_type_pthread_rec_mutex_init=yes
15839
698dcdb6
VZ
15840else
15841 echo "configure: failed program was:" >&5
15842 cat conftest.$ac_ext >&5
15843 rm -rf conftest*
4f14bcd8
GD
15844
15845 wx_cv_type_pthread_rec_mutex_init=no
15846
15847
698dcdb6
VZ
15848fi
15849rm -f conftest*
4f14bcd8 15850
3fed1840
RR
15851fi
15852
4f14bcd8
GD
15853echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
15854 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
15855 cat >> confdefs.h <<\EOF
15856#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15857EOF
3fed1840 15858
4f14bcd8
GD
15859 else
15860 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
3fed1840
RR
15861 fi
15862 fi
4f14bcd8
GD
15863
15864 THREADS_LINK="-l$THREADS_LINK"
15865
15866 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
15867 CPPFLAGS="${CFLAGS} -mt"
15868 CXXFLAGS="${CXXFLAGS} -mt"
15869 LDFLAGS="${LDFLAGS} -mt"
15870 fi
3fed1840
RR
15871fi
15872
4f14bcd8
GD
15873fi
15874
15875if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 15876 cat >> confdefs.h <<\EOF
4f14bcd8 15877#define wxUSE_THREADS 1
7b6058cd
GD
15878EOF
15879
4f14bcd8
GD
15880
15881 if test "$USE_DARWIN" != 1; then
15882 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15883 fi
15884
15885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 15886else
4f14bcd8
GD
15887 if test "$ac_cv_func_strtok_r" = "yes"; then
15888 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
6054113a 15889echo "configure:15890: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
15890 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
15891 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15892 echo "$ac_t""yes" 1>&6
15893 else
15894 echo "$ac_t""no" 1>&6
15895 fi
15896 fi
15897fi
15898
15899if test "$WXGTK20" = 1 ; then
15900 cat >> confdefs.h <<EOF
15901#define __WXGTK20__ $WXGTK20
698dcdb6 15902EOF
4f14bcd8
GD
15903
15904 WXGTK12=1
10f2d63a 15905fi
4f14bcd8
GD
15906
15907if test "$WXGTK12" = 1 ; then
15908 cat >> confdefs.h <<EOF
15909#define __WXGTK12__ $WXGTK12
15910EOF
15911
10f2d63a 15912fi
698dcdb6 15913
4f14bcd8
GD
15914if test "$WXGTK127" = 1 ; then
15915 cat >> confdefs.h <<EOF
15916#define __WXGTK127__ $WXGTK127
698dcdb6 15917EOF
4f14bcd8 15918
698dcdb6 15919fi
10f2d63a 15920
4f14bcd8
GD
15921WXDEBUG=
15922
15923if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15924 WXDEBUG="-g"
15925 wxUSE_OPTIMISE=no
698dcdb6 15926fi
4f14bcd8
GD
15927
15928if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15929 wxUSE_DEBUG_INFO=yes
15930 WXDEBUG="-ggdb"
10f2d63a
VZ
15931fi
15932
4f14bcd8
GD
15933if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
15934 cat >> confdefs.h <<\EOF
15935#define WXDEBUG 1
15936EOF
15937
15938 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 15939else
4f14bcd8
GD
15940 if test "$wxUSE_GTK" = 1 ; then
15941 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15942 fi
15943fi
15944
15945if test "$wxUSE_MEM_TRACING" = "yes" ; then
15946 cat >> confdefs.h <<\EOF
15947#define wxUSE_MEMORY_TRACING 1
15948EOF
15949
15950 cat >> confdefs.h <<\EOF
15951#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
15952EOF
15953
15954 cat >> confdefs.h <<\EOF
15955#define wxUSE_DEBUG_NEW_ALWAYS 1
15956EOF
15957
15958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15959fi
15960
15961if test "$wxUSE_DMALLOC" = "yes" ; then
15962 DMALLOC_LINK="-ldmalloc"
15963fi
15964
15965PROFILE=
15966if test "$wxUSE_PROFILE" = "yes" ; then
15967 PROFILE="-pg"
10f2d63a
VZ
15968fi
15969
4f14bcd8
GD
15970if test "$GCC" = yes ; then
15971 if test "$wxUSE_NO_RTTI" = "yes" ; then
15972 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 15973 fi
4f14bcd8
GD
15974 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
15975 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
15976 fi
15977 if test "$wxUSE_PERMISSIVE" = "yes" ; then
15978 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
15979 fi
15980 if test "$wxUSE_NO_DEPS" = "no" ; then
15981 CFLAGS="-MMD ${CFLAGS}"
15982 CXXFLAGS="-MMD ${CXXFLAGS}"
15983 fi
15984 if test "$USE_WIN32" = 1 ; then
15985 # I'm not even really sure what this was ever added to solve,
15986 # but someone added it for mingw native builds, so I guess
15987 # they had a reason, right??
15988 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
15989 fi
15990fi
15991
15992
15993CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15994CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15995if test "$wxUSE_OPTIMISE" = "no" ; then
15996 OPTIMISE=
15997else
15998 if test "$GCC" = yes ; then
15999 OPTIMISE="-O2"
16000 case "${host}" in
16001 i586-*-*|i686-*-* )
16002 OPTIMISE="${OPTIMISE} "
16003 ;;
16004 esac
16005 else
16006 OPTIMISE="-O"
16007 fi
16008fi
16009
16010if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
16011 cat >> confdefs.h <<\EOF
16012#define WXWIN_COMPATIBILITY_2 1
16013EOF
16014
16015
16016 WXWIN_COMPATIBILITY_2_2="yes"
16017fi
16018
16019if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
16020 cat >> confdefs.h <<\EOF
16021#define WXWIN_COMPATIBILITY_2_2 1
16022EOF
16023
10f2d63a
VZ
16024fi
16025
698dcdb6 16026
10f2d63a 16027if test "$wxUSE_GUI" = "yes"; then
698dcdb6 16028 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16029#define wxUSE_GUI 1
16030EOF
16031
698dcdb6 16032
10f2d63a 16033 else
698dcdb6 16034 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16035#define wxUSE_NOGUI 1
16036EOF
16037
16038fi
16039
698dcdb6 16040
10f2d63a 16041if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 16042 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16043#define wxUSE_UNIX 1
16044EOF
16045
16046fi
16047
698dcdb6 16048
10f2d63a 16049if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 16050 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16051#define wxUSE_APPLE_IEEE 1
16052EOF
16053
16054fi
16055
1e6feb95
VZ
16056if test "$wxUSE_TIMER" = "yes"; then
16057 cat >> confdefs.h <<\EOF
16058#define wxUSE_TIMER 1
16059EOF
16060
16061fi
16062
10f2d63a 16063if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 16064 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16065#define wxUSE_WAVE 1
16066EOF
16067
16068fi
16069
1e6feb95
VZ
16070if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
16071 cat >> confdefs.h <<\EOF
16072#define wxUSE_CMDLINE_PARSER 1
16073EOF
16074
16075fi
16076
16077if test "$wxUSE_STOPWATCH" = "yes"; then
16078 cat >> confdefs.h <<\EOF
16079#define wxUSE_STOPWATCH 1
16080EOF
16081
16082fi
16083
16084if test "$wxUSE_DATETIME" = "yes"; then
16085 cat >> confdefs.h <<\EOF
16086#define wxUSE_DATETIME 1
16087EOF
16088
16089fi
16090
16091if test "$wxUSE_TIMEDATE" = "yes"; then
16092 cat >> confdefs.h <<\EOF
16093#define wxUSE_TIMEDATE 1
16094EOF
16095
16096fi
16097
10f2d63a 16098if test "$wxUSE_FILE" = "yes"; then
698dcdb6 16099 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16100#define wxUSE_FILE 1
16101EOF
16102
16103fi
16104
1e6feb95
VZ
16105if test "$wxUSE_FFILE" = "yes"; then
16106 cat >> confdefs.h <<\EOF
16107#define wxUSE_FFILE 1
16108EOF
16109
16110fi
16111
24528b0c 16112if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 16113 cat >> confdefs.h <<\EOF
24528b0c
VS
16114#define wxUSE_FILESYSTEM 1
16115EOF
16116
16117fi
16118
10f2d63a 16119if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 16120 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16121#define wxUSE_FS_INET 1
16122EOF
16123
16124fi
16125
16126if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 16127 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16128#define wxUSE_FS_ZIP 1
16129EOF
16130
16131fi
16132
16133if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 16134 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16135#define wxUSE_ZIPSTREAM 1
16136EOF
16137
16138fi
16139
eb4efbdc 16140if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 16141 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
16142#define wxUSE_ON_FATAL_EXCEPTION 1
16143EOF
16144
16145fi
16146
4f3c5f06 16147if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 16148 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
16149#define wxUSE_SNGLINST_CHECKER 1
16150EOF
16151
16152fi
16153
10f2d63a 16154if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 16155 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16156#define wxUSE_BUSYINFO 1
16157EOF
16158
16159fi
16160
16161if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 16162 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16163#define wxUSE_STD_IOSTREAM 1
16164EOF
16165
16166fi
16167
16168if test "$wxUSE_TEXTFILE" = "yes"; then
16169 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 16170 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 16171 else
698dcdb6 16172 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16173#define wxUSE_TEXTFILE 1
16174EOF
16175
16176 fi
16177fi
16178
16179if test "$wxUSE_CONFIG" = "yes" ; then
16180 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 16181 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 16182 else
698dcdb6 16183 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16184#define wxUSE_CONFIG 1
16185EOF
16186
16187 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
16188 fi
16189fi
16190
16191if test "$wxUSE_INTL" = "yes" ; then
16192 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 16193 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 16194 else
698dcdb6 16195 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16196#define wxUSE_INTL 1
16197EOF
16198
16199 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 16200 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
16201 fi
16202fi
16203
16204if test "$wxUSE_LOG" = "yes"; then
698dcdb6 16205 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16206#define wxUSE_LOG 1
16207EOF
16208
d73be714
VZ
16209
16210 if test "$wxUSE_LOGGUI" = "yes"; then
16211 cat >> confdefs.h <<\EOF
16212#define wxUSE_LOGGUI 1
16213EOF
16214
16215 fi
16216
16217 if test "$wxUSE_LOGWINDOW" = "yes"; then
16218 cat >> confdefs.h <<\EOF
16219#define wxUSE_LOGWINDOW 1
16220EOF
16221
16222 fi
10f2d63a
VZ
16223fi
16224
16225if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 16226 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16227#define wxUSE_LONGLONG 1
16228EOF
16229
16230fi
16231
e8f65ba6 16232if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 16233 cat >> confdefs.h <<\EOF
e8f65ba6
RR
16234#define wxUSE_GEOMETRY 1
16235EOF
16236
16237fi
16238
10f2d63a 16239if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 16240 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16241#define wxUSE_DIALUP_MANAGER 1
16242EOF
16243
70f7a477 16244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
16245fi
16246
16247if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 16248 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16249#define wxUSE_STREAMS 1
16250EOF
16251
16252fi
16253
1e487827 16254
1e6feb95 16255if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 16256 for ac_func in strptime
83307f33 16257do
698dcdb6 16258echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 16259echo "configure:16260: checking for $ac_func" >&5
698dcdb6
VZ
16260if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16261 echo $ac_n "(cached) $ac_c" 1>&6
16262else
16263 cat > conftest.$ac_ext <<EOF
6054113a 16264#line 16265 "configure"
83307f33
VZ
16265#include "confdefs.h"
16266/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16267 which can conflict with char $ac_func(); below. */
83307f33
VZ
16268#include <assert.h>
16269/* Override any gcc2 internal prototype to avoid an error. */
16270/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16271 builtin and then its argument prototype would still apply. */
16272char $ac_func();
16273
16274int main() {
83307f33
VZ
16275
16276/* The GNU C library defines this for functions which it implements
16277 to always fail with ENOSYS. Some functions are actually named
16278 something starting with __ and the normal name is an alias. */
16279#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16280choke me
16281#else
698dcdb6 16282$ac_func();
83307f33
VZ
16283#endif
16284
698dcdb6 16285; return 0; }
83307f33 16286EOF
6054113a 16287if { (eval echo configure:16288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16288 rm -rf conftest*
16289 eval "ac_cv_func_$ac_func=yes"
16290else
16291 echo "configure: failed program was:" >&5
16292 cat conftest.$ac_ext >&5
16293 rm -rf conftest*
16294 eval "ac_cv_func_$ac_func=no"
16295fi
16296rm -f conftest*
16297fi
83307f33 16298
698dcdb6
VZ
16299if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16300 echo "$ac_t""yes" 1>&6
16301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16302 cat >> confdefs.h <<EOF
16303#define $ac_tr_func 1
16304EOF
16305
16306else
16307 echo "$ac_t""no" 1>&6
83307f33
VZ
16308fi
16309done
16310
1e487827 16311
698dcdb6 16312 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
6054113a 16313echo "configure:16314: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
16314if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16315 echo $ac_n "(cached) $ac_c" 1>&6
16316else
16317
16318 cat > conftest.$ac_ext <<EOF
6054113a 16319#line 16320 "configure"
360d6699
VZ
16320#include "confdefs.h"
16321
b4085ce6 16322 #include <time.h>
698dcdb6
VZ
16323
16324int main() {
360d6699
VZ
16325
16326 int tz;
4f11a343 16327 tz = timezone;
698dcdb6
VZ
16328
16329; return 0; }
16330EOF
6054113a 16331if { (eval echo configure:16332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16332 rm -rf conftest*
16333
4f11a343 16334 wx_cv_var_timezone=timezone
698dcdb6 16335
360d6699 16336else
698dcdb6
VZ
16337 echo "configure: failed program was:" >&5
16338 cat conftest.$ac_ext >&5
16339 rm -rf conftest*
16340
16341 cat > conftest.$ac_ext <<EOF
6054113a 16342#line 16343 "configure"
360d6699
VZ
16343#include "confdefs.h"
16344
b4085ce6 16345 #include <time.h>
698dcdb6
VZ
16346
16347int main() {
360d6699
VZ
16348
16349 int tz;
16350 tz = _timezone;
698dcdb6
VZ
16351
16352; return 0; }
16353EOF
6054113a 16354if { (eval echo configure:16355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16355 rm -rf conftest*
16356
360d6699 16357 wx_cv_var_timezone=_timezone
698dcdb6 16358
5357c8e8 16359else
698dcdb6
VZ
16360 echo "configure: failed program was:" >&5
16361 cat conftest.$ac_ext >&5
16362 rm -rf conftest*
16363
16364 cat > conftest.$ac_ext <<EOF
6054113a 16365#line 16366 "configure"
5357c8e8
VZ
16366#include "confdefs.h"
16367
b4085ce6 16368 #include <time.h>
698dcdb6
VZ
16369
16370int main() {
5357c8e8
VZ
16371
16372 int tz;
4f11a343 16373 tz = __timezone;
698dcdb6
VZ
16374
16375; return 0; }
16376EOF
6054113a 16377if { (eval echo configure:16378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16378 rm -rf conftest*
16379
4f11a343 16380 wx_cv_var_timezone=__timezone
698dcdb6 16381
360d6699 16382else
698dcdb6
VZ
16383 echo "configure: failed program was:" >&5
16384 cat conftest.$ac_ext >&5
16385 rm -rf conftest*
16386 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16387
360d6699 16388fi
698dcdb6
VZ
16389rm -f conftest*
16390
16391
360d6699 16392fi
698dcdb6
VZ
16393rm -f conftest*
16394
16395
6232543b 16396fi
698dcdb6
VZ
16397rm -f conftest*
16398
16399
1e487827 16400fi
703e0a69 16401
698dcdb6
VZ
16402echo "$ac_t""$wx_cv_var_timezone" 1>&6
16403
16404 cat >> confdefs.h <<EOF
360d6699
VZ
16405#define WX_TIMEZONE $wx_cv_var_timezone
16406EOF
16407
698dcdb6
VZ
16408
16409 for ac_func in localtime
afc31813 16410do
698dcdb6 16411echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 16412echo "configure:16413: checking for $ac_func" >&5
698dcdb6
VZ
16413if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16414 echo $ac_n "(cached) $ac_c" 1>&6
16415else
16416 cat > conftest.$ac_ext <<EOF
6054113a 16417#line 16418 "configure"
10f2d63a 16418#include "confdefs.h"
afc31813 16419/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16420 which can conflict with char $ac_func(); below. */
afc31813
VZ
16421#include <assert.h>
16422/* Override any gcc2 internal prototype to avoid an error. */
16423/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16424 builtin and then its argument prototype would still apply. */
16425char $ac_func();
16426
16427int main() {
afc31813
VZ
16428
16429/* The GNU C library defines this for functions which it implements
16430 to always fail with ENOSYS. Some functions are actually named
16431 something starting with __ and the normal name is an alias. */
16432#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16433choke me
16434#else
698dcdb6 16435$ac_func();
afc31813
VZ
16436#endif
16437
698dcdb6 16438; return 0; }
10f2d63a 16439EOF
6054113a 16440if { (eval echo configure:16441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16441 rm -rf conftest*
16442 eval "ac_cv_func_$ac_func=yes"
16443else
16444 echo "configure: failed program was:" >&5
16445 cat conftest.$ac_ext >&5
16446 rm -rf conftest*
16447 eval "ac_cv_func_$ac_func=no"
16448fi
16449rm -f conftest*
16450fi
afc31813 16451
698dcdb6
VZ
16452if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16453 echo "$ac_t""yes" 1>&6
16454 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16455 cat >> confdefs.h <<EOF
16456#define $ac_tr_func 1
16457EOF
16458
16459else
16460 echo "$ac_t""no" 1>&6
afc31813
VZ
16461fi
16462done
16463
1e487827 16464
698dcdb6
VZ
16465 if test "$ac_cv_func_localtime" = "yes"; then
16466 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
6054113a 16467echo "configure:16468: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
16468if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16469 echo $ac_n "(cached) $ac_c" 1>&6
16470else
16471
16472 cat > conftest.$ac_ext <<EOF
6054113a 16473#line 16474 "configure"
0470b1e6
VZ
16474#include "confdefs.h"
16475
b4085ce6 16476 #include <time.h>
698dcdb6
VZ
16477
16478int main() {
0470b1e6
VZ
16479
16480 struct tm tm;
16481 tm.tm_gmtoff++;
698dcdb6
VZ
16482
16483; return 0; }
16484EOF
6054113a 16485if { (eval echo configure:16486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16486 rm -rf conftest*
16487
f03a98d8 16488 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 16489
0470b1e6 16490else
698dcdb6
VZ
16491 echo "configure: failed program was:" >&5
16492 cat conftest.$ac_ext >&5
16493 rm -rf conftest*
16494 wx_cv_struct_tm_has_gmtoff=no
16495
0470b1e6 16496fi
698dcdb6
VZ
16497rm -f conftest*
16498
1e487827 16499fi
698dcdb6
VZ
16500
16501echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
16502 fi
16503
16504 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 16505 cat >> confdefs.h <<\EOF
6232543b
VS
16506#define WX_GMTOFF_IN_TM 1
16507EOF
0470b1e6 16508
3fcdd07b
VZ
16509 fi
16510
698dcdb6 16511 for ac_func in gettimeofday ftime
3fcdd07b 16512do
698dcdb6 16513echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 16514echo "configure:16515: checking for $ac_func" >&5
698dcdb6
VZ
16515if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16516 echo $ac_n "(cached) $ac_c" 1>&6
16517else
16518 cat > conftest.$ac_ext <<EOF
6054113a 16519#line 16520 "configure"
3fcdd07b
VZ
16520#include "confdefs.h"
16521/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16522 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
16523#include <assert.h>
16524/* Override any gcc2 internal prototype to avoid an error. */
16525/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16526 builtin and then its argument prototype would still apply. */
16527char $ac_func();
16528
16529int main() {
3fcdd07b
VZ
16530
16531/* The GNU C library defines this for functions which it implements
16532 to always fail with ENOSYS. Some functions are actually named
16533 something starting with __ and the normal name is an alias. */
16534#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16535choke me
16536#else
698dcdb6 16537$ac_func();
3fcdd07b
VZ
16538#endif
16539
698dcdb6
VZ
16540; return 0; }
16541EOF
6054113a 16542if { (eval echo configure:16543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16543 rm -rf conftest*
16544 eval "ac_cv_func_$ac_func=yes"
16545else
16546 echo "configure: failed program was:" >&5
16547 cat conftest.$ac_ext >&5
16548 rm -rf conftest*
16549 eval "ac_cv_func_$ac_func=no"
16550fi
16551rm -f conftest*
16552fi
16553
16554if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16555 echo "$ac_t""yes" 1>&6
16556 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16557 cat >> confdefs.h <<EOF
16558#define $ac_tr_func 1
3fcdd07b
VZ
16559EOF
16560 break
698dcdb6
VZ
16561else
16562 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
16563fi
16564done
16565
afc31813 16566
698dcdb6
VZ
16567 if test "$ac_cv_func_gettimeofday" = "yes"; then
16568 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
6054113a 16569echo "configure:16570: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
16570if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16571 echo $ac_n "(cached) $ac_c" 1>&6
16572else
16573
16574
16575 ac_ext=C
16576# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16577ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16578ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16579ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16580cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16581
698dcdb6
VZ
16582
16583 cat > conftest.$ac_ext <<EOF
6054113a 16584#line 16585 "configure"
10f2d63a 16585#include "confdefs.h"
afc31813
VZ
16586
16587 #include <sys/time.h>
16588 #include <unistd.h>
698dcdb6
VZ
16589
16590int main() {
afc31813
VZ
16591
16592 struct timeval tv;
776862b4 16593 gettimeofday(&tv, NULL);
698dcdb6
VZ
16594
16595; return 0; }
16596EOF
6054113a 16597if { (eval echo configure:16598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16598 rm -rf conftest*
afc31813 16599 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 16600else
698dcdb6
VZ
16601 echo "configure: failed program was:" >&5
16602 cat conftest.$ac_ext >&5
16603 rm -rf conftest*
16604 cat > conftest.$ac_ext <<EOF
6054113a 16605#line 16606 "configure"
10f2d63a 16606#include "confdefs.h"
afc31813
VZ
16607
16608 #include <sys/time.h>
16609 #include <unistd.h>
698dcdb6
VZ
16610
16611int main() {
afc31813
VZ
16612
16613 struct timeval tv;
16614 gettimeofday(&tv);
698dcdb6
VZ
16615
16616; return 0; }
16617EOF
6054113a 16618if { (eval echo configure:16619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16619 rm -rf conftest*
afc31813 16620 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 16621else
698dcdb6
VZ
16622 echo "configure: failed program was:" >&5
16623 cat conftest.$ac_ext >&5
16624 rm -rf conftest*
776862b4
VZ
16625
16626 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16627 wx_cv_func_gettimeofday_has_2_args=unknown
16628
698dcdb6 16629
10f2d63a 16630fi
698dcdb6
VZ
16631rm -f conftest*
16632
10f2d63a 16633fi
698dcdb6 16634rm -f conftest*
afc31813 16635 ac_ext=c
698dcdb6 16636# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 16637ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16638ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16639ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16640cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 16641
698dcdb6 16642
afc31813 16643fi
698dcdb6
VZ
16644
16645echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 16646
afc31813 16647 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 16648 cat >> confdefs.h <<\EOF
afc31813
VZ
16649#define WX_GETTIMEOFDAY_NO_TZ 1
16650EOF
16651
16652 fi
16653 fi
16654
698dcdb6 16655 cat >> confdefs.h <<\EOF
afc31813
VZ
16656#define wxUSE_TIMEDATE 1
16657EOF
16658
16659 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16660fi
16661
698dcdb6 16662
b089607b
VZ
16663if test "$TOOLKIT" != "MSW"; then
16664
3a922bb4
RL
16665 if test "$wxUSE_SOCKETS" = "yes"; then
16666 echo $ac_n "checking for socket""... $ac_c" 1>&6
6054113a 16667echo "configure:16668: checking for socket" >&5
698dcdb6
VZ
16668if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16669 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16670else
698dcdb6 16671 cat > conftest.$ac_ext <<EOF
6054113a 16672#line 16673 "configure"
c63c7106
VZ
16673#include "confdefs.h"
16674/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16675 which can conflict with char socket(); below. */
c63c7106
VZ
16676#include <assert.h>
16677/* Override any gcc2 internal prototype to avoid an error. */
16678/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16679 builtin and then its argument prototype would still apply. */
16680char socket();
16681
16682int main() {
c63c7106
VZ
16683
16684/* The GNU C library defines this for functions which it implements
16685 to always fail with ENOSYS. Some functions are actually named
16686 something starting with __ and the normal name is an alias. */
16687#if defined (__stub_socket) || defined (__stub___socket)
16688choke me
16689#else
698dcdb6 16690socket();
c63c7106
VZ
16691#endif
16692
698dcdb6
VZ
16693; return 0; }
16694EOF
6054113a 16695if { (eval echo configure:16696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16696 rm -rf conftest*
16697 eval "ac_cv_func_socket=yes"
16698else
16699 echo "configure: failed program was:" >&5
16700 cat conftest.$ac_ext >&5
16701 rm -rf conftest*
16702 eval "ac_cv_func_socket=no"
16703fi
16704rm -f conftest*
16705fi
16706
16707if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16708 echo "$ac_t""yes" 1>&6
c63c7106
VZ
16709 :
16710else
698dcdb6
VZ
16711 echo "$ac_t""no" 1>&6
16712echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
6054113a 16713echo "configure:16714: checking for socket in -lsocket" >&5
698dcdb6
VZ
16714ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16715if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16716 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16717else
698dcdb6 16718 ac_save_LIBS="$LIBS"
c63c7106 16719LIBS="-lsocket $LIBS"
698dcdb6 16720cat > conftest.$ac_ext <<EOF
6054113a 16721#line 16722 "configure"
c63c7106
VZ
16722#include "confdefs.h"
16723/* Override any gcc2 internal prototype to avoid an error. */
16724/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16725 builtin and then its argument prototype would still apply. */
16726char socket();
16727
16728int main() {
16729socket()
16730; return 0; }
16731EOF
6054113a 16732if { (eval echo configure:16733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16733 rm -rf conftest*
16734 eval "ac_cv_lib_$ac_lib_var=yes"
16735else
16736 echo "configure: failed program was:" >&5
16737 cat conftest.$ac_ext >&5
16738 rm -rf conftest*
16739 eval "ac_cv_lib_$ac_lib_var=no"
16740fi
16741rm -f conftest*
16742LIBS="$ac_save_LIBS"
16743
16744fi
16745if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16746 echo "$ac_t""yes" 1>&6
c63c7106 16747 INET_LINK="$INET_LINK -lsocket"
c63c7106 16748else
698dcdb6 16749 echo "$ac_t""no" 1>&6
afc31813 16750
3a922bb4
RL
16751 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16752 wxUSE_SOCKETS=no
16753
698dcdb6 16754
6232543b 16755fi
b089607b 16756
3a922bb4 16757
1e487827 16758fi
afc31813 16759
3a922bb4 16760 fi
51a9faba 16761
3a922bb4
RL
16762
16763 if test "$wxUSE_SOCKETS" = "yes" ; then
16764 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
6054113a 16765echo "configure:16766: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
16766if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16767 echo $ac_n "(cached) $ac_c" 1>&6
16768else
16769
3a922bb4
RL
16770
16771 ac_ext=C
698dcdb6 16772# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16773ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16774ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16775ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16776cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16777
698dcdb6 16778
3a922bb4 16779 cat > conftest.$ac_ext <<EOF
6054113a 16780#line 16781 "configure"
afc31813 16781#include "confdefs.h"
51a9faba 16782
3a922bb4
RL
16783 #include <sys/types.h>
16784 #include <sys/socket.h>
16785
698dcdb6 16786int main() {
51a9faba 16787
3a922bb4
RL
16788 socklen_t len;
16789 getsockname(0, 0, &len);
16790
698dcdb6
VZ
16791; return 0; }
16792EOF
6054113a 16793if { (eval echo configure:16794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16794 rm -rf conftest*
51a9faba 16795 wx_cv_type_getsockname3=socklen_t
afc31813 16796else
698dcdb6
VZ
16797 echo "configure: failed program was:" >&5
16798 cat conftest.$ac_ext >&5
16799 rm -rf conftest*
16800 cat > conftest.$ac_ext <<EOF
6054113a 16801#line 16802 "configure"
afc31813 16802#include "confdefs.h"
51a9faba 16803
3a922bb4
RL
16804 #include <sys/types.h>
16805 #include <sys/socket.h>
16806
698dcdb6 16807int main() {
51a9faba 16808
3a922bb4
RL
16809 size_t len;
16810 getsockname(0, 0, &len);
16811
698dcdb6
VZ
16812; return 0; }
16813EOF
6054113a 16814if { (eval echo configure:16815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16815 rm -rf conftest*
51a9faba 16816 wx_cv_type_getsockname3=size_t
afc31813 16817else
698dcdb6
VZ
16818 echo "configure: failed program was:" >&5
16819 cat conftest.$ac_ext >&5
16820 rm -rf conftest*
16821 cat > conftest.$ac_ext <<EOF
6054113a 16822#line 16823 "configure"
afc31813 16823#include "confdefs.h"
51a9faba 16824
3a922bb4
RL
16825 #include <sys/types.h>
16826 #include <sys/socket.h>
16827
698dcdb6 16828int main() {
51a9faba 16829
3a922bb4
RL
16830 int len;
16831 getsockname(0, 0, &len);
16832
698dcdb6
VZ
16833; return 0; }
16834EOF
6054113a 16835if { (eval echo configure:16836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16836 rm -rf conftest*
51a9faba 16837 wx_cv_type_getsockname3=int
afc31813 16838else
698dcdb6
VZ
16839 echo "configure: failed program was:" >&5
16840 cat conftest.$ac_ext >&5
16841 rm -rf conftest*
16842 wx_cv_type_getsockname3=unknown
3a922bb4 16843
afc31813 16844fi
698dcdb6 16845rm -f conftest*
3a922bb4 16846
afc31813 16847fi
698dcdb6 16848rm -f conftest*
3a922bb4 16849
afc31813 16850fi
698dcdb6 16851rm -f conftest*
51a9faba 16852
3a922bb4 16853 ac_ext=c
698dcdb6 16854# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 16855ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16856ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16857ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16858cross_compiling=$ac_cv_prog_cc_cross
afc31813 16859
3a922bb4 16860
51a9faba 16861fi
698dcdb6
VZ
16862
16863echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 16864
3a922bb4
RL
16865 if test "$wx_cv_type_getsockname3" = "unknown"; then
16866 wxUSE_SOCKETS=no
16867 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16868 else
16869 cat >> confdefs.h <<EOF
51a9faba
VZ
16870#define SOCKLEN_T $wx_cv_type_getsockname3
16871EOF
16872
3a922bb4 16873 fi
51a9faba
VZ
16874 fi
16875fi
afc31813 16876
51a9faba 16877if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 16878 cat >> confdefs.h <<\EOF
afc31813
VZ
16879#define wxUSE_SOCKETS 1
16880EOF
16881
70f7a477 16882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
16883fi
16884
698dcdb6 16885
dc3d889d
VZ
16886if test "$wxUSE_GUI" = "yes"; then
16887
3a922bb4
RL
16888 if test "$TOOLKIT" != "MSW"; then
16889 if test "$wxUSE_JOYSTICK" = "yes"; then
16890 for ac_hdr in linux/joystick.h
10f2d63a 16891do
698dcdb6
VZ
16892ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16893echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6054113a 16894echo "configure:16895: checking for $ac_hdr" >&5
698dcdb6
VZ
16895if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16896 echo $ac_n "(cached) $ac_c" 1>&6
16897else
16898 cat > conftest.$ac_ext <<EOF
6054113a 16899#line 16900 "configure"
10f2d63a 16900#include "confdefs.h"
698dcdb6
VZ
16901#include <$ac_hdr>
16902EOF
16903ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 16904{ (eval echo configure:16905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16905ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16906if test -z "$ac_err"; then
16907 rm -rf conftest*
16908 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 16909else
698dcdb6
VZ
16910 echo "$ac_err" >&5
16911 echo "configure: failed program was:" >&5
10f2d63a 16912 cat conftest.$ac_ext >&5
698dcdb6
VZ
16913 rm -rf conftest*
16914 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16915fi
698dcdb6 16916rm -f conftest*
10f2d63a 16917fi
698dcdb6
VZ
16918if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16919 echo "$ac_t""yes" 1>&6
16920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16921 cat >> confdefs.h <<EOF
16922#define $ac_tr_hdr 1
10f2d63a 16923EOF
698dcdb6
VZ
16924
16925else
16926 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16927fi
16928done
16929
3a922bb4
RL
16930 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16931 wxUSE_JOYSTICK=no
16932 echo "configure: warning: Joystick not supported by this system" 1>&2
16933 fi
16934 fi
16935 fi
b089607b 16936
3a922bb4
RL
16937 if test "$wxUSE_JOYSTICK" = "yes"; then
16938 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16939#define wxUSE_JOYSTICK 1
16940EOF
16941
3a922bb4
RL
16942 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16943 fi
dc3d889d
VZ
16944fi
16945
698dcdb6 16946
b089607b
VZ
16947if test "$TOOLKIT" != "MSW"; then
16948
3a922bb4
RL
16949 HAVE_DL_FUNCS=0
16950 HAVE_SHL_FUNCS=0
16951 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16952 if test "$USE_DARWIN" = 1; then
16953 HAVE_DL_FUNCS=1
16954 else
16955 for ac_func in dlopen
10f2d63a 16956do
698dcdb6 16957echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 16958echo "configure:16959: checking for $ac_func" >&5
698dcdb6
VZ
16959if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16960 echo $ac_n "(cached) $ac_c" 1>&6
16961else
16962 cat > conftest.$ac_ext <<EOF
6054113a 16963#line 16964 "configure"
10f2d63a
VZ
16964#include "confdefs.h"
16965/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16966 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16967#include <assert.h>
16968/* Override any gcc2 internal prototype to avoid an error. */
16969/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16970 builtin and then its argument prototype would still apply. */
16971char $ac_func();
16972
16973int main() {
10f2d63a
VZ
16974
16975/* The GNU C library defines this for functions which it implements
16976 to always fail with ENOSYS. Some functions are actually named
16977 something starting with __ and the normal name is an alias. */
16978#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16979choke me
16980#else
698dcdb6 16981$ac_func();
10f2d63a
VZ
16982#endif
16983
698dcdb6
VZ
16984; return 0; }
16985EOF
6054113a 16986if { (eval echo configure:16987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16987 rm -rf conftest*
16988 eval "ac_cv_func_$ac_func=yes"
16989else
16990 echo "configure: failed program was:" >&5
16991 cat conftest.$ac_ext >&5
16992 rm -rf conftest*
16993 eval "ac_cv_func_$ac_func=no"
16994fi
16995rm -f conftest*
16996fi
16997
16998if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16999 echo "$ac_t""yes" 1>&6
17000 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17001 cat >> confdefs.h <<EOF
17002#define $ac_tr_func 1
17003EOF
17004
3a922bb4 17005 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17006#define HAVE_DLOPEN 1
17007EOF
17008
3a922bb4
RL
17009 HAVE_DL_FUNCS=1
17010
10f2d63a 17011else
698dcdb6
VZ
17012 echo "$ac_t""no" 1>&6
17013echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6054113a 17014echo "configure:17015: checking for dlopen in -ldl" >&5
698dcdb6
VZ
17015ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
17016if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17017 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17018else
698dcdb6 17019 ac_save_LIBS="$LIBS"
10f2d63a 17020LIBS="-ldl $LIBS"
698dcdb6 17021cat > conftest.$ac_ext <<EOF
6054113a 17022#line 17023 "configure"
10f2d63a
VZ
17023#include "confdefs.h"
17024/* Override any gcc2 internal prototype to avoid an error. */
17025/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17026 builtin and then its argument prototype would still apply. */
17027char dlopen();
17028
17029int main() {
17030dlopen()
17031; return 0; }
17032EOF
6054113a 17033if { (eval echo configure:17034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17034 rm -rf conftest*
17035 eval "ac_cv_lib_$ac_lib_var=yes"
17036else
17037 echo "configure: failed program was:" >&5
17038 cat conftest.$ac_ext >&5
17039 rm -rf conftest*
17040 eval "ac_cv_lib_$ac_lib_var=no"
17041fi
17042rm -f conftest*
17043LIBS="$ac_save_LIBS"
17044
17045fi
17046if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17047 echo "$ac_t""yes" 1>&6
17048
3a922bb4 17049 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17050#define HAVE_DLOPEN 1
17051EOF
17052
3a922bb4
RL
17053 HAVE_DL_FUNCS=1
17054 LIBS="$LIBS -ldl"
17055
10f2d63a 17056else
698dcdb6 17057 echo "$ac_t""no" 1>&6
10f2d63a 17058
3a922bb4 17059 for ac_func in shl_load
10f2d63a 17060do
698dcdb6 17061echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 17062echo "configure:17063: checking for $ac_func" >&5
698dcdb6
VZ
17063if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17064 echo $ac_n "(cached) $ac_c" 1>&6
17065else
17066 cat > conftest.$ac_ext <<EOF
6054113a 17067#line 17068 "configure"
10f2d63a
VZ
17068#include "confdefs.h"
17069/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17070 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
17071#include <assert.h>
17072/* Override any gcc2 internal prototype to avoid an error. */
17073/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17074 builtin and then its argument prototype would still apply. */
17075char $ac_func();
17076
17077int main() {
10f2d63a
VZ
17078
17079/* The GNU C library defines this for functions which it implements
17080 to always fail with ENOSYS. Some functions are actually named
17081 something starting with __ and the normal name is an alias. */
17082#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17083choke me
17084#else
698dcdb6 17085$ac_func();
10f2d63a
VZ
17086#endif
17087
698dcdb6
VZ
17088; return 0; }
17089EOF
6054113a 17090if { (eval echo configure:17091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17091 rm -rf conftest*
17092 eval "ac_cv_func_$ac_func=yes"
17093else
17094 echo "configure: failed program was:" >&5
17095 cat conftest.$ac_ext >&5
17096 rm -rf conftest*
17097 eval "ac_cv_func_$ac_func=no"
17098fi
17099rm -f conftest*
17100fi
17101
17102if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17103 echo "$ac_t""yes" 1>&6
17104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17105 cat >> confdefs.h <<EOF
17106#define $ac_tr_func 1
17107EOF
17108
3a922bb4 17109 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17110#define HAVE_SHL_LOAD 1
17111EOF
17112
3a922bb4
RL
17113 HAVE_SHL_FUNCS=1
17114
10f2d63a 17115else
698dcdb6
VZ
17116 echo "$ac_t""no" 1>&6
17117echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
6054113a 17118echo "configure:17119: checking for dld in -lshl_load" >&5
698dcdb6
VZ
17119ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
17120if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17121 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17122else
698dcdb6 17123 ac_save_LIBS="$LIBS"
f6bcfd97 17124LIBS="-lshl_load $LIBS"
698dcdb6 17125cat > conftest.$ac_ext <<EOF
6054113a 17126#line 17127 "configure"
f6bcfd97
BP
17127#include "confdefs.h"
17128/* Override any gcc2 internal prototype to avoid an error. */
17129/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17130 builtin and then its argument prototype would still apply. */
17131char dld();
17132
17133int main() {
17134dld()
17135; return 0; }
17136EOF
6054113a 17137if { (eval echo configure:17138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17138 rm -rf conftest*
17139 eval "ac_cv_lib_$ac_lib_var=yes"
17140else
17141 echo "configure: failed program was:" >&5
17142 cat conftest.$ac_ext >&5
17143 rm -rf conftest*
17144 eval "ac_cv_lib_$ac_lib_var=no"
17145fi
17146rm -f conftest*
17147LIBS="$ac_save_LIBS"
f6bcfd97 17148
698dcdb6
VZ
17149fi
17150if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17151 echo "$ac_t""yes" 1>&6
17152
3a922bb4
RL
17153 HAVE_SHL_FUNCS=1
17154 LIBS="$LIBS -ldld"
17155
698dcdb6
VZ
17156else
17157 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17158fi
17159
3a922bb4 17160
10f2d63a
VZ
17161fi
17162done
17163
3a922bb4 17164
10f2d63a
VZ
17165fi
17166
3a922bb4 17167
10f2d63a
VZ
17168fi
17169done
17170
1e487827 17171
3a922bb4
RL
17172 if test "$HAVE_DL_FUNCS" = 1; then
17173 for ac_func in dlerror
f6bcfd97 17174do
698dcdb6 17175echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054113a 17176echo "configure:17177: checking for $ac_func" >&5
698dcdb6
VZ
17177if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17178 echo $ac_n "(cached) $ac_c" 1>&6
17179else
17180 cat > conftest.$ac_ext <<EOF
6054113a 17181#line 17182 "configure"
f6bcfd97
BP
17182#include "confdefs.h"
17183/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17184 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
17185#include <assert.h>
17186/* Override any gcc2 internal prototype to avoid an error. */
17187/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17188 builtin and then its argument prototype would still apply. */
17189char $ac_func();
17190
17191int main() {
f6bcfd97
BP
17192
17193/* The GNU C library defines this for functions which it implements
17194 to always fail with ENOSYS. Some functions are actually named
17195 something starting with __ and the normal name is an alias. */
17196#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17197choke me
17198#else
698dcdb6 17199$ac_func();
f6bcfd97
BP
17200#endif
17201
698dcdb6
VZ
17202; return 0; }
17203EOF
6054113a 17204if { (eval echo configure:17205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17205 rm -rf conftest*
17206 eval "ac_cv_func_$ac_func=yes"
17207else
17208 echo "configure: failed program was:" >&5
17209 cat conftest.$ac_ext >&5
17210 rm -rf conftest*
17211 eval "ac_cv_func_$ac_func=no"
17212fi
17213rm -f conftest*
17214fi
17215
17216if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17217 echo "$ac_t""yes" 1>&6
17218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17219 cat >> confdefs.h <<EOF
17220#define $ac_tr_func 1
17221EOF
17222 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17223#define HAVE_DLERROR 1
17224EOF
17225
17226else
698dcdb6
VZ
17227 echo "$ac_t""no" 1>&6
17228echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
6054113a 17229echo "configure:17230: checking for dlerror in -ldl" >&5
698dcdb6
VZ
17230ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17231if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17232 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17233else
698dcdb6 17234 ac_save_LIBS="$LIBS"
f6bcfd97 17235LIBS="-ldl $LIBS"
698dcdb6 17236cat > conftest.$ac_ext <<EOF
6054113a 17237#line 17238 "configure"
f6bcfd97
BP
17238#include "confdefs.h"
17239/* Override any gcc2 internal prototype to avoid an error. */
17240/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17241 builtin and then its argument prototype would still apply. */
17242char dlerror();
17243
17244int main() {
17245dlerror()
17246; return 0; }
17247EOF
6054113a 17248if { (eval echo configure:17249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17249 rm -rf conftest*
17250 eval "ac_cv_lib_$ac_lib_var=yes"
17251else
17252 echo "configure: failed program was:" >&5
17253 cat conftest.$ac_ext >&5
17254 rm -rf conftest*
17255 eval "ac_cv_lib_$ac_lib_var=no"
17256fi
17257rm -f conftest*
17258LIBS="$ac_save_LIBS"
17259
17260fi
17261if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17262 echo "$ac_t""yes" 1>&6
17263 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17264#define HAVE_DLERROR 1
17265EOF
17266
698dcdb6
VZ
17267else
17268 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17269fi
17270
17271fi
17272done
17273
3a922bb4
RL
17274 fi
17275 fi
f6bcfd97 17276
3a922bb4
RL
17277 if test "$HAVE_DL_FUNCS" = 0; then
17278 if test "$HAVE_SHL_FUNCS" = 0; then
17279 if test "$USE_UNIX" = 1; then
17280 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17281 wxUSE_DYNLIB_CLASS=no
17282 else
17283 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17284 fi
17285 fi
10f2d63a
VZ
17286 fi
17287 fi
17288fi
17289
17290if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 17291 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17292#define wxUSE_DYNLIB_CLASS 1
17293EOF
17294
b12915c1
VZ
17295else
17296 wxUSE_ODBC=no
17297 wxUSE_SERIAL=no
10f2d63a
VZ
17298fi
17299
698dcdb6 17300
1e6feb95
VZ
17301if test "$wxUSE_FONTMAP" = "yes" ; then
17302 cat >> confdefs.h <<\EOF
17303#define wxUSE_FONTMAP 1
17304EOF
17305
17306fi
17307
10f2d63a 17308if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 17309 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17310#define wxUSE_UNICODE 1
17311EOF
17312
17313fi
17314
10f2d63a 17315if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 17316 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17317#define wxUSE_EXPERIMENTAL_PRINTF 1
17318EOF
17319
17320fi
17321
698dcdb6 17322
b12915c1 17323if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 17324 cat >> confdefs.h <<\EOF
b12915c1
VZ
17325#define wxUSE_SERIAL 1
17326EOF
17327
17328fi
17329
698dcdb6 17330
10f2d63a
VZ
17331IODBC_C_SRC=""
17332if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 17333 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17334#define wxUSE_ODBC 1
17335EOF
17336
17337 WXODBCFLAG="-D_IODBC_"
17338 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
17339fi
17340
698dcdb6 17341
10f2d63a 17342if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 17343 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17344#define wxUSE_POSTSCRIPT 1
17345EOF
17346
17347fi
17348
698dcdb6 17349cat >> confdefs.h <<\EOF
10f2d63a
VZ
17350#define wxUSE_AFM_FOR_POSTSCRIPT 1
17351EOF
17352
698dcdb6
VZ
17353
17354cat >> confdefs.h <<\EOF
10f2d63a
VZ
17355#define wxUSE_NORMALIZED_PS_FONTS 1
17356EOF
17357
698dcdb6
VZ
17358
17359
10f2d63a 17360if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 17361 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17362#define wxUSE_CONSTRAINTS 1
17363EOF
17364
17365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17366fi
17367
17368if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab
RL
17369 if test "$wxUSE_UNIVERSAL" = "yes"; then
17370 echo "configure: warning: MDI is not supported for wxUNIVERSAL yet... disabled" 1>&2
17371 wxUSE_MDI_ARCHITECTURE=no
17372 fi
17373
17374 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17375 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17376#define wxUSE_MDI_ARCHITECTURE 1
17377EOF
17378
fc26f4ab
RL
17379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17380 fi
10f2d63a
VZ
17381fi
17382
17383if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 17384 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17385#define wxUSE_DOC_VIEW_ARCHITECTURE 1
17386EOF
17387
17388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17389 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17391 fi
17392fi
17393
17394if test "$wxUSE_HELP" = "yes"; then
698dcdb6 17395 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17396#define wxUSE_HELP 1
17397EOF
17398
17399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 17400
77e13408 17401 if test "$wxUSE_MSW" = 1; then
031d8228 17402 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
17403 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17404echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
6054113a 17405echo "configure:17406: checking for htmlhelp.h" >&5
29fd3c0c
VS
17406if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17407 echo $ac_n "(cached) $ac_c" 1>&6
17408else
17409 cat > conftest.$ac_ext <<EOF
6054113a 17410#line 17411 "configure"
29fd3c0c
VS
17411#include "confdefs.h"
17412#include <htmlhelp.h>
17413EOF
17414ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 17415{ (eval echo configure:17416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
17416ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17417if test -z "$ac_err"; then
17418 rm -rf conftest*
17419 eval "ac_cv_header_$ac_safe=yes"
17420else
17421 echo "$ac_err" >&5
17422 echo "configure: failed program was:" >&5
17423 cat conftest.$ac_ext >&5
17424 rm -rf conftest*
17425 eval "ac_cv_header_$ac_safe=no"
17426fi
17427rm -f conftest*
17428fi
17429if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17430 echo "$ac_t""yes" 1>&6
17431
17432 cat >> confdefs.h <<\EOF
17433#define wxUSE_MS_HTML_HELP 1
17434EOF
17435
17436
17437else
17438 echo "$ac_t""no" 1>&6
17439
fc26f4ab 17440 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
29fd3c0c
VS
17441 wxUSE_MS_HTML_HELP=no
17442
17443fi
17444
3e44f09d 17445 fi
3379ed37 17446 fi
031d8228
VS
17447
17448 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17449 if test "$wxUSE_HTML" = "yes"; then
17450 cat >> confdefs.h <<\EOF
17451#define wxUSE_WXHTML_HELP 1
17452EOF
17453
17454 else
17455 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17456 wxUSE_WXHTML_HELP=no
17457 fi
17458 fi
10f2d63a
VZ
17459fi
17460
17461if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17462 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 17463 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 17464 else
698dcdb6 17465 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17466#define wxUSE_PRINTING_ARCHITECTURE 1
17467EOF
17468
17469 fi
17470 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17471fi
17472
17473if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 17474 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17475#define wxUSE_PROLOGIO 1
17476EOF
17477
17478fi
17479
17480if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 17481 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17482#define wxUSE_RESOURCES 1
17483EOF
17484
3379ed37 17485 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
17486fi
17487
17488if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 17489 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17490#define wxUSE_X_RESOURCES 1
17491EOF
17492
17493fi
17494
698dcdb6 17495
77e13408
RL
17496if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17497 -o "$wxUSE_CLIPBOARD" = "yes" \
17498 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 17499 for ac_hdr in ole2.h
10f2d63a 17500do
698dcdb6
VZ
17501ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17502echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6054113a 17503echo "configure:17504: checking for $ac_hdr" >&5
698dcdb6
VZ
17504if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17505 echo $ac_n "(cached) $ac_c" 1>&6
17506else
17507 cat > conftest.$ac_ext <<EOF
6054113a 17508#line 17509 "configure"
10f2d63a 17509#include "confdefs.h"
698dcdb6
VZ
17510#include <$ac_hdr>
17511EOF
17512ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054113a 17513{ (eval echo configure:17514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17514ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17515if test -z "$ac_err"; then
17516 rm -rf conftest*
17517 eval "ac_cv_header_$ac_safe=yes"
1e487827 17518else
698dcdb6
VZ
17519 echo "$ac_err" >&5
17520 echo "configure: failed program was:" >&5
10f2d63a 17521 cat conftest.$ac_ext >&5
698dcdb6
VZ
17522 rm -rf conftest*
17523 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17524fi
698dcdb6 17525rm -f conftest*
10f2d63a 17526fi
698dcdb6
VZ
17527if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17528 echo "$ac_t""yes" 1>&6
17529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17530 cat >> confdefs.h <<EOF
17531#define $ac_tr_hdr 1
10f2d63a 17532EOF
698dcdb6
VZ
17533
17534else
17535 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17536fi
17537done
17538
698dcdb6 17539
2b9bdf71
VZ
17540 if test "$ac_cv_header_ole2_h" = "yes" ; then
17541 if test "$GCC" = yes ; then
17542 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71
VZ
17543 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17544 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17545 cat >> confdefs.h <<\EOF
4f11a343
VS
17546#define wxUSE_OLE 1
17547EOF
17548
b64f0a5f 17549
2b9bdf71
VZ
17550 fi
17551
17552 cat >> confdefs.h <<\EOF
17553#define wxUSE_DATAOBJ 1
17554EOF
17555
17556 else
17557 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17558
17559 wxUSE_CLIPBOARD=no
17560 wxUSE_DRAG_AND_DROP=no
17561 wxUSE_DATAOBJ=no
17562 fi
17563
77e13408 17564 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 17565 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17566#define wxUSE_METAFILE 1
17567EOF
17568
2b9bdf71
VZ
17569
17570 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17571#define wxUSE_ENH_METAFILE 1
17572EOF
17573
2b9bdf71
VZ
17574 fi
17575fi
17576
17577if test "$wxUSE_IPC" = "yes"; then
17578 if test "$wxUSE_SOCKETS" != "yes"; then
17579 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17580 fi
17581
17582 cat >> confdefs.h <<\EOF
17583#define wxUSE_IPC 1
17584EOF
17585
17586fi
17587
17588if test "$wxUSE_CLIPBOARD" = "yes"; then
17589 cat >> confdefs.h <<\EOF
17590#define wxUSE_CLIPBOARD 1
17591EOF
17592
673f4220 17593
e33ef661 17594 cat >> confdefs.h <<\EOF
673f4220
VZ
17595#define wxUSE_DATAOBJ 1
17596EOF
17597
2b9bdf71
VZ
17598fi
17599
17600if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17601 if test "$wxUSE_GTK" = 1; then
17602 if test "$WXGTK12" != 1; then
17603 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
17604 wxUSE_DRAG_AND_DROP=no
17605 fi
17606 fi
17607
2b9bdf71
VZ
17608 if test "$wxUSE_MOTIF" = 1; then
17609 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17610 wxUSE_DRAG_AND_DROP=no
17611 fi
17612
17613 if test "$wxUSE_MAC" = 1; then
17614 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17615 wxUSE_DRAG_AND_DROP=no
17616 fi
17617
10f2d63a 17618 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 17619 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17620#define wxUSE_DRAG_AND_DROP 1
17621EOF
17622
17623 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17624 fi
17625
17626fi
17627
17628if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 17629 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17630#define wxUSE_SPLINES 1
17631EOF
17632
17633fi
17634
698dcdb6 17635
1e6feb95
VZ
17636USES_CONTROLS=0
17637if test "$wxUSE_CONTROLS" = "yes"; then
17638 USES_CONTROLS=1
17639fi
17640
10f2d63a 17641if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 17642 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17643#define wxUSE_ACCEL 1
17644EOF
17645
1e6feb95
VZ
17646 USES_CONTROLS=1
17647fi
17648
17649if test "$wxUSE_BUTTON" = "yes"; then
17650 cat >> confdefs.h <<\EOF
17651#define wxUSE_BUTTON 1
17652EOF
17653
17654 USES_CONTROLS=1
17655fi
17656
17657if test "$wxUSE_BMPBUTTON" = "yes"; then
17658 cat >> confdefs.h <<\EOF
17659#define wxUSE_BMPBUTTON 1
17660EOF
17661
17662 USES_CONTROLS=1
17663fi
17664
17665if test "$wxUSE_CALCTRL" = "yes"; then
17666 cat >> confdefs.h <<\EOF
17667#define wxUSE_CALENDARCTRL 1
17668EOF
17669
17670 USES_CONTROLS=1
17671 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
17672fi
17673
17674if test "$wxUSE_CARET" = "yes"; then
698dcdb6 17675 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17676#define wxUSE_CARET 1
17677EOF
17678
1e6feb95 17679 USES_CONTROLS=1
10f2d63a
VZ
17680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17681fi
17682
17683if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 17684 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17685#define wxUSE_COMBOBOX 1
17686EOF
17687
1e6feb95 17688 USES_CONTROLS=1
10f2d63a
VZ
17689fi
17690
17691if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 17692 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17693#define wxUSE_CHOICE 1
17694EOF
17695
1e6feb95 17696 USES_CONTROLS=1
10f2d63a
VZ
17697fi
17698
17699if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 17700 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17701#define wxUSE_CHECKBOX 1
17702EOF
17703
1e6feb95 17704 USES_CONTROLS=1
10f2d63a
VZ
17705fi
17706
17707if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 17708 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17709#define wxUSE_CHECKLISTBOX 1
17710EOF
17711
1e6feb95 17712 USES_CONTROLS=1
10f2d63a
VZ
17713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17714fi
17715
17716if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 17717 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17718#define wxUSE_GAUGE 1
17719EOF
17720
1e6feb95 17721 USES_CONTROLS=1
10f2d63a
VZ
17722fi
17723
d6a55c4b
VZ
17724if test "$wxUSE_NEW_GRID" = "yes"; then
17725 wxUSE_GRID="yes"
698dcdb6 17726 cat >> confdefs.h <<\EOF
d6a55c4b 17727#define wxUSE_NEW_GRID 1
10f2d63a
VZ
17728EOF
17729
1e6feb95 17730 USES_CONTROLS=1
d6a55c4b 17731 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
17732fi
17733
d6a55c4b 17734if test "$wxUSE_GRID" = "yes"; then
698dcdb6 17735 cat >> confdefs.h <<\EOF
d6a55c4b 17736#define wxUSE_GRID 1
10f2d63a
VZ
17737EOF
17738
1e6feb95 17739 USES_CONTROLS=1
d6a55c4b 17740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
17741fi
17742
17743if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17744 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17745#define wxUSE_IMAGLIST 1
17746EOF
17747
17748fi
17749
17750if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 17751 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17752#define wxUSE_LISTBOX 1
17753EOF
17754
1e6feb95 17755 USES_CONTROLS=1
10f2d63a
VZ
17756fi
17757
17758if test "$wxUSE_LISTCTRL" = "yes"; then
17759 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17760 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17761#define wxUSE_LISTCTRL 1
17762EOF
17763
1e6feb95 17764 USES_CONTROLS=1
10f2d63a
VZ
17765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17766 else
698dcdb6 17767 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17768 fi
17769fi
17770
17771if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 17772 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17773#define wxUSE_NOTEBOOK 1
17774EOF
17775
1e6feb95 17776 USES_CONTROLS=1
10f2d63a
VZ
17777 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17778fi
17779
24176f2c
GD
17780if test "$wxUSE_PROPSHEET" = "yes"; then
17781 cat >> confdefs.h <<\EOF
17782#define wxUSE_PROPSHEET 1
17783EOF
17784
17785 USES_CONTROLS=1
17786 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17787fi
17788
10f2d63a 17789if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 17790 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17791#define wxUSE_RADIOBOX 1
17792EOF
17793
1e6feb95 17794 USES_CONTROLS=1
10f2d63a
VZ
17795fi
17796
17797if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 17798 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17799#define wxUSE_RADIOBTN 1
17800EOF
17801
1e6feb95 17802 USES_CONTROLS=1
10f2d63a
VZ
17803fi
17804
17805if test "$wxUSE_SASH" = "yes"; then
698dcdb6 17806 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17807#define wxUSE_SASH 1
17808EOF
17809
17810 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17811fi
17812
17813if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 17814 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17815#define wxUSE_SCROLLBAR 1
17816EOF
17817
1e6feb95 17818 USES_CONTROLS=1
741a9306 17819 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
17820fi
17821
17822if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 17823 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17824#define wxUSE_SLIDER 1
17825EOF
17826
1e6feb95 17827 USES_CONTROLS=1
10f2d63a
VZ
17828fi
17829
17830if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 17831 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17832#define wxUSE_SPINBTN 1
17833EOF
17834
1e6feb95 17835 USES_CONTROLS=1
10f2d63a
VZ
17836fi
17837
56cfaa52 17838if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 17839 cat >> confdefs.h <<\EOF
56cfaa52
RR
17840#define wxUSE_SPINCTRL 1
17841EOF
17842
1e6feb95 17843 USES_CONTROLS=1
56cfaa52
RR
17844fi
17845
10f2d63a 17846if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 17847 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17848#define wxUSE_SPLITTER 1
17849EOF
17850
17851 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17852fi
17853
17854if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 17855 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17856#define wxUSE_STATBMP 1
17857EOF
17858
1e6feb95 17859 USES_CONTROLS=1
10f2d63a
VZ
17860fi
17861
17862if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 17863 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17864#define wxUSE_STATBOX 1
17865EOF
17866
1e6feb95
VZ
17867 USES_CONTROLS=1
17868fi
17869
17870if test "$wxUSE_STATTEXT" = "yes"; then
17871 cat >> confdefs.h <<\EOF
17872#define wxUSE_STATTEXT 1
17873EOF
17874
17875 USES_CONTROLS=1
10f2d63a
VZ
17876fi
17877
17878if test "$wxUSE_STATLINE" = "yes"; then
17879 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 17880 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 17881 else
698dcdb6 17882 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17883#define wxUSE_STATLINE 1
17884EOF
17885
1e6feb95 17886 USES_CONTROLS=1
10f2d63a
VZ
17887 fi
17888fi
17889
17890if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 17891 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17892#define wxUSE_STATUSBAR 1
17893EOF
17894
1e6feb95 17895 USES_CONTROLS=1
698dcdb6 17896
2286341c 17897 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
17898fi
17899
17900if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 17901 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17902#define wxUSE_TAB_DIALOG 1
17903EOF
17904
17905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17906fi
17907
1e6feb95
VZ
17908if test "$wxUSE_TEXTCTRL" = "yes"; then
17909 cat >> confdefs.h <<\EOF
17910#define wxUSE_TEXTCTRL 1
17911EOF
17912
17913 USES_CONTROLS=1
17914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17915fi
17916
1db8dc4a 17917if test "$wxUSE_TOGGLEBTN" = "yes"; then
fc26f4ab
RL
17918 if test "$wxUSE_MAC" = 1 -o "$wxUSE_UNIVERSAL" = "yes"; then
17919 echo "configure: warning: Toggle button not yet supported under Mac OS X or wxUNIVERSAL... disabled" 1>&2
a45d7ab7
GD
17920 wxUSE_TOGGLEBTN=no
17921 fi
17922
17923 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17924 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
17925#define wxUSE_TOGGLEBTN 1
17926EOF
17927
1e6feb95 17928 USES_CONTROLS=1
a45d7ab7 17929 fi
1db8dc4a
VZ
17930fi
17931
360d6699 17932if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 17933 cat >> confdefs.h <<\EOF
360d6699
VZ
17934#define wxUSE_TOOLBAR_SIMPLE 1
17935EOF
17936
17937 wxUSE_TOOLBAR="yes"
1e6feb95 17938 USES_CONTROLS=1
360d6699
VZ
17939fi
17940
10f2d63a 17941if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 17942 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17943#define wxUSE_TOOLBAR 1
17944EOF
17945
1e6feb95 17946 USES_CONTROLS=1
698dcdb6 17947
360d6699
VZ
17948 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17949 wxUSE_TOOLBAR_NATIVE="yes"
17950 fi
17951
1e6feb95
VZ
17952 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17953 cat >> confdefs.h <<\EOF
360d6699
VZ
17954#define wxUSE_TOOLBAR_NATIVE 1
17955EOF
17956
1e6feb95
VZ
17957 USES_CONTROLS=1
17958 fi
17959
17960 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
17961fi
17962
10f2d63a
VZ
17963if test "$wxUSE_TOOLTIPS" = "yes"; then
17964 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17965 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
17966 else
17967 if test "$wxUSE_WINE" = 1; then
698dcdb6 17968 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 17969 else
698dcdb6 17970 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17971#define wxUSE_TOOLTIPS 1
17972EOF
17973
17974 fi
17975 fi
17976fi
17977
17978if test "$wxUSE_TREECTRL" = "yes"; then
17979 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17980 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17981#define wxUSE_TREECTRL 1
17982EOF
17983
1e6feb95 17984 USES_CONTROLS=1
10f2d63a
VZ
17985 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17986 else
698dcdb6 17987 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17988 fi
17989fi
17990
9f41d601 17991if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65
GD
17992 if test "$wxUSE_MAC" = 1; then
17993 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17994 else
17995 cat >> confdefs.h <<\EOF
9f41d601
RR
17996#define wxUSE_POPUPWIN 1
17997EOF
17998
6abe4b65
GD
17999 USES_CONTROLS=1
18000 fi
9f41d601
RR
18001fi
18002
1e6feb95
VZ
18003if test "$USES_CONTROLS" = 1; then
18004 cat >> confdefs.h <<\EOF
18005#define wxUSE_CONTROLS 1
10f2d63a
VZ
18006EOF
18007
10f2d63a
VZ
18008fi
18009
1e6feb95 18010
24176f2c
GD
18011if test "$wxUSE_TREELAYOUT" = "yes"; then
18012 cat >> confdefs.h <<\EOF
18013#define wxUSE_TREELAYOUT 1
18014EOF
18015
18016 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
18017fi
1e6feb95 18018
24fd6d87
VZ
18019if test "$wxUSE_DRAGIMAGE" = "yes"; then
18020 cat >> confdefs.h <<\EOF
18021#define wxUSE_DRAGIMAGE 1
18022EOF
18023
18024 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
18025fi
18026
1e6feb95 18027if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 18028 cat >> confdefs.h <<\EOF
1e6feb95 18029#define wxUSE_MENUS 1
10f2d63a
VZ
18030EOF
18031
1e6feb95 18032 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
18033fi
18034
1e6feb95
VZ
18035if test "$wxUSE_METAFILE" = "yes"; then
18036 cat >> confdefs.h <<\EOF
18037#define wxUSE_METAFILE 1
10f2d63a
VZ
18038EOF
18039
10f2d63a
VZ
18040fi
18041
1e6feb95
VZ
18042if test "$wxUSE_MIMETYPE" = "yes"; then
18043 cat >> confdefs.h <<\EOF
18044#define wxUSE_MIMETYPE 1
10f2d63a
VZ
18045EOF
18046
10f2d63a
VZ
18047fi
18048
3e44f09d
VZ
18049if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
18050 cat >> confdefs.h <<\EOF
18051#define wxUSE_SYSTEM_OPTIONS 1
18052EOF
18053
18054fi
18055
10f2d63a 18056if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 18057 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18058#define wxUSE_MINIFRAME 1
18059EOF
18060
18061 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
18062fi
18063
18064if test "$wxUSE_HTML" = "yes"; then
698dcdb6 18065 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18066#define wxUSE_HTML 1
18067EOF
18068
18069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
18070fi
18071
18072if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 18073 cat >> confdefs.h <<\EOF
1e487827
VS
18074#define wxUSE_VALIDATORS 1
18075EOF
703e0a69 18076
698dcdb6
VZ
18077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
18078fi
18079
edae8572
VZ
18080if test "$wxUSE_PALETTE" = "yes" ; then
18081 cat >> confdefs.h <<\EOF
18082#define wxUSE_PALETTE 1
18083EOF
18084
18085fi
18086
698dcdb6
VZ
18087if test "$wxUSE_IMAGE" = "yes" ; then
18088 cat >> confdefs.h <<\EOF
18089#define wxUSE_IMAGE 1
18090EOF
18091
18092fi
18093
18094if test "$wxUSE_GIF" = "yes" ; then
18095 cat >> confdefs.h <<\EOF
18096#define wxUSE_GIF 1
18097EOF
18098
18099fi
18100
18101if test "$wxUSE_PCX" = "yes" ; then
18102 cat >> confdefs.h <<\EOF
18103#define wxUSE_PCX 1
18104EOF
18105
18106fi
18107
18108if test "$wxUSE_PNM" = "yes" ; then
18109 cat >> confdefs.h <<\EOF
18110#define wxUSE_PNM 1
18111EOF
18112
18113fi
18114
18115if test "$wxUSE_XPM" = "yes" ; then
18116 cat >> confdefs.h <<\EOF
18117#define wxUSE_XPM 1
18118EOF
18119
18120fi
18121
18122
1e6feb95
VZ
18123if test "$wxUSE_CHOICEDLG" = "yes"; then
18124 cat >> confdefs.h <<\EOF
18125#define wxUSE_CHOICEDLG 1
18126EOF
18127
18128fi
18129
18130if test "$wxUSE_COLOURDLG" = "yes"; then
18131 cat >> confdefs.h <<\EOF
18132#define wxUSE_COLOURDLG 1
18133EOF
18134
18135fi
18136
18137if test "$wxUSE_FILEDLG" = "yes"; then
18138 cat >> confdefs.h <<\EOF
18139#define wxUSE_FILEDLG 1
18140EOF
18141
18142fi
18143
8db37e06
VZ
18144if test "$wxUSE_FINDREPLDLG" = "yes"; then
18145 cat >> confdefs.h <<\EOF
18146#define wxUSE_FINDREPLDLG 1
18147EOF
18148
18149fi
18150
1e6feb95
VZ
18151if test "$wxUSE_FONTDLG" = "yes"; then
18152 cat >> confdefs.h <<\EOF
18153#define wxUSE_FONTDLG 1
18154EOF
18155
18156fi
18157
18158if test "$wxUSE_DIRDLG" = "yes"; then
18159 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18160 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
18161 else
18162 if test "$wxUSE_TREECTRL" != "yes"; then
18163 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
18164 else
18165 cat >> confdefs.h <<\EOF
18166#define wxUSE_DIRDLG 1
18167EOF
18168
18169 fi
18170 fi
18171fi
18172
18173if test "$wxUSE_MSGDLG" = "yes"; then
18174 cat >> confdefs.h <<\EOF
18175#define wxUSE_MSGDLG 1
18176EOF
18177
18178fi
18179
18180if test "$wxUSE_NUMBERDLG" = "yes"; then
18181 cat >> confdefs.h <<\EOF
18182#define wxUSE_NUMBERDLG 1
18183EOF
18184
18185fi
18186
18187if test "$wxUSE_PROGRESSDLG" = "yes"; then
18188 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18189 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
18190 else
18191 cat >> confdefs.h <<\EOF
18192#define wxUSE_PROGRESSDLG 1
18193EOF
18194
18195 fi
18196fi
18197
cbca9943
VZ
18198if test "$wxUSE_SPLASH" = "yes"; then
18199 cat >> confdefs.h <<\EOF
18200#define wxUSE_SPLASH 1
18201EOF
18202
18203fi
18204
1e6feb95
VZ
18205if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18206 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18207 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18208 else
18209 cat >> confdefs.h <<\EOF
18210#define wxUSE_STARTUP_TIPS 1
18211EOF
18212
18213 fi
18214fi
18215
18216if test "$wxUSE_TEXTDLG" = "yes"; then
18217 cat >> confdefs.h <<\EOF
18218#define wxUSE_TEXTDLG 1
18219EOF
18220
18221fi
18222
b1f5d087
VZ
18223if test "$wxUSE_WIZARDDLG" = "yes"; then
18224 cat >> confdefs.h <<\EOF
18225#define wxUSE_WIZARDDLG 1
18226EOF
18227
18228 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18229fi
18230
1e6feb95 18231
698dcdb6
VZ
18232if test "$cross_compiling" = "yes"; then
18233 OSINFO="\"$host\""
18234else
18235 OSINFO=`uname -s -r -m`
18236 OSINFO="\"$OSINFO\""
18237fi
18238
18239cat >> confdefs.h <<EOF
18240#define WXWIN_OS_DESCRIPTION $OSINFO
18241EOF
18242
18243
18244
06dda230
VZ
18245if test "x$prefix" != "xNONE"; then
18246 wxPREFIX=$prefix
18247else
18248 wxPREFIX=$ac_default_prefix
18249fi
18250
7e67ed0d 18251cat >> confdefs.h <<EOF
06dda230 18252#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
18253EOF
18254
18255
18256
698dcdb6 18257GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
698dcdb6 18258
77e13408 18259EXTRA_LIBS="$EXTRA_LIBS $LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
3a922bb4 18260
f11bdd03 18261if test "$wxUSE_MAC" = 1 ; then
698dcdb6
VZ
18262 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
18263fi
3a922bb4 18264
698dcdb6
VZ
18265if test "$wxUSE_GUI" = "yes"; then
18266 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
3a922bb4
RL
18267
18268
18269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18270 drawing dynamic erase event exec font image \
18271 minimal richedit rotate widgets"
18272
3a922bb4
RL
18273 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18274else
18275 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
18276fi
18277
18278LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
18279
d714471b 18280INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
3e44f09d
VZ
18281$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18282$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6
VZ
18283
18284if test "$wxUSE_GTK" = 1; then
18285 WXCONFIG_INCLUDE=""
18286else
18287 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18288fi
18289
18290if test "$GXX" = yes ; then
18291 CXXWARNINGS="-Wall"
18292 fi
18293EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
18294
18295CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18296CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18297
18298LDFLAGS="$LDFLAGS $PROFILE"
18299
698dcdb6
VZ
18300SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
32832908 18368
2f51a9ec
GD
18369
18370
18371
18372
f6bcfd97 18373
dad6c0ea 18374
caa2c79b 18375
3711412e 18376
1e6feb95
VZ
18377
18378
0f3f1cbc 18379
18dbb1f6 18380
2baaf735 18381
77e13408
RL
18382
18383
e23081de 18384
10f2d63a
VZ
18385
18386
698dcdb6 18387echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
6054113a 18388echo "configure:18389: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
18389set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18390if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18391 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18392else
698dcdb6 18393 cat > conftestmake <<\EOF
10f2d63a
VZ
18394all:
18395 @echo 'ac_maketemp="${MAKE}"'
18396EOF
18397# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 18398eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
18399if test -n "$ac_maketemp"; then
18400 eval ac_cv_prog_make_${ac_make}_set=yes
18401else
18402 eval ac_cv_prog_make_${ac_make}_set=no
18403fi
698dcdb6 18404rm -f conftestmake
10f2d63a
VZ
18405fi
18406if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 18407 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
18408 SET_MAKE=
18409else
698dcdb6 18410 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18411 SET_MAKE="MAKE=${MAKE-make}"
18412fi
18413
698dcdb6 18414
3a922bb4
RL
18415if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18416 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 18417fi
665bbe97 18418
698dcdb6 18419
10f2d63a 18420
2224580a 18421if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 18422 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
18423 wx_cv_path_ifs=$PATH_IFS
18424 wx_cv_program_ext=$PROGRAM_EXT
18425 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 18426 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 18427 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 18428 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 18429 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 18430 subdirs="demos samples utils contrib"
2224580a
VZ
18431
18432fi
10f2d63a 18433
698dcdb6
VZ
18434trap '' 1 2 15
18435cat > confcache <<\EOF
10f2d63a
VZ
18436# This file is a shell script that caches the results of configure
18437# tests run on this system so they can be shared between configure
698dcdb6
VZ
18438# scripts and configure runs. It is not useful on other systems.
18439# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 18440#
698dcdb6
VZ
18441# By default, configure uses ./config.cache as the cache file,
18442# creating it if it does not exist already. You can give configure
18443# the --cache-file=FILE option to use a different cache file; that is
18444# what configure does when it calls configure scripts in
18445# subdirectories, so they share the cache.
18446# Giving --cache-file=/dev/null disables caching, for debugging configure.
18447# config.status only pays attention to the cache file if you give it the
18448# --recheck option to rerun configure.
10f2d63a 18449#
698dcdb6 18450EOF
10f2d63a
VZ
18451# The following way of writing the cache mishandles newlines in values,
18452# but we know of no workaround that is simple, portable, and efficient.
18453# So, don't put newlines in cache variables' values.
18454# Ultrix sh set writes to stderr and can't be redirected directly,
18455# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
18456(set) 2>&1 |
18457 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18458 *ac_space=\ *)
18459 # `set' does not quote correctly, so add quotes (double-quote substitution
18460 # turns \\\\ into \\, and sed turns \\ into \).
18461 sed -n \
18462 -e "s/'/'\\\\''/g" \
18463 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18464 ;;
18465 *)
18466 # `set' quotes correctly as required by POSIX, so do not add quotes.
18467 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18468 ;;
18469 esac >> confcache
18470if cmp -s $cache_file confcache; then
18471 :
18472else
10f2d63a 18473 if test -w $cache_file; then
698dcdb6
VZ
18474 echo "updating cache $cache_file"
18475 cat confcache > $cache_file
10f2d63a
VZ
18476 else
18477 echo "not updating unwritable cache $cache_file"
18478 fi
18479fi
18480rm -f confcache
18481
698dcdb6
VZ
18482trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18483
10f2d63a
VZ
18484test "x$prefix" = xNONE && prefix=$ac_default_prefix
18485# Let make expand exec_prefix.
18486test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18487
698dcdb6
VZ
18488# Any assignment to VPATH causes Sun make to only execute
18489# the first set of double-colon rules, so remove it if not needed.
18490# If there is a colon in the path, we need to keep it.
10f2d63a 18491if test "x$srcdir" = x.; then
698dcdb6 18492 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
18493fi
18494
698dcdb6
VZ
18495trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18496
10f2d63a
VZ
18497DEFS=-DHAVE_CONFIG_H
18498
698dcdb6 18499# Without the "./", some shells look in PATH for config.status.
10f2d63a 18500: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
18501
18502echo creating $CONFIG_STATUS
18503rm -f $CONFIG_STATUS
18504cat > $CONFIG_STATUS <<EOF
18505#! /bin/sh
10f2d63a
VZ
18506# Generated automatically by configure.
18507# Run this file to recreate the current configuration.
698dcdb6
VZ
18508# This directory was configured as follows,
18509# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18510#
18511# $0 $ac_configure_args
18512#
10f2d63a 18513# Compiler output produced by configure, useful for debugging
698dcdb6 18514# configure, is in ./config.log if it exists.
1e487827 18515
698dcdb6
VZ
18516ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18517for ac_option
10f2d63a 18518do
698dcdb6 18519 case "\$ac_option" in
10f2d63a 18520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
18521 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18522 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18523 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18524 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18525 exit 0 ;;
18526 -help | --help | --hel | --he | --h)
18527 echo "\$ac_cs_usage"; exit 0 ;;
18528 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
18529 esac
18530done
18531
698dcdb6
VZ
18532ac_given_srcdir=$srcdir
18533ac_given_INSTALL="$INSTALL"
703e0a69 18534
698dcdb6
VZ
18535trap 'rm -fr `echo "
18536 wx-config
18537 src/make.env
18538 src/makeprog.env
18539 src/makelib.env
18540 Makefile
18541 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 18542EOF
698dcdb6 18543cat >> $CONFIG_STATUS <<EOF
1e487827 18544
698dcdb6
VZ
18545# Protect against being on the right side of a sed subst in config.status.
18546sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18547 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18548$ac_vpsub
18549$extrasub
18550s%@SHELL@%$SHELL%g
18551s%@CFLAGS@%$CFLAGS%g
18552s%@CPPFLAGS@%$CPPFLAGS%g
18553s%@CXXFLAGS@%$CXXFLAGS%g
18554s%@FFLAGS@%$FFLAGS%g
18555s%@DEFS@%$DEFS%g
18556s%@LDFLAGS@%$LDFLAGS%g
18557s%@LIBS@%$LIBS%g
18558s%@exec_prefix@%$exec_prefix%g
18559s%@prefix@%$prefix%g
18560s%@program_transform_name@%$program_transform_name%g
18561s%@bindir@%$bindir%g
18562s%@sbindir@%$sbindir%g
18563s%@libexecdir@%$libexecdir%g
18564s%@datadir@%$datadir%g
18565s%@sysconfdir@%$sysconfdir%g
18566s%@sharedstatedir@%$sharedstatedir%g
18567s%@localstatedir@%$localstatedir%g
18568s%@libdir@%$libdir%g
18569s%@includedir@%$includedir%g
18570s%@oldincludedir@%$oldincludedir%g
18571s%@infodir@%$infodir%g
18572s%@mandir@%$mandir%g
18573s%@host@%$host%g
18574s%@host_alias@%$host_alias%g
18575s%@host_cpu@%$host_cpu%g
18576s%@host_vendor@%$host_vendor%g
18577s%@host_os@%$host_os%g
18578s%@target@%$target%g
18579s%@target_alias@%$target_alias%g
18580s%@target_cpu@%$target_cpu%g
18581s%@target_vendor@%$target_vendor%g
18582s%@target_os@%$target_os%g
18583s%@build@%$build%g
18584s%@build_alias@%$build_alias%g
18585s%@build_cpu@%$build_cpu%g
18586s%@build_vendor@%$build_vendor%g
18587s%@build_os@%$build_os%g
18588s%@CC@%$CC%g
18589s%@CPP@%$CPP%g
18590s%@CXX@%$CXX%g
698dcdb6
VZ
18591s%@RANLIB@%$RANLIB%g
18592s%@AR@%$AR%g
18593s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 18594s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 18595s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6
VZ
18596s%@STRIP@%$STRIP%g
18597s%@YACC@%$YACC%g
18598s%@LEX@%$LEX%g
18599s%@LEXLIB@%$LEXLIB%g
18600s%@LN_S@%$LN_S%g
18601s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
18602s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18603s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 18604s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
18605s%@X_CFLAGS@%$X_CFLAGS%g
18606s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18607s%@X_LIBS@%$X_LIBS%g
18608s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 18609s%@RESCOMP@%$RESCOMP%g
698dcdb6 18610s%@DEREZ@%$DEREZ%g
3a922bb4 18611s%@CXXCPP@%$CXXCPP%g
698dcdb6
VZ
18612s%@LEX_STEM@%$LEX_STEM%g
18613s%@PATH_IFS@%$PATH_IFS%g
18614s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18615s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18616s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
18617s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18618s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 18619s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
18620s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18621s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18622s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 18623s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
18624s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18625s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
18626s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18627s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18628s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
18629s%@WX_ALL@%$WX_ALL%g
18630s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18631s%@SHARED_LD@%$SHARED_LD%g
18632s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
18633s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18634s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
18635s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18636s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
18637s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18638s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18639s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18640s%@USE_GUI@%$USE_GUI%g
18641s%@AFMINSTALL@%$AFMINSTALL%g
18642s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 18643s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 18644s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
18645s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18646s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18647s%@cross_compiling@%$cross_compiling%g
18648s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18649s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
698dcdb6
VZ
18650s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18651s%@ALL_OBJECTS@%$ALL_OBJECTS%g
698dcdb6
VZ
18652s%@GUIDIST@%$GUIDIST%g
18653s%@PORT_FILES@%$PORT_FILES%g
18654s%@DISTDIR@%$DISTDIR%g
18655s%@RPM_SPEC@%$RPM_SPEC%g
18656s%@RPM_FILES@%$RPM_FILES%g
698dcdb6 18657s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
698dcdb6
VZ
18658s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18659s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18660s%@EXTRADEFS@%$EXTRADEFS%g
18661s%@LD_LIBS@%$LD_LIBS%g
18dbb1f6 18662s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
698dcdb6 18663s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 18664s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
d08b457b 18665s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
e23081de 18666s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
698dcdb6
VZ
18667s%@LIBWXMACRES@%$LIBWXMACRES%g
18668s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 18669s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
18670s%@DLLTOOL@%$DLLTOOL%g
18671s%@AS@%$AS%g
18672s%@NM@%$NM%g
18673s%@LD@%$LD%g
18674s%@MAKEINFO@%$MAKEINFO%g
18675s%@SET_MAKE@%$SET_MAKE%g
18676s%@subdirs@%$subdirs%g
1e487827 18677
1e487827 18678CEOF
1e487827
VS
18679EOF
18680
698dcdb6
VZ
18681cat >> $CONFIG_STATUS <<\EOF
18682
18683# Split the substitutions into bite-sized pieces for seds with
18684# small command number limits, like on Digital OSF/1 and HP-UX.
18685ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18686ac_file=1 # Number of current file.
18687ac_beg=1 # First line for current file.
18688ac_end=$ac_max_sed_cmds # Line after last line for current file.
18689ac_more_lines=:
18690ac_sed_cmds=""
18691while $ac_more_lines; do
18692 if test $ac_beg -gt 1; then
18693 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18694 else
18695 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18696 fi
18697 if test ! -s conftest.s$ac_file; then
18698 ac_more_lines=false
18699 rm -f conftest.s$ac_file
18700 else
18701 if test -z "$ac_sed_cmds"; then
18702 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 18703 else
698dcdb6 18704 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 18705 fi
698dcdb6
VZ
18706 ac_file=`expr $ac_file + 1`
18707 ac_beg=$ac_end
18708 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 18709 fi
698dcdb6
VZ
18710done
18711if test -z "$ac_sed_cmds"; then
18712 ac_sed_cmds=cat
18713fi
18714EOF
10f2d63a 18715
698dcdb6
VZ
18716cat >> $CONFIG_STATUS <<EOF
18717
18718CONFIG_FILES=\${CONFIG_FILES-"wx-config
18719 src/make.env
18720 src/makeprog.env
18721 src/makelib.env
18722 Makefile
18723 "}
10f2d63a 18724EOF
698dcdb6
VZ
18725cat >> $CONFIG_STATUS <<\EOF
18726for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 18727 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18728 case "$ac_file" in
18729 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18730 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18731 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18732 esac
18733
698dcdb6 18734 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 18735
698dcdb6
VZ
18736 # Remove last slash and all that follows it. Not all systems have dirname.
18737 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18738 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18739 # The file is in a subdirectory.
18740 test ! -d "$ac_dir" && mkdir "$ac_dir"
18741 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 18742 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 18743 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
18744 else
18745 ac_dir_suffix= ac_dots=
18746 fi
18747
698dcdb6
VZ
18748 case "$ac_given_srcdir" in
18749 .) srcdir=.
18750 if test -z "$ac_dots"; then top_srcdir=.
18751 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18752 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 18753 *) # Relative path.
698dcdb6
VZ
18754 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18755 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
18756 esac
18757
698dcdb6
VZ
18758 case "$ac_given_INSTALL" in
18759 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18760 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
18761 esac
18762
698dcdb6
VZ
18763 echo creating "$ac_file"
18764 rm -f "$ac_file"
18765 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18766 case "$ac_file" in
18767 *Makefile*) ac_comsub="1i\\
18768# $configure_input" ;;
18769 *) ac_comsub= ;;
18770 esac
10f2d63a 18771
698dcdb6
VZ
18772 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18773 sed -e "$ac_comsub
18774s%@configure_input@%$configure_input%g
18775s%@srcdir@%$srcdir%g
18776s%@top_srcdir@%$top_srcdir%g
18777s%@INSTALL@%$INSTALL%g
18778" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18779fi; done
18780rm -f conftest.s*
10f2d63a
VZ
18781
18782# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18783# NAME is the cpp macro being defined and VALUE is the value it is being given.
18784#
18785# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
18786ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18787ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18788ac_dC='\3'
18789ac_dD='%g'
18790# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18791ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18792ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 18793ac_uC=' '
698dcdb6
VZ
18794ac_uD='\4%g'
18795# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18796ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18797ac_eB='$%\1#\2define\3'
18798ac_eC=' '
18799ac_eD='%g'
10f2d63a 18800
698dcdb6
VZ
18801if test "${CONFIG_HEADERS+set}" != set; then
18802EOF
18803cat >> $CONFIG_STATUS <<EOF
18804 CONFIG_HEADERS="setup.h:setup.h.in"
18805EOF
18806cat >> $CONFIG_STATUS <<\EOF
18807fi
18808for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 18809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18810 case "$ac_file" in
18811 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18812 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18813 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18814 esac
18815
698dcdb6
VZ
18816 echo creating $ac_file
18817
18818 rm -f conftest.frag conftest.in conftest.out
18819 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18820 cat $ac_file_inputs > conftest.in
18821
18822EOF
18823
18824# Transform confdefs.h into a sed script conftest.vals that substitutes
18825# the proper values into config.h.in to produce config.h. And first:
18826# Protect against being on the right side of a sed subst in config.status.
18827# Protect against being in an unquoted here document in config.status.
18828rm -f conftest.vals
18829cat > conftest.hdr <<\EOF
18830s/[\\&%]/\\&/g
18831s%[\\$`]%\\&%g
18832s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18833s%ac_d%ac_u%gp
18834s%ac_u%ac_e%gp
18835EOF
18836sed -n -f conftest.hdr confdefs.h > conftest.vals
18837rm -f conftest.hdr
10f2d63a
VZ
18838
18839# This sed command replaces #undef with comments. This is necessary, for
18840# example, in the case of _POSIX_SOURCE, which is predefined and required
18841# on some systems where configure will not decide to define it.
698dcdb6
VZ
18842cat >> conftest.vals <<\EOF
18843s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
18844EOF
18845
698dcdb6
VZ
18846# Break up conftest.vals because some shells have a limit on
18847# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
18848
18849rm -f conftest.tail
698dcdb6 18850while :
10f2d63a 18851do
698dcdb6
VZ
18852 ac_lines=`grep -c . conftest.vals`
18853 # grep -c gives empty output for an empty file on some AIX systems.
18854 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18855 # Write a limited-size here document to conftest.frag.
18856 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18857 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 18858 echo 'CEOF
698dcdb6
VZ
18859 sed -f conftest.frag conftest.in > conftest.out
18860 rm -f conftest.in
18861 mv conftest.out conftest.in
18862' >> $CONFIG_STATUS
18863 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18864 rm -f conftest.vals
18865 mv conftest.tail conftest.vals
10f2d63a 18866done
698dcdb6
VZ
18867rm -f conftest.vals
18868
18869cat >> $CONFIG_STATUS <<\EOF
18870 rm -f conftest.frag conftest.h
18871 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18872 cat conftest.in >> conftest.h
18873 rm -f conftest.in
18874 if cmp -s $ac_file conftest.h 2>/dev/null; then
18875 echo "$ac_file is unchanged"
18876 rm -f conftest.h
10f2d63a 18877 else
698dcdb6
VZ
18878 # Remove last slash and all that follows it. Not all systems have dirname.
18879 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 18880 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
18881 # The file is in a subdirectory.
18882 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 18883 fi
698dcdb6
VZ
18884 rm -f $ac_file
18885 mv conftest.h $ac_file
10f2d63a 18886 fi
698dcdb6
VZ
18887fi; done
18888
10f2d63a 18889EOF
698dcdb6 18890cat >> $CONFIG_STATUS <<EOF
10f2d63a 18891
3a922bb4 18892 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
18893 LN_S="${LN_S}"
18894
18895
18896EOF
18897cat >> $CONFIG_STATUS <<\EOF
10f2d63a 18898
652d930d 18899 if test ! -h wx-config; then
991a5759 18900 chmod +x wx-config
3a922bb4
RL
18901 mv wx-config wx${TOOLCHAIN_NAME}-config
18902 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 18903 fi
665bbe97 18904
00cf1208
RR
18905 if test ! -d lib; then
18906 mkdir lib
18907 fi
18908 if test ! -d lib/wx; then
18909 mkdir lib/wx
18910 fi
18911 if test ! -d lib/wx/include; then
18912 mkdir lib/wx/include
18913 fi
3a922bb4
RL
18914 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
18915 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 18916 fi
3a922bb4
RL
18917 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
18918 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
18919 fi
18920 if test -f setup.h; then
3a922bb4 18921 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 18922 fi
698dcdb6
VZ
18923
18924exit 0
10f2d63a
VZ
18925EOF
18926chmod +x $CONFIG_STATUS
698dcdb6
VZ
18927rm -fr confdefs* $ac_clean_files
18928test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 18929
2224580a
VZ
18930if test "$no_recursion" != yes; then
18931
18932 # Remove --cache-file and --srcdir arguments so they do not pile up.
18933 ac_sub_configure_args=
18934 ac_prev=
18935 for ac_arg in $ac_configure_args; do
18936 if test -n "$ac_prev"; then
18937 ac_prev=
18938 continue
18939 fi
698dcdb6 18940 case "$ac_arg" in
2224580a
VZ
18941 -cache-file | --cache-file | --cache-fil | --cache-fi \
18942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18943 ac_prev=cache_file ;;
18944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 18945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
18946 ;;
18947 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18948 ac_prev=srcdir ;;
18949 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18950 ;;
18951 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18952 esac
18953 done
18954
698dcdb6 18955 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
18956
18957 # Do not complain, so a configure script can configure whichever
18958 # parts of a large source tree are present.
698dcdb6
VZ
18959 if test ! -d $srcdir/$ac_config_dir; then
18960 continue
18961 fi
18962
18963 echo configuring in $ac_config_dir
2224580a 18964
698dcdb6 18965 case "$srcdir" in
2224580a
VZ
18966 .) ;;
18967 *)
698dcdb6
VZ
18968 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18969 else
18970 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18971 fi
18972 ;;
2224580a
VZ
18973 esac
18974
18975 ac_popdir=`pwd`
698dcdb6 18976 cd $ac_config_dir
2224580a 18977
698dcdb6
VZ
18978 # A "../" for each directory in /$ac_config_dir.
18979 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 18980
698dcdb6 18981 case "$srcdir" in
2224580a
VZ
18982 .) # No --srcdir option. We are building in place.
18983 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
18984 /*) # Absolute path.
18985 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 18986 *) # Relative path.
698dcdb6 18987 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
18988 esac
18989
18990 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
18991 if test -f $ac_sub_srcdir/configure; then
18992 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
18993 elif test -f $ac_sub_srcdir/configure.in; then
18994 ac_sub_configure=$ac_configure
18995 else
698dcdb6 18996 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
18997 ac_sub_configure=
18998 fi
18999
19000 # The recursion is here.
19001 if test -n "$ac_sub_configure"; then
698dcdb6 19002
2224580a 19003 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
19004 case "$cache_file" in
19005 /*) ac_sub_cache_file=$cache_file ;;
2224580a 19006 *) # Relative path.
698dcdb6 19007 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 19008 esac
698dcdb6
VZ
19009 case "$ac_given_INSTALL" in
19010 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19011 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19012 esac
2224580a 19013
698dcdb6 19014 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 19015 # The eval makes quoting arguments work.
698dcdb6
VZ
19016 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
19017 then :
19018 else
19019 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
19020 fi
2224580a
VZ
19021 fi
19022
19023 cd $ac_popdir
19024 done
19025fi
19026
698dcdb6 19027