]> git.saurik.com Git - wxWidgets.git/blame - configure
attempts to fix recursive mutex initialized detection under RedHat 7.1 (new glibc)
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
698dcdb6 3# From configure.in Id: configure.in
703e0a69
VZ
4
5
6
7
8
703e0a69
VZ
9
10
1e487827 11
1e487827 12
698dcdb6
VZ
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
8168de4c
VZ
38
39# Configure paths for GTK+
40# Owen Taylor 97-11-3
698dcdb6
VZ
41
42
43
44
698dcdb6
VZ
45
46
47# Guess values for system-dependent variables and create Makefiles.
48# Generated automatically using autoconf version 2.13
49# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50#
51# This configure script is free software; the Free Software Foundation
52# gives unlimited permission to copy, distribute and modify it.
53
54# Defaults:
55ac_help=
56ac_default_prefix=/usr/local
57# Any additions from configure.in:
58ac_help="$ac_help
8168de4c 59 --enable-gui use GUI classes"
1e6feb95 60ac_help="$ac_help
8168de4c 61 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
62ac_help="$ac_help
63 --with-gtk use GTK+"
64ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66ac_help="$ac_help
67 --with-mac use Mac OS X"
68ac_help="$ac_help
69 --with-wine use WINE"
70ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
1e6feb95
VZ
76ac_help="$ac_help
77 --with-mgl use MGL"
698dcdb6 78ac_help="$ac_help
8168de4c 79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 80ac_help="$ac_help
8168de4c 81 --with-libpng use libpng (PNG image format)"
698dcdb6 82ac_help="$ac_help
8168de4c 83 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 84ac_help="$ac_help
8168de4c 85 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 86ac_help="$ac_help
8168de4c 87 --with-freetype use freetype (font rasterizer)"
698dcdb6 88ac_help="$ac_help
8168de4c 89 --with-opengl use OpenGL (or Mesa)"
698dcdb6 90ac_help="$ac_help
8168de4c 91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
3e44f09d
VZ
92ac_help="$ac_help
93 --with-regex enable support for wxRegEx class"
698dcdb6 94ac_help="$ac_help
8168de4c 95 --with-zlib use zlib for LZW compression"
698dcdb6 96ac_help="$ac_help
8168de4c 97 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 98ac_help="$ac_help
8168de4c 99 --enable-shared create shared library code"
698dcdb6 100ac_help="$ac_help
8168de4c 101 --enable-burnt_name create set name in shared library "
698dcdb6 102ac_help="$ac_help
8168de4c 103 --enable-optimise create optimised code"
698dcdb6 104ac_help="$ac_help
8168de4c 105 --enable-debug same as debug_flag and debug_info"
698dcdb6 106ac_help="$ac_help
8168de4c 107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --enable-debug_info create code with debugging information"
698dcdb6 110ac_help="$ac_help
8168de4c 111 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 112ac_help="$ac_help
8168de4c 113 --enable-debug_cntxt use wxDebugContext"
698dcdb6 114ac_help="$ac_help
8168de4c 115 --enable-mem_tracing create code with memory tracing"
698dcdb6 116ac_help="$ac_help
8168de4c 117 --enable-profile create code with profiling information"
698dcdb6 118ac_help="$ac_help
8168de4c 119 --enable-no_rtti create code without RTTI information"
698dcdb6 120ac_help="$ac_help
8168de4c 121 --enable-no_exceptions create code without exceptions information"
698dcdb6 122ac_help="$ac_help
8168de4c 123 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 124ac_help="$ac_help
8168de4c 125 --enable-no_deps create code without dependency information"
54276ccf
VZ
126ac_help="$ac_help
127 --enable-compat20 enable wxWin 2.0 compatibility"
128ac_help="$ac_help
129 --enable-compat22 enable wxWin 2.2 compatibility"
698dcdb6 130ac_help="$ac_help
8168de4c 131 --enable-intl use internationalization system"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-config use wxConfig (and derived) classes"
698dcdb6 134ac_help="$ac_help
8168de4c 135 --enable-sockets use socket/network classes"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 138ac_help="$ac_help
8168de4c 139 --enable-cmdline use wxCmdLineParser class"
1e6feb95 140ac_help="$ac_help
8168de4c 141 --enable-datetime use wxDateTime class"
1e6feb95 142ac_help="$ac_help
8168de4c 143 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 144ac_help="$ac_help
8168de4c 145 --enable-stopwatch use wxStopWatch class"
1e6feb95 146ac_help="$ac_help
8168de4c 147 --enable-dialupman use dialup network classes"
698dcdb6 148ac_help="$ac_help
8168de4c 149 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 150ac_help="$ac_help
8168de4c 151 --enable-timer use wxTimer class"
698dcdb6 152ac_help="$ac_help
8168de4c 153 --enable-wave use wxWave class"
698dcdb6 154ac_help="$ac_help
8168de4c 155 --enable-fraction use wxFraction class"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-dynlib use wxLibrary class for DLL loading"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-longlong use wxLongLong class"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-geometry use geometry class"
698dcdb6 162ac_help="$ac_help
8168de4c 163 --enable-log use logging system"
698dcdb6 164ac_help="$ac_help
8168de4c 165 --enable-streams use wxStream etc classes"
698dcdb6 166ac_help="$ac_help
8168de4c 167 --enable-file use wxFile classes"
698dcdb6 168ac_help="$ac_help
8168de4c 169 --enable-ffile use wxFFile classes"
1e6feb95 170ac_help="$ac_help
8168de4c 171 --enable-textfile use wxTextFile classes"
698dcdb6 172ac_help="$ac_help
8168de4c 173 --enable-fontmap use font encodings conversion classes"
1e6feb95 174ac_help="$ac_help
8168de4c 175 --enable-unicode compile wxString with Unicode support"
698dcdb6 176ac_help="$ac_help
8168de4c 177 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
698dcdb6 178ac_help="$ac_help
8168de4c 179 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 180ac_help="$ac_help
8168de4c 181 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-filesystem use virtual file systems classes"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-zipstream use wxZipInputStream"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 192ac_help="$ac_help
8168de4c 193 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 194ac_help="$ac_help
8168de4c 195 --enable-mimetypes use wxMimeTypesManager"
3e44f09d
VZ
196ac_help="$ac_help
197 --enable-sysoptions use wxSystemOptions"
1e6feb95 198ac_help="$ac_help
8168de4c 199 --enable-threads use threads"
698dcdb6 200ac_help="$ac_help
8168de4c 201 --enable-serial use class serialization"
698dcdb6 202ac_help="$ac_help
8168de4c 203 --enable-docview use document view architecture"
698dcdb6 204ac_help="$ac_help
3379ed37 205 --enable-help use help subsystem"
29fd3c0c
VS
206ac_help="$ac_help
207 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
208ac_help="$ac_help
209 --enable-html use wxHTML sub-library"
210ac_help="$ac_help
211 --enable-htmlhelp use wxHTML-based help"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-constraints use layout-constraints system"
698dcdb6 214ac_help="$ac_help
8168de4c 215 --enable-printarch use printing architecture"
698dcdb6 216ac_help="$ac_help
8168de4c 217 --enable-mdi use multiple document interface architecture"
698dcdb6 218ac_help="$ac_help
8168de4c 219 --enable-loggui use standard GUI logger"
1e6feb95 220ac_help="$ac_help
8168de4c 221 --enable-logwin use wxLogWindow"
1e6feb95 222ac_help="$ac_help
8168de4c 223 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-prologio use Prolog IO library"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-resources use wxWindows resources"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-clipboard use wxClipboard classes"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-dnd use Drag'n'Drop classes"
698dcdb6 234ac_help="$ac_help
8168de4c 235 --enable-metafile use win32 metafiles"
698dcdb6 236ac_help="$ac_help
24176f2c 237 --enable-treelayout use wxTreeLayout classes"
698dcdb6 238ac_help="$ac_help
8168de4c 239 --enable-controls use all usual controls"
698dcdb6 240ac_help="$ac_help
8168de4c 241 --enable-accel use accelerators"
698dcdb6 242ac_help="$ac_help
8168de4c 243 --enable-button use wxButton class"
698dcdb6 244ac_help="$ac_help
8168de4c 245 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 246ac_help="$ac_help
8168de4c 247 --enable-calendar use wxCalendarCtrl class"
1e6feb95 248ac_help="$ac_help
8168de4c 249 --enable-caret use wxCaret class"
1e6feb95 250ac_help="$ac_help
8168de4c 251 --enable-checkbox use wxCheckBox class"
698dcdb6 252ac_help="$ac_help
8168de4c 253 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 254ac_help="$ac_help
8168de4c 255 --enable-choice use wxChoice class"
698dcdb6 256ac_help="$ac_help
8168de4c 257 --enable-combobox use wxComboBox classes"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-gauge use wxGauge class"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-grid use wxGrid class"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-newgrid use new wxGrid class"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-imaglist use wxImageList class"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-listbox use wxListBox class"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-listctrl use wxListCtrl class"
698dcdb6 270ac_help="$ac_help
8168de4c 271 --enable-notebook use wxNotebook class"
24176f2c
GD
272ac_help="$ac_help
273 --enable-propsheet use wxPropertySheet class"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-radiobox use wxRadioBox class"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-radiobtn use wxRadioButton class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-sash use wxSashWindow class"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-slider use wxSlider class"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-spinbtn use wxSpinButton class"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-splitter use wxSplitterWindow class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-statbmp use wxStaticBitmap class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-statbox use wxStaticBox class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-statline use wxStaticLine class"
698dcdb6 296ac_help="$ac_help
8168de4c 297 --enable-stattext use wxStaticText class"
1e6feb95 298ac_help="$ac_help
8168de4c 299 --enable-statusbar use wxStatusBar class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-tabdialog use wxTabControl class"
698dcdb6 302ac_help="$ac_help
8168de4c 303 --enable-textctrl use wxTextCtrl class"
1e6feb95 304ac_help="$ac_help
8168de4c 305 --enable-togglebtn use wxToggleButton class"
698dcdb6 306ac_help="$ac_help
8168de4c 307 --enable-toolbar use wxToolBar class"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-tbarnative use native wxToolBar class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 312ac_help="$ac_help
8168de4c 313 --enable-treectrl use wxTreeCtrl class"
9f41d601
RR
314ac_help="$ac_help
315 --enable-popupwin use wxPopUpWindow class"
698dcdb6 316ac_help="$ac_help
8168de4c 317 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
698dcdb6 318ac_help="$ac_help
8168de4c 319 --enable-choicedlg use wxChoiceDialog"
1e6feb95 320ac_help="$ac_help
8168de4c 321 --enable-coldlg use wxColourDialog"
1e6feb95 322ac_help="$ac_help
8168de4c 323 --enable-filedlg use wxFileDialog"
8db37e06
VZ
324ac_help="$ac_help
325 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 326ac_help="$ac_help
8168de4c 327 --enable-fontdlg use wxFontDialog"
1e6feb95 328ac_help="$ac_help
8168de4c 329 --enable-dirdlg use wxDirDialog"
698dcdb6 330ac_help="$ac_help
8168de4c 331 --enable-msgdlg use wxMessageDialog"
1e6feb95 332ac_help="$ac_help
8168de4c 333 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
334ac_help="$ac_help
335 --enable-splash use wxSplashScreen"
1e6feb95 336ac_help="$ac_help
8168de4c 337 --enable-textdlg use wxTextDialog"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-tipdlg use startup tips"
698dcdb6 340ac_help="$ac_help
8168de4c 341 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
342ac_help="$ac_help
343 --enable-wizarddlg use wxWizard"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 346ac_help="$ac_help
8168de4c 347 --enable-miniframe use wxMiniFrame class"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-tooltips use wxToolTip class"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-splines use spline drawing code"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-validators use wxValidator and derived classes"
698dcdb6 354ac_help="$ac_help
8168de4c 355 --enable-busyinfo use wxBusyInfo"
698dcdb6 356ac_help="$ac_help
8168de4c 357 --enable-joystick compile in joystick support (Linux only)"
698dcdb6 358ac_help="$ac_help
8168de4c 359 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
360ac_help="$ac_help
361 --enable-dragimage use wxDragImage"
1e6feb95 362ac_help="$ac_help
8168de4c 363 --enable-image use wxImage class"
698dcdb6 364ac_help="$ac_help
8168de4c 365 --enable-gif use gif images (GIF file format)"
698dcdb6 366ac_help="$ac_help
8168de4c 367 --enable-pcx use pcx images (PCX file format)"
698dcdb6 368ac_help="$ac_help
8168de4c 369 --enable-pnm use pnm images (PNM file format)"
698dcdb6 370ac_help="$ac_help
8168de4c 371 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
372ac_help="$ac_help
373 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
374ac_help="$ac_help
375 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
376ac_help="$ac_help
377 --disable-gtktest Do not try to compile and run a test GTK program"
378ac_help="$ac_help
379 --with-x use the X Window System"
10f2d63a
VZ
380
381# Initialize some variables set by options.
382# The variables have the same names as the options, with
383# dashes changed to underlines.
698dcdb6
VZ
384build=NONE
385cache_file=./config.cache
10f2d63a 386exec_prefix=NONE
698dcdb6 387host=NONE
10f2d63a 388no_create=
698dcdb6 389nonopt=NONE
10f2d63a
VZ
390no_recursion=
391prefix=NONE
392program_prefix=NONE
393program_suffix=NONE
394program_transform_name=s,x,x,
395silent=
396site=
397srcdir=
698dcdb6 398target=NONE
10f2d63a
VZ
399verbose=
400x_includes=NONE
401x_libraries=NONE
402bindir='${exec_prefix}/bin'
403sbindir='${exec_prefix}/sbin'
404libexecdir='${exec_prefix}/libexec'
405datadir='${prefix}/share'
406sysconfdir='${prefix}/etc'
407sharedstatedir='${prefix}/com'
408localstatedir='${prefix}/var'
409libdir='${exec_prefix}/lib'
410includedir='${prefix}/include'
411oldincludedir='/usr/include'
412infodir='${prefix}/info'
413mandir='${prefix}/man'
414
698dcdb6
VZ
415# Initialize some other variables.
416subdirs=
417MFLAGS= MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419# Maximum number of lines to put in a shell here document.
420ac_max_here_lines=12
10f2d63a
VZ
421
422ac_prev=
423for ac_option
424do
698dcdb6 425
10f2d63a
VZ
426 # If the previous option needs an argument, assign it.
427 if test -n "$ac_prev"; then
428 eval "$ac_prev=\$ac_option"
429 ac_prev=
430 continue
431 fi
432
698dcdb6
VZ
433 case "$ac_option" in
434 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
435 *) ac_optarg= ;;
436 esac
10f2d63a
VZ
437
438 # Accept the important Cygnus configure options, so we can diagnose typos.
439
698dcdb6 440 case "$ac_option" in
10f2d63a
VZ
441
442 -bindir | --bindir | --bindi | --bind | --bin | --bi)
443 ac_prev=bindir ;;
444 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 445 bindir="$ac_optarg" ;;
10f2d63a
VZ
446
447 -build | --build | --buil | --bui | --bu)
698dcdb6 448 ac_prev=build ;;
10f2d63a 449 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 450 build="$ac_optarg" ;;
10f2d63a
VZ
451
452 -cache-file | --cache-file | --cache-fil | --cache-fi \
453 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
454 ac_prev=cache_file ;;
455 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
456 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 457 cache_file="$ac_optarg" ;;
10f2d63a
VZ
458
459 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
460 ac_prev=datadir ;;
461 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
462 | --da=*)
698dcdb6 463 datadir="$ac_optarg" ;;
10f2d63a
VZ
464
465 -disable-* | --disable-*)
698dcdb6 466 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 467 # Reject names that are not valid shell variable names.
698dcdb6
VZ
468 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
469 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
470 fi
471 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
472 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
473
474 -enable-* | --enable-*)
698dcdb6 475 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 476 # Reject names that are not valid shell variable names.
698dcdb6
VZ
477 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
478 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
479 fi
480 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
481 case "$ac_option" in
482 *=*) ;;
10f2d63a
VZ
483 *) ac_optarg=yes ;;
484 esac
698dcdb6 485 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
486
487 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
488 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
489 | --exec | --exe | --ex)
490 ac_prev=exec_prefix ;;
491 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
492 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
493 | --exec=* | --exe=* | --ex=*)
698dcdb6 494 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
495
496 -gas | --gas | --ga | --g)
497 # Obsolete; use --with-gas.
498 with_gas=yes ;;
499
698dcdb6
VZ
500 -help | --help | --hel | --he)
501 # Omit some internal or obsolete options to make the list less imposing.
502 # This message is too long to be a string in the A/UX 3.1 sh.
503 cat << EOF
504Usage: configure [options] [host]
505Options: [defaults in brackets after descriptions]
506Configuration:
507 --cache-file=FILE cache test results in FILE
508 --help print this message
509 --no-create do not create output files
510 --quiet, --silent do not print \`checking...' messages
511 --version print the version of autoconf that created configure
512Directory and file names:
513 --prefix=PREFIX install architecture-independent files in PREFIX
514 [$ac_default_prefix]
515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
516 [same as prefix]
517 --bindir=DIR user executables in DIR [EPREFIX/bin]
518 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
519 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
520 --datadir=DIR read-only architecture-independent data in DIR
521 [PREFIX/share]
522 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
523 --sharedstatedir=DIR modifiable architecture-independent data in DIR
524 [PREFIX/com]
525 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
526 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
527 --includedir=DIR C header files in DIR [PREFIX/include]
528 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
529 --infodir=DIR info documentation in DIR [PREFIX/info]
530 --mandir=DIR man documentation in DIR [PREFIX/man]
531 --srcdir=DIR find the sources in DIR [configure dir or ..]
532 --program-prefix=PREFIX prepend PREFIX to installed program names
533 --program-suffix=SUFFIX append SUFFIX to installed program names
534 --program-transform-name=PROGRAM
535 run sed PROGRAM on installed program names
536EOF
537 cat << EOF
538Host type:
539 --build=BUILD configure for building on BUILD [BUILD=HOST]
540 --host=HOST configure for HOST [guessed]
541 --target=TARGET configure for TARGET [TARGET=HOST]
542Features and packages:
543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
547 --x-includes=DIR X include files are in DIR
548 --x-libraries=DIR X library files are in DIR
549EOF
550 if test -n "$ac_help"; then
551 echo "--enable and --with options recognized:$ac_help"
552 fi
553 exit 0 ;;
10f2d63a
VZ
554
555 -host | --host | --hos | --ho)
698dcdb6 556 ac_prev=host ;;
10f2d63a 557 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 558 host="$ac_optarg" ;;
10f2d63a
VZ
559
560 -includedir | --includedir | --includedi | --included | --include \
561 | --includ | --inclu | --incl | --inc)
562 ac_prev=includedir ;;
563 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
564 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 565 includedir="$ac_optarg" ;;
10f2d63a
VZ
566
567 -infodir | --infodir | --infodi | --infod | --info | --inf)
568 ac_prev=infodir ;;
569 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 570 infodir="$ac_optarg" ;;
10f2d63a
VZ
571
572 -libdir | --libdir | --libdi | --libd)
573 ac_prev=libdir ;;
574 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 575 libdir="$ac_optarg" ;;
10f2d63a
VZ
576
577 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
578 | --libexe | --libex | --libe)
579 ac_prev=libexecdir ;;
580 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
581 | --libexe=* | --libex=* | --libe=*)
698dcdb6 582 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
583
584 -localstatedir | --localstatedir | --localstatedi | --localstated \
585 | --localstate | --localstat | --localsta | --localst \
586 | --locals | --local | --loca | --loc | --lo)
587 ac_prev=localstatedir ;;
588 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
589 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
590 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 591 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
592
593 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
594 ac_prev=mandir ;;
595 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 596 mandir="$ac_optarg" ;;
10f2d63a
VZ
597
598 -nfp | --nfp | --nf)
599 # Obsolete; use --without-fp.
600 with_fp=no ;;
601
602 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
603 | --no-cr | --no-c)
604 no_create=yes ;;
605
606 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
607 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
608 no_recursion=yes ;;
609
610 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
611 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
612 | --oldin | --oldi | --old | --ol | --o)
613 ac_prev=oldincludedir ;;
614 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
615 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
616 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 617 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
618
619 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
620 ac_prev=prefix ;;
621 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 622 prefix="$ac_optarg" ;;
10f2d63a
VZ
623
624 -program-prefix | --program-prefix | --program-prefi | --program-pref \
625 | --program-pre | --program-pr | --program-p)
626 ac_prev=program_prefix ;;
627 -program-prefix=* | --program-prefix=* | --program-prefi=* \
628 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 629 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
630
631 -program-suffix | --program-suffix | --program-suffi | --program-suff \
632 | --program-suf | --program-su | --program-s)
633 ac_prev=program_suffix ;;
634 -program-suffix=* | --program-suffix=* | --program-suffi=* \
635 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 636 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
637
638 -program-transform-name | --program-transform-name \
639 | --program-transform-nam | --program-transform-na \
640 | --program-transform-n | --program-transform- \
641 | --program-transform | --program-transfor \
642 | --program-transfo | --program-transf \
643 | --program-trans | --program-tran \
644 | --progr-tra | --program-tr | --program-t)
645 ac_prev=program_transform_name ;;
646 -program-transform-name=* | --program-transform-name=* \
647 | --program-transform-nam=* | --program-transform-na=* \
648 | --program-transform-n=* | --program-transform-=* \
649 | --program-transform=* | --program-transfor=* \
650 | --program-transfo=* | --program-transf=* \
651 | --program-trans=* | --program-tran=* \
652 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 653 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
654
655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
656 | -silent | --silent | --silen | --sile | --sil)
657 silent=yes ;;
658
659 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
660 ac_prev=sbindir ;;
661 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
662 | --sbi=* | --sb=*)
698dcdb6 663 sbindir="$ac_optarg" ;;
10f2d63a
VZ
664
665 -sharedstatedir | --sharedstatedir | --sharedstatedi \
666 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
667 | --sharedst | --shareds | --shared | --share | --shar \
668 | --sha | --sh)
669 ac_prev=sharedstatedir ;;
670 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
671 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
672 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
673 | --sha=* | --sh=*)
698dcdb6 674 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
675
676 -site | --site | --sit)
677 ac_prev=site ;;
678 -site=* | --site=* | --sit=*)
698dcdb6 679 site="$ac_optarg" ;;
10f2d63a
VZ
680
681 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
682 ac_prev=srcdir ;;
683 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 684 srcdir="$ac_optarg" ;;
10f2d63a
VZ
685
686 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
687 | --syscon | --sysco | --sysc | --sys | --sy)
688 ac_prev=sysconfdir ;;
689 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
690 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 691 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
692
693 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 694 ac_prev=target ;;
10f2d63a 695 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 696 target="$ac_optarg" ;;
10f2d63a
VZ
697
698 -v | -verbose | --verbose | --verbos | --verbo | --verb)
699 verbose=yes ;;
700
698dcdb6
VZ
701 -version | --version | --versio | --versi | --vers)
702 echo "configure generated by autoconf version 2.13"
703 exit 0 ;;
10f2d63a
VZ
704
705 -with-* | --with-*)
698dcdb6 706 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 707 # Reject names that are not valid shell variable names.
698dcdb6
VZ
708 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
709 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
710 fi
10f2d63a 711 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
712 case "$ac_option" in
713 *=*) ;;
10f2d63a
VZ
714 *) ac_optarg=yes ;;
715 esac
698dcdb6 716 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
717
718 -without-* | --without-*)
698dcdb6 719 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 720 # Reject names that are not valid shell variable names.
698dcdb6
VZ
721 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
722 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
723 fi
724 ac_package=`echo $ac_package| sed 's/-/_/g'`
725 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
726
727 --x)
728 # Obsolete; use --with-x.
729 with_x=yes ;;
730
731 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
732 | --x-incl | --x-inc | --x-in | --x-i)
733 ac_prev=x_includes ;;
734 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
735 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 736 x_includes="$ac_optarg" ;;
10f2d63a
VZ
737
738 -x-libraries | --x-libraries | --x-librarie | --x-librari \
739 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
740 ac_prev=x_libraries ;;
741 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
742 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 743 x_libraries="$ac_optarg" ;;
10f2d63a 744
698dcdb6 745 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
746 ;;
747
748 *)
698dcdb6
VZ
749 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
750 echo "configure: warning: $ac_option: invalid host type" 1>&2
751 fi
752 if test "x$nonopt" != xNONE; then
753 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
754 fi
755 nonopt="$ac_option"
10f2d63a
VZ
756 ;;
757
758 esac
759done
760
761if test -n "$ac_prev"; then
698dcdb6
VZ
762 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
763fi
764
765trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
766
767# File descriptor usage:
768# 0 standard input
769# 1 file creation
770# 2 errors and warnings
771# 3 some systems may open it to /dev/tty
772# 4 used on the Kubota Titan
773# 6 checking for... messages and results
774# 5 compiler messages saved in config.log
775if test "$silent" = yes; then
776 exec 6>/dev/null
777else
778 exec 6>&1
10f2d63a 779fi
698dcdb6
VZ
780exec 5>./config.log
781
782echo "\
783This file contains any messages produced by compilers while
784running configure, to aid debugging if configure makes a mistake.
785" 1>&5
10f2d63a 786
698dcdb6
VZ
787# Strip out --no-create and --no-recursion so they do not pile up.
788# Also quote any args containing shell metacharacters.
789ac_configure_args=
790for ac_arg
10f2d63a 791do
698dcdb6
VZ
792 case "$ac_arg" in
793 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
794 | --no-cr | --no-c) ;;
795 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
796 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
797 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
798 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
799 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
800 esac
801done
802
698dcdb6
VZ
803# NLS nuisances.
804# Only set these to C if already set. These must not be set unconditionally
805# because not all systems understand e.g. LANG=C (notably SCO).
806# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
807# Non-C LC_CTYPE values break the ctype check.
808if test "${LANG+set}" = set; then LANG=C; export LANG; fi
809if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
810if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
811if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 812
698dcdb6
VZ
813# confdefs.h avoids OS command line length limits that DEFS can exceed.
814rm -rf conftest* confdefs.h
815# AIX cpp loses on an empty file, so make sure it contains at least a newline.
816echo > confdefs.h
10f2d63a 817
698dcdb6
VZ
818# A filename unique to this package, relative to the directory that
819# configure is in, which we can look for to find out if srcdir is correct.
820ac_unique_file=wx-config.in
10f2d63a
VZ
821
822# Find the source files, if location was not specified.
823if test -z "$srcdir"; then
824 ac_srcdir_defaulted=yes
825 # Try the directory containing this script, then its parent.
826 ac_prog=$0
698dcdb6 827 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
828 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
829 srcdir=$ac_confdir
830 if test ! -r $srcdir/$ac_unique_file; then
831 srcdir=..
832 fi
833else
834 ac_srcdir_defaulted=no
835fi
836if test ! -r $srcdir/$ac_unique_file; then
837 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 838 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 839 else
698dcdb6 840 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
841 fi
842fi
698dcdb6 843srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
844
845# Prefer explicitly selected file to automatically selected ones.
846if test -z "$CONFIG_SITE"; then
847 if test "x$prefix" != xNONE; then
848 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
849 else
850 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
851 fi
852fi
853for ac_site_file in $CONFIG_SITE; do
854 if test -r "$ac_site_file"; then
698dcdb6 855 echo "loading site script $ac_site_file"
10f2d63a
VZ
856 . "$ac_site_file"
857 fi
858done
859
860if test -r "$cache_file"; then
698dcdb6
VZ
861 echo "loading cache $cache_file"
862 . $cache_file
10f2d63a 863else
698dcdb6
VZ
864 echo "creating cache $cache_file"
865 > $cache_file
10f2d63a
VZ
866fi
867
868ac_ext=c
698dcdb6 869# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 870ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
871ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
872ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
873cross_compiling=$ac_cv_prog_cc_cross
874
875ac_exeext=
876ac_objext=o
877if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
878 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
879 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
880 ac_n= ac_c='
881' ac_t=' '
882 else
883 ac_n=-n ac_c= ac_t=
884 fi
10f2d63a 885else
698dcdb6 886 ac_n= ac_c='\c' ac_t=
10f2d63a 887fi
698dcdb6
VZ
888
889
10f2d63a 890
7c66a493
VZ
891ac_aux_dir=
892for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
893 if test -f $ac_dir/install-sh; then
894 ac_aux_dir=$ac_dir
895 ac_install_sh="$ac_aux_dir/install-sh -c"
896 break
897 elif test -f $ac_dir/install.sh; then
898 ac_aux_dir=$ac_dir
899 ac_install_sh="$ac_aux_dir/install.sh -c"
900 break
901 fi
902done
903if test -z "$ac_aux_dir"; then
698dcdb6 904 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 905fi
698dcdb6
VZ
906ac_config_guess=$ac_aux_dir/config.guess
907ac_config_sub=$ac_aux_dir/config.sub
908ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 909
698dcdb6
VZ
910
911# Do some error checking and defaulting for the host and target type.
912# The inputs are:
913# configure --host=HOST --target=TARGET --build=BUILD NONOPT
914#
915# The rules are:
916# 1. You are not allowed to specify --host, --target, and nonopt at the
917# same time.
918# 2. Host defaults to nonopt.
919# 3. If nonopt is not specified, then host defaults to the current host,
920# as determined by config.guess.
921# 4. Target and build default to nonopt.
922# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
923
924# The aliases save the names the user supplied, while $host etc.
925# will get canonicalized.
698dcdb6
VZ
926case $host---$target---$nonopt in
927NONE---*---* | *---NONE---* | *---*---NONE) ;;
928*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
929esac
930
931
932# Make sure we can run config.sub.
933if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
934else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
935fi
936
937echo $ac_n "checking host system type""... $ac_c" 1>&6
cbca9943 938echo "configure:939: checking host system type" >&5
698dcdb6
VZ
939
940host_alias=$host
941case "$host_alias" in
942NONE)
943 case $nonopt in
944 NONE)
945 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
946 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
947 fi ;;
948 *) host_alias=$nonopt ;;
949 esac ;;
950esac
951
952host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
953host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
954host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
955host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
956echo "$ac_t""$host" 1>&6
957
958echo $ac_n "checking target system type""... $ac_c" 1>&6
cbca9943 959echo "configure:960: checking target system type" >&5
698dcdb6
VZ
960
961target_alias=$target
962case "$target_alias" in
963NONE)
964 case $nonopt in
965 NONE) target_alias=$host_alias ;;
966 *) target_alias=$nonopt ;;
967 esac ;;
968esac
969
970target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
971target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
972target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
973target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
974echo "$ac_t""$target" 1>&6
975
976echo $ac_n "checking build system type""... $ac_c" 1>&6
cbca9943 977echo "configure:978: checking build system type" >&5
698dcdb6
VZ
978
979build_alias=$build
980case "$build_alias" in
981NONE)
982 case $nonopt in
983 NONE) build_alias=$host_alias ;;
984 *) build_alias=$nonopt ;;
985 esac ;;
986esac
987
988build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
989build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
990build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
991build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
992echo "$ac_t""$build" 1>&6
993
994test "$host_alias" != "$target_alias" &&
7c66a493
VZ
995 test "$program_prefix$program_suffix$program_transform_name" = \
996 NONENONEs,x,x, &&
997 program_prefix=${target_alias}-
998
698dcdb6
VZ
999
1000
10f2d63a 1001WX_MAJOR_VERSION_NUMBER=2
37d403aa 1002WX_MINOR_VERSION_NUMBER=3
6c01ec02 1003WX_RELEASE_NUMBER=2
10f2d63a 1004
10f2d63a 1005WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1006WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1007
6c01ec02 1008WX_CURRENT=1
6426998c
RL
1009WX_REVISION=0
1010WX_AGE=0
1011
698dcdb6
VZ
1012
1013
10f2d63a
VZ
1014USE_UNIX=1
1015USE_WIN32=0
b12915c1 1016USE_BEOS=0
1216f52d 1017USE_MAC=0
b12915c1 1018
10f2d63a
VZ
1019USE_LINUX=
1020USE_SGI=
1021USE_HPUX=
1022USE_SYSV=
1023USE_SVR4=
1024USE_AIX=
1025USE_SUN=
1026USE_SOLARIS=
1027USE_SUNOS=
1028USE_ALPHA=
1029USE_OSF=
1030USE_BSD=
f11bdd03 1031USE_DARWIN=
10f2d63a 1032USE_FREEBSD=
95c8801c 1033USE_OPENBSD=
f6bcfd97 1034USE_NETBSD=
10f2d63a
VZ
1035USE_VMS=
1036USE_ULTRIX=
1037USE_CYGWIN=
1038USE_MINGW=
1039USE_DATA_GENERAL=
1040
ab9b9eab
VZ
1041NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1042
1e6feb95 1043ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
10f2d63a
VZ
1044
1045DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1046DEFAULT_wxUSE_MAC=0
1047DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1048DEFAULT_wxUSE_MOTIF=0
1049DEFAULT_wxUSE_MSW=0
e07802fc 1050DEFAULT_wxUSE_PM=0
1e6feb95 1051DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1052
1053DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1054DEFAULT_DEFAULT_wxUSE_MAC=0
1055DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1056DEFAULT_DEFAULT_wxUSE_MOTIF=0
1057DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1058DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1059DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1060
d6a55c4b
VZ
1061PROGRAM_EXT=
1062
10f2d63a
VZ
1063case "${host}" in
1064 *-hp-hpux* )
1065 USE_HPUX=1
1066 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1067 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
698dcdb6 1068 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1069#define __HPUX__ 1
1070EOF
1071
1072 ;;
1073 *-*-linux* )
1074 USE_LINUX=1
698dcdb6 1075 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1076#define __LINUX__ 1
1077EOF
1078
1079 TMP=`uname -m`
1080 if test "x$TMP" = "xalpha"; then
1081 USE_ALPHA=1
698dcdb6 1082 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1083#define __ALPHA__ 1
1084EOF
1085
1086 fi
1087 DEFAULT_DEFAULT_wxUSE_GTK=1
1088 ;;
1089 *-*-irix5* | *-*-irix6* )
1090 USE_SGI=1
1091 USE_SVR4=1
698dcdb6 1092 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1093#define __SGI__ 1
1094EOF
1095
698dcdb6 1096 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1097#define __SVR4__ 1
1098EOF
1099
1100 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1101 ;;
1102 *-*-solaris2* )
1103 USE_SUN=1
1104 USE_SOLARIS=1
1105 USE_SVR4=1
698dcdb6 1106 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1107#define __SUN__ 1
1108EOF
1109
698dcdb6 1110 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1111#define __SOLARIS__ 1
1112EOF
1113
698dcdb6 1114 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1115#define __SVR4__ 1
1116EOF
1117
1118 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1119 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1120 ;;
1121 *-*-sunos4* )
1122 USE_SUN=1
1123 USE_SUNOS=1
1124 USE_BSD=1
698dcdb6 1125 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1126#define __SUN__ 1
1127EOF
1128
698dcdb6 1129 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1130#define __SUNOS__ 1
1131EOF
1132
698dcdb6 1133 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1134#define __BSD__ 1
1135EOF
1136
1137 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1138 ;;
f6bcfd97 1139 *-*-freebsd*)
10f2d63a
VZ
1140 USE_BSD=1
1141 USE_FREEBSD=1
698dcdb6 1142 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1143#define __FREEBSD__ 1
1144EOF
1145
698dcdb6 1146 cat >> confdefs.h <<\EOF
10f2d63a 1147#define __BSD__ 1
95c8801c
VS
1148EOF
1149
1150 DEFAULT_DEFAULT_wxUSE_GTK=1
1151 ;;
1152 *-*-openbsd*)
1153 USE_BSD=1
1154 USE_OPENBSD=1
698dcdb6 1155 cat >> confdefs.h <<\EOF
95c8801c
VS
1156#define __FREEBSD__ 1
1157EOF
1158
698dcdb6 1159 cat >> confdefs.h <<\EOF
95c8801c 1160#define __OPENBSD__ 1
f6bcfd97
BP
1161EOF
1162
1163 DEFAULT_DEFAULT_wxUSE_GTK=1
1164 ;;
1165 *-*-netbsd*)
1166 USE_BSD=1
1167 USE_NETBSD=1
698dcdb6 1168 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1169#define __FREEBSD__ 1
1170EOF
1171
698dcdb6 1172 cat >> confdefs.h <<\EOF
f6bcfd97 1173#define __NETBSD__ 1
10f2d63a
VZ
1174EOF
1175
1176 DEFAULT_DEFAULT_wxUSE_GTK=1
1177 ;;
1178 *-*-osf* )
1179 USE_ALPHA=1
1180 USE_OSF=1
698dcdb6 1181 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1182#define __ALPHA__ 1
1183EOF
1184
698dcdb6 1185 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1186#define __OSF__ 1
1187EOF
1188
1189 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1190 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1191 ;;
1192 *-*-dgux5* )
1193 USE_ALPHA=1
1194 USE_SVR4=1
698dcdb6 1195 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1196#define __ALPHA__ 1
1197EOF
1198
698dcdb6 1199 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1200#define __SVR4__ 1
1201EOF
1202
1203 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1204 ;;
1205 *-*-sysv5* )
1206 USE_SYSV=1
1207 USE_SVR4=1
698dcdb6 1208 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1209#define __SYSV__ 1
1210EOF
1211
698dcdb6 1212 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1213#define __SVR4__ 1
1214EOF
1215
1216 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1217 ;;
1218 *-*-aix* )
1219 USE_AIX=1
1220 USE_SYSV=1
1221 USE_SVR4=1
698dcdb6 1222 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1223#define __AIX__ 1
1224EOF
1225
698dcdb6 1226 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1227#define __SYSV__ 1
1228EOF
1229
698dcdb6 1230 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1231#define __SVR4__ 1
1232EOF
1233
1234 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1235 ;;
1236
1c8183e2 1237 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1238 USE_UNIX=0
1239 USE_WIN32=1
698dcdb6 1240 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1241#define __WIN32__ 1
1242EOF
1243
698dcdb6 1244 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1245#define __WIN95__ 1
1246EOF
1247
698dcdb6 1248 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1249#define __WINDOWS__ 1
1250EOF
1251
698dcdb6 1252 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1253#define __GNUWIN32__ 1
1254EOF
1255
698dcdb6 1256 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1257#define STRICT 1
1258EOF
1259
698dcdb6 1260 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1261#define WINVER 0x0400
1262EOF
1263
cf27ef00 1264 PROGRAM_EXT=".exe"
10f2d63a
VZ
1265 DEFAULT_DEFAULT_wxUSE_MSW=1
1266 ;;
1267
1268 *-pc-os2_emx )
698dcdb6 1269 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1270#define __EMX__ 1
1271EOF
1272
cf27ef00 1273 PROGRAM_EXT=".exe"
e07802fc 1274 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1275 ;;
1276
b4085ce6
GD
1277 *-*-darwin* )
1278 USE_BSD=1
f11bdd03 1279 USE_DARWIN=1
698dcdb6 1280 cat >> confdefs.h <<\EOF
f11bdd03 1281#define __BSD__ 1
b4085ce6
GD
1282EOF
1283
698dcdb6 1284 cat >> confdefs.h <<\EOF
f11bdd03 1285#define __DARWIN__ 1
b4085ce6
GD
1286EOF
1287
698dcdb6 1288 cat >> confdefs.h <<\EOF
b4085ce6
GD
1289#define __UNIX__ 1
1290EOF
1291
1292 DEFAULT_DEFAULT_wxUSE_MAC=1
1293 ;;
1294
b12915c1
VZ
1295 *-*-beos* )
1296 USE_BEOS=1
698dcdb6 1297 cat >> confdefs.h <<\EOF
b12915c1
VZ
1298#define __BEOS__ 1
1299EOF
1300
1301 ;;
1302
10f2d63a 1303 *)
698dcdb6 1304 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1305esac
1306
1307if test "$USE_UNIX" = 1 ; then
b12915c1 1308 wxUSE_UNIX=yes
698dcdb6 1309 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1310#define __UNIX__ 1
1311EOF
1312
698dcdb6 1313
b12915c1
VZ
1314 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1315 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1316fi
1317
1318if test "$USE_BEOS" = 1; then
1319 SRC_SUBDIRS="$SRC_SUBDIRS be"
1320 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1321fi
1322
1323if test "$USE_LINUX" = 1; then
ab252f7b
VZ
1324 echo $ac_n "checking for glibc version""... $ac_c" 1>&6
1325echo "configure:1326: checking for glibc version" >&5
1326if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
698dcdb6 1327 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 1328else
ab252f7b
VZ
1329 cat > conftest.$ac_ext <<EOF
1330#line 1331 "configure"
698dcdb6 1331#include "confdefs.h"
ab252f7b 1332#include <features.h>
698dcdb6 1333int main() {
ab252f7b
VZ
1334
1335 #if !__GLIBC_PREREQ(2, 1)
1336 #error not glibc2.1
1337 #endif
1338
698dcdb6
VZ
1339; return 0; }
1340EOF
ab252f7b 1341if { (eval echo configure:1342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 1342 rm -rf conftest*
ab252f7b
VZ
1343
1344 echo "$ac_t""2.1 or later" 1>&6
10f2d63a 1345fi
10f2d63a 1346
ab252f7b
VZ
1347echo "$ac_t""$wx_lib_glibc21" 1>&6
1348
1349 if test "$wx_lib_glibc21" = "yes"; then
1350 cat >> confdefs.h <<\EOF
698dcdb6
VZ
1351#define wxHAVE_GLIBC2 1
1352EOF
ab252f7b
VZ
1353)
1354 fi
10f2d63a
VZ
1355fi
1356
1e487827 1357
1e487827 1358
6232543b 1359
10f2d63a
VZ
1360 wx_arg_cache_file="configarg.cache"
1361 echo "loading argument cache $wx_arg_cache_file"
1362 rm -f ${wx_arg_cache_file}.tmp
1363 touch ${wx_arg_cache_file}.tmp
1364 touch ${wx_arg_cache_file}
698dcdb6 1365
10f2d63a
VZ
1366
1367DEBUG_CONFIGURE=0
1368if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1369 DEFAULT_wxUSE_UNIVERSAL=no
1370
10f2d63a
VZ
1371 DEFAULT_wxUSE_THREADS=yes
1372
1373 DEFAULT_wxUSE_SHARED=yes
00cf1208 1374 DEFAULT_wxUSE_BURNT_NAME=no
1e6feb95 1375 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1376 DEFAULT_wxUSE_PROFILE=no
1377 DEFAULT_wxUSE_NO_DEPS=no
1378 DEFAULT_wxUSE_NO_RTTI=no
1379 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1380 DEFAULT_wxUSE_PERMISSIVE=no
1381 DEFAULT_wxUSE_DEBUG_FLAG=yes
1382 DEFAULT_wxUSE_DEBUG_INFO=yes
1383 DEFAULT_wxUSE_DEBUG_GDB=yes
1384 DEFAULT_wxUSE_MEM_TRACING=no
1385 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1386 DEFAULT_wxUSE_DMALLOC=no
1387 DEFAULT_wxUSE_APPLE_IEEE=no
1388
1389 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1390 DEFAULT_wxUSE_LOGWINDOW=no
1391 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1392
1393 DEFAULT_wxUSE_GUI=yes
1e6feb95 1394 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1395
3e44f09d 1396 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1397 DEFAULT_wxUSE_ZLIB=no
1398 DEFAULT_wxUSE_LIBPNG=no
1399 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1400 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1401 DEFAULT_wxUSE_ODBC=no
3fed1840 1402 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1403 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1404
eb4efbdc 1405 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1406 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1407 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1408 DEFAULT_wxUSE_CMDLINE_PARSER=no
1409 DEFAULT_wxUSE_DATETIME=no
1410 DEFAULT_wxUSE_TIMEDATE=no
1411 DEFAULT_wxUSE_TIMER=no
1412 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1413 DEFAULT_wxUSE_FILE=no
1e6feb95 1414 DEFAULT_wxUSE_FFILE=no
10f2d63a 1415 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1416 DEFAULT_wxUSE_WAVE=no
1417 DEFAULT_wxUSE_INTL=no
1418 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1419 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1420 DEFAULT_wxUSE_STREAMS=no
1421 DEFAULT_wxUSE_SOCKETS=no
1422 DEFAULT_wxUSE_DIALUP_MANAGER=no
1423 DEFAULT_wxUSE_SERIAL=no
1424 DEFAULT_wxUSE_JOYSTICK=no
1425 DEFAULT_wxUSE_DYNLIB_CLASS=no
1426 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1427 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1428
1429 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1430 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1431 DEFAULT_wxUSE_POSTSCRIPT=no
1432
1433 DEFAULT_wxUSE_X_RESOURCES=no
1434 DEFAULT_wxUSE_CLIPBOARD=no
1435 DEFAULT_wxUSE_TOOLTIPS=no
1436 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1437 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1438 DEFAULT_wxUSE_SPLINES=no
1439
1440 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1441 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1442 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1443
1444 DEFAULT_wxUSE_PROLOGIO=no
1445 DEFAULT_wxUSE_RESOURCES=no
1446 DEFAULT_wxUSE_CONSTRAINTS=no
1447 DEFAULT_wxUSE_IPC=no
1448 DEFAULT_wxUSE_HELP=no
29fd3c0c 1449 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1450 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1451 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1452 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1453 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1454 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1455
1456 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1457 DEFAULT_wxUSE_CHOICEDLG=no
1458 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1459 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1460 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1461 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1462 DEFAULT_wxUSE_FONTDLG=no
1463 DEFAULT_wxUSE_MSGDLG=no
1464 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1465 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1466 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1467 DEFAULT_wxUSE_STARTUP_TIPS=no
1468 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1469 DEFAULT_wxUSE_WIZARDDLG=no
1470
1e6feb95 1471 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1472 DEFAULT_wxUSE_MINIFRAME=no
1473 DEFAULT_wxUSE_HTML=no
24528b0c 1474 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1475 DEFAULT_wxUSE_FS_INET=no
1476 DEFAULT_wxUSE_FS_ZIP=no
1477 DEFAULT_wxUSE_BUSYINFO=no
1478 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1479 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1480
1481 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1482 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1483 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1484 DEFAULT_wxUSE_CALCTRL=no
1485 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1486 DEFAULT_wxUSE_CHECKBOX=no
1487 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1488 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1489 DEFAULT_wxUSE_COMBOBOX=no
1490 DEFAULT_wxUSE_GAUGE=no
1491 DEFAULT_wxUSE_GRID=no
1492 DEFAULT_wxUSE_NEW_GRID=no
1493 DEFAULT_wxUSE_IMAGLIST=no
1494 DEFAULT_wxUSE_LISTBOX=no
1495 DEFAULT_wxUSE_LISTCTRL=no
1496 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1497 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1498 DEFAULT_wxUSE_RADIOBOX=no
1499 DEFAULT_wxUSE_RADIOBTN=no
1500 DEFAULT_wxUSE_SASH=no
1501 DEFAULT_wxUSE_SCROLLBAR=no
1502 DEFAULT_wxUSE_SLIDER=no
1503 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1504 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1505 DEFAULT_wxUSE_SPLITTER=no
1506 DEFAULT_wxUSE_STATBMP=no
1507 DEFAULT_wxUSE_STATBOX=no
1508 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1509 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1510 DEFAULT_wxUSE_STATUSBAR=yes
1511 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1512 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1513 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1514 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1515 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1516 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1517 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1518 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
1519
1520 DEFAULT_wxUSE_UNICODE=no
1521 DEFAULT_wxUSE_WCSRTOMBS=no
1522
0046ff7c 1523 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1524 DEFAULT_wxUSE_GIF=no
1525 DEFAULT_wxUSE_PCX=no
1526 DEFAULT_wxUSE_PNM=no
0046ff7c 1527 DEFAULT_wxUSE_XPM=no
10f2d63a 1528else
1e6feb95
VZ
1529 DEFAULT_wxUSE_UNIVERSAL=no
1530
10f2d63a
VZ
1531 DEFAULT_wxUSE_THREADS=yes
1532
1533 DEFAULT_wxUSE_SHARED=yes
00cf1208 1534 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1535 DEFAULT_wxUSE_OPTIMISE=yes
1536 DEFAULT_wxUSE_PROFILE=no
1537 DEFAULT_wxUSE_NO_DEPS=no
1538 DEFAULT_wxUSE_NO_RTTI=no
1539 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1540 DEFAULT_wxUSE_PERMISSIVE=no
1541 DEFAULT_wxUSE_DEBUG_FLAG=no
1542 DEFAULT_wxUSE_DEBUG_INFO=no
1543 DEFAULT_wxUSE_DEBUG_GDB=no
1544 DEFAULT_wxUSE_MEM_TRACING=no
1545 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1546 DEFAULT_wxUSE_DMALLOC=no
1547 DEFAULT_wxUSE_APPLE_IEEE=yes
1548
1549 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1550 DEFAULT_wxUSE_LOGWINDOW=yes
1551 DEFAULT_wxUSE_LOGGUI=yes
10f2d63a
VZ
1552
1553 DEFAULT_wxUSE_GUI=yes
1554
831b3152 1555 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1556 DEFAULT_wxUSE_ZLIB=yes
1557 DEFAULT_wxUSE_LIBPNG=yes
1558 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1559 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1560 DEFAULT_wxUSE_ODBC=no
3fed1840 1561 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1562 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1563
eb4efbdc 1564 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1565 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1566 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1567 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1568 DEFAULT_wxUSE_DATETIME=yes
1569 DEFAULT_wxUSE_TIMEDATE=no
1570 DEFAULT_wxUSE_TIMER=yes
1571 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1572 DEFAULT_wxUSE_FILE=yes
1e6feb95 1573 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1574 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1575 DEFAULT_wxUSE_WAVE=no
1576 DEFAULT_wxUSE_INTL=yes
1577 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1578 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1579 DEFAULT_wxUSE_STREAMS=yes
1580 DEFAULT_wxUSE_SOCKETS=yes
1581 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1582 DEFAULT_wxUSE_SERIAL=yes
1583 DEFAULT_wxUSE_JOYSTICK=yes
1584 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1585 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1586 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1587
1588 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1589 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1590 DEFAULT_wxUSE_POSTSCRIPT=yes
1591
1592 DEFAULT_wxUSE_X_RESOURCES=no
1593 DEFAULT_wxUSE_CLIPBOARD=yes
1594 DEFAULT_wxUSE_TOOLTIPS=yes
1595 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1596 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1597 DEFAULT_wxUSE_SPLINES=yes
1598
1599 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1600 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1601 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1602
1603 DEFAULT_wxUSE_PROLOGIO=yes
1604 DEFAULT_wxUSE_RESOURCES=yes
1605 DEFAULT_wxUSE_CONSTRAINTS=yes
1606 DEFAULT_wxUSE_IPC=yes
1607 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1608 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1609 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1610 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1611 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1612 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1613 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1614
1615 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1616 DEFAULT_wxUSE_CHOICEDLG=yes
1617 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1618 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1619 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1620 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1621 DEFAULT_wxUSE_FONTDLG=yes
1622 DEFAULT_wxUSE_MSGDLG=yes
1623 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1624 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1625 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1626 DEFAULT_wxUSE_STARTUP_TIPS=yes
1627 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1628 DEFAULT_wxUSE_WIZARDDLG=yes
1629
1e6feb95 1630 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1631 DEFAULT_wxUSE_MINIFRAME=yes
1632 DEFAULT_wxUSE_HTML=yes
24528b0c 1633 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1634 DEFAULT_wxUSE_FS_INET=yes
1635 DEFAULT_wxUSE_FS_ZIP=yes
1636 DEFAULT_wxUSE_BUSYINFO=yes
1637 DEFAULT_wxUSE_ZIPSTREAM=yes
1638 DEFAULT_wxUSE_VALIDATORS=yes
1639
1640 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1641 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1642 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1643 DEFAULT_wxUSE_CALCTRL=yes
1644 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1645 DEFAULT_wxUSE_CHECKBOX=yes
1646 DEFAULT_wxUSE_CHECKLST=yes
1647 DEFAULT_wxUSE_CHOICE=yes
1648 DEFAULT_wxUSE_COMBOBOX=yes
1649 DEFAULT_wxUSE_GAUGE=yes
1650 DEFAULT_wxUSE_GRID=yes
cc977e5f 1651 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1652 DEFAULT_wxUSE_IMAGLIST=yes
1653 DEFAULT_wxUSE_LISTBOX=yes
1654 DEFAULT_wxUSE_LISTCTRL=yes
1655 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1656 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1657 DEFAULT_wxUSE_RADIOBOX=yes
1658 DEFAULT_wxUSE_RADIOBTN=yes
1659 DEFAULT_wxUSE_SASH=yes
1660 DEFAULT_wxUSE_SCROLLBAR=yes
1661 DEFAULT_wxUSE_SLIDER=yes
1662 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1663 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1664 DEFAULT_wxUSE_SPLITTER=yes
1665 DEFAULT_wxUSE_STATBMP=yes
1666 DEFAULT_wxUSE_STATBOX=yes
1667 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1668 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1669 DEFAULT_wxUSE_STATUSBAR=yes
1670 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1671 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1672 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1673 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1674 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1675 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1676 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1677 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
1678
1679 DEFAULT_wxUSE_UNICODE=no
1680 DEFAULT_wxUSE_WCSRTOMBS=no
1681
0046ff7c 1682 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1683 DEFAULT_wxUSE_GIF=yes
1684 DEFAULT_wxUSE_PCX=yes
1685 DEFAULT_wxUSE_PNM=yes
0046ff7c 1686 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1687fi
1688
698dcdb6
VZ
1689
1690
10f2d63a
VZ
1691for toolkit in `echo $ALL_TOOLKITS`; do
1692 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1693 if test "x$LINE" != x ; then
1694 has_toolkit_in_cache=1
1695 eval "DEFAULT_$LINE"
1696 eval "CACHE_$toolkit=1"
1697 fi
1698done
1699
698dcdb6
VZ
1700
1701
1702 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
ab252f7b 1703echo "configure:1704: checking for --enable-gui" >&5
10f2d63a
VZ
1704 no_cache=0
1705 # Check whether --enable-gui or --disable-gui was given.
1706if test "${enable_gui+set}" = set; then
1707 enableval="$enable_gui"
698dcdb6 1708
10f2d63a
VZ
1709 if test "$enableval" = yes; then
1710 ac_cv_use_gui='wxUSE_GUI=yes'
1711 else
1712 ac_cv_use_gui='wxUSE_GUI=no'
1713 fi
698dcdb6 1714
10f2d63a 1715else
698dcdb6 1716
10f2d63a
VZ
1717 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1718 if test "x$LINE" != x ; then
1719 eval "DEFAULT_$LINE"
1720 else
1721 no_cache=1
1722 fi
1723
1724 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1725
1726fi
10f2d63a
VZ
1727
1728
1729 eval "$ac_cv_use_gui"
1730 if test "$no_cache" != 1; then
1731 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1732 fi
1733
1734 if test "$wxUSE_GUI" = yes; then
698dcdb6 1735 echo "$ac_t""yes" 1>&6
10f2d63a 1736 else
698dcdb6 1737 echo "$ac_t""no" 1>&6
10f2d63a 1738 fi
698dcdb6 1739
10f2d63a 1740
b12915c1 1741if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1742
1e6feb95
VZ
1743
1744 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
ab252f7b 1745echo "configure:1746: checking for --enable-universal" >&5
1e6feb95
VZ
1746 no_cache=0
1747 # Check whether --enable-universal or --disable-universal was given.
1748if test "${enable_universal+set}" = set; then
1749 enableval="$enable_universal"
1750
1751 if test "$enableval" = yes; then
1752 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1753 else
1754 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1755 fi
1756
1757else
1758
1759 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1760 if test "x$LINE" != x ; then
1761 eval "DEFAULT_$LINE"
1762 else
1763 no_cache=1
1764 fi
1765
1766 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1767
1768fi
1769
1770
1771 eval "$ac_cv_use_universal"
1772 if test "$no_cache" != 1; then
1773 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1774 fi
1775
1776 if test "$wxUSE_UNIVERSAL" = yes; then
1777 echo "$ac_t""yes" 1>&6
1778 else
1779 echo "$ac_t""no" 1>&6
1780 fi
1781
10f2d63a
VZ
1782# Check whether --with-gtk or --without-gtk was given.
1783if test "${with_gtk+set}" = set; then
1784 withval="$with_gtk"
1785 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1786fi
10f2d63a
VZ
1787
1788# Check whether --with-motif or --without-motif was given.
1789if test "${with_motif+set}" = set; then
1790 withval="$with_motif"
1791 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1792fi
10f2d63a 1793
b4085ce6
GD
1794# Check whether --with-mac or --without-mac was given.
1795if test "${with_mac+set}" = set; then
1796 withval="$with_mac"
1797 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1798fi
b4085ce6 1799
10f2d63a
VZ
1800# Check whether --with-wine or --without-wine was given.
1801if test "${with_wine+set}" = set; then
1802 withval="$with_wine"
1803 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1804fi
10f2d63a
VZ
1805
1806# Check whether --with-cygwin or --without-cygwin was given.
1807if test "${with_cygwin+set}" = set; then
1808 withval="$with_cygwin"
1809 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
698dcdb6 1810fi
10f2d63a
VZ
1811
1812# Check whether --with-mingw or --without-mingw was given.
1813if test "${with_mingw+set}" = set; then
1814 withval="$with_mingw"
1815 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
698dcdb6 1816fi
10f2d63a 1817
e07802fc
VZ
1818# Check whether --with-pm or --without-pm was given.
1819if test "${with_pm+set}" = set; then
1820 withval="$with_pm"
1821 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1822fi
1823
1e6feb95
VZ
1824# Check whether --with-mgl or --without-mgl was given.
1825if test "${with_mgl+set}" = set; then
1826 withval="$with_mgl"
1827 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1828fi
1829
10f2d63a 1830
8168de4c
VZ
1831# Check whether --enable-gtk2 or --disable-gtk2 was given.
1832if test "${enable_gtk2+set}" = set; then
1833 enableval="$enable_gtk2"
1834 wxUSE_GTK2=1
10f2d63a 1835else
8168de4c 1836 wxUSE_GTK2=0
698dcdb6
VZ
1837fi
1838
703e0a69 1839
1e487827 1840
698dcdb6 1841 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
ab252f7b 1842echo "configure:1843: checking for --with-libpng" >&5
698dcdb6
VZ
1843 no_cache=0
1844 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1845if test "${with_libpng+set}" = set; then
1846 withval="$with_libpng"
698dcdb6 1847
10f2d63a 1848 if test "$withval" = yes; then
b12915c1 1849 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1850 elif test "$withval" = no; then
b12915c1 1851 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1852 elif test "$withval" = sys; then
1853 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1854 else
698dcdb6 1855 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1856 fi
698dcdb6 1857
10f2d63a 1858else
698dcdb6 1859
b12915c1 1860 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1861 if test "x$LINE" != x ; then
1862 eval "DEFAULT_$LINE"
1863 else
1864 no_cache=1
1865 fi
1866
b12915c1 1867 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1868
1869fi
10f2d63a
VZ
1870
1871
b12915c1 1872 eval "$ac_cv_use_libpng"
10f2d63a 1873 if test "$no_cache" != 1; then
b12915c1 1874 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1875 fi
1876
b12915c1 1877 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1878 echo "$ac_t""yes" 1>&6
422107f9 1879 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1880 echo "$ac_t""no" 1>&6
422107f9 1881 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1882 echo "$ac_t""system version" 1>&6
422107f9 1883 else
698dcdb6 1884 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1885 fi
698dcdb6 1886
10f2d63a 1887
698dcdb6 1888 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
ab252f7b 1889echo "configure:1890: checking for --with-libjpeg" >&5
10f2d63a 1890 no_cache=0
698dcdb6 1891 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1892if test "${with_libjpeg+set}" = set; then
1893 withval="$with_libjpeg"
698dcdb6 1894
10f2d63a 1895 if test "$withval" = yes; then
b12915c1 1896 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1897 elif test "$withval" = no; then
b12915c1 1898 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1899 elif test "$withval" = sys; then
1900 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1901 else
698dcdb6 1902 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1903 fi
698dcdb6 1904
10f2d63a 1905else
698dcdb6 1906
b12915c1 1907 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1908 if test "x$LINE" != x ; then
1909 eval "DEFAULT_$LINE"
1910 else
1911 no_cache=1
1912 fi
1913
b12915c1 1914 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1915
1916fi
10f2d63a
VZ
1917
1918
b12915c1 1919 eval "$ac_cv_use_libjpeg"
10f2d63a 1920 if test "$no_cache" != 1; then
b12915c1 1921 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1922 fi
1923
b12915c1 1924 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1925 echo "$ac_t""yes" 1>&6
422107f9 1926 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1927 echo "$ac_t""no" 1>&6
422107f9 1928 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1929 echo "$ac_t""system version" 1>&6
422107f9 1930 else
698dcdb6 1931 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1932 fi
698dcdb6 1933
10f2d63a 1934
698dcdb6 1935 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
ab252f7b 1936echo "configure:1937: checking for --with-libtiff" >&5
10f2d63a 1937 no_cache=0
698dcdb6 1938 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1939if test "${with_libtiff+set}" = set; then
1940 withval="$with_libtiff"
698dcdb6 1941
10f2d63a 1942 if test "$withval" = yes; then
b12915c1 1943 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1944 elif test "$withval" = no; then
b12915c1 1945 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1946 elif test "$withval" = sys; then
1947 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1948 else
698dcdb6 1949 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1950 fi
698dcdb6 1951
10f2d63a 1952else
698dcdb6 1953
b12915c1 1954 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1955 if test "x$LINE" != x ; then
1956 eval "DEFAULT_$LINE"
1957 else
1958 no_cache=1
1959 fi
1960
b12915c1 1961 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1962
1963fi
10f2d63a
VZ
1964
1965
b12915c1 1966 eval "$ac_cv_use_libtiff"
10f2d63a 1967 if test "$no_cache" != 1; then
b12915c1 1968 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1969 fi
1970
b12915c1 1971 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1972 echo "$ac_t""yes" 1>&6
0dcf9893 1973 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1974 echo "$ac_t""no" 1>&6
0dcf9893 1975 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1976 echo "$ac_t""system version" 1>&6
0dcf9893 1977 else
698dcdb6 1978 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1979 fi
698dcdb6 1980
10f2d63a 1981
698dcdb6 1982 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
ab252f7b 1983echo "configure:1984: checking for --with-freetype" >&5
3fed1840 1984 no_cache=0
698dcdb6 1985 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
1986if test "${with_freetype+set}" = set; then
1987 withval="$with_freetype"
698dcdb6 1988
3fed1840
RR
1989 if test "$withval" = yes; then
1990 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1991 elif test "$withval" = no; then
1992 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1993 elif test "$withval" = sys; then
1994 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1995 else
698dcdb6 1996 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 1997 fi
698dcdb6 1998
3fed1840 1999else
698dcdb6 2000
3fed1840
RR
2001 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2002 if test "x$LINE" != x ; then
2003 eval "DEFAULT_$LINE"
2004 else
2005 no_cache=1
2006 fi
2007
2008 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2009
2010fi
3fed1840
RR
2011
2012
2013 eval "$ac_cv_use_freetype"
2014 if test "$no_cache" != 1; then
2015 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2016 fi
2017
2018 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2019 echo "$ac_t""yes" 1>&6
3fed1840 2020 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2021 echo "$ac_t""no" 1>&6
3fed1840 2022 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2023 echo "$ac_t""system version" 1>&6
3fed1840 2024 else
698dcdb6 2025 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2026 fi
698dcdb6 2027
3fed1840 2028
698dcdb6 2029 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
ab252f7b 2030echo "configure:2031: checking for --with-opengl" >&5
10f2d63a 2031 no_cache=0
698dcdb6 2032 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2033if test "${with_opengl+set}" = set; then
2034 withval="$with_opengl"
698dcdb6 2035
10f2d63a 2036 if test "$withval" = yes; then
b12915c1 2037 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2038 else
b12915c1 2039 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2040 fi
698dcdb6 2041
10f2d63a 2042else
698dcdb6 2043
b12915c1 2044 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2045 if test "x$LINE" != x ; then
2046 eval "DEFAULT_$LINE"
2047 else
2048 no_cache=1
2049 fi
2050
b12915c1 2051 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2052
2053fi
10f2d63a
VZ
2054
2055
b12915c1 2056 eval "$ac_cv_use_opengl"
10f2d63a 2057 if test "$no_cache" != 1; then
b12915c1 2058 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2059 fi
2060
b12915c1 2061 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2062 echo "$ac_t""yes" 1>&6
10f2d63a 2063 else
698dcdb6 2064 echo "$ac_t""no" 1>&6
10f2d63a 2065 fi
698dcdb6 2066
10f2d63a 2067
b12915c1
VZ
2068fi
2069
1e487827 2070
698dcdb6 2071 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
ab252f7b 2072echo "configure:2073: checking for --with-dmalloc" >&5
698dcdb6
VZ
2073 no_cache=0
2074 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2075if test "${with_dmalloc+set}" = set; then
2076 withval="$with_dmalloc"
698dcdb6 2077
c7a2bf27 2078 if test "$withval" = yes; then
b12915c1 2079 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2080 else
b12915c1 2081 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2082 fi
698dcdb6 2083
c7a2bf27 2084else
698dcdb6 2085
b12915c1 2086 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2087 if test "x$LINE" != x ; then
2088 eval "DEFAULT_$LINE"
2089 else
2090 no_cache=1
2091 fi
2092
b12915c1 2093 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2094
2095fi
c7a2bf27
RR
2096
2097
b12915c1 2098 eval "$ac_cv_use_dmalloc"
c7a2bf27 2099 if test "$no_cache" != 1; then
b12915c1 2100 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2101 fi
2102
b12915c1 2103 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2104 echo "$ac_t""yes" 1>&6
c7a2bf27 2105 else
698dcdb6 2106 echo "$ac_t""no" 1>&6
c7a2bf27 2107 fi
698dcdb6 2108
c7a2bf27 2109
3e44f09d 2110 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
ab252f7b 2111echo "configure:2112: checking for --with-regex" >&5
3e44f09d
VZ
2112 no_cache=0
2113 # Check whether --with-regex or --without-regex was given.
2114if test "${with_regex+set}" = set; then
2115 withval="$with_regex"
2116
2117 if test "$withval" = yes; then
2118 ac_cv_use_regex='wxUSE_REGEX=yes'
2119 elif test "$withval" = no; then
2120 ac_cv_use_regex='wxUSE_REGEX=no'
2121 elif test "$withval" = sys; then
2122 ac_cv_use_regex='wxUSE_REGEX=sys'
2123 else
2124 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2125 fi
2126
2127else
2128
2129 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2130 if test "x$LINE" != x ; then
2131 eval "DEFAULT_$LINE"
2132 else
2133 no_cache=1
2134 fi
2135
2136 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2137
2138fi
2139
2140
2141 eval "$ac_cv_use_regex"
2142 if test "$no_cache" != 1; then
2143 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2144 fi
2145
2146 if test "$wxUSE_REGEX" = yes; then
2147 echo "$ac_t""yes" 1>&6
2148 elif test "$wxUSE_REGEX" = no; then
2149 echo "$ac_t""no" 1>&6
2150 elif test "$wxUSE_REGEX" = sys; then
2151 echo "$ac_t""system version" 1>&6
2152 else
2153 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2154 fi
2155
2156
698dcdb6 2157 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
ab252f7b 2158echo "configure:2159: checking for --with-zlib" >&5
10f2d63a 2159 no_cache=0
698dcdb6 2160 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2161if test "${with_zlib+set}" = set; then
2162 withval="$with_zlib"
698dcdb6 2163
10f2d63a 2164 if test "$withval" = yes; then
b12915c1 2165 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2166 elif test "$withval" = no; then
b12915c1 2167 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2168 elif test "$withval" = sys; then
2169 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2170 else
698dcdb6 2171 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2172 fi
698dcdb6 2173
10f2d63a 2174else
698dcdb6 2175
b12915c1 2176 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2177 if test "x$LINE" != x ; then
2178 eval "DEFAULT_$LINE"
2179 else
2180 no_cache=1
2181 fi
2182
b12915c1 2183 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2184
2185fi
10f2d63a
VZ
2186
2187
b12915c1 2188 eval "$ac_cv_use_zlib"
10f2d63a 2189 if test "$no_cache" != 1; then
b12915c1 2190 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2191 fi
2192
b12915c1 2193 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2194 echo "$ac_t""yes" 1>&6
422107f9 2195 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2196 echo "$ac_t""no" 1>&6
422107f9 2197 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2198 echo "$ac_t""system version" 1>&6
422107f9 2199 else
698dcdb6 2200 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2201 fi
698dcdb6 2202
10f2d63a 2203
698dcdb6 2204 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
ab252f7b 2205echo "configure:2206: checking for --with-odbc" >&5
10f2d63a 2206 no_cache=0
698dcdb6 2207 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2208if test "${with_odbc+set}" = set; then
2209 withval="$with_odbc"
698dcdb6 2210
10f2d63a
VZ
2211 if test "$withval" = yes; then
2212 ac_cv_use_odbc='wxUSE_ODBC=yes'
2213 else
2214 ac_cv_use_odbc='wxUSE_ODBC=no'
2215 fi
698dcdb6 2216
10f2d63a 2217else
698dcdb6 2218
10f2d63a
VZ
2219 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2220 if test "x$LINE" != x ; then
2221 eval "DEFAULT_$LINE"
2222 else
2223 no_cache=1
2224 fi
2225
2226 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2227
2228fi
10f2d63a
VZ
2229
2230
2231 eval "$ac_cv_use_odbc"
2232 if test "$no_cache" != 1; then
2233 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2234 fi
2235
2236 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2237 echo "$ac_t""yes" 1>&6
10f2d63a 2238 else
698dcdb6 2239 echo "$ac_t""no" 1>&6
10f2d63a 2240 fi
698dcdb6
VZ
2241
2242
10f2d63a 2243
698dcdb6
VZ
2244
2245
2246 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
ab252f7b 2247echo "configure:2248: checking for --enable-shared" >&5
10f2d63a
VZ
2248 no_cache=0
2249 # Check whether --enable-shared or --disable-shared was given.
2250if test "${enable_shared+set}" = set; then
2251 enableval="$enable_shared"
698dcdb6 2252
10f2d63a
VZ
2253 if test "$enableval" = yes; then
2254 ac_cv_use_shared='wxUSE_SHARED=yes'
2255 else
2256 ac_cv_use_shared='wxUSE_SHARED=no'
2257 fi
698dcdb6 2258
10f2d63a 2259else
698dcdb6 2260
10f2d63a
VZ
2261 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2262 if test "x$LINE" != x ; then
2263 eval "DEFAULT_$LINE"
2264 else
2265 no_cache=1
2266 fi
2267
2268 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2269
2270fi
10f2d63a
VZ
2271
2272
2273 eval "$ac_cv_use_shared"
2274 if test "$no_cache" != 1; then
2275 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2276 fi
2277
2278 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2279 echo "$ac_t""yes" 1>&6
10f2d63a 2280 else
698dcdb6 2281 echo "$ac_t""no" 1>&6
10f2d63a 2282 fi
698dcdb6 2283
10f2d63a 2284
698dcdb6 2285 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
ab252f7b 2286echo "configure:2287: checking for --enable-burnt_name" >&5
00cf1208
RR
2287 no_cache=0
2288 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2289if test "${enable_burnt_name+set}" = set; then
2290 enableval="$enable_burnt_name"
698dcdb6 2291
00cf1208
RR
2292 if test "$enableval" = yes; then
2293 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2294 else
2295 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2296 fi
698dcdb6 2297
00cf1208 2298else
698dcdb6 2299
00cf1208
RR
2300 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2301 if test "x$LINE" != x ; then
2302 eval "DEFAULT_$LINE"
2303 else
2304 no_cache=1
2305 fi
2306
2307 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
698dcdb6
VZ
2308
2309fi
00cf1208
RR
2310
2311
2312 eval "$ac_cv_use_burnt_name"
2313 if test "$no_cache" != 1; then
2314 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2315 fi
2316
2317 if test "$wxUSE_BURNT_NAME" = yes; then
698dcdb6 2318 echo "$ac_t""yes" 1>&6
00cf1208 2319 else
698dcdb6 2320 echo "$ac_t""no" 1>&6
00cf1208 2321 fi
698dcdb6 2322
00cf1208 2323
698dcdb6 2324 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
ab252f7b 2325echo "configure:2326: checking for --enable-optimise" >&5
10f2d63a
VZ
2326 no_cache=0
2327 # Check whether --enable-optimise or --disable-optimise was given.
2328if test "${enable_optimise+set}" = set; then
2329 enableval="$enable_optimise"
698dcdb6 2330
10f2d63a
VZ
2331 if test "$enableval" = yes; then
2332 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2333 else
2334 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2335 fi
698dcdb6 2336
10f2d63a 2337else
698dcdb6 2338
10f2d63a
VZ
2339 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2340 if test "x$LINE" != x ; then
2341 eval "DEFAULT_$LINE"
2342 else
2343 no_cache=1
2344 fi
2345
2346 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2347
2348fi
10f2d63a
VZ
2349
2350
2351 eval "$ac_cv_use_optimise"
2352 if test "$no_cache" != 1; then
2353 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2354 fi
2355
2356 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2357 echo "$ac_t""yes" 1>&6
10f2d63a 2358 else
698dcdb6 2359 echo "$ac_t""no" 1>&6
10f2d63a 2360 fi
698dcdb6 2361
10f2d63a 2362
698dcdb6 2363 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
ab252f7b 2364echo "configure:2365: checking for --enable-debug" >&5
10f2d63a
VZ
2365 no_cache=0
2366 # Check whether --enable-debug or --disable-debug was given.
2367if test "${enable_debug+set}" = set; then
2368 enableval="$enable_debug"
698dcdb6 2369
10f2d63a
VZ
2370 if test "$enableval" = yes; then
2371 ac_cv_use_debug='wxUSE_DEBUG=yes'
2372 else
2373 ac_cv_use_debug='wxUSE_DEBUG=no'
2374 fi
698dcdb6 2375
10f2d63a 2376else
698dcdb6 2377
10f2d63a
VZ
2378 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2379 if test "x$LINE" != x ; then
2380 eval "DEFAULT_$LINE"
2381 else
2382 no_cache=1
2383 fi
2384
2385 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2386
2387fi
10f2d63a
VZ
2388
2389
2390 eval "$ac_cv_use_debug"
2391 if test "$no_cache" != 1; then
2392 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2393 fi
2394
2395 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2396 echo "$ac_t""yes" 1>&6
10f2d63a 2397 else
698dcdb6 2398 echo "$ac_t""no" 1>&6
10f2d63a 2399 fi
698dcdb6 2400
10f2d63a
VZ
2401
2402if test "$wxUSE_DEBUG" = "yes"; then
2403 DEFAULT_wxUSE_DEBUG_FLAG=yes
2404 DEFAULT_wxUSE_DEBUG_INFO=yes
2405elif test "$wxUSE_DEBUG" = "no"; then
2406 DEFAULT_wxUSE_DEBUG_FLAG=no
2407 DEFAULT_wxUSE_DEBUG_INFO=no
2408fi
2409
698dcdb6
VZ
2410
2411 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
ab252f7b 2412echo "configure:2413: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2413 no_cache=0
2414 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2415if test "${enable_debug_flag+set}" = set; then
2416 enableval="$enable_debug_flag"
698dcdb6 2417
10f2d63a
VZ
2418 if test "$enableval" = yes; then
2419 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2420 else
2421 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2422 fi
698dcdb6 2423
10f2d63a 2424else
698dcdb6 2425
10f2d63a
VZ
2426 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2427 if test "x$LINE" != x ; then
2428 eval "DEFAULT_$LINE"
2429 else
2430 no_cache=1
2431 fi
2432
2433 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2434
2435fi
10f2d63a
VZ
2436
2437
2438 eval "$ac_cv_use_debug_flag"
2439 if test "$no_cache" != 1; then
2440 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2441 fi
2442
2443 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2444 echo "$ac_t""yes" 1>&6
10f2d63a 2445 else
698dcdb6 2446 echo "$ac_t""no" 1>&6
10f2d63a 2447 fi
698dcdb6 2448
10f2d63a 2449
698dcdb6 2450 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
ab252f7b 2451echo "configure:2452: checking for --enable-debug_info" >&5
10f2d63a
VZ
2452 no_cache=0
2453 # Check whether --enable-debug_info or --disable-debug_info was given.
2454if test "${enable_debug_info+set}" = set; then
2455 enableval="$enable_debug_info"
698dcdb6 2456
10f2d63a
VZ
2457 if test "$enableval" = yes; then
2458 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2459 else
2460 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2461 fi
698dcdb6 2462
10f2d63a 2463else
698dcdb6 2464
10f2d63a
VZ
2465 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2466 if test "x$LINE" != x ; then
2467 eval "DEFAULT_$LINE"
2468 else
2469 no_cache=1
2470 fi
2471
2472 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2473
2474fi
10f2d63a
VZ
2475
2476
2477 eval "$ac_cv_use_debug_info"
2478 if test "$no_cache" != 1; then
2479 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2480 fi
2481
2482 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2483 echo "$ac_t""yes" 1>&6
10f2d63a 2484 else
698dcdb6 2485 echo "$ac_t""no" 1>&6
10f2d63a 2486 fi
698dcdb6 2487
10f2d63a 2488
698dcdb6 2489 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
ab252f7b 2490echo "configure:2491: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2491 no_cache=0
2492 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2493if test "${enable_debug_gdb+set}" = set; then
2494 enableval="$enable_debug_gdb"
698dcdb6 2495
10f2d63a
VZ
2496 if test "$enableval" = yes; then
2497 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2498 else
2499 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2500 fi
698dcdb6 2501
10f2d63a 2502else
698dcdb6 2503
10f2d63a
VZ
2504 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2505 if test "x$LINE" != x ; then
2506 eval "DEFAULT_$LINE"
2507 else
2508 no_cache=1
2509 fi
2510
2511 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2512
2513fi
10f2d63a
VZ
2514
2515
2516 eval "$ac_cv_use_debug_gdb"
2517 if test "$no_cache" != 1; then
2518 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2519 fi
2520
2521 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2522 echo "$ac_t""yes" 1>&6
10f2d63a 2523 else
698dcdb6 2524 echo "$ac_t""no" 1>&6
10f2d63a 2525 fi
698dcdb6 2526
10f2d63a 2527
698dcdb6 2528 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
ab252f7b 2529echo "configure:2530: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2530 no_cache=0
2531 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2532if test "${enable_debug_cntxt+set}" = set; then
2533 enableval="$enable_debug_cntxt"
698dcdb6 2534
10f2d63a
VZ
2535 if test "$enableval" = yes; then
2536 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2537 else
2538 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2539 fi
698dcdb6 2540
10f2d63a 2541else
698dcdb6 2542
10f2d63a
VZ
2543 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2544 if test "x$LINE" != x ; then
2545 eval "DEFAULT_$LINE"
2546 else
2547 no_cache=1
2548 fi
2549
2550 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2551
2552fi
10f2d63a
VZ
2553
2554
2555 eval "$ac_cv_use_debug_cntxt"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2561 echo "$ac_t""yes" 1>&6
10f2d63a 2562 else
698dcdb6 2563 echo "$ac_t""no" 1>&6
10f2d63a 2564 fi
698dcdb6 2565
10f2d63a 2566
698dcdb6 2567 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
ab252f7b 2568echo "configure:2569: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2569 no_cache=0
2570 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2571if test "${enable_mem_tracing+set}" = set; then
2572 enableval="$enable_mem_tracing"
698dcdb6 2573
10f2d63a
VZ
2574 if test "$enableval" = yes; then
2575 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2576 else
2577 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2578 fi
698dcdb6 2579
10f2d63a 2580else
698dcdb6 2581
10f2d63a
VZ
2582 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2583 if test "x$LINE" != x ; then
2584 eval "DEFAULT_$LINE"
2585 else
2586 no_cache=1
2587 fi
2588
2589 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2590
2591fi
10f2d63a
VZ
2592
2593
2594 eval "$ac_cv_use_mem_tracing"
2595 if test "$no_cache" != 1; then
2596 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2597 fi
2598
2599 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2600 echo "$ac_t""yes" 1>&6
10f2d63a 2601 else
698dcdb6 2602 echo "$ac_t""no" 1>&6
10f2d63a 2603 fi
698dcdb6 2604
10f2d63a 2605
698dcdb6 2606 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
ab252f7b 2607echo "configure:2608: checking for --enable-profile" >&5
10f2d63a
VZ
2608 no_cache=0
2609 # Check whether --enable-profile or --disable-profile was given.
2610if test "${enable_profile+set}" = set; then
2611 enableval="$enable_profile"
698dcdb6 2612
10f2d63a
VZ
2613 if test "$enableval" = yes; then
2614 ac_cv_use_profile='wxUSE_PROFILE=yes'
2615 else
2616 ac_cv_use_profile='wxUSE_PROFILE=no'
2617 fi
698dcdb6 2618
10f2d63a 2619else
698dcdb6 2620
10f2d63a
VZ
2621 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2622 if test "x$LINE" != x ; then
2623 eval "DEFAULT_$LINE"
2624 else
2625 no_cache=1
2626 fi
2627
2628 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2629
2630fi
10f2d63a
VZ
2631
2632
2633 eval "$ac_cv_use_profile"
2634 if test "$no_cache" != 1; then
2635 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2636 fi
2637
2638 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2639 echo "$ac_t""yes" 1>&6
10f2d63a 2640 else
698dcdb6 2641 echo "$ac_t""no" 1>&6
10f2d63a 2642 fi
698dcdb6 2643
10f2d63a 2644
698dcdb6 2645 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
ab252f7b 2646echo "configure:2647: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2647 no_cache=0
2648 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2649if test "${enable_no_rtti+set}" = set; then
2650 enableval="$enable_no_rtti"
698dcdb6 2651
10f2d63a
VZ
2652 if test "$enableval" = yes; then
2653 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2654 else
2655 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2656 fi
698dcdb6 2657
10f2d63a 2658else
698dcdb6 2659
10f2d63a
VZ
2660 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2661 if test "x$LINE" != x ; then
2662 eval "DEFAULT_$LINE"
2663 else
2664 no_cache=1
2665 fi
2666
2667 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2668
2669fi
10f2d63a
VZ
2670
2671
2672 eval "$ac_cv_use_no_rtti"
2673 if test "$no_cache" != 1; then
2674 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2675 fi
2676
2677 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2678 echo "$ac_t""yes" 1>&6
10f2d63a 2679 else
698dcdb6 2680 echo "$ac_t""no" 1>&6
10f2d63a 2681 fi
698dcdb6 2682
10f2d63a 2683
698dcdb6 2684 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
ab252f7b 2685echo "configure:2686: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2686 no_cache=0
2687 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2688if test "${enable_no_exceptions+set}" = set; then
2689 enableval="$enable_no_exceptions"
698dcdb6 2690
10f2d63a
VZ
2691 if test "$enableval" = yes; then
2692 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2693 else
2694 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2695 fi
698dcdb6 2696
10f2d63a 2697else
698dcdb6 2698
10f2d63a
VZ
2699 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2700 if test "x$LINE" != x ; then
2701 eval "DEFAULT_$LINE"
2702 else
2703 no_cache=1
2704 fi
2705
2706 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2707
2708fi
10f2d63a
VZ
2709
2710
2711 eval "$ac_cv_use_no_exceptions"
2712 if test "$no_cache" != 1; then
2713 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2714 fi
2715
2716 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2717 echo "$ac_t""yes" 1>&6
10f2d63a 2718 else
698dcdb6 2719 echo "$ac_t""no" 1>&6
10f2d63a 2720 fi
698dcdb6 2721
10f2d63a 2722
698dcdb6 2723 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
ab252f7b 2724echo "configure:2725: checking for --enable-permissive" >&5
10f2d63a
VZ
2725 no_cache=0
2726 # Check whether --enable-permissive or --disable-permissive was given.
2727if test "${enable_permissive+set}" = set; then
2728 enableval="$enable_permissive"
698dcdb6 2729
10f2d63a
VZ
2730 if test "$enableval" = yes; then
2731 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2732 else
2733 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2734 fi
698dcdb6 2735
10f2d63a 2736else
698dcdb6 2737
10f2d63a
VZ
2738 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2739 if test "x$LINE" != x ; then
2740 eval "DEFAULT_$LINE"
2741 else
2742 no_cache=1
2743 fi
2744
2745 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2746
2747fi
10f2d63a
VZ
2748
2749
2750 eval "$ac_cv_use_permissive"
2751 if test "$no_cache" != 1; then
2752 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2753 fi
2754
2755 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2756 echo "$ac_t""yes" 1>&6
10f2d63a 2757 else
698dcdb6 2758 echo "$ac_t""no" 1>&6
10f2d63a 2759 fi
698dcdb6 2760
10f2d63a 2761
698dcdb6 2762 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
ab252f7b 2763echo "configure:2764: checking for --enable-no_deps" >&5
10f2d63a
VZ
2764 no_cache=0
2765 # Check whether --enable-no_deps or --disable-no_deps was given.
2766if test "${enable_no_deps+set}" = set; then
2767 enableval="$enable_no_deps"
698dcdb6 2768
10f2d63a
VZ
2769 if test "$enableval" = yes; then
2770 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2771 else
2772 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2773 fi
698dcdb6 2774
10f2d63a 2775else
698dcdb6 2776
10f2d63a
VZ
2777 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2778 if test "x$LINE" != x ; then
2779 eval "DEFAULT_$LINE"
2780 else
2781 no_cache=1
2782 fi
2783
2784 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2785
2786fi
10f2d63a
VZ
2787
2788
2789 eval "$ac_cv_use_no_deps"
2790 if test "$no_cache" != 1; then
2791 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2792 fi
2793
2794 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2795 echo "$ac_t""yes" 1>&6
10f2d63a 2796 else
698dcdb6 2797 echo "$ac_t""no" 1>&6
10f2d63a 2798 fi
698dcdb6
VZ
2799
2800
10f2d63a 2801
54276ccf 2802 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
ab252f7b 2803echo "configure:2804: checking for --enable-compat20" >&5
54276ccf
VZ
2804 no_cache=0
2805 # Check whether --enable-compat20 or --disable-compat20 was given.
2806if test "${enable_compat20+set}" = set; then
2807 enableval="$enable_compat20"
2808
2809 if test "$enableval" = yes; then
2810 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2811 else
2812 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2813 fi
2814
2815else
2816
2817 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2818 if test "x$LINE" != x ; then
2819 eval "DEFAULT_$LINE"
2820 else
2821 no_cache=1
2822 fi
2823
2824 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2825
2826fi
2827
2828
2829 eval "$ac_cv_use_compat20"
2830 if test "$no_cache" != 1; then
2831 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2832 fi
2833
2834 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2835 echo "$ac_t""yes" 1>&6
2836 else
2837 echo "$ac_t""no" 1>&6
2838 fi
2839
2840
2841 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
ab252f7b 2842echo "configure:2843: checking for --enable-compat22" >&5
54276ccf
VZ
2843 no_cache=0
2844 # Check whether --enable-compat22 or --disable-compat22 was given.
2845if test "${enable_compat22+set}" = set; then
2846 enableval="$enable_compat22"
2847
2848 if test "$enableval" = yes; then
2849 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2850 else
2851 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2852 fi
2853
2854else
2855
2856 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2857 if test "x$LINE" != x ; then
2858 eval "DEFAULT_$LINE"
2859 else
2860 no_cache=1
2861 fi
2862
2863 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2864
2865fi
2866
2867
2868 eval "$ac_cv_use_compat22"
2869 if test "$no_cache" != 1; then
2870 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2871 fi
2872
2873 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2874 echo "$ac_t""yes" 1>&6
2875 else
2876 echo "$ac_t""no" 1>&6
2877 fi
2878
2879
2880
698dcdb6
VZ
2881
2882 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
ab252f7b 2883echo "configure:2884: checking for --enable-intl" >&5
10f2d63a
VZ
2884 no_cache=0
2885 # Check whether --enable-intl or --disable-intl was given.
2886if test "${enable_intl+set}" = set; then
2887 enableval="$enable_intl"
698dcdb6 2888
10f2d63a
VZ
2889 if test "$enableval" = yes; then
2890 ac_cv_use_intl='wxUSE_INTL=yes'
2891 else
2892 ac_cv_use_intl='wxUSE_INTL=no'
2893 fi
698dcdb6 2894
10f2d63a 2895else
698dcdb6 2896
10f2d63a
VZ
2897 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2898 if test "x$LINE" != x ; then
2899 eval "DEFAULT_$LINE"
2900 else
2901 no_cache=1
2902 fi
2903
2904 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2905
2906fi
10f2d63a
VZ
2907
2908
2909 eval "$ac_cv_use_intl"
2910 if test "$no_cache" != 1; then
2911 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2912 fi
2913
2914 if test "$wxUSE_INTL" = yes; then
698dcdb6 2915 echo "$ac_t""yes" 1>&6
10f2d63a 2916 else
698dcdb6 2917 echo "$ac_t""no" 1>&6
10f2d63a 2918 fi
698dcdb6 2919
10f2d63a 2920
698dcdb6 2921 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
ab252f7b 2922echo "configure:2923: checking for --enable-config" >&5
10f2d63a
VZ
2923 no_cache=0
2924 # Check whether --enable-config or --disable-config was given.
2925if test "${enable_config+set}" = set; then
2926 enableval="$enable_config"
698dcdb6 2927
10f2d63a
VZ
2928 if test "$enableval" = yes; then
2929 ac_cv_use_config='wxUSE_CONFIG=yes'
2930 else
2931 ac_cv_use_config='wxUSE_CONFIG=no'
2932 fi
698dcdb6 2933
10f2d63a 2934else
698dcdb6 2935
10f2d63a
VZ
2936 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2937 if test "x$LINE" != x ; then
2938 eval "DEFAULT_$LINE"
2939 else
2940 no_cache=1
2941 fi
2942
2943 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
2944
2945fi
10f2d63a
VZ
2946
2947
2948 eval "$ac_cv_use_config"
2949 if test "$no_cache" != 1; then
2950 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2951 fi
2952
2953 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 2954 echo "$ac_t""yes" 1>&6
10f2d63a 2955 else
698dcdb6 2956 echo "$ac_t""no" 1>&6
10f2d63a 2957 fi
698dcdb6
VZ
2958
2959
b12915c1 2960
698dcdb6 2961 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
ab252f7b 2962echo "configure:2963: checking for --enable-sockets" >&5
10f2d63a
VZ
2963 no_cache=0
2964 # Check whether --enable-sockets or --disable-sockets was given.
2965if test "${enable_sockets+set}" = set; then
2966 enableval="$enable_sockets"
698dcdb6 2967
10f2d63a
VZ
2968 if test "$enableval" = yes; then
2969 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2970 else
2971 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2972 fi
698dcdb6 2973
10f2d63a 2974else
698dcdb6 2975
10f2d63a
VZ
2976 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2977 if test "x$LINE" != x ; then
2978 eval "DEFAULT_$LINE"
2979 else
2980 no_cache=1
2981 fi
2982
2983 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
2984
2985fi
10f2d63a
VZ
2986
2987
2988 eval "$ac_cv_use_sockets"
2989 if test "$no_cache" != 1; then
2990 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2991 fi
2992
2993 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 2994 echo "$ac_t""yes" 1>&6
10f2d63a 2995 else
698dcdb6 2996 echo "$ac_t""no" 1>&6
10f2d63a 2997 fi
698dcdb6 2998
b12915c1 2999
698dcdb6
VZ
3000
3001 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
ab252f7b 3002echo "configure:3003: checking for --enable-ipc" >&5
10f2d63a 3003 no_cache=0
eb4efbdc
VZ
3004 # Check whether --enable-ipc or --disable-ipc was given.
3005if test "${enable_ipc+set}" = set; then
3006 enableval="$enable_ipc"
698dcdb6 3007
10f2d63a 3008 if test "$enableval" = yes; then
eb4efbdc 3009 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3010 else
eb4efbdc 3011 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3012 fi
698dcdb6 3013
10f2d63a 3014else
698dcdb6 3015
eb4efbdc 3016 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3017 if test "x$LINE" != x ; then
3018 eval "DEFAULT_$LINE"
3019 else
3020 no_cache=1
3021 fi
3022
eb4efbdc 3023 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3024
3025fi
10f2d63a
VZ
3026
3027
eb4efbdc 3028 eval "$ac_cv_use_ipc"
10f2d63a 3029 if test "$no_cache" != 1; then
eb4efbdc 3030 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3031 fi
3032
eb4efbdc 3033 if test "$wxUSE_IPC" = yes; then
698dcdb6 3034 echo "$ac_t""yes" 1>&6
10f2d63a 3035 else
698dcdb6 3036 echo "$ac_t""no" 1>&6
10f2d63a 3037 fi
698dcdb6
VZ
3038
3039
eb4efbdc 3040
1e6feb95 3041 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
ab252f7b 3042echo "configure:3043: checking for --enable-cmdline" >&5
1e6feb95
VZ
3043 no_cache=0
3044 # Check whether --enable-cmdline or --disable-cmdline was given.
3045if test "${enable_cmdline+set}" = set; then
3046 enableval="$enable_cmdline"
3047
3048 if test "$enableval" = yes; then
3049 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3050 else
3051 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3052 fi
3053
3054else
3055
3056 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3057 if test "x$LINE" != x ; then
3058 eval "DEFAULT_$LINE"
3059 else
3060 no_cache=1
3061 fi
3062
3063 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3064
3065fi
3066
3067
3068 eval "$ac_cv_use_cmdline"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3074 echo "$ac_t""yes" 1>&6
3075 else
3076 echo "$ac_t""no" 1>&6
3077 fi
3078
3079
3080 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
ab252f7b 3081echo "configure:3082: checking for --enable-datetime" >&5
1e6feb95
VZ
3082 no_cache=0
3083 # Check whether --enable-datetime or --disable-datetime was given.
3084if test "${enable_datetime+set}" = set; then
3085 enableval="$enable_datetime"
3086
3087 if test "$enableval" = yes; then
3088 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3089 else
3090 ac_cv_use_datetime='wxUSE_DATETIME=no'
3091 fi
3092
3093else
3094
3095 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3103
3104fi
3105
3106
3107 eval "$ac_cv_use_datetime"
3108 if test "$no_cache" != 1; then
3109 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3110 fi
3111
3112 if test "$wxUSE_DATETIME" = yes; then
3113 echo "$ac_t""yes" 1>&6
3114 else
3115 echo "$ac_t""no" 1>&6
3116 fi
3117
3118
3119 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
ab252f7b 3120echo "configure:3121: checking for --enable-timedate" >&5
1e6feb95
VZ
3121 no_cache=0
3122 # Check whether --enable-timedate or --disable-timedate was given.
3123if test "${enable_timedate+set}" = set; then
3124 enableval="$enable_timedate"
3125
3126 if test "$enableval" = yes; then
3127 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3128 else
3129 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3130 fi
3131
3132else
3133
3134 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3135 if test "x$LINE" != x ; then
3136 eval "DEFAULT_$LINE"
3137 else
3138 no_cache=1
3139 fi
3140
3141 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3142
3143fi
3144
3145
3146 eval "$ac_cv_use_timedate"
3147 if test "$no_cache" != 1; then
3148 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3149 fi
3150
3151 if test "$wxUSE_TIMEDATE" = yes; then
3152 echo "$ac_t""yes" 1>&6
3153 else
3154 echo "$ac_t""no" 1>&6
3155 fi
3156
3157
3158 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
ab252f7b 3159echo "configure:3160: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3160 no_cache=0
3161 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3162if test "${enable_stopwatch+set}" = set; then
3163 enableval="$enable_stopwatch"
3164
3165 if test "$enableval" = yes; then
3166 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3167 else
3168 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3169 fi
3170
3171else
3172
3173 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3181
3182fi
3183
3184
3185 eval "$ac_cv_use_stopwatch"
3186 if test "$no_cache" != 1; then
3187 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3188 fi
3189
3190 if test "$wxUSE_STOPWATCH" = yes; then
3191 echo "$ac_t""yes" 1>&6
3192 else
3193 echo "$ac_t""no" 1>&6
3194 fi
3195
3196
698dcdb6 3197 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
ab252f7b 3198echo "configure:3199: checking for --enable-dialupman" >&5
10f2d63a 3199 no_cache=0
eb4efbdc
VZ
3200 # Check whether --enable-dialupman or --disable-dialupman was given.
3201if test "${enable_dialupman+set}" = set; then
3202 enableval="$enable_dialupman"
698dcdb6 3203
10f2d63a 3204 if test "$enableval" = yes; then
eb4efbdc 3205 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3206 else
eb4efbdc 3207 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3208 fi
698dcdb6 3209
10f2d63a 3210else
698dcdb6 3211
eb4efbdc 3212 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
eb4efbdc 3219 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3220
3221fi
10f2d63a
VZ
3222
3223
eb4efbdc 3224 eval "$ac_cv_use_dialupman"
10f2d63a 3225 if test "$no_cache" != 1; then
eb4efbdc 3226 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3227 fi
3228
eb4efbdc 3229 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3230 echo "$ac_t""yes" 1>&6
10f2d63a 3231 else
698dcdb6 3232 echo "$ac_t""no" 1>&6
10f2d63a 3233 fi
698dcdb6 3234
10f2d63a 3235
698dcdb6 3236 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
ab252f7b 3237echo "configure:3238: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3238 no_cache=0
3239 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3240if test "${enable_apple_ieee+set}" = set; then
3241 enableval="$enable_apple_ieee"
698dcdb6 3242
10f2d63a
VZ
3243 if test "$enableval" = yes; then
3244 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3245 else
3246 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3247 fi
698dcdb6 3248
10f2d63a 3249else
698dcdb6 3250
10f2d63a
VZ
3251 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3259
3260fi
10f2d63a
VZ
3261
3262
3263 eval "$ac_cv_use_apple_ieee"
3264 if test "$no_cache" != 1; then
3265 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3266 fi
3267
3268 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3269 echo "$ac_t""yes" 1>&6
10f2d63a 3270 else
698dcdb6 3271 echo "$ac_t""no" 1>&6
10f2d63a 3272 fi
698dcdb6 3273
10f2d63a 3274
1e6feb95 3275 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
ab252f7b 3276echo "configure:3277: checking for --enable-timer" >&5
10f2d63a 3277 no_cache=0
1e6feb95
VZ
3278 # Check whether --enable-timer or --disable-timer was given.
3279if test "${enable_timer+set}" = set; then
3280 enableval="$enable_timer"
698dcdb6 3281
10f2d63a 3282 if test "$enableval" = yes; then
1e6feb95 3283 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3284 else
1e6feb95 3285 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3286 fi
698dcdb6 3287
10f2d63a 3288else
698dcdb6 3289
1e6feb95 3290 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3291 if test "x$LINE" != x ; then
3292 eval "DEFAULT_$LINE"
3293 else
3294 no_cache=1
3295 fi
3296
1e6feb95 3297 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3298
3299fi
10f2d63a
VZ
3300
3301
1e6feb95 3302 eval "$ac_cv_use_timer"
10f2d63a 3303 if test "$no_cache" != 1; then
1e6feb95 3304 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3305 fi
3306
1e6feb95 3307 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3308 echo "$ac_t""yes" 1>&6
10f2d63a 3309 else
698dcdb6 3310 echo "$ac_t""no" 1>&6
10f2d63a 3311 fi
698dcdb6 3312
10f2d63a 3313
698dcdb6 3314 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
ab252f7b 3315echo "configure:3316: checking for --enable-wave" >&5
10f2d63a
VZ
3316 no_cache=0
3317 # Check whether --enable-wave or --disable-wave was given.
3318if test "${enable_wave+set}" = set; then
3319 enableval="$enable_wave"
698dcdb6 3320
10f2d63a
VZ
3321 if test "$enableval" = yes; then
3322 ac_cv_use_wave='wxUSE_WAVE=yes'
3323 else
3324 ac_cv_use_wave='wxUSE_WAVE=no'
3325 fi
698dcdb6 3326
10f2d63a 3327else
698dcdb6 3328
10f2d63a
VZ
3329 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3330 if test "x$LINE" != x ; then
3331 eval "DEFAULT_$LINE"
3332 else
3333 no_cache=1
3334 fi
3335
3336 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3337
3338fi
10f2d63a
VZ
3339
3340
3341 eval "$ac_cv_use_wave"
3342 if test "$no_cache" != 1; then
3343 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3344 fi
3345
3346 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3347 echo "$ac_t""yes" 1>&6
10f2d63a 3348 else
698dcdb6 3349 echo "$ac_t""no" 1>&6
10f2d63a 3350 fi
698dcdb6 3351
10f2d63a 3352
698dcdb6 3353 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
ab252f7b 3354echo "configure:3355: checking for --enable-fraction" >&5
10f2d63a
VZ
3355 no_cache=0
3356 # Check whether --enable-fraction or --disable-fraction was given.
3357if test "${enable_fraction+set}" = set; then
3358 enableval="$enable_fraction"
698dcdb6 3359
10f2d63a
VZ
3360 if test "$enableval" = yes; then
3361 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3362 else
3363 ac_cv_use_fraction='wxUSE_FRACTION=no'
3364 fi
698dcdb6 3365
10f2d63a 3366else
698dcdb6 3367
10f2d63a
VZ
3368 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3369 if test "x$LINE" != x ; then
3370 eval "DEFAULT_$LINE"
3371 else
3372 no_cache=1
3373 fi
3374
3375 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3376
3377fi
10f2d63a
VZ
3378
3379
3380 eval "$ac_cv_use_fraction"
3381 if test "$no_cache" != 1; then
3382 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3383 fi
3384
3385 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3386 echo "$ac_t""yes" 1>&6
10f2d63a 3387 else
698dcdb6 3388 echo "$ac_t""no" 1>&6
10f2d63a 3389 fi
698dcdb6 3390
10f2d63a 3391
698dcdb6 3392 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
ab252f7b 3393echo "configure:3394: checking for --enable-dynlib" >&5
10f2d63a
VZ
3394 no_cache=0
3395 # Check whether --enable-dynlib or --disable-dynlib was given.
3396if test "${enable_dynlib+set}" = set; then
3397 enableval="$enable_dynlib"
698dcdb6 3398
10f2d63a
VZ
3399 if test "$enableval" = yes; then
3400 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3401 else
3402 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3403 fi
698dcdb6 3404
10f2d63a 3405else
698dcdb6 3406
10f2d63a
VZ
3407 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3415
3416fi
10f2d63a
VZ
3417
3418
3419 eval "$ac_cv_use_dynlib"
3420 if test "$no_cache" != 1; then
3421 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3422 fi
3423
3424 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3425 echo "$ac_t""yes" 1>&6
10f2d63a 3426 else
698dcdb6 3427 echo "$ac_t""no" 1>&6
10f2d63a 3428 fi
698dcdb6 3429
10f2d63a 3430
698dcdb6 3431 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
ab252f7b 3432echo "configure:3433: checking for --enable-longlong" >&5
10f2d63a
VZ
3433 no_cache=0
3434 # Check whether --enable-longlong or --disable-longlong was given.
3435if test "${enable_longlong+set}" = set; then
3436 enableval="$enable_longlong"
698dcdb6 3437
10f2d63a
VZ
3438 if test "$enableval" = yes; then
3439 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3440 else
3441 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3442 fi
698dcdb6 3443
10f2d63a 3444else
698dcdb6 3445
10f2d63a
VZ
3446 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3447 if test "x$LINE" != x ; then
3448 eval "DEFAULT_$LINE"
3449 else
3450 no_cache=1
3451 fi
3452
3453 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3454
3455fi
10f2d63a
VZ
3456
3457
3458 eval "$ac_cv_use_longlong"
3459 if test "$no_cache" != 1; then
3460 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3461 fi
3462
3463 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3464 echo "$ac_t""yes" 1>&6
10f2d63a 3465 else
698dcdb6 3466 echo "$ac_t""no" 1>&6
10f2d63a 3467 fi
698dcdb6 3468
10f2d63a 3469
698dcdb6 3470 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
ab252f7b 3471echo "configure:3472: checking for --enable-geometry" >&5
e8f65ba6
RR
3472 no_cache=0
3473 # Check whether --enable-geometry or --disable-geometry was given.
3474if test "${enable_geometry+set}" = set; then
3475 enableval="$enable_geometry"
698dcdb6 3476
e8f65ba6
RR
3477 if test "$enableval" = yes; then
3478 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3479 else
3480 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3481 fi
698dcdb6 3482
e8f65ba6 3483else
698dcdb6 3484
e8f65ba6
RR
3485 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3486 if test "x$LINE" != x ; then
3487 eval "DEFAULT_$LINE"
3488 else
3489 no_cache=1
3490 fi
3491
3492 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3493
3494fi
e8f65ba6
RR
3495
3496
3497 eval "$ac_cv_use_geometry"
3498 if test "$no_cache" != 1; then
3499 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3500 fi
3501
3502 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3503 echo "$ac_t""yes" 1>&6
e8f65ba6 3504 else
698dcdb6 3505 echo "$ac_t""no" 1>&6
e8f65ba6 3506 fi
698dcdb6 3507
e8f65ba6 3508
698dcdb6 3509 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
ab252f7b 3510echo "configure:3511: checking for --enable-log" >&5
10f2d63a
VZ
3511 no_cache=0
3512 # Check whether --enable-log or --disable-log was given.
3513if test "${enable_log+set}" = set; then
3514 enableval="$enable_log"
698dcdb6 3515
10f2d63a
VZ
3516 if test "$enableval" = yes; then
3517 ac_cv_use_log='wxUSE_LOG=yes'
3518 else
3519 ac_cv_use_log='wxUSE_LOG=no'
3520 fi
698dcdb6 3521
10f2d63a 3522else
698dcdb6 3523
10f2d63a
VZ
3524 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3525 if test "x$LINE" != x ; then
3526 eval "DEFAULT_$LINE"
3527 else
3528 no_cache=1
3529 fi
3530
3531 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3532
3533fi
10f2d63a
VZ
3534
3535
3536 eval "$ac_cv_use_log"
3537 if test "$no_cache" != 1; then
3538 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3539 fi
3540
3541 if test "$wxUSE_LOG" = yes; then
698dcdb6 3542 echo "$ac_t""yes" 1>&6
10f2d63a 3543 else
698dcdb6 3544 echo "$ac_t""no" 1>&6
10f2d63a 3545 fi
698dcdb6 3546
10f2d63a 3547
698dcdb6 3548 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
ab252f7b 3549echo "configure:3550: checking for --enable-streams" >&5
10f2d63a
VZ
3550 no_cache=0
3551 # Check whether --enable-streams or --disable-streams was given.
3552if test "${enable_streams+set}" = set; then
3553 enableval="$enable_streams"
698dcdb6 3554
10f2d63a
VZ
3555 if test "$enableval" = yes; then
3556 ac_cv_use_streams='wxUSE_STREAMS=yes'
3557 else
3558 ac_cv_use_streams='wxUSE_STREAMS=no'
3559 fi
698dcdb6 3560
10f2d63a 3561else
698dcdb6 3562
10f2d63a
VZ
3563 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3571
3572fi
10f2d63a
VZ
3573
3574
3575 eval "$ac_cv_use_streams"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3581 echo "$ac_t""yes" 1>&6
10f2d63a 3582 else
698dcdb6 3583 echo "$ac_t""no" 1>&6
10f2d63a 3584 fi
698dcdb6 3585
10f2d63a 3586
698dcdb6 3587 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
ab252f7b 3588echo "configure:3589: checking for --enable-file" >&5
10f2d63a
VZ
3589 no_cache=0
3590 # Check whether --enable-file or --disable-file was given.
3591if test "${enable_file+set}" = set; then
3592 enableval="$enable_file"
698dcdb6 3593
10f2d63a
VZ
3594 if test "$enableval" = yes; then
3595 ac_cv_use_file='wxUSE_FILE=yes'
3596 else
3597 ac_cv_use_file='wxUSE_FILE=no'
3598 fi
698dcdb6 3599
10f2d63a 3600else
698dcdb6 3601
10f2d63a
VZ
3602 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3603 if test "x$LINE" != x ; then
3604 eval "DEFAULT_$LINE"
3605 else
3606 no_cache=1
3607 fi
3608
3609 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3610
3611fi
10f2d63a
VZ
3612
3613
3614 eval "$ac_cv_use_file"
3615 if test "$no_cache" != 1; then
3616 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3617 fi
3618
3619 if test "$wxUSE_FILE" = yes; then
698dcdb6 3620 echo "$ac_t""yes" 1>&6
10f2d63a 3621 else
698dcdb6 3622 echo "$ac_t""no" 1>&6
10f2d63a 3623 fi
698dcdb6 3624
10f2d63a 3625
1e6feb95 3626 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
ab252f7b 3627echo "configure:3628: checking for --enable-ffile" >&5
10f2d63a 3628 no_cache=0
1e6feb95
VZ
3629 # Check whether --enable-ffile or --disable-ffile was given.
3630if test "${enable_ffile+set}" = set; then
3631 enableval="$enable_ffile"
698dcdb6 3632
10f2d63a 3633 if test "$enableval" = yes; then
1e6feb95 3634 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3635 else
1e6feb95 3636 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3637 fi
698dcdb6 3638
10f2d63a 3639else
698dcdb6 3640
1e6feb95 3641 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3642 if test "x$LINE" != x ; then
3643 eval "DEFAULT_$LINE"
3644 else
3645 no_cache=1
3646 fi
3647
1e6feb95 3648 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3649
3650fi
10f2d63a
VZ
3651
3652
1e6feb95 3653 eval "$ac_cv_use_ffile"
10f2d63a 3654 if test "$no_cache" != 1; then
1e6feb95 3655 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3656 fi
3657
1e6feb95 3658 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3659 echo "$ac_t""yes" 1>&6
10f2d63a 3660 else
698dcdb6 3661 echo "$ac_t""no" 1>&6
10f2d63a 3662 fi
698dcdb6 3663
10f2d63a 3664
1e6feb95 3665 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
ab252f7b 3666echo "configure:3667: checking for --enable-textfile" >&5
10f2d63a 3667 no_cache=0
1e6feb95
VZ
3668 # Check whether --enable-textfile or --disable-textfile was given.
3669if test "${enable_textfile+set}" = set; then
3670 enableval="$enable_textfile"
698dcdb6 3671
10f2d63a 3672 if test "$enableval" = yes; then
1e6feb95 3673 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3674 else
1e6feb95 3675 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3676 fi
698dcdb6 3677
10f2d63a 3678else
698dcdb6 3679
1e6feb95 3680 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3681 if test "x$LINE" != x ; then
3682 eval "DEFAULT_$LINE"
3683 else
3684 no_cache=1
3685 fi
3686
1e6feb95 3687 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3688
3689fi
10f2d63a
VZ
3690
3691
1e6feb95 3692 eval "$ac_cv_use_textfile"
10f2d63a 3693 if test "$no_cache" != 1; then
1e6feb95 3694 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3695 fi
3696
1e6feb95 3697 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3698 echo "$ac_t""yes" 1>&6
10f2d63a 3699 else
698dcdb6 3700 echo "$ac_t""no" 1>&6
10f2d63a 3701 fi
698dcdb6 3702
10f2d63a 3703
1e6feb95 3704 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
ab252f7b 3705echo "configure:3706: checking for --enable-fontmap" >&5
10f2d63a 3706 no_cache=0
1e6feb95
VZ
3707 # Check whether --enable-fontmap or --disable-fontmap was given.
3708if test "${enable_fontmap+set}" = set; then
3709 enableval="$enable_fontmap"
698dcdb6 3710
10f2d63a 3711 if test "$enableval" = yes; then
1e6feb95 3712 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3713 else
1e6feb95 3714 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3715 fi
698dcdb6 3716
10f2d63a 3717else
698dcdb6 3718
1e6feb95 3719 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
1e6feb95 3726 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3727
3728fi
10f2d63a
VZ
3729
3730
1e6feb95 3731 eval "$ac_cv_use_fontmap"
10f2d63a 3732 if test "$no_cache" != 1; then
1e6feb95 3733 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3734 fi
3735
1e6feb95 3736 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3737 echo "$ac_t""yes" 1>&6
10f2d63a 3738 else
698dcdb6 3739 echo "$ac_t""no" 1>&6
10f2d63a 3740 fi
698dcdb6 3741
10f2d63a 3742
1e6feb95 3743 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
ab252f7b 3744echo "configure:3745: checking for --enable-unicode" >&5
10f2d63a 3745 no_cache=0
1e6feb95
VZ
3746 # Check whether --enable-unicode or --disable-unicode was given.
3747if test "${enable_unicode+set}" = set; then
3748 enableval="$enable_unicode"
3749
3750 if test "$enableval" = yes; then
3751 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3752 else
3753 ac_cv_use_unicode='wxUSE_UNICODE=no'
3754 fi
3755
3756else
3757
3758 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3759 if test "x$LINE" != x ; then
3760 eval "DEFAULT_$LINE"
3761 else
3762 no_cache=1
3763 fi
3764
3765 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3766
3767fi
3768
3769
3770 eval "$ac_cv_use_unicode"
3771 if test "$no_cache" != 1; then
3772 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3773 fi
3774
3775 if test "$wxUSE_UNICODE" = yes; then
3776 echo "$ac_t""yes" 1>&6
3777 else
3778 echo "$ac_t""no" 1>&6
3779 fi
3780
3781
3782 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
ab252f7b 3783echo "configure:3784: checking for --enable-wcsrtombs" >&5
1e6feb95
VZ
3784 no_cache=0
3785 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3786if test "${enable_wcsrtombs+set}" = set; then
3787 enableval="$enable_wcsrtombs"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3791 else
3792 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3793 fi
3794
3795else
3796
3797 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3805
3806fi
3807
3808
3809 eval "$ac_cv_use_wcsrtombs"
3810 if test "$no_cache" != 1; then
3811 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3812 fi
3813
3814 if test "$wxUSE_WCSRTOMBS" = yes; then
3815 echo "$ac_t""yes" 1>&6
3816 else
3817 echo "$ac_t""no" 1>&6
3818 fi
3819
3820
3821 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
ab252f7b 3822echo "configure:3823: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3823 no_cache=0
3824 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3825if test "${enable_wxprintfv+set}" = set; then
3826 enableval="$enable_wxprintfv"
3827
3828 if test "$enableval" = yes; then
10f2d63a
VZ
3829 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3830 else
3831 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3832 fi
698dcdb6 3833
10f2d63a 3834else
698dcdb6 3835
10f2d63a
VZ
3836 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3837 if test "x$LINE" != x ; then
3838 eval "DEFAULT_$LINE"
3839 else
3840 no_cache=1
3841 fi
3842
3843 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3844
3845fi
10f2d63a
VZ
3846
3847
3848 eval "$ac_cv_use_wxprintfv"
3849 if test "$no_cache" != 1; then
3850 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3851 fi
3852
3853 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3854 echo "$ac_t""yes" 1>&6
10f2d63a 3855 else
698dcdb6 3856 echo "$ac_t""no" 1>&6
10f2d63a 3857 fi
698dcdb6 3858
10f2d63a 3859
698dcdb6 3860 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
ab252f7b 3861echo "configure:3862: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3862 no_cache=0
3863 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3864if test "${enable_std_iostreams+set}" = set; then
3865 enableval="$enable_std_iostreams"
698dcdb6 3866
10f2d63a
VZ
3867 if test "$enableval" = yes; then
3868 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3869 else
3870 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3871 fi
698dcdb6 3872
10f2d63a 3873else
698dcdb6 3874
10f2d63a
VZ
3875 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3876 if test "x$LINE" != x ; then
3877 eval "DEFAULT_$LINE"
3878 else
3879 no_cache=1
3880 fi
3881
3882 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3883
3884fi
10f2d63a
VZ
3885
3886
3887 eval "$ac_cv_use_std_iostreams"
3888 if test "$no_cache" != 1; then
3889 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3890 fi
3891
3892 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3893 echo "$ac_t""yes" 1>&6
10f2d63a 3894 else
698dcdb6 3895 echo "$ac_t""no" 1>&6
10f2d63a 3896 fi
698dcdb6 3897
10f2d63a 3898
698dcdb6 3899 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
ab252f7b 3900echo "configure:3901: checking for --enable-filesystem" >&5
24528b0c
VS
3901 no_cache=0
3902 # Check whether --enable-filesystem or --disable-filesystem was given.
3903if test "${enable_filesystem+set}" = set; then
3904 enableval="$enable_filesystem"
698dcdb6 3905
24528b0c
VS
3906 if test "$enableval" = yes; then
3907 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3908 else
3909 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3910 fi
698dcdb6 3911
24528b0c 3912else
698dcdb6 3913
24528b0c
VS
3914 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3915 if test "x$LINE" != x ; then
3916 eval "DEFAULT_$LINE"
3917 else
3918 no_cache=1
3919 fi
3920
3921 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3922
3923fi
24528b0c
VS
3924
3925
3926 eval "$ac_cv_use_filesystem"
3927 if test "$no_cache" != 1; then
3928 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3929 fi
3930
3931 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3932 echo "$ac_t""yes" 1>&6
24528b0c 3933 else
698dcdb6 3934 echo "$ac_t""no" 1>&6
24528b0c 3935 fi
698dcdb6 3936
24528b0c 3937
698dcdb6 3938 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
ab252f7b 3939echo "configure:3940: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3940 no_cache=0
3941 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3942if test "${enable_fs_inet+set}" = set; then
3943 enableval="$enable_fs_inet"
698dcdb6 3944
10f2d63a
VZ
3945 if test "$enableval" = yes; then
3946 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3947 else
3948 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3949 fi
698dcdb6 3950
10f2d63a 3951else
698dcdb6 3952
10f2d63a
VZ
3953 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3954 if test "x$LINE" != x ; then
3955 eval "DEFAULT_$LINE"
3956 else
3957 no_cache=1
3958 fi
3959
3960 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3961
3962fi
10f2d63a
VZ
3963
3964
3965 eval "$ac_cv_use_fs_inet"
3966 if test "$no_cache" != 1; then
3967 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3968 fi
3969
3970 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3971 echo "$ac_t""yes" 1>&6
10f2d63a 3972 else
698dcdb6 3973 echo "$ac_t""no" 1>&6
10f2d63a 3974 fi
698dcdb6 3975
10f2d63a 3976
698dcdb6 3977 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
ab252f7b 3978echo "configure:3979: checking for --enable-fs_zip" >&5
10f2d63a
VZ
3979 no_cache=0
3980 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3981if test "${enable_fs_zip+set}" = set; then
3982 enableval="$enable_fs_zip"
698dcdb6 3983
10f2d63a
VZ
3984 if test "$enableval" = yes; then
3985 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3986 else
3987 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3988 fi
698dcdb6 3989
10f2d63a 3990else
698dcdb6 3991
10f2d63a
VZ
3992 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3993 if test "x$LINE" != x ; then
3994 eval "DEFAULT_$LINE"
3995 else
3996 no_cache=1
3997 fi
3998
3999 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4000
4001fi
10f2d63a
VZ
4002
4003
4004 eval "$ac_cv_use_fs_zip"
4005 if test "$no_cache" != 1; then
4006 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4007 fi
4008
4009 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4010 echo "$ac_t""yes" 1>&6
10f2d63a 4011 else
698dcdb6 4012 echo "$ac_t""no" 1>&6
10f2d63a 4013 fi
698dcdb6 4014
10f2d63a 4015
698dcdb6 4016 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
ab252f7b 4017echo "configure:4018: checking for --enable-zipstream" >&5
10f2d63a
VZ
4018 no_cache=0
4019 # Check whether --enable-zipstream or --disable-zipstream was given.
4020if test "${enable_zipstream+set}" = set; then
4021 enableval="$enable_zipstream"
698dcdb6 4022
10f2d63a
VZ
4023 if test "$enableval" = yes; then
4024 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4025 else
4026 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4027 fi
698dcdb6 4028
10f2d63a 4029else
698dcdb6 4030
10f2d63a
VZ
4031 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4032 if test "x$LINE" != x ; then
4033 eval "DEFAULT_$LINE"
4034 else
4035 no_cache=1
4036 fi
4037
4038 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4039
4040fi
10f2d63a
VZ
4041
4042
4043 eval "$ac_cv_use_zipstream"
4044 if test "$no_cache" != 1; then
4045 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4046 fi
4047
4048 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4049 echo "$ac_t""yes" 1>&6
10f2d63a 4050 else
698dcdb6 4051 echo "$ac_t""no" 1>&6
10f2d63a 4052 fi
698dcdb6 4053
10f2d63a 4054
698dcdb6
VZ
4055
4056 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
ab252f7b 4057echo "configure:4058: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4058 no_cache=0
4059 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4060if test "${enable_catch_segvs+set}" = set; then
4061 enableval="$enable_catch_segvs"
698dcdb6 4062
eb4efbdc
VZ
4063 if test "$enableval" = yes; then
4064 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4065 else
4066 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4067 fi
698dcdb6 4068
eb4efbdc 4069else
698dcdb6 4070
eb4efbdc
VZ
4071 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4072 if test "x$LINE" != x ; then
4073 eval "DEFAULT_$LINE"
4074 else
4075 no_cache=1
4076 fi
4077
4078 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4079
4080fi
eb4efbdc
VZ
4081
4082
4083 eval "$ac_cv_use_catch_segvs"
4084 if test "$no_cache" != 1; then
4085 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4086 fi
4087
4088 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4089 echo "$ac_t""yes" 1>&6
eb4efbdc 4090 else
698dcdb6 4091 echo "$ac_t""no" 1>&6
eb4efbdc 4092 fi
698dcdb6 4093
eb4efbdc 4094
698dcdb6 4095 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
ab252f7b 4096echo "configure:4097: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4097 no_cache=0
4098 # Check whether --enable-snglinst or --disable-snglinst was given.
4099if test "${enable_snglinst+set}" = set; then
4100 enableval="$enable_snglinst"
698dcdb6 4101
4f3c5f06
VZ
4102 if test "$enableval" = yes; then
4103 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4104 else
4105 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4106 fi
698dcdb6 4107
4f3c5f06 4108else
698dcdb6 4109
4f3c5f06
VZ
4110 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4111 if test "x$LINE" != x ; then
4112 eval "DEFAULT_$LINE"
4113 else
4114 no_cache=1
4115 fi
4116
4117 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4118
4119fi
4f3c5f06
VZ
4120
4121
4122 eval "$ac_cv_use_snglinst"
4123 if test "$no_cache" != 1; then
4124 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4125 fi
4126
4127 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4128 echo "$ac_t""yes" 1>&6
4f3c5f06 4129 else
698dcdb6 4130 echo "$ac_t""no" 1>&6
4f3c5f06 4131 fi
698dcdb6
VZ
4132
4133
eb4efbdc 4134
1e6feb95 4135 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
ab252f7b 4136echo "configure:4137: checking for --enable-mimetype" >&5
1e6feb95
VZ
4137 no_cache=0
4138 # Check whether --enable-mimetype or --disable-mimetype was given.
4139if test "${enable_mimetype+set}" = set; then
4140 enableval="$enable_mimetype"
4141
4142 if test "$enableval" = yes; then
4143 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4144 else
4145 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4146 fi
4147
4148else
4149
4150 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
4157 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4158
4159fi
4160
4161
4162 eval "$ac_cv_use_mimetype"
4163 if test "$no_cache" != 1; then
4164 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4165 fi
4166
4167 if test "$wxUSE_MIMETYPE" = yes; then
4168 echo "$ac_t""yes" 1>&6
4169 else
4170 echo "$ac_t""no" 1>&6
4171 fi
4172
4173
3e44f09d 4174 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
ab252f7b 4175echo "configure:4176: checking for --enable-system_options" >&5
3e44f09d
VZ
4176 no_cache=0
4177 # Check whether --enable-system_options or --disable-system_options was given.
4178if test "${enable_system_options+set}" = set; then
4179 enableval="$enable_system_options"
4180
4181 if test "$enableval" = yes; then
4182 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4183 else
4184 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4185 fi
4186
4187else
4188
4189 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4190 if test "x$LINE" != x ; then
4191 eval "DEFAULT_$LINE"
4192 else
4193 no_cache=1
4194 fi
4195
4196 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4197
4198fi
4199
4200
4201 eval "$ac_cv_use_system_options"
4202 if test "$no_cache" != 1; then
4203 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4204 fi
4205
4206 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4207 echo "$ac_t""yes" 1>&6
4208 else
4209 echo "$ac_t""no" 1>&6
4210 fi
4211
4212
1e6feb95 4213
698dcdb6
VZ
4214
4215 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
ab252f7b 4216echo "configure:4217: checking for --enable-threads" >&5
10f2d63a
VZ
4217 no_cache=0
4218 # Check whether --enable-threads or --disable-threads was given.
4219if test "${enable_threads+set}" = set; then
4220 enableval="$enable_threads"
698dcdb6 4221
10f2d63a
VZ
4222 if test "$enableval" = yes; then
4223 ac_cv_use_threads='wxUSE_THREADS=yes'
4224 else
4225 ac_cv_use_threads='wxUSE_THREADS=no'
4226 fi
698dcdb6 4227
10f2d63a 4228else
698dcdb6 4229
10f2d63a
VZ
4230 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4231 if test "x$LINE" != x ; then
4232 eval "DEFAULT_$LINE"
4233 else
4234 no_cache=1
4235 fi
4236
4237 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4238
4239fi
10f2d63a
VZ
4240
4241
4242 eval "$ac_cv_use_threads"
4243 if test "$no_cache" != 1; then
4244 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4245 fi
4246
4247 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4248 echo "$ac_t""yes" 1>&6
10f2d63a 4249 else
698dcdb6 4250 echo "$ac_t""no" 1>&6
10f2d63a 4251 fi
698dcdb6 4252
10f2d63a 4253
698dcdb6 4254 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
ab252f7b 4255echo "configure:4256: checking for --enable-serial" >&5
10f2d63a
VZ
4256 no_cache=0
4257 # Check whether --enable-serial or --disable-serial was given.
4258if test "${enable_serial+set}" = set; then
4259 enableval="$enable_serial"
698dcdb6 4260
10f2d63a
VZ
4261 if test "$enableval" = yes; then
4262 ac_cv_use_serial='wxUSE_SERIAL=yes'
4263 else
4264 ac_cv_use_serial='wxUSE_SERIAL=no'
4265 fi
698dcdb6 4266
10f2d63a 4267else
698dcdb6 4268
10f2d63a
VZ
4269 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4270 if test "x$LINE" != x ; then
4271 eval "DEFAULT_$LINE"
4272 else
4273 no_cache=1
4274 fi
4275
4276 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4277
4278fi
10f2d63a
VZ
4279
4280
4281 eval "$ac_cv_use_serial"
4282 if test "$no_cache" != 1; then
4283 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4284 fi
4285
4286 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4287 echo "$ac_t""yes" 1>&6
10f2d63a 4288 else
698dcdb6 4289 echo "$ac_t""no" 1>&6
10f2d63a 4290 fi
698dcdb6 4291
10f2d63a 4292
b12915c1
VZ
4293if test "$wxUSE_GUI" = "yes"; then
4294
698dcdb6
VZ
4295
4296
4297 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
ab252f7b 4298echo "configure:4299: checking for --enable-docview" >&5
10f2d63a
VZ
4299 no_cache=0
4300 # Check whether --enable-docview or --disable-docview was given.
4301if test "${enable_docview+set}" = set; then
4302 enableval="$enable_docview"
698dcdb6 4303
10f2d63a
VZ
4304 if test "$enableval" = yes; then
4305 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4306 else
4307 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4308 fi
698dcdb6 4309
10f2d63a 4310else
698dcdb6 4311
10f2d63a
VZ
4312 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4313 if test "x$LINE" != x ; then
4314 eval "DEFAULT_$LINE"
4315 else
4316 no_cache=1
4317 fi
4318
4319 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4320
4321fi
10f2d63a
VZ
4322
4323
4324 eval "$ac_cv_use_docview"
4325 if test "$no_cache" != 1; then
4326 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4327 fi
4328
4329 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4330 echo "$ac_t""yes" 1>&6
10f2d63a 4331 else
698dcdb6 4332 echo "$ac_t""no" 1>&6
10f2d63a 4333 fi
698dcdb6 4334
10f2d63a 4335
698dcdb6 4336 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
ab252f7b 4337echo "configure:4338: checking for --enable-help" >&5
10f2d63a
VZ
4338 no_cache=0
4339 # Check whether --enable-help or --disable-help was given.
4340if test "${enable_help+set}" = set; then
4341 enableval="$enable_help"
698dcdb6 4342
10f2d63a
VZ
4343 if test "$enableval" = yes; then
4344 ac_cv_use_help='wxUSE_HELP=yes'
4345 else
4346 ac_cv_use_help='wxUSE_HELP=no'
4347 fi
698dcdb6 4348
10f2d63a 4349else
698dcdb6 4350
10f2d63a
VZ
4351 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4352 if test "x$LINE" != x ; then
4353 eval "DEFAULT_$LINE"
4354 else
4355 no_cache=1
4356 fi
4357
4358 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4359
4360fi
10f2d63a
VZ
4361
4362
4363 eval "$ac_cv_use_help"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_HELP" = yes; then
698dcdb6 4369 echo "$ac_t""yes" 1>&6
10f2d63a 4370 else
698dcdb6 4371 echo "$ac_t""no" 1>&6
10f2d63a 4372 fi
698dcdb6 4373
10f2d63a 4374
29fd3c0c 4375 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
ab252f7b 4376echo "configure:4377: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4377 no_cache=0
4378 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4379if test "${enable_mshtmlhelp+set}" = set; then
4380 enableval="$enable_mshtmlhelp"
4381
4382 if test "$enableval" = yes; then
4383 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4384 else
4385 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4386 fi
4387
4388else
4389
4390 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4391 if test "x$LINE" != x ; then
4392 eval "DEFAULT_$LINE"
4393 else
4394 no_cache=1
4395 fi
4396
4397 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4398
4399fi
4400
4401
4402 eval "$ac_cv_use_mshtmlhelp"
4403 if test "$no_cache" != 1; then
4404 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4405 fi
4406
4407 if test "$wxUSE_MS_HTML_HELP" = yes; then
4408 echo "$ac_t""yes" 1>&6
4409 else
4410 echo "$ac_t""no" 1>&6
4411 fi
4412
4413
3379ed37 4414 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
ab252f7b 4415echo "configure:4416: checking for --enable-html" >&5
3379ed37
VZ
4416 no_cache=0
4417 # Check whether --enable-html or --disable-html was given.
4418if test "${enable_html+set}" = set; then
4419 enableval="$enable_html"
4420
4421 if test "$enableval" = yes; then
4422 ac_cv_use_html='wxUSE_HTML=yes'
4423 else
4424 ac_cv_use_html='wxUSE_HTML=no'
4425 fi
4426
4427else
4428
4429 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4430 if test "x$LINE" != x ; then
4431 eval "DEFAULT_$LINE"
4432 else
4433 no_cache=1
4434 fi
4435
4436 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4437
4438fi
4439
4440
4441 eval "$ac_cv_use_html"
4442 if test "$no_cache" != 1; then
4443 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4444 fi
4445
4446 if test "$wxUSE_HTML" = yes; then
4447 echo "$ac_t""yes" 1>&6
4448 else
4449 echo "$ac_t""no" 1>&6
4450 fi
4451
4452
4453 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
ab252f7b 4454echo "configure:4455: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4455 no_cache=0
4456 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4457if test "${enable_htmlhelp+set}" = set; then
4458 enableval="$enable_htmlhelp"
4459
4460 if test "$enableval" = yes; then
4461 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4462 else
4463 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4464 fi
4465
4466else
4467
4468 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4469 if test "x$LINE" != x ; then
4470 eval "DEFAULT_$LINE"
4471 else
4472 no_cache=1
4473 fi
4474
4475 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4476
4477fi
4478
4479
4480 eval "$ac_cv_use_htmlhelp"
4481 if test "$no_cache" != 1; then
4482 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4483 fi
4484
4485 if test "$wxUSE_WXHTML_HELP" = yes; then
4486 echo "$ac_t""yes" 1>&6
4487 else
4488 echo "$ac_t""no" 1>&6
4489 fi
4490
4491
698dcdb6 4492 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
ab252f7b 4493echo "configure:4494: checking for --enable-constraints" >&5
10f2d63a
VZ
4494 no_cache=0
4495 # Check whether --enable-constraints or --disable-constraints was given.
4496if test "${enable_constraints+set}" = set; then
4497 enableval="$enable_constraints"
698dcdb6 4498
10f2d63a
VZ
4499 if test "$enableval" = yes; then
4500 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4501 else
4502 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4503 fi
698dcdb6 4504
10f2d63a 4505else
698dcdb6 4506
10f2d63a
VZ
4507 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4508 if test "x$LINE" != x ; then
4509 eval "DEFAULT_$LINE"
4510 else
4511 no_cache=1
4512 fi
4513
4514 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4515
4516fi
10f2d63a
VZ
4517
4518
4519 eval "$ac_cv_use_constraints"
4520 if test "$no_cache" != 1; then
4521 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4522 fi
4523
4524 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4525 echo "$ac_t""yes" 1>&6
10f2d63a 4526 else
698dcdb6 4527 echo "$ac_t""no" 1>&6
10f2d63a 4528 fi
698dcdb6 4529
10f2d63a 4530
698dcdb6 4531 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
ab252f7b 4532echo "configure:4533: checking for --enable-printarch" >&5
10f2d63a
VZ
4533 no_cache=0
4534 # Check whether --enable-printarch or --disable-printarch was given.
4535if test "${enable_printarch+set}" = set; then
4536 enableval="$enable_printarch"
698dcdb6 4537
10f2d63a
VZ
4538 if test "$enableval" = yes; then
4539 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4540 else
4541 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4542 fi
698dcdb6 4543
10f2d63a 4544else
698dcdb6 4545
10f2d63a
VZ
4546 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4547 if test "x$LINE" != x ; then
4548 eval "DEFAULT_$LINE"
4549 else
4550 no_cache=1
4551 fi
4552
4553 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4554
4555fi
10f2d63a
VZ
4556
4557
4558 eval "$ac_cv_use_printarch"
4559 if test "$no_cache" != 1; then
4560 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4561 fi
4562
4563 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4564 echo "$ac_t""yes" 1>&6
10f2d63a 4565 else
698dcdb6 4566 echo "$ac_t""no" 1>&6
10f2d63a 4567 fi
698dcdb6 4568
10f2d63a 4569
698dcdb6 4570 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
ab252f7b 4571echo "configure:4572: checking for --enable-mdi" >&5
10f2d63a
VZ
4572 no_cache=0
4573 # Check whether --enable-mdi or --disable-mdi was given.
4574if test "${enable_mdi+set}" = set; then
4575 enableval="$enable_mdi"
698dcdb6 4576
10f2d63a
VZ
4577 if test "$enableval" = yes; then
4578 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4579 else
4580 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4581 fi
698dcdb6 4582
10f2d63a 4583else
698dcdb6 4584
10f2d63a
VZ
4585 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4586 if test "x$LINE" != x ; then
4587 eval "DEFAULT_$LINE"
4588 else
4589 no_cache=1
4590 fi
4591
4592 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4593
4594fi
10f2d63a
VZ
4595
4596
4597 eval "$ac_cv_use_mdi"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4603 echo "$ac_t""yes" 1>&6
10f2d63a 4604 else
698dcdb6 4605 echo "$ac_t""no" 1>&6
10f2d63a 4606 fi
698dcdb6
VZ
4607
4608
1e6feb95 4609 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
ab252f7b 4610echo "configure:4611: checking for --enable-loggui" >&5
1e6feb95
VZ
4611 no_cache=0
4612 # Check whether --enable-loggui or --disable-loggui was given.
4613if test "${enable_loggui+set}" = set; then
4614 enableval="$enable_loggui"
4615
4616 if test "$enableval" = yes; then
4617 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4618 else
4619 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4620 fi
4621
4622else
4623
4624 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4625 if test "x$LINE" != x ; then
4626 eval "DEFAULT_$LINE"
4627 else
4628 no_cache=1
4629 fi
4630
4631 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4632
4633fi
4634
4635
4636 eval "$ac_cv_use_loggui"
4637 if test "$no_cache" != 1; then
4638 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4639 fi
4640
4641 if test "$wxUSE_LOGGUI" = yes; then
4642 echo "$ac_t""yes" 1>&6
4643 else
4644 echo "$ac_t""no" 1>&6
4645 fi
4646
4647
4648 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
ab252f7b 4649echo "configure:4650: checking for --enable-logwin" >&5
1e6feb95
VZ
4650 no_cache=0
4651 # Check whether --enable-logwin or --disable-logwin was given.
4652if test "${enable_logwin+set}" = set; then
4653 enableval="$enable_logwin"
4654
4655 if test "$enableval" = yes; then
4656 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4657 else
4658 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4659 fi
4660
4661else
4662
4663 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4664 if test "x$LINE" != x ; then
4665 eval "DEFAULT_$LINE"
4666 else
4667 no_cache=1
4668 fi
4669
4670 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4671
4672fi
4673
4674
4675 eval "$ac_cv_use_logwin"
4676 if test "$no_cache" != 1; then
4677 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4678 fi
4679
4680 if test "$wxUSE_LOGWINDOW" = yes; then
4681 echo "$ac_t""yes" 1>&6
4682 else
4683 echo "$ac_t""no" 1>&6
4684 fi
4685
4686
10f2d63a 4687
698dcdb6 4688 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
ab252f7b 4689echo "configure:4690: checking for --enable-postscript" >&5
10f2d63a
VZ
4690 no_cache=0
4691 # Check whether --enable-postscript or --disable-postscript was given.
4692if test "${enable_postscript+set}" = set; then
4693 enableval="$enable_postscript"
698dcdb6 4694
10f2d63a
VZ
4695 if test "$enableval" = yes; then
4696 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4697 else
4698 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4699 fi
698dcdb6 4700
10f2d63a 4701else
698dcdb6 4702
10f2d63a
VZ
4703 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4704 if test "x$LINE" != x ; then
4705 eval "DEFAULT_$LINE"
4706 else
4707 no_cache=1
4708 fi
4709
4710 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4711
4712fi
10f2d63a
VZ
4713
4714
4715 eval "$ac_cv_use_postscript"
4716 if test "$no_cache" != 1; then
4717 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4718 fi
4719
4720 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4721 echo "$ac_t""yes" 1>&6
10f2d63a 4722 else
698dcdb6 4723 echo "$ac_t""no" 1>&6
10f2d63a 4724 fi
698dcdb6
VZ
4725
4726
4727
10f2d63a 4728
1e6feb95 4729
698dcdb6 4730 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
ab252f7b 4731echo "configure:4732: checking for --enable-prologio" >&5
10f2d63a
VZ
4732 no_cache=0
4733 # Check whether --enable-prologio or --disable-prologio was given.
4734if test "${enable_prologio+set}" = set; then
4735 enableval="$enable_prologio"
698dcdb6 4736
10f2d63a
VZ
4737 if test "$enableval" = yes; then
4738 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4739 else
4740 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4741 fi
698dcdb6 4742
10f2d63a 4743else
698dcdb6 4744
10f2d63a
VZ
4745 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4746 if test "x$LINE" != x ; then
4747 eval "DEFAULT_$LINE"
4748 else
4749 no_cache=1
4750 fi
4751
4752 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4753
4754fi
10f2d63a
VZ
4755
4756
4757 eval "$ac_cv_use_prologio"
4758 if test "$no_cache" != 1; then
4759 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4760 fi
4761
4762 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4763 echo "$ac_t""yes" 1>&6
10f2d63a 4764 else
698dcdb6 4765 echo "$ac_t""no" 1>&6
10f2d63a 4766 fi
698dcdb6 4767
10f2d63a 4768
698dcdb6 4769 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
ab252f7b 4770echo "configure:4771: checking for --enable-resources" >&5
10f2d63a
VZ
4771 no_cache=0
4772 # Check whether --enable-resources or --disable-resources was given.
4773if test "${enable_resources+set}" = set; then
4774 enableval="$enable_resources"
698dcdb6 4775
10f2d63a
VZ
4776 if test "$enableval" = yes; then
4777 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4778 else
4779 ac_cv_use_resources='wxUSE_RESOURCES=no'
4780 fi
698dcdb6 4781
10f2d63a 4782else
698dcdb6 4783
10f2d63a
VZ
4784 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4785 if test "x$LINE" != x ; then
4786 eval "DEFAULT_$LINE"
4787 else
4788 no_cache=1
4789 fi
4790
4791 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4792
4793fi
10f2d63a
VZ
4794
4795
4796 eval "$ac_cv_use_resources"
4797 if test "$no_cache" != 1; then
4798 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4799 fi
4800
4801 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4802 echo "$ac_t""yes" 1>&6
10f2d63a 4803 else
698dcdb6 4804 echo "$ac_t""no" 1>&6
10f2d63a 4805 fi
698dcdb6 4806
10f2d63a 4807
698dcdb6
VZ
4808
4809 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
ab252f7b 4810echo "configure:4811: checking for --enable-xresources" >&5
10f2d63a
VZ
4811 no_cache=0
4812 # Check whether --enable-xresources or --disable-xresources was given.
4813if test "${enable_xresources+set}" = set; then
4814 enableval="$enable_xresources"
698dcdb6 4815
10f2d63a
VZ
4816 if test "$enableval" = yes; then
4817 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4818 else
4819 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4820 fi
698dcdb6 4821
10f2d63a 4822else
698dcdb6 4823
10f2d63a
VZ
4824 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4825 if test "x$LINE" != x ; then
4826 eval "DEFAULT_$LINE"
4827 else
4828 no_cache=1
4829 fi
4830
4831 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4832
4833fi
10f2d63a
VZ
4834
4835
4836 eval "$ac_cv_use_xresources"
4837 if test "$no_cache" != 1; then
4838 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4839 fi
4840
4841 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4842 echo "$ac_t""yes" 1>&6
10f2d63a 4843 else
698dcdb6 4844 echo "$ac_t""no" 1>&6
10f2d63a 4845 fi
698dcdb6
VZ
4846
4847
10f2d63a 4848
698dcdb6
VZ
4849
4850 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
ab252f7b 4851echo "configure:4852: checking for --enable-clipboard" >&5
10f2d63a
VZ
4852 no_cache=0
4853 # Check whether --enable-clipboard or --disable-clipboard was given.
4854if test "${enable_clipboard+set}" = set; then
4855 enableval="$enable_clipboard"
698dcdb6 4856
10f2d63a
VZ
4857 if test "$enableval" = yes; then
4858 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4859 else
4860 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4861 fi
698dcdb6 4862
10f2d63a 4863else
698dcdb6 4864
10f2d63a
VZ
4865 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4866 if test "x$LINE" != x ; then
4867 eval "DEFAULT_$LINE"
4868 else
4869 no_cache=1
4870 fi
4871
4872 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4873
4874fi
10f2d63a
VZ
4875
4876
4877 eval "$ac_cv_use_clipboard"
4878 if test "$no_cache" != 1; then
4879 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4880 fi
4881
4882 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4883 echo "$ac_t""yes" 1>&6
10f2d63a 4884 else
698dcdb6 4885 echo "$ac_t""no" 1>&6
10f2d63a 4886 fi
698dcdb6 4887
10f2d63a 4888
698dcdb6 4889 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
ab252f7b 4890echo "configure:4891: checking for --enable-dnd" >&5
10f2d63a
VZ
4891 no_cache=0
4892 # Check whether --enable-dnd or --disable-dnd was given.
4893if test "${enable_dnd+set}" = set; then
4894 enableval="$enable_dnd"
698dcdb6 4895
10f2d63a
VZ
4896 if test "$enableval" = yes; then
4897 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4898 else
4899 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4900 fi
698dcdb6 4901
10f2d63a 4902else
698dcdb6 4903
10f2d63a
VZ
4904 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4905 if test "x$LINE" != x ; then
4906 eval "DEFAULT_$LINE"
4907 else
4908 no_cache=1
4909 fi
4910
4911 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4912
4913fi
10f2d63a
VZ
4914
4915
4916 eval "$ac_cv_use_dnd"
4917 if test "$no_cache" != 1; then
4918 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4919 fi
4920
4921 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 4922 echo "$ac_t""yes" 1>&6
10f2d63a 4923 else
698dcdb6 4924 echo "$ac_t""no" 1>&6
10f2d63a 4925 fi
698dcdb6 4926
10f2d63a 4927
698dcdb6 4928 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
ab252f7b 4929echo "configure:4930: checking for --enable-metafile" >&5
b64f0a5f
RL
4930 no_cache=0
4931 # Check whether --enable-metafile or --disable-metafile was given.
4932if test "${enable_metafile+set}" = set; then
4933 enableval="$enable_metafile"
698dcdb6 4934
b64f0a5f
RL
4935 if test "$enableval" = yes; then
4936 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4937 else
4938 ac_cv_use_metafile='wxUSE_METAFILE=no'
4939 fi
698dcdb6 4940
b64f0a5f 4941else
698dcdb6 4942
b64f0a5f
RL
4943 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4944 if test "x$LINE" != x ; then
4945 eval "DEFAULT_$LINE"
4946 else
4947 no_cache=1
4948 fi
4949
4950 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4951
4952fi
b64f0a5f
RL
4953
4954
4955 eval "$ac_cv_use_metafile"
4956 if test "$no_cache" != 1; then
4957 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4958 fi
4959
4960 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4961 echo "$ac_t""yes" 1>&6
b64f0a5f 4962 else
698dcdb6 4963 echo "$ac_t""no" 1>&6
b64f0a5f 4964 fi
698dcdb6
VZ
4965
4966
10f2d63a 4967
24176f2c 4968 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
ab252f7b 4969echo "configure:4970: checking for --enable-treelayout" >&5
10f2d63a 4970 no_cache=0
24176f2c
GD
4971 # Check whether --enable-treelayout or --disable-treelayout was given.
4972if test "${enable_treelayout+set}" = set; then
4973 enableval="$enable_treelayout"
698dcdb6 4974
10f2d63a 4975 if test "$enableval" = yes; then
24176f2c 4976 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 4977 else
24176f2c 4978 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 4979 fi
698dcdb6 4980
10f2d63a 4981else
698dcdb6 4982
24176f2c 4983 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
4984 if test "x$LINE" != x ; then
4985 eval "DEFAULT_$LINE"
4986 else
4987 no_cache=1
4988 fi
4989
24176f2c 4990 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
4991
4992fi
10f2d63a
VZ
4993
4994
24176f2c 4995 eval "$ac_cv_use_treelayout"
10f2d63a 4996 if test "$no_cache" != 1; then
24176f2c 4997 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4998 fi
4999
24176f2c 5000 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5001 echo "$ac_t""yes" 1>&6
10f2d63a 5002 else
698dcdb6 5003 echo "$ac_t""no" 1>&6
10f2d63a 5004 fi
698dcdb6 5005
10f2d63a 5006
698dcdb6
VZ
5007
5008
5009 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
ab252f7b 5010echo "configure:5011: checking for --enable-controls" >&5
10f2d63a
VZ
5011 no_cache=0
5012 # Check whether --enable-controls or --disable-controls was given.
5013if test "${enable_controls+set}" = set; then
5014 enableval="$enable_controls"
698dcdb6 5015
10f2d63a
VZ
5016 if test "$enableval" = yes; then
5017 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5018 else
5019 ac_cv_use_controls='wxUSE_CONTROLS=no'
5020 fi
698dcdb6 5021
10f2d63a 5022else
698dcdb6 5023
10f2d63a
VZ
5024 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5025 if test "x$LINE" != x ; then
5026 eval "DEFAULT_$LINE"
5027 else
5028 no_cache=1
5029 fi
5030
5031 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5032
5033fi
10f2d63a
VZ
5034
5035
5036 eval "$ac_cv_use_controls"
5037 if test "$no_cache" != 1; then
5038 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5039 fi
5040
5041 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5042 echo "$ac_t""yes" 1>&6
10f2d63a 5043 else
698dcdb6 5044 echo "$ac_t""no" 1>&6
10f2d63a 5045 fi
698dcdb6 5046
10f2d63a
VZ
5047
5048if test "$wxUSE_CONTROLS" = "yes"; then
5049 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5050 DEFAULT_wxUSE_BMPBUTTON=yes
5051 DEFAULT_wxUSE_BUTTON=yes
5052 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5053 DEFAULT_wxUSE_CARET=yes
5054 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5055 DEFAULT_wxUSE_CHECKBOX=yes
5056 DEFAULT_wxUSE_CHECKLISTBOX=yes
5057 DEFAULT_wxUSE_CHOICE=yes
5058 DEFAULT_wxUSE_GAUGE=yes
5059 DEFAULT_wxUSE_GRID=yes
cc977e5f 5060 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5061 DEFAULT_wxUSE_IMAGLIST=yes
5062 DEFAULT_wxUSE_LISTBOX=yes
5063 DEFAULT_wxUSE_LISTCTRL=yes
5064 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5065 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5066 DEFAULT_wxUSE_RADIOBOX=yes
5067 DEFAULT_wxUSE_RADIOBTN=yes
5068 DEFAULT_wxUSE_SASH=yes
5069 DEFAULT_wxUSE_SCROLLBAR=yes
5070 DEFAULT_wxUSE_SLIDER=yes
5071 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5072 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5073 DEFAULT_wxUSE_SPLITTER=yes
5074 DEFAULT_wxUSE_STATBMP=yes
5075 DEFAULT_wxUSE_STATBOX=yes
5076 DEFAULT_wxUSE_STATLINE=yes
5077 DEFAULT_wxUSE_STATUSBAR=yes
5078 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5079 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5080 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5081 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5082 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5083 DEFAULT_wxUSE_TOOLTIPS=yes
5084 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5085 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
5086elif test "$wxUSE_CONTROLS" = "no"; then
5087 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5088 DEFAULT_wxUSE_BMPBUTTON=no
5089 DEFAULT_wxUSE_BUTTON=no
5090 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5091 DEFAULT_wxUSE_CARET=no
5092 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5093 DEFAULT_wxUSE_CHECKBOX=no
5094 DEFAULT_wxUSE_CHECKLISTBOX=no
5095 DEFAULT_wxUSE_CHOICE=no
5096 DEFAULT_wxUSE_GAUGE=no
5097 DEFAULT_wxUSE_GRID=no
5098 DEFAULT_wxUSE_NEW_GRID=no
5099 DEFAULT_wxUSE_IMAGLIST=no
5100 DEFAULT_wxUSE_LISTBOX=no
5101 DEFAULT_wxUSE_LISTCTRL=no
5102 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5103 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5104 DEFAULT_wxUSE_RADIOBOX=no
5105 DEFAULT_wxUSE_RADIOBTN=no
5106 DEFAULT_wxUSE_SASH=no
5107 DEFAULT_wxUSE_SCROLLBAR=no
5108 DEFAULT_wxUSE_SLIDER=no
5109 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5110 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5111 DEFAULT_wxUSE_SPLITTER=no
5112 DEFAULT_wxUSE_STATBMP=no
5113 DEFAULT_wxUSE_STATBOX=no
5114 DEFAULT_wxUSE_STATLINE=no
5115 DEFAULT_wxUSE_STATUSBAR=no
5116 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5117 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5118 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5119 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5120 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5121 DEFAULT_wxUSE_TOOLTIPS=no
5122 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5123 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
5124fi
5125
698dcdb6
VZ
5126
5127 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
ab252f7b 5128echo "configure:5129: checking for --enable-accel" >&5
10f2d63a
VZ
5129 no_cache=0
5130 # Check whether --enable-accel or --disable-accel was given.
5131if test "${enable_accel+set}" = set; then
5132 enableval="$enable_accel"
698dcdb6 5133
10f2d63a
VZ
5134 if test "$enableval" = yes; then
5135 ac_cv_use_accel='wxUSE_ACCEL=yes'
5136 else
5137 ac_cv_use_accel='wxUSE_ACCEL=no'
5138 fi
698dcdb6 5139
10f2d63a 5140else
698dcdb6 5141
10f2d63a
VZ
5142 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5143 if test "x$LINE" != x ; then
5144 eval "DEFAULT_$LINE"
5145 else
5146 no_cache=1
5147 fi
5148
5149 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5150
5151fi
10f2d63a
VZ
5152
5153
5154 eval "$ac_cv_use_accel"
5155 if test "$no_cache" != 1; then
5156 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5157 fi
5158
5159 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5160 echo "$ac_t""yes" 1>&6
10f2d63a 5161 else
698dcdb6 5162 echo "$ac_t""no" 1>&6
10f2d63a 5163 fi
698dcdb6 5164
10f2d63a 5165
1e6feb95 5166 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
ab252f7b 5167echo "configure:5168: checking for --enable-button" >&5
10f2d63a 5168 no_cache=0
1e6feb95
VZ
5169 # Check whether --enable-button or --disable-button was given.
5170if test "${enable_button+set}" = set; then
5171 enableval="$enable_button"
698dcdb6 5172
10f2d63a 5173 if test "$enableval" = yes; then
1e6feb95 5174 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5175 else
1e6feb95 5176 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5177 fi
698dcdb6 5178
10f2d63a 5179else
698dcdb6 5180
1e6feb95 5181 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5182 if test "x$LINE" != x ; then
5183 eval "DEFAULT_$LINE"
5184 else
5185 no_cache=1
5186 fi
5187
1e6feb95 5188 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5189
5190fi
10f2d63a
VZ
5191
5192
1e6feb95 5193 eval "$ac_cv_use_button"
10f2d63a 5194 if test "$no_cache" != 1; then
1e6feb95 5195 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5196 fi
5197
1e6feb95 5198 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5199 echo "$ac_t""yes" 1>&6
10f2d63a 5200 else
698dcdb6 5201 echo "$ac_t""no" 1>&6
10f2d63a 5202 fi
698dcdb6 5203
10f2d63a 5204
698dcdb6 5205 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
ab252f7b 5206echo "configure:5207: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5207 no_cache=0
5208 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5209if test "${enable_bmpbutton+set}" = set; then
5210 enableval="$enable_bmpbutton"
698dcdb6 5211
10f2d63a
VZ
5212 if test "$enableval" = yes; then
5213 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5214 else
5215 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5216 fi
698dcdb6 5217
10f2d63a 5218else
698dcdb6 5219
10f2d63a
VZ
5220 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5221 if test "x$LINE" != x ; then
5222 eval "DEFAULT_$LINE"
5223 else
5224 no_cache=1
5225 fi
5226
5227 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5228
5229fi
10f2d63a
VZ
5230
5231
5232 eval "$ac_cv_use_bmpbutton"
5233 if test "$no_cache" != 1; then
5234 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5235 fi
5236
5237 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5238 echo "$ac_t""yes" 1>&6
10f2d63a 5239 else
698dcdb6 5240 echo "$ac_t""no" 1>&6
10f2d63a 5241 fi
698dcdb6 5242
10f2d63a 5243
1e6feb95 5244 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
ab252f7b 5245echo "configure:5246: checking for --enable-calendar" >&5
1e6feb95
VZ
5246 no_cache=0
5247 # Check whether --enable-calendar or --disable-calendar was given.
5248if test "${enable_calendar+set}" = set; then
5249 enableval="$enable_calendar"
5250
5251 if test "$enableval" = yes; then
5252 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5253 else
5254 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5255 fi
5256
5257else
5258
5259 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5260 if test "x$LINE" != x ; then
5261 eval "DEFAULT_$LINE"
5262 else
5263 no_cache=1
5264 fi
5265
5266 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5267
5268fi
5269
5270
5271 eval "$ac_cv_use_calendar"
5272 if test "$no_cache" != 1; then
5273 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5274 fi
5275
5276 if test "$wxUSE_CALCTRL" = yes; then
5277 echo "$ac_t""yes" 1>&6
5278 else
5279 echo "$ac_t""no" 1>&6
5280 fi
5281
5282
5283 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
ab252f7b 5284echo "configure:5285: checking for --enable-caret" >&5
1e6feb95
VZ
5285 no_cache=0
5286 # Check whether --enable-caret or --disable-caret was given.
5287if test "${enable_caret+set}" = set; then
5288 enableval="$enable_caret"
5289
5290 if test "$enableval" = yes; then
5291 ac_cv_use_caret='wxUSE_CARET=yes'
5292 else
5293 ac_cv_use_caret='wxUSE_CARET=no'
5294 fi
5295
5296else
5297
5298 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5299 if test "x$LINE" != x ; then
5300 eval "DEFAULT_$LINE"
5301 else
5302 no_cache=1
5303 fi
5304
5305 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5306
5307fi
5308
5309
5310 eval "$ac_cv_use_caret"
5311 if test "$no_cache" != 1; then
5312 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5313 fi
5314
5315 if test "$wxUSE_CARET" = yes; then
5316 echo "$ac_t""yes" 1>&6
5317 else
5318 echo "$ac_t""no" 1>&6
5319 fi
5320
5321
698dcdb6 5322 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
ab252f7b 5323echo "configure:5324: checking for --enable-checkbox" >&5
10f2d63a
VZ
5324 no_cache=0
5325 # Check whether --enable-checkbox or --disable-checkbox was given.
5326if test "${enable_checkbox+set}" = set; then
5327 enableval="$enable_checkbox"
698dcdb6 5328
10f2d63a
VZ
5329 if test "$enableval" = yes; then
5330 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5331 else
5332 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5333 fi
698dcdb6 5334
10f2d63a 5335else
698dcdb6 5336
10f2d63a
VZ
5337 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5338 if test "x$LINE" != x ; then
5339 eval "DEFAULT_$LINE"
5340 else
5341 no_cache=1
5342 fi
5343
5344 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5345
5346fi
10f2d63a
VZ
5347
5348
5349 eval "$ac_cv_use_checkbox"
5350 if test "$no_cache" != 1; then
5351 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5352 fi
5353
5354 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5355 echo "$ac_t""yes" 1>&6
10f2d63a 5356 else
698dcdb6 5357 echo "$ac_t""no" 1>&6
10f2d63a 5358 fi
698dcdb6 5359
10f2d63a 5360
698dcdb6 5361 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
ab252f7b 5362echo "configure:5363: checking for --enable-checklst" >&5
10f2d63a
VZ
5363 no_cache=0
5364 # Check whether --enable-checklst or --disable-checklst was given.
5365if test "${enable_checklst+set}" = set; then
5366 enableval="$enable_checklst"
698dcdb6 5367
10f2d63a
VZ
5368 if test "$enableval" = yes; then
5369 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5370 else
5371 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5372 fi
698dcdb6 5373
10f2d63a 5374else
698dcdb6 5375
10f2d63a
VZ
5376 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5377 if test "x$LINE" != x ; then
5378 eval "DEFAULT_$LINE"
5379 else
5380 no_cache=1
5381 fi
5382
5383 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5384
5385fi
10f2d63a
VZ
5386
5387
5388 eval "$ac_cv_use_checklst"
5389 if test "$no_cache" != 1; then
5390 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5391 fi
5392
5393 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5394 echo "$ac_t""yes" 1>&6
10f2d63a 5395 else
698dcdb6 5396 echo "$ac_t""no" 1>&6
10f2d63a 5397 fi
698dcdb6 5398
10f2d63a 5399
698dcdb6 5400 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
ab252f7b 5401echo "configure:5402: checking for --enable-choice" >&5
10f2d63a
VZ
5402 no_cache=0
5403 # Check whether --enable-choice or --disable-choice was given.
5404if test "${enable_choice+set}" = set; then
5405 enableval="$enable_choice"
698dcdb6 5406
10f2d63a
VZ
5407 if test "$enableval" = yes; then
5408 ac_cv_use_choice='wxUSE_CHOICE=yes'
5409 else
5410 ac_cv_use_choice='wxUSE_CHOICE=no'
5411 fi
698dcdb6 5412
10f2d63a 5413else
698dcdb6 5414
10f2d63a
VZ
5415 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5416 if test "x$LINE" != x ; then
5417 eval "DEFAULT_$LINE"
5418 else
5419 no_cache=1
5420 fi
5421
5422 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5423
5424fi
10f2d63a
VZ
5425
5426
5427 eval "$ac_cv_use_choice"
5428 if test "$no_cache" != 1; then
5429 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5430 fi
5431
5432 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5433 echo "$ac_t""yes" 1>&6
10f2d63a 5434 else
698dcdb6 5435 echo "$ac_t""no" 1>&6
10f2d63a 5436 fi
698dcdb6 5437
10f2d63a 5438
698dcdb6 5439 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
ab252f7b 5440echo "configure:5441: checking for --enable-combobox" >&5
10f2d63a
VZ
5441 no_cache=0
5442 # Check whether --enable-combobox or --disable-combobox was given.
5443if test "${enable_combobox+set}" = set; then
5444 enableval="$enable_combobox"
698dcdb6 5445
10f2d63a
VZ
5446 if test "$enableval" = yes; then
5447 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5448 else
5449 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5450 fi
698dcdb6 5451
10f2d63a 5452else
698dcdb6 5453
10f2d63a
VZ
5454 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5455 if test "x$LINE" != x ; then
5456 eval "DEFAULT_$LINE"
5457 else
5458 no_cache=1
5459 fi
5460
5461 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5462
5463fi
10f2d63a
VZ
5464
5465
5466 eval "$ac_cv_use_combobox"
5467 if test "$no_cache" != 1; then
5468 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5469 fi
5470
5471 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5472 echo "$ac_t""yes" 1>&6
10f2d63a 5473 else
698dcdb6 5474 echo "$ac_t""no" 1>&6
10f2d63a 5475 fi
698dcdb6 5476
10f2d63a 5477
698dcdb6 5478 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
ab252f7b 5479echo "configure:5480: checking for --enable-gauge" >&5
10f2d63a
VZ
5480 no_cache=0
5481 # Check whether --enable-gauge or --disable-gauge was given.
5482if test "${enable_gauge+set}" = set; then
5483 enableval="$enable_gauge"
698dcdb6 5484
10f2d63a
VZ
5485 if test "$enableval" = yes; then
5486 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5487 else
5488 ac_cv_use_gauge='wxUSE_GAUGE=no'
5489 fi
698dcdb6 5490
10f2d63a 5491else
698dcdb6 5492
10f2d63a
VZ
5493 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5494 if test "x$LINE" != x ; then
5495 eval "DEFAULT_$LINE"
5496 else
5497 no_cache=1
5498 fi
5499
5500 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5501
5502fi
10f2d63a
VZ
5503
5504
5505 eval "$ac_cv_use_gauge"
5506 if test "$no_cache" != 1; then
5507 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5508 fi
5509
5510 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5511 echo "$ac_t""yes" 1>&6
10f2d63a 5512 else
698dcdb6 5513 echo "$ac_t""no" 1>&6
10f2d63a 5514 fi
698dcdb6 5515
10f2d63a 5516
698dcdb6 5517 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
ab252f7b 5518echo "configure:5519: checking for --enable-grid" >&5
10f2d63a
VZ
5519 no_cache=0
5520 # Check whether --enable-grid or --disable-grid was given.
5521if test "${enable_grid+set}" = set; then
5522 enableval="$enable_grid"
698dcdb6 5523
10f2d63a
VZ
5524 if test "$enableval" = yes; then
5525 ac_cv_use_grid='wxUSE_GRID=yes'
5526 else
5527 ac_cv_use_grid='wxUSE_GRID=no'
5528 fi
698dcdb6 5529
10f2d63a 5530else
698dcdb6 5531
10f2d63a
VZ
5532 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5533 if test "x$LINE" != x ; then
5534 eval "DEFAULT_$LINE"
5535 else
5536 no_cache=1
5537 fi
5538
5539 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5540
5541fi
10f2d63a
VZ
5542
5543
5544 eval "$ac_cv_use_grid"
5545 if test "$no_cache" != 1; then
5546 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5547 fi
5548
5549 if test "$wxUSE_GRID" = yes; then
698dcdb6 5550 echo "$ac_t""yes" 1>&6
10f2d63a 5551 else
698dcdb6 5552 echo "$ac_t""no" 1>&6
10f2d63a 5553 fi
698dcdb6 5554
10f2d63a 5555
698dcdb6 5556 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
ab252f7b 5557echo "configure:5558: checking for --enable-newgrid" >&5
10f2d63a
VZ
5558 no_cache=0
5559 # Check whether --enable-newgrid or --disable-newgrid was given.
5560if test "${enable_newgrid+set}" = set; then
5561 enableval="$enable_newgrid"
698dcdb6 5562
10f2d63a
VZ
5563 if test "$enableval" = yes; then
5564 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5565 else
5566 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5567 fi
698dcdb6 5568
10f2d63a 5569else
698dcdb6 5570
10f2d63a
VZ
5571 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5572 if test "x$LINE" != x ; then
5573 eval "DEFAULT_$LINE"
5574 else
5575 no_cache=1
5576 fi
5577
5578 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5579
5580fi
10f2d63a
VZ
5581
5582
5583 eval "$ac_cv_use_newgrid"
5584 if test "$no_cache" != 1; then
5585 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5586 fi
5587
5588 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5589 echo "$ac_t""yes" 1>&6
10f2d63a 5590 else
698dcdb6 5591 echo "$ac_t""no" 1>&6
10f2d63a 5592 fi
698dcdb6 5593
10f2d63a 5594
698dcdb6 5595 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
ab252f7b 5596echo "configure:5597: checking for --enable-imaglist" >&5
10f2d63a
VZ
5597 no_cache=0
5598 # Check whether --enable-imaglist or --disable-imaglist was given.
5599if test "${enable_imaglist+set}" = set; then
5600 enableval="$enable_imaglist"
698dcdb6 5601
10f2d63a
VZ
5602 if test "$enableval" = yes; then
5603 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5604 else
5605 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5606 fi
698dcdb6 5607
10f2d63a 5608else
698dcdb6 5609
10f2d63a
VZ
5610 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5611 if test "x$LINE" != x ; then
5612 eval "DEFAULT_$LINE"
5613 else
5614 no_cache=1
5615 fi
5616
5617 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5618
5619fi
10f2d63a
VZ
5620
5621
5622 eval "$ac_cv_use_imaglist"
5623 if test "$no_cache" != 1; then
5624 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5625 fi
5626
5627 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5628 echo "$ac_t""yes" 1>&6
10f2d63a 5629 else
698dcdb6 5630 echo "$ac_t""no" 1>&6
10f2d63a 5631 fi
698dcdb6 5632
10f2d63a 5633
698dcdb6 5634 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
ab252f7b 5635echo "configure:5636: checking for --enable-listbox" >&5
10f2d63a
VZ
5636 no_cache=0
5637 # Check whether --enable-listbox or --disable-listbox was given.
5638if test "${enable_listbox+set}" = set; then
5639 enableval="$enable_listbox"
698dcdb6 5640
10f2d63a
VZ
5641 if test "$enableval" = yes; then
5642 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5643 else
5644 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5645 fi
698dcdb6 5646
10f2d63a 5647else
698dcdb6 5648
10f2d63a
VZ
5649 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5650 if test "x$LINE" != x ; then
5651 eval "DEFAULT_$LINE"
5652 else
5653 no_cache=1
5654 fi
5655
5656 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5657
5658fi
10f2d63a
VZ
5659
5660
5661 eval "$ac_cv_use_listbox"
5662 if test "$no_cache" != 1; then
5663 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5664 fi
5665
5666 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5667 echo "$ac_t""yes" 1>&6
10f2d63a 5668 else
698dcdb6 5669 echo "$ac_t""no" 1>&6
10f2d63a 5670 fi
698dcdb6 5671
10f2d63a 5672
698dcdb6 5673 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
ab252f7b 5674echo "configure:5675: checking for --enable-listctrl" >&5
10f2d63a
VZ
5675 no_cache=0
5676 # Check whether --enable-listctrl or --disable-listctrl was given.
5677if test "${enable_listctrl+set}" = set; then
5678 enableval="$enable_listctrl"
698dcdb6 5679
10f2d63a
VZ
5680 if test "$enableval" = yes; then
5681 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5682 else
5683 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5684 fi
698dcdb6 5685
10f2d63a 5686else
698dcdb6 5687
10f2d63a
VZ
5688 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5689 if test "x$LINE" != x ; then
5690 eval "DEFAULT_$LINE"
5691 else
5692 no_cache=1
5693 fi
5694
5695 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5696
5697fi
10f2d63a
VZ
5698
5699
5700 eval "$ac_cv_use_listctrl"
5701 if test "$no_cache" != 1; then
5702 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5703 fi
5704
5705 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5706 echo "$ac_t""yes" 1>&6
10f2d63a 5707 else
698dcdb6 5708 echo "$ac_t""no" 1>&6
10f2d63a 5709 fi
698dcdb6 5710
10f2d63a 5711
698dcdb6 5712 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
ab252f7b 5713echo "configure:5714: checking for --enable-notebook" >&5
10f2d63a
VZ
5714 no_cache=0
5715 # Check whether --enable-notebook or --disable-notebook was given.
5716if test "${enable_notebook+set}" = set; then
5717 enableval="$enable_notebook"
698dcdb6 5718
10f2d63a
VZ
5719 if test "$enableval" = yes; then
5720 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5721 else
5722 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5723 fi
698dcdb6 5724
10f2d63a 5725else
698dcdb6 5726
10f2d63a
VZ
5727 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5728 if test "x$LINE" != x ; then
5729 eval "DEFAULT_$LINE"
5730 else
5731 no_cache=1
5732 fi
5733
5734 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5735
5736fi
10f2d63a
VZ
5737
5738
5739 eval "$ac_cv_use_notebook"
5740 if test "$no_cache" != 1; then
5741 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5742 fi
5743
5744 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5745 echo "$ac_t""yes" 1>&6
10f2d63a 5746 else
698dcdb6 5747 echo "$ac_t""no" 1>&6
10f2d63a 5748 fi
698dcdb6 5749
10f2d63a 5750
24176f2c 5751 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
ab252f7b 5752echo "configure:5753: checking for --enable-propsheet" >&5
24176f2c
GD
5753 no_cache=0
5754 # Check whether --enable-propsheet or --disable-propsheet was given.
5755if test "${enable_propsheet+set}" = set; then
5756 enableval="$enable_propsheet"
5757
5758 if test "$enableval" = yes; then
5759 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5760 else
5761 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5762 fi
5763
5764else
5765
5766 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5767 if test "x$LINE" != x ; then
5768 eval "DEFAULT_$LINE"
5769 else
5770 no_cache=1
5771 fi
5772
5773 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5774
5775fi
5776
5777
5778 eval "$ac_cv_use_propsheet"
5779 if test "$no_cache" != 1; then
5780 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5781 fi
5782
5783 if test "$wxUSE_PROPSHEET" = yes; then
5784 echo "$ac_t""yes" 1>&6
5785 else
5786 echo "$ac_t""no" 1>&6
5787 fi
5788
5789
698dcdb6 5790 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
ab252f7b 5791echo "configure:5792: checking for --enable-radiobox" >&5
10f2d63a
VZ
5792 no_cache=0
5793 # Check whether --enable-radiobox or --disable-radiobox was given.
5794if test "${enable_radiobox+set}" = set; then
5795 enableval="$enable_radiobox"
698dcdb6 5796
10f2d63a
VZ
5797 if test "$enableval" = yes; then
5798 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5799 else
5800 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5801 fi
698dcdb6 5802
10f2d63a 5803else
698dcdb6 5804
10f2d63a
VZ
5805 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5806 if test "x$LINE" != x ; then
5807 eval "DEFAULT_$LINE"
5808 else
5809 no_cache=1
5810 fi
5811
5812 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5813
5814fi
10f2d63a
VZ
5815
5816
5817 eval "$ac_cv_use_radiobox"
5818 if test "$no_cache" != 1; then
5819 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5820 fi
5821
5822 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5823 echo "$ac_t""yes" 1>&6
10f2d63a 5824 else
698dcdb6 5825 echo "$ac_t""no" 1>&6
10f2d63a 5826 fi
698dcdb6 5827
10f2d63a 5828
698dcdb6 5829 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
ab252f7b 5830echo "configure:5831: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5831 no_cache=0
5832 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5833if test "${enable_radiobtn+set}" = set; then
5834 enableval="$enable_radiobtn"
698dcdb6 5835
10f2d63a
VZ
5836 if test "$enableval" = yes; then
5837 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5838 else
5839 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5840 fi
698dcdb6 5841
10f2d63a 5842else
698dcdb6 5843
10f2d63a
VZ
5844 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5845 if test "x$LINE" != x ; then
5846 eval "DEFAULT_$LINE"
5847 else
5848 no_cache=1
5849 fi
5850
5851 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5852
5853fi
10f2d63a
VZ
5854
5855
5856 eval "$ac_cv_use_radiobtn"
5857 if test "$no_cache" != 1; then
5858 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5859 fi
5860
5861 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5862 echo "$ac_t""yes" 1>&6
10f2d63a 5863 else
698dcdb6 5864 echo "$ac_t""no" 1>&6
10f2d63a 5865 fi
698dcdb6 5866
10f2d63a 5867
698dcdb6 5868 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
ab252f7b 5869echo "configure:5870: checking for --enable-sash" >&5
10f2d63a
VZ
5870 no_cache=0
5871 # Check whether --enable-sash or --disable-sash was given.
5872if test "${enable_sash+set}" = set; then
5873 enableval="$enable_sash"
698dcdb6 5874
10f2d63a
VZ
5875 if test "$enableval" = yes; then
5876 ac_cv_use_sash='wxUSE_SASH=yes'
5877 else
5878 ac_cv_use_sash='wxUSE_SASH=no'
5879 fi
698dcdb6 5880
10f2d63a 5881else
698dcdb6 5882
10f2d63a
VZ
5883 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5884 if test "x$LINE" != x ; then
5885 eval "DEFAULT_$LINE"
5886 else
5887 no_cache=1
5888 fi
5889
5890 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5891
5892fi
10f2d63a
VZ
5893
5894
5895 eval "$ac_cv_use_sash"
5896 if test "$no_cache" != 1; then
5897 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5898 fi
5899
5900 if test "$wxUSE_SASH" = yes; then
698dcdb6 5901 echo "$ac_t""yes" 1>&6
10f2d63a 5902 else
698dcdb6 5903 echo "$ac_t""no" 1>&6
10f2d63a 5904 fi
698dcdb6 5905
10f2d63a 5906
698dcdb6 5907 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
ab252f7b 5908echo "configure:5909: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5909 no_cache=0
5910 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5911if test "${enable_scrollbar+set}" = set; then
5912 enableval="$enable_scrollbar"
698dcdb6 5913
10f2d63a
VZ
5914 if test "$enableval" = yes; then
5915 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5916 else
5917 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5918 fi
698dcdb6 5919
10f2d63a 5920else
698dcdb6 5921
10f2d63a
VZ
5922 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5923 if test "x$LINE" != x ; then
5924 eval "DEFAULT_$LINE"
5925 else
5926 no_cache=1
5927 fi
5928
5929 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5930
5931fi
10f2d63a
VZ
5932
5933
5934 eval "$ac_cv_use_scrollbar"
5935 if test "$no_cache" != 1; then
5936 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5937 fi
5938
5939 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5940 echo "$ac_t""yes" 1>&6
10f2d63a 5941 else
698dcdb6 5942 echo "$ac_t""no" 1>&6
10f2d63a 5943 fi
698dcdb6 5944
10f2d63a 5945
698dcdb6 5946 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
ab252f7b 5947echo "configure:5948: checking for --enable-slider" >&5
10f2d63a
VZ
5948 no_cache=0
5949 # Check whether --enable-slider or --disable-slider was given.
5950if test "${enable_slider+set}" = set; then
5951 enableval="$enable_slider"
698dcdb6 5952
10f2d63a
VZ
5953 if test "$enableval" = yes; then
5954 ac_cv_use_slider='wxUSE_SLIDER=yes'
5955 else
5956 ac_cv_use_slider='wxUSE_SLIDER=no'
5957 fi
698dcdb6 5958
10f2d63a 5959else
698dcdb6 5960
10f2d63a
VZ
5961 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5962 if test "x$LINE" != x ; then
5963 eval "DEFAULT_$LINE"
5964 else
5965 no_cache=1
5966 fi
5967
5968 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5969
5970fi
10f2d63a
VZ
5971
5972
5973 eval "$ac_cv_use_slider"
5974 if test "$no_cache" != 1; then
5975 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5976 fi
5977
5978 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 5979 echo "$ac_t""yes" 1>&6
10f2d63a 5980 else
698dcdb6 5981 echo "$ac_t""no" 1>&6
10f2d63a 5982 fi
698dcdb6 5983
10f2d63a 5984
698dcdb6 5985 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
ab252f7b 5986echo "configure:5987: checking for --enable-spinbtn" >&5
10f2d63a
VZ
5987 no_cache=0
5988 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5989if test "${enable_spinbtn+set}" = set; then
5990 enableval="$enable_spinbtn"
698dcdb6 5991
10f2d63a
VZ
5992 if test "$enableval" = yes; then
5993 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5994 else
5995 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5996 fi
698dcdb6 5997
10f2d63a 5998else
698dcdb6 5999
10f2d63a
VZ
6000 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6001 if test "x$LINE" != x ; then
6002 eval "DEFAULT_$LINE"
6003 else
6004 no_cache=1
6005 fi
6006
6007 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6008
6009fi
10f2d63a
VZ
6010
6011
6012 eval "$ac_cv_use_spinbtn"
6013 if test "$no_cache" != 1; then
6014 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6015 fi
6016
6017 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6018 echo "$ac_t""yes" 1>&6
10f2d63a 6019 else
698dcdb6 6020 echo "$ac_t""no" 1>&6
10f2d63a 6021 fi
698dcdb6 6022
10f2d63a 6023
698dcdb6 6024 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
ab252f7b 6025echo "configure:6026: checking for --enable-spinctrl" >&5
56cfaa52
RR
6026 no_cache=0
6027 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6028if test "${enable_spinctrl+set}" = set; then
6029 enableval="$enable_spinctrl"
698dcdb6 6030
56cfaa52
RR
6031 if test "$enableval" = yes; then
6032 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6033 else
6034 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6035 fi
698dcdb6 6036
56cfaa52 6037else
698dcdb6 6038
56cfaa52
RR
6039 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6040 if test "x$LINE" != x ; then
6041 eval "DEFAULT_$LINE"
6042 else
6043 no_cache=1
6044 fi
6045
6046 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6047
6048fi
56cfaa52
RR
6049
6050
6051 eval "$ac_cv_use_spinctrl"
6052 if test "$no_cache" != 1; then
6053 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6054 fi
6055
6056 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6057 echo "$ac_t""yes" 1>&6
56cfaa52 6058 else
698dcdb6 6059 echo "$ac_t""no" 1>&6
56cfaa52 6060 fi
698dcdb6 6061
56cfaa52 6062
698dcdb6 6063 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
ab252f7b 6064echo "configure:6065: checking for --enable-splitter" >&5
10f2d63a
VZ
6065 no_cache=0
6066 # Check whether --enable-splitter or --disable-splitter was given.
6067if test "${enable_splitter+set}" = set; then
6068 enableval="$enable_splitter"
698dcdb6 6069
10f2d63a
VZ
6070 if test "$enableval" = yes; then
6071 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6072 else
6073 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6074 fi
698dcdb6 6075
10f2d63a 6076else
698dcdb6 6077
10f2d63a
VZ
6078 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6079 if test "x$LINE" != x ; then
6080 eval "DEFAULT_$LINE"
6081 else
6082 no_cache=1
6083 fi
6084
6085 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6086
6087fi
10f2d63a
VZ
6088
6089
6090 eval "$ac_cv_use_splitter"
6091 if test "$no_cache" != 1; then
6092 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6093 fi
6094
6095 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6096 echo "$ac_t""yes" 1>&6
10f2d63a 6097 else
698dcdb6 6098 echo "$ac_t""no" 1>&6
10f2d63a 6099 fi
698dcdb6 6100
10f2d63a 6101
698dcdb6 6102 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
ab252f7b 6103echo "configure:6104: checking for --enable-statbmp" >&5
10f2d63a
VZ
6104 no_cache=0
6105 # Check whether --enable-statbmp or --disable-statbmp was given.
6106if test "${enable_statbmp+set}" = set; then
6107 enableval="$enable_statbmp"
698dcdb6 6108
10f2d63a
VZ
6109 if test "$enableval" = yes; then
6110 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6111 else
6112 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6113 fi
698dcdb6 6114
10f2d63a 6115else
698dcdb6 6116
10f2d63a
VZ
6117 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6118 if test "x$LINE" != x ; then
6119 eval "DEFAULT_$LINE"
6120 else
6121 no_cache=1
6122 fi
6123
6124 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6125
6126fi
10f2d63a
VZ
6127
6128
6129 eval "$ac_cv_use_statbmp"
6130 if test "$no_cache" != 1; then
6131 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6132 fi
6133
6134 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6135 echo "$ac_t""yes" 1>&6
10f2d63a 6136 else
698dcdb6 6137 echo "$ac_t""no" 1>&6
10f2d63a 6138 fi
698dcdb6 6139
10f2d63a 6140
698dcdb6 6141 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
ab252f7b 6142echo "configure:6143: checking for --enable-statbox" >&5
10f2d63a
VZ
6143 no_cache=0
6144 # Check whether --enable-statbox or --disable-statbox was given.
6145if test "${enable_statbox+set}" = set; then
6146 enableval="$enable_statbox"
698dcdb6 6147
10f2d63a
VZ
6148 if test "$enableval" = yes; then
6149 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6150 else
6151 ac_cv_use_statbox='wxUSE_STATBOX=no'
6152 fi
698dcdb6 6153
10f2d63a 6154else
698dcdb6 6155
10f2d63a
VZ
6156 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6157 if test "x$LINE" != x ; then
6158 eval "DEFAULT_$LINE"
6159 else
6160 no_cache=1
6161 fi
6162
6163 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6164
6165fi
10f2d63a
VZ
6166
6167
6168 eval "$ac_cv_use_statbox"
6169 if test "$no_cache" != 1; then
6170 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6171 fi
6172
6173 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6174 echo "$ac_t""yes" 1>&6
10f2d63a 6175 else
698dcdb6 6176 echo "$ac_t""no" 1>&6
10f2d63a 6177 fi
698dcdb6 6178
10f2d63a 6179
698dcdb6 6180 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
ab252f7b 6181echo "configure:6182: checking for --enable-statline" >&5
10f2d63a
VZ
6182 no_cache=0
6183 # Check whether --enable-statline or --disable-statline was given.
6184if test "${enable_statline+set}" = set; then
6185 enableval="$enable_statline"
698dcdb6 6186
10f2d63a
VZ
6187 if test "$enableval" = yes; then
6188 ac_cv_use_statline='wxUSE_STATLINE=yes'
6189 else
6190 ac_cv_use_statline='wxUSE_STATLINE=no'
6191 fi
698dcdb6 6192
10f2d63a 6193else
698dcdb6 6194
10f2d63a
VZ
6195 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6196 if test "x$LINE" != x ; then
6197 eval "DEFAULT_$LINE"
6198 else
6199 no_cache=1
6200 fi
6201
6202 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6203
6204fi
10f2d63a
VZ
6205
6206
6207 eval "$ac_cv_use_statline"
6208 if test "$no_cache" != 1; then
6209 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6210 fi
6211
6212 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6213 echo "$ac_t""yes" 1>&6
10f2d63a 6214 else
698dcdb6 6215 echo "$ac_t""no" 1>&6
10f2d63a 6216 fi
698dcdb6 6217
10f2d63a 6218
1e6feb95 6219 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
ab252f7b 6220echo "configure:6221: checking for --enable-stattext" >&5
1e6feb95
VZ
6221 no_cache=0
6222 # Check whether --enable-stattext or --disable-stattext was given.
6223if test "${enable_stattext+set}" = set; then
6224 enableval="$enable_stattext"
6225
6226 if test "$enableval" = yes; then
6227 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6228 else
6229 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6230 fi
6231
6232else
6233
6234 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6235 if test "x$LINE" != x ; then
6236 eval "DEFAULT_$LINE"
6237 else
6238 no_cache=1
6239 fi
6240
6241 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6242
6243fi
6244
6245
6246 eval "$ac_cv_use_stattext"
6247 if test "$no_cache" != 1; then
6248 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6249 fi
6250
6251 if test "$wxUSE_STATTEXT" = yes; then
6252 echo "$ac_t""yes" 1>&6
6253 else
6254 echo "$ac_t""no" 1>&6
6255 fi
6256
6257
698dcdb6 6258 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
ab252f7b 6259echo "configure:6260: checking for --enable-statusbar" >&5
10f2d63a
VZ
6260 no_cache=0
6261 # Check whether --enable-statusbar or --disable-statusbar was given.
6262if test "${enable_statusbar+set}" = set; then
6263 enableval="$enable_statusbar"
698dcdb6 6264
10f2d63a
VZ
6265 if test "$enableval" = yes; then
6266 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6267 else
6268 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6269 fi
698dcdb6 6270
10f2d63a 6271else
698dcdb6 6272
10f2d63a
VZ
6273 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6274 if test "x$LINE" != x ; then
6275 eval "DEFAULT_$LINE"
6276 else
6277 no_cache=1
6278 fi
6279
6280 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6281
6282fi
10f2d63a
VZ
6283
6284
6285 eval "$ac_cv_use_statusbar"
6286 if test "$no_cache" != 1; then
6287 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6288 fi
6289
6290 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6291 echo "$ac_t""yes" 1>&6
10f2d63a 6292 else
698dcdb6 6293 echo "$ac_t""no" 1>&6
10f2d63a 6294 fi
698dcdb6 6295
10f2d63a 6296
698dcdb6 6297 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
ab252f7b 6298echo "configure:6299: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6299 no_cache=0
6300 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6301if test "${enable_tabdialog+set}" = set; then
6302 enableval="$enable_tabdialog"
698dcdb6 6303
10f2d63a
VZ
6304 if test "$enableval" = yes; then
6305 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6306 else
6307 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6308 fi
698dcdb6 6309
10f2d63a 6310else
698dcdb6 6311
10f2d63a
VZ
6312 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6313 if test "x$LINE" != x ; then
6314 eval "DEFAULT_$LINE"
6315 else
6316 no_cache=1
6317 fi
6318
6319 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6320
6321fi
10f2d63a
VZ
6322
6323
6324 eval "$ac_cv_use_tabdialog"
6325 if test "$no_cache" != 1; then
6326 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6327 fi
6328
6329 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6330 echo "$ac_t""yes" 1>&6
10f2d63a 6331 else
698dcdb6 6332 echo "$ac_t""no" 1>&6
10f2d63a 6333 fi
698dcdb6 6334
10f2d63a 6335
1e6feb95 6336 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
ab252f7b 6337echo "configure:6338: checking for --enable-textctrl" >&5
1e6feb95
VZ
6338 no_cache=0
6339 # Check whether --enable-textctrl or --disable-textctrl was given.
6340if test "${enable_textctrl+set}" = set; then
6341 enableval="$enable_textctrl"
6342
6343 if test "$enableval" = yes; then
6344 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6345 else
6346 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6347 fi
6348
6349else
6350
6351 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6352 if test "x$LINE" != x ; then
6353 eval "DEFAULT_$LINE"
6354 else
6355 no_cache=1
6356 fi
6357
6358 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6359
6360fi
6361
6362
6363 eval "$ac_cv_use_textctrl"
6364 if test "$no_cache" != 1; then
6365 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6366 fi
6367
6368 if test "$wxUSE_TEXTCTRL" = yes; then
6369 echo "$ac_t""yes" 1>&6
6370 else
6371 echo "$ac_t""no" 1>&6
6372 fi
6373
6374
698dcdb6 6375 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
ab252f7b 6376echo "configure:6377: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6377 no_cache=0
6378 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6379if test "${enable_togglebtn+set}" = set; then
6380 enableval="$enable_togglebtn"
698dcdb6 6381
1db8dc4a
VZ
6382 if test "$enableval" = yes; then
6383 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6384 else
6385 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6386 fi
698dcdb6 6387
1db8dc4a 6388else
698dcdb6 6389
1db8dc4a
VZ
6390 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6391 if test "x$LINE" != x ; then
6392 eval "DEFAULT_$LINE"
6393 else
6394 no_cache=1
6395 fi
6396
6397 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6398
6399fi
1db8dc4a
VZ
6400
6401
6402 eval "$ac_cv_use_togglebtn"
6403 if test "$no_cache" != 1; then
6404 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6405 fi
6406
6407 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6408 echo "$ac_t""yes" 1>&6
1db8dc4a 6409 else
698dcdb6 6410 echo "$ac_t""no" 1>&6
1db8dc4a 6411 fi
698dcdb6 6412
1db8dc4a 6413
698dcdb6 6414 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
ab252f7b 6415echo "configure:6416: checking for --enable-toolbar" >&5
10f2d63a
VZ
6416 no_cache=0
6417 # Check whether --enable-toolbar or --disable-toolbar was given.
6418if test "${enable_toolbar+set}" = set; then
6419 enableval="$enable_toolbar"
698dcdb6 6420
10f2d63a
VZ
6421 if test "$enableval" = yes; then
6422 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6423 else
6424 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6425 fi
698dcdb6 6426
10f2d63a 6427else
698dcdb6 6428
10f2d63a
VZ
6429 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6430 if test "x$LINE" != x ; then
6431 eval "DEFAULT_$LINE"
6432 else
6433 no_cache=1
6434 fi
6435
6436 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6437
6438fi
10f2d63a
VZ
6439
6440
6441 eval "$ac_cv_use_toolbar"
6442 if test "$no_cache" != 1; then
6443 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6444 fi
6445
6446 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6447 echo "$ac_t""yes" 1>&6
10f2d63a 6448 else
698dcdb6 6449 echo "$ac_t""no" 1>&6
10f2d63a 6450 fi
698dcdb6 6451
10f2d63a 6452
698dcdb6 6453 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
ab252f7b 6454echo "configure:6455: checking for --enable-tbarnative" >&5
360d6699
VZ
6455 no_cache=0
6456 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6457if test "${enable_tbarnative+set}" = set; then
6458 enableval="$enable_tbarnative"
698dcdb6 6459
360d6699
VZ
6460 if test "$enableval" = yes; then
6461 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6462 else
6463 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6464 fi
698dcdb6 6465
360d6699 6466else
698dcdb6 6467
360d6699
VZ
6468 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6469 if test "x$LINE" != x ; then
6470 eval "DEFAULT_$LINE"
6471 else
6472 no_cache=1
6473 fi
6474
6475 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6476
6477fi
360d6699
VZ
6478
6479
6480 eval "$ac_cv_use_tbarnative"
6481 if test "$no_cache" != 1; then
6482 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6483 fi
6484
6485 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6486 echo "$ac_t""yes" 1>&6
360d6699 6487 else
698dcdb6 6488 echo "$ac_t""no" 1>&6
360d6699 6489 fi
698dcdb6 6490
360d6699 6491
698dcdb6 6492 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
ab252f7b 6493echo "configure:6494: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6494 no_cache=0
6495 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6496if test "${enable_tbarsmpl+set}" = set; then
6497 enableval="$enable_tbarsmpl"
698dcdb6 6498
360d6699
VZ
6499 if test "$enableval" = yes; then
6500 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6501 else
6502 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6503 fi
698dcdb6 6504
360d6699 6505else
698dcdb6 6506
360d6699
VZ
6507 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6508 if test "x$LINE" != x ; then
6509 eval "DEFAULT_$LINE"
6510 else
6511 no_cache=1
6512 fi
6513
6514 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6515
6516fi
360d6699
VZ
6517
6518
6519 eval "$ac_cv_use_tbarsmpl"
6520 if test "$no_cache" != 1; then
6521 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6522 fi
6523
6524 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6525 echo "$ac_t""yes" 1>&6
360d6699 6526 else
698dcdb6 6527 echo "$ac_t""no" 1>&6
360d6699 6528 fi
698dcdb6 6529
360d6699 6530
698dcdb6 6531 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
ab252f7b 6532echo "configure:6533: checking for --enable-treectrl" >&5
10f2d63a
VZ
6533 no_cache=0
6534 # Check whether --enable-treectrl or --disable-treectrl was given.
6535if test "${enable_treectrl+set}" = set; then
6536 enableval="$enable_treectrl"
698dcdb6 6537
10f2d63a
VZ
6538 if test "$enableval" = yes; then
6539 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6540 else
6541 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6542 fi
698dcdb6 6543
10f2d63a 6544else
698dcdb6 6545
10f2d63a
VZ
6546 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6547 if test "x$LINE" != x ; then
6548 eval "DEFAULT_$LINE"
6549 else
6550 no_cache=1
6551 fi
6552
6553 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6554
6555fi
10f2d63a
VZ
6556
6557
1e6feb95
VZ
6558 eval "$ac_cv_use_treectrl"
6559 if test "$no_cache" != 1; then
6560 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6561 fi
6562
6563 if test "$wxUSE_TREECTRL" = yes; then
6564 echo "$ac_t""yes" 1>&6
6565 else
6566 echo "$ac_t""no" 1>&6
6567 fi
6568
6569
9f41d601 6570 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
ab252f7b 6571echo "configure:6572: checking for --enable-popupwin" >&5
9f41d601
RR
6572 no_cache=0
6573 # Check whether --enable-popupwin or --disable-popupwin was given.
6574if test "${enable_popupwin+set}" = set; then
6575 enableval="$enable_popupwin"
6576
6577 if test "$enableval" = yes; then
6578 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6579 else
6580 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6581 fi
6582
6583else
6584
6585 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6586 if test "x$LINE" != x ; then
6587 eval "DEFAULT_$LINE"
6588 else
6589 no_cache=1
6590 fi
6591
6592 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6593
6594fi
6595
6596
6597 eval "$ac_cv_use_popupwin"
6598 if test "$no_cache" != 1; then
6599 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6600 fi
6601
6602 if test "$wxUSE_POPUPWIN" = yes; then
6603 echo "$ac_t""yes" 1>&6
6604 else
6605 echo "$ac_t""no" 1>&6
6606 fi
6607
6608
1e6feb95
VZ
6609
6610
6611 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
ab252f7b 6612echo "configure:6613: checking for --enable-commondlg" >&5
1e6feb95
VZ
6613 no_cache=0
6614 # Check whether --enable-commondlg or --disable-commondlg was given.
6615if test "${enable_commondlg+set}" = set; then
6616 enableval="$enable_commondlg"
6617
6618 if test "$enableval" = yes; then
6619 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6620 else
6621 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6622 fi
6623
6624else
6625
6626 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6627 if test "x$LINE" != x ; then
6628 eval "DEFAULT_$LINE"
6629 else
6630 no_cache=1
6631 fi
6632
6633 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6634
6635fi
6636
6637
6638 eval "$ac_cv_use_commondlg"
6639 if test "$no_cache" != 1; then
6640 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6641 fi
6642
6643 if test "$wxUSE_COMMONDLGS" = yes; then
6644 echo "$ac_t""yes" 1>&6
6645 else
6646 echo "$ac_t""no" 1>&6
6647 fi
6648
6649
6650 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
ab252f7b 6651echo "configure:6652: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6652 no_cache=0
6653 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6654if test "${enable_choicedlg+set}" = set; then
6655 enableval="$enable_choicedlg"
6656
6657 if test "$enableval" = yes; then
6658 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6659 else
6660 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6661 fi
6662
6663else
6664
6665 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6666 if test "x$LINE" != x ; then
6667 eval "DEFAULT_$LINE"
6668 else
6669 no_cache=1
6670 fi
6671
6672 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6673
6674fi
6675
6676
6677 eval "$ac_cv_use_choicedlg"
6678 if test "$no_cache" != 1; then
6679 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6680 fi
6681
6682 if test "$wxUSE_CHOICEDLG" = yes; then
6683 echo "$ac_t""yes" 1>&6
6684 else
6685 echo "$ac_t""no" 1>&6
6686 fi
6687
6688
6689 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
ab252f7b 6690echo "configure:6691: checking for --enable-coldlg" >&5
1e6feb95
VZ
6691 no_cache=0
6692 # Check whether --enable-coldlg or --disable-coldlg was given.
6693if test "${enable_coldlg+set}" = set; then
6694 enableval="$enable_coldlg"
6695
6696 if test "$enableval" = yes; then
6697 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6698 else
6699 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6700 fi
6701
6702else
6703
6704 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6712
6713fi
6714
6715
6716 eval "$ac_cv_use_coldlg"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_COLOURDLG" = yes; then
6722 echo "$ac_t""yes" 1>&6
6723 else
6724 echo "$ac_t""no" 1>&6
6725 fi
6726
6727
6728 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
ab252f7b 6729echo "configure:6730: checking for --enable-filedlg" >&5
1e6feb95
VZ
6730 no_cache=0
6731 # Check whether --enable-filedlg or --disable-filedlg was given.
6732if test "${enable_filedlg+set}" = set; then
6733 enableval="$enable_filedlg"
6734
6735 if test "$enableval" = yes; then
6736 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6737 else
6738 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6739 fi
6740
6741else
6742
6743 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6744 if test "x$LINE" != x ; then
6745 eval "DEFAULT_$LINE"
6746 else
6747 no_cache=1
6748 fi
6749
6750 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6751
6752fi
6753
6754
6755 eval "$ac_cv_use_filedlg"
6756 if test "$no_cache" != 1; then
6757 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6758 fi
6759
6760 if test "$wxUSE_FILEDLG" = yes; then
6761 echo "$ac_t""yes" 1>&6
6762 else
6763 echo "$ac_t""no" 1>&6
6764 fi
6765
6766
8db37e06 6767 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
ab252f7b 6768echo "configure:6769: checking for --enable-filedlg" >&5
8db37e06
VZ
6769 no_cache=0
6770 # Check whether --enable-filedlg or --disable-filedlg was given.
6771if test "${enable_filedlg+set}" = set; then
6772 enableval="$enable_filedlg"
6773
6774 if test "$enableval" = yes; then
6775 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6776 else
6777 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6778 fi
6779
6780else
6781
6782 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6783 if test "x$LINE" != x ; then
6784 eval "DEFAULT_$LINE"
6785 else
6786 no_cache=1
6787 fi
6788
6789 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6790
6791fi
6792
6793
6794 eval "$ac_cv_use_filedlg"
6795 if test "$no_cache" != 1; then
6796 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6797 fi
6798
6799 if test "$wxUSE_FINDREPLDLG" = yes; then
6800 echo "$ac_t""yes" 1>&6
6801 else
6802 echo "$ac_t""no" 1>&6
6803 fi
6804
6805
1e6feb95 6806 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
ab252f7b 6807echo "configure:6808: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6808 no_cache=0
6809 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6810if test "${enable_fontdlg+set}" = set; then
6811 enableval="$enable_fontdlg"
6812
6813 if test "$enableval" = yes; then
6814 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6815 else
6816 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6817 fi
6818
6819else
6820
6821 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6822 if test "x$LINE" != x ; then
6823 eval "DEFAULT_$LINE"
6824 else
6825 no_cache=1
6826 fi
6827
6828 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6829
6830fi
6831
6832
6833 eval "$ac_cv_use_fontdlg"
6834 if test "$no_cache" != 1; then
6835 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6836 fi
6837
6838 if test "$wxUSE_FONTDLG" = yes; then
6839 echo "$ac_t""yes" 1>&6
6840 else
6841 echo "$ac_t""no" 1>&6
6842 fi
6843
6844
6845 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
ab252f7b 6846echo "configure:6847: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6847 no_cache=0
6848 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6849if test "${enable_dirdlg+set}" = set; then
6850 enableval="$enable_dirdlg"
6851
6852 if test "$enableval" = yes; then
6853 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6854 else
6855 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6856 fi
6857
6858else
6859
6860 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6861 if test "x$LINE" != x ; then
6862 eval "DEFAULT_$LINE"
6863 else
6864 no_cache=1
6865 fi
6866
6867 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6868
6869fi
6870
6871
6872 eval "$ac_cv_use_dirdlg"
10f2d63a 6873 if test "$no_cache" != 1; then
1e6feb95 6874 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6875 fi
6876
1e6feb95 6877 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6878 echo "$ac_t""yes" 1>&6
10f2d63a 6879 else
698dcdb6 6880 echo "$ac_t""no" 1>&6
10f2d63a 6881 fi
698dcdb6
VZ
6882
6883
1e6feb95 6884 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
ab252f7b 6885echo "configure:6886: checking for --enable-msgdlg" >&5
10f2d63a 6886 no_cache=0
1e6feb95
VZ
6887 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6888if test "${enable_msgdlg+set}" = set; then
6889 enableval="$enable_msgdlg"
698dcdb6 6890
10f2d63a 6891 if test "$enableval" = yes; then
1e6feb95 6892 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6893 else
1e6feb95 6894 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6895 fi
698dcdb6 6896
10f2d63a 6897else
698dcdb6 6898
1e6feb95 6899 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6900 if test "x$LINE" != x ; then
6901 eval "DEFAULT_$LINE"
6902 else
6903 no_cache=1
6904 fi
6905
1e6feb95 6906 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6907
6908fi
10f2d63a
VZ
6909
6910
1e6feb95 6911 eval "$ac_cv_use_msgdlg"
10f2d63a 6912 if test "$no_cache" != 1; then
1e6feb95 6913 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6914 fi
6915
1e6feb95 6916 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6917 echo "$ac_t""yes" 1>&6
10f2d63a 6918 else
698dcdb6 6919 echo "$ac_t""no" 1>&6
10f2d63a 6920 fi
698dcdb6 6921
10f2d63a 6922
1e6feb95 6923 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
ab252f7b 6924echo "configure:6925: checking for --enable-numberdlg" >&5
10f2d63a 6925 no_cache=0
1e6feb95
VZ
6926 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6927if test "${enable_numberdlg+set}" = set; then
6928 enableval="$enable_numberdlg"
698dcdb6 6929
10f2d63a 6930 if test "$enableval" = yes; then
1e6feb95 6931 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6932 else
1e6feb95 6933 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6934 fi
698dcdb6 6935
10f2d63a 6936else
698dcdb6 6937
1e6feb95 6938 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6939 if test "x$LINE" != x ; then
6940 eval "DEFAULT_$LINE"
6941 else
6942 no_cache=1
6943 fi
6944
1e6feb95 6945 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6946
6947fi
10f2d63a
VZ
6948
6949
1e6feb95 6950 eval "$ac_cv_use_numberdlg"
10f2d63a 6951 if test "$no_cache" != 1; then
1e6feb95 6952 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6953 fi
6954
1e6feb95 6955 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6956 echo "$ac_t""yes" 1>&6
10f2d63a 6957 else
698dcdb6 6958 echo "$ac_t""no" 1>&6
10f2d63a 6959 fi
698dcdb6 6960
10f2d63a 6961
cbca9943 6962 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
ab252f7b 6963echo "configure:6964: checking for --enable-splash" >&5
cbca9943
VZ
6964 no_cache=0
6965 # Check whether --enable-splash or --disable-splash was given.
6966if test "${enable_splash+set}" = set; then
6967 enableval="$enable_splash"
6968
6969 if test "$enableval" = yes; then
6970 ac_cv_use_splash='wxUSE_SPLASH=yes'
6971 else
6972 ac_cv_use_splash='wxUSE_SPLASH=no'
6973 fi
6974
6975else
6976
6977 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
6978 if test "x$LINE" != x ; then
6979 eval "DEFAULT_$LINE"
6980 else
6981 no_cache=1
6982 fi
6983
6984 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
6985
6986fi
6987
6988
6989 eval "$ac_cv_use_splash"
6990 if test "$no_cache" != 1; then
6991 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
6992 fi
6993
6994 if test "$wxUSE_SPLASH" = yes; then
6995 echo "$ac_t""yes" 1>&6
6996 else
6997 echo "$ac_t""no" 1>&6
6998 fi
6999
7000
698dcdb6 7001 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
ab252f7b 7002echo "configure:7003: checking for --enable-textdlg" >&5
10f2d63a
VZ
7003 no_cache=0
7004 # Check whether --enable-textdlg or --disable-textdlg was given.
7005if test "${enable_textdlg+set}" = set; then
7006 enableval="$enable_textdlg"
698dcdb6 7007
10f2d63a
VZ
7008 if test "$enableval" = yes; then
7009 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7010 else
7011 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7012 fi
698dcdb6 7013
10f2d63a 7014else
698dcdb6 7015
10f2d63a
VZ
7016 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7017 if test "x$LINE" != x ; then
7018 eval "DEFAULT_$LINE"
7019 else
7020 no_cache=1
7021 fi
7022
7023 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7024
7025fi
10f2d63a
VZ
7026
7027
7028 eval "$ac_cv_use_textdlg"
7029 if test "$no_cache" != 1; then
7030 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7031 fi
7032
7033 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7034 echo "$ac_t""yes" 1>&6
10f2d63a 7035 else
698dcdb6 7036 echo "$ac_t""no" 1>&6
10f2d63a 7037 fi
698dcdb6 7038
10f2d63a 7039
698dcdb6 7040 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
ab252f7b 7041echo "configure:7042: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7042 no_cache=0
7043 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7044if test "${enable_tipdlg+set}" = set; then
7045 enableval="$enable_tipdlg"
698dcdb6 7046
10f2d63a
VZ
7047 if test "$enableval" = yes; then
7048 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7049 else
7050 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7051 fi
698dcdb6 7052
10f2d63a 7053else
698dcdb6 7054
10f2d63a
VZ
7055 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7056 if test "x$LINE" != x ; then
7057 eval "DEFAULT_$LINE"
7058 else
7059 no_cache=1
7060 fi
7061
7062 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7063
7064fi
10f2d63a
VZ
7065
7066
7067 eval "$ac_cv_use_tipdlg"
7068 if test "$no_cache" != 1; then
7069 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7070 fi
7071
7072 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7073 echo "$ac_t""yes" 1>&6
10f2d63a 7074 else
698dcdb6 7075 echo "$ac_t""no" 1>&6
10f2d63a 7076 fi
698dcdb6 7077
10f2d63a 7078
698dcdb6 7079 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
ab252f7b 7080echo "configure:7081: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7081 no_cache=0
7082 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7083if test "${enable_progressdlg+set}" = set; then
7084 enableval="$enable_progressdlg"
698dcdb6 7085
10f2d63a
VZ
7086 if test "$enableval" = yes; then
7087 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7088 else
7089 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7090 fi
698dcdb6 7091
10f2d63a 7092else
698dcdb6 7093
10f2d63a
VZ
7094 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7095 if test "x$LINE" != x ; then
7096 eval "DEFAULT_$LINE"
7097 else
7098 no_cache=1
7099 fi
7100
7101 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7102
7103fi
10f2d63a
VZ
7104
7105
7106 eval "$ac_cv_use_progressdlg"
7107 if test "$no_cache" != 1; then
7108 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7109 fi
7110
7111 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7112 echo "$ac_t""yes" 1>&6
10f2d63a 7113 else
698dcdb6 7114 echo "$ac_t""no" 1>&6
10f2d63a 7115 fi
698dcdb6 7116
10f2d63a 7117
b1f5d087 7118 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
ab252f7b 7119echo "configure:7120: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7120 no_cache=0
7121 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7122if test "${enable_wizarddlg+set}" = set; then
7123 enableval="$enable_wizarddlg"
7124
7125 if test "$enableval" = yes; then
7126 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7127 else
7128 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7129 fi
7130
7131else
7132
7133 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7134 if test "x$LINE" != x ; then
7135 eval "DEFAULT_$LINE"
7136 else
7137 no_cache=1
7138 fi
7139
7140 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7141
7142fi
7143
7144
7145 eval "$ac_cv_use_wizarddlg"
7146 if test "$no_cache" != 1; then
7147 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7148 fi
7149
7150 if test "$wxUSE_WIZARDDLG" = yes; then
7151 echo "$ac_t""yes" 1>&6
7152 else
7153 echo "$ac_t""no" 1>&6
7154 fi
7155
7156
7157
7158
1e6feb95 7159 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
ab252f7b 7160echo "configure:7161: checking for --enable-menus" >&5
1e6feb95
VZ
7161 no_cache=0
7162 # Check whether --enable-menus or --disable-menus was given.
7163if test "${enable_menus+set}" = set; then
7164 enableval="$enable_menus"
7165
7166 if test "$enableval" = yes; then
7167 ac_cv_use_menus='wxUSE_MENUS=yes'
7168 else
7169 ac_cv_use_menus='wxUSE_MENUS=no'
7170 fi
7171
7172else
7173
7174 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7175 if test "x$LINE" != x ; then
7176 eval "DEFAULT_$LINE"
7177 else
7178 no_cache=1
7179 fi
7180
7181 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7182
7183fi
7184
7185
7186 eval "$ac_cv_use_menus"
7187 if test "$no_cache" != 1; then
7188 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7189 fi
7190
7191 if test "$wxUSE_MENUS" = yes; then
7192 echo "$ac_t""yes" 1>&6
7193 else
7194 echo "$ac_t""no" 1>&6
7195 fi
7196
7197
698dcdb6 7198 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
ab252f7b 7199echo "configure:7200: checking for --enable-miniframe" >&5
10f2d63a
VZ
7200 no_cache=0
7201 # Check whether --enable-miniframe or --disable-miniframe was given.
7202if test "${enable_miniframe+set}" = set; then
7203 enableval="$enable_miniframe"
698dcdb6 7204
10f2d63a
VZ
7205 if test "$enableval" = yes; then
7206 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7207 else
7208 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7209 fi
698dcdb6 7210
10f2d63a 7211else
698dcdb6 7212
10f2d63a
VZ
7213 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7214 if test "x$LINE" != x ; then
7215 eval "DEFAULT_$LINE"
7216 else
7217 no_cache=1
7218 fi
7219
7220 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7221
7222fi
10f2d63a
VZ
7223
7224
7225 eval "$ac_cv_use_miniframe"
7226 if test "$no_cache" != 1; then
7227 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7228 fi
7229
7230 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7231 echo "$ac_t""yes" 1>&6
10f2d63a 7232 else
698dcdb6 7233 echo "$ac_t""no" 1>&6
10f2d63a 7234 fi
698dcdb6 7235
10f2d63a 7236
698dcdb6 7237 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
ab252f7b 7238echo "configure:7239: checking for --enable-tooltips" >&5
10f2d63a
VZ
7239 no_cache=0
7240 # Check whether --enable-tooltips or --disable-tooltips was given.
7241if test "${enable_tooltips+set}" = set; then
7242 enableval="$enable_tooltips"
698dcdb6 7243
10f2d63a
VZ
7244 if test "$enableval" = yes; then
7245 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7246 else
7247 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7248 fi
698dcdb6 7249
10f2d63a 7250else
698dcdb6 7251
10f2d63a
VZ
7252 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7253 if test "x$LINE" != x ; then
7254 eval "DEFAULT_$LINE"
7255 else
7256 no_cache=1
7257 fi
7258
7259 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7260
7261fi
10f2d63a
VZ
7262
7263
7264 eval "$ac_cv_use_tooltips"
7265 if test "$no_cache" != 1; then
7266 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7267 fi
7268
7269 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7270 echo "$ac_t""yes" 1>&6
10f2d63a 7271 else
698dcdb6 7272 echo "$ac_t""no" 1>&6
10f2d63a 7273 fi
698dcdb6 7274
10f2d63a 7275
698dcdb6 7276 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
ab252f7b 7277echo "configure:7278: checking for --enable-splines" >&5
10f2d63a
VZ
7278 no_cache=0
7279 # Check whether --enable-splines or --disable-splines was given.
7280if test "${enable_splines+set}" = set; then
7281 enableval="$enable_splines"
698dcdb6 7282
10f2d63a
VZ
7283 if test "$enableval" = yes; then
7284 ac_cv_use_splines='wxUSE_SPLINES=yes'
7285 else
7286 ac_cv_use_splines='wxUSE_SPLINES=no'
7287 fi
698dcdb6 7288
10f2d63a 7289else
698dcdb6 7290
10f2d63a
VZ
7291 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7292 if test "x$LINE" != x ; then
7293 eval "DEFAULT_$LINE"
7294 else
7295 no_cache=1
7296 fi
7297
7298 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7299
7300fi
10f2d63a
VZ
7301
7302
7303 eval "$ac_cv_use_splines"
7304 if test "$no_cache" != 1; then
7305 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7306 fi
7307
7308 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7309 echo "$ac_t""yes" 1>&6
10f2d63a 7310 else
698dcdb6 7311 echo "$ac_t""no" 1>&6
10f2d63a 7312 fi
698dcdb6 7313
10f2d63a 7314
698dcdb6 7315 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
ab252f7b 7316echo "configure:7317: checking for --enable-validators" >&5
10f2d63a
VZ
7317 no_cache=0
7318 # Check whether --enable-validators or --disable-validators was given.
7319if test "${enable_validators+set}" = set; then
7320 enableval="$enable_validators"
698dcdb6 7321
10f2d63a
VZ
7322 if test "$enableval" = yes; then
7323 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7324 else
7325 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7326 fi
698dcdb6 7327
10f2d63a 7328else
698dcdb6 7329
10f2d63a
VZ
7330 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7331 if test "x$LINE" != x ; then
7332 eval "DEFAULT_$LINE"
7333 else
7334 no_cache=1
7335 fi
7336
7337 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7338
7339fi
10f2d63a
VZ
7340
7341
7342 eval "$ac_cv_use_validators"
7343 if test "$no_cache" != 1; then
7344 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7345 fi
7346
7347 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7348 echo "$ac_t""yes" 1>&6
10f2d63a 7349 else
698dcdb6 7350 echo "$ac_t""no" 1>&6
10f2d63a 7351 fi
698dcdb6 7352
10f2d63a 7353
698dcdb6 7354 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
ab252f7b 7355echo "configure:7356: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7356 no_cache=0
7357 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7358if test "${enable_busyinfo+set}" = set; then
7359 enableval="$enable_busyinfo"
698dcdb6 7360
10f2d63a
VZ
7361 if test "$enableval" = yes; then
7362 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7363 else
7364 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7365 fi
698dcdb6 7366
10f2d63a 7367else
698dcdb6 7368
10f2d63a
VZ
7369 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7370 if test "x$LINE" != x ; then
7371 eval "DEFAULT_$LINE"
7372 else
7373 no_cache=1
7374 fi
7375
7376 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7377
7378fi
10f2d63a
VZ
7379
7380
7381 eval "$ac_cv_use_busyinfo"
7382 if test "$no_cache" != 1; then
7383 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7384 fi
7385
7386 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7387 echo "$ac_t""yes" 1>&6
10f2d63a 7388 else
698dcdb6 7389 echo "$ac_t""no" 1>&6
10f2d63a 7390 fi
698dcdb6 7391
10f2d63a 7392
698dcdb6 7393 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
ab252f7b 7394echo "configure:7395: checking for --enable-joystick" >&5
f6bcfd97
BP
7395 no_cache=0
7396 # Check whether --enable-joystick or --disable-joystick was given.
7397if test "${enable_joystick+set}" = set; then
7398 enableval="$enable_joystick"
698dcdb6 7399
f6bcfd97
BP
7400 if test "$enableval" = yes; then
7401 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7402 else
7403 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7404 fi
698dcdb6 7405
f6bcfd97 7406else
698dcdb6 7407
f6bcfd97
BP
7408 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7409 if test "x$LINE" != x ; then
7410 eval "DEFAULT_$LINE"
7411 else
7412 no_cache=1
7413 fi
7414
7415 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7416
7417fi
f6bcfd97
BP
7418
7419
7420 eval "$ac_cv_use_joystick"
7421 if test "$no_cache" != 1; then
7422 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7423 fi
7424
7425 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7426 echo "$ac_t""yes" 1>&6
f6bcfd97 7427 else
698dcdb6 7428 echo "$ac_t""no" 1>&6
f6bcfd97 7429 fi
698dcdb6
VZ
7430
7431
1e6feb95 7432 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
ab252f7b 7433echo "configure:7434: checking for --enable-metafile" >&5
1e6feb95
VZ
7434 no_cache=0
7435 # Check whether --enable-metafile or --disable-metafile was given.
7436if test "${enable_metafile+set}" = set; then
7437 enableval="$enable_metafile"
7438
7439 if test "$enableval" = yes; then
7440 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7441 else
7442 ac_cv_use_metafile='wxUSE_METAFILE=no'
7443 fi
7444
7445else
7446
7447 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7448 if test "x$LINE" != x ; then
7449 eval "DEFAULT_$LINE"
7450 else
7451 no_cache=1
7452 fi
7453
7454 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7455
7456fi
7457
7458
7459 eval "$ac_cv_use_metafile"
7460 if test "$no_cache" != 1; then
7461 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7462 fi
7463
7464 if test "$wxUSE_METAFILE" = yes; then
7465 echo "$ac_t""yes" 1>&6
7466 else
7467 echo "$ac_t""no" 1>&6
7468 fi
7469
7470
24fd6d87 7471 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
ab252f7b 7472echo "configure:7473: checking for --enable-dragimage" >&5
24fd6d87
VZ
7473 no_cache=0
7474 # Check whether --enable-dragimage or --disable-dragimage was given.
7475if test "${enable_dragimage+set}" = set; then
7476 enableval="$enable_dragimage"
7477
7478 if test "$enableval" = yes; then
7479 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7480 else
7481 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7482 fi
7483
7484else
7485
7486 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7487 if test "x$LINE" != x ; then
7488 eval "DEFAULT_$LINE"
7489 else
7490 no_cache=1
7491 fi
7492
7493 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7494
7495fi
7496
7497
7498 eval "$ac_cv_use_dragimage"
7499 if test "$no_cache" != 1; then
7500 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7501 fi
7502
7503 if test "$wxUSE_DRAGIMAGE" = yes; then
7504 echo "$ac_t""yes" 1>&6
7505 else
7506 echo "$ac_t""no" 1>&6
7507 fi
7508
7509
10f2d63a 7510
698dcdb6
VZ
7511
7512 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
ab252f7b 7513echo "configure:7514: checking for --enable-image" >&5
0046ff7c
VS
7514 no_cache=0
7515 # Check whether --enable-image or --disable-image was given.
7516if test "${enable_image+set}" = set; then
7517 enableval="$enable_image"
698dcdb6 7518
0046ff7c
VS
7519 if test "$enableval" = yes; then
7520 ac_cv_use_image='wxUSE_IMAGE=yes'
7521 else
7522 ac_cv_use_image='wxUSE_IMAGE=no'
7523 fi
698dcdb6 7524
0046ff7c 7525else
698dcdb6 7526
0046ff7c
VS
7527 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7528 if test "x$LINE" != x ; then
7529 eval "DEFAULT_$LINE"
7530 else
7531 no_cache=1
7532 fi
7533
7534 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7535
7536fi
0046ff7c
VS
7537
7538
7539 eval "$ac_cv_use_image"
7540 if test "$no_cache" != 1; then
7541 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7542 fi
7543
7544 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7545 echo "$ac_t""yes" 1>&6
0046ff7c 7546 else
698dcdb6 7547 echo "$ac_t""no" 1>&6
0046ff7c 7548 fi
698dcdb6 7549
0046ff7c 7550
698dcdb6 7551 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
ab252f7b 7552echo "configure:7553: checking for --enable-gif" >&5
10f2d63a
VZ
7553 no_cache=0
7554 # Check whether --enable-gif or --disable-gif was given.
7555if test "${enable_gif+set}" = set; then
7556 enableval="$enable_gif"
698dcdb6 7557
10f2d63a
VZ
7558 if test "$enableval" = yes; then
7559 ac_cv_use_gif='wxUSE_GIF=yes'
7560 else
7561 ac_cv_use_gif='wxUSE_GIF=no'
7562 fi
698dcdb6 7563
10f2d63a 7564else
698dcdb6 7565
10f2d63a
VZ
7566 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7567 if test "x$LINE" != x ; then
7568 eval "DEFAULT_$LINE"
7569 else
7570 no_cache=1
7571 fi
7572
7573 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7574
7575fi
10f2d63a
VZ
7576
7577
7578 eval "$ac_cv_use_gif"
7579 if test "$no_cache" != 1; then
7580 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7581 fi
7582
7583 if test "$wxUSE_GIF" = yes; then
698dcdb6 7584 echo "$ac_t""yes" 1>&6
10f2d63a 7585 else
698dcdb6 7586 echo "$ac_t""no" 1>&6
10f2d63a 7587 fi
698dcdb6 7588
10f2d63a 7589
698dcdb6 7590 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
ab252f7b 7591echo "configure:7592: checking for --enable-pcx" >&5
10f2d63a
VZ
7592 no_cache=0
7593 # Check whether --enable-pcx or --disable-pcx was given.
7594if test "${enable_pcx+set}" = set; then
7595 enableval="$enable_pcx"
698dcdb6 7596
10f2d63a
VZ
7597 if test "$enableval" = yes; then
7598 ac_cv_use_pcx='wxUSE_PCX=yes'
7599 else
7600 ac_cv_use_pcx='wxUSE_PCX=no'
7601 fi
698dcdb6 7602
10f2d63a 7603else
698dcdb6 7604
10f2d63a
VZ
7605 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7606 if test "x$LINE" != x ; then
7607 eval "DEFAULT_$LINE"
7608 else
7609 no_cache=1
7610 fi
7611
7612 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7613
7614fi
10f2d63a
VZ
7615
7616
7617 eval "$ac_cv_use_pcx"
7618 if test "$no_cache" != 1; then
7619 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7620 fi
7621
7622 if test "$wxUSE_PCX" = yes; then
698dcdb6 7623 echo "$ac_t""yes" 1>&6
10f2d63a 7624 else
698dcdb6 7625 echo "$ac_t""no" 1>&6
10f2d63a 7626 fi
698dcdb6 7627
10f2d63a 7628
698dcdb6 7629 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
ab252f7b 7630echo "configure:7631: checking for --enable-pnm" >&5
10f2d63a
VZ
7631 no_cache=0
7632 # Check whether --enable-pnm or --disable-pnm was given.
7633if test "${enable_pnm+set}" = set; then
7634 enableval="$enable_pnm"
698dcdb6 7635
10f2d63a
VZ
7636 if test "$enableval" = yes; then
7637 ac_cv_use_pnm='wxUSE_PNM=yes'
7638 else
7639 ac_cv_use_pnm='wxUSE_PNM=no'
7640 fi
698dcdb6 7641
10f2d63a 7642else
698dcdb6 7643
10f2d63a
VZ
7644 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7645 if test "x$LINE" != x ; then
7646 eval "DEFAULT_$LINE"
7647 else
7648 no_cache=1
7649 fi
7650
7651 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7652
7653fi
10f2d63a
VZ
7654
7655
7656 eval "$ac_cv_use_pnm"
7657 if test "$no_cache" != 1; then
7658 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7659 fi
7660
7661 if test "$wxUSE_PNM" = yes; then
698dcdb6 7662 echo "$ac_t""yes" 1>&6
10f2d63a 7663 else
698dcdb6 7664 echo "$ac_t""no" 1>&6
10f2d63a 7665 fi
698dcdb6 7666
10f2d63a 7667
698dcdb6 7668 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
ab252f7b 7669echo "configure:7670: checking for --enable-pnm" >&5
0046ff7c
VS
7670 no_cache=0
7671 # Check whether --enable-pnm or --disable-pnm was given.
7672if test "${enable_pnm+set}" = set; then
7673 enableval="$enable_pnm"
698dcdb6 7674
0046ff7c
VS
7675 if test "$enableval" = yes; then
7676 ac_cv_use_pnm='wxUSE_XPM=yes'
7677 else
7678 ac_cv_use_pnm='wxUSE_XPM=no'
7679 fi
698dcdb6 7680
0046ff7c 7681else
698dcdb6 7682
0046ff7c
VS
7683 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7684 if test "x$LINE" != x ; then
7685 eval "DEFAULT_$LINE"
7686 else
7687 no_cache=1
7688 fi
7689
7690 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7691
7692fi
0046ff7c
VS
7693
7694
7695 eval "$ac_cv_use_pnm"
7696 if test "$no_cache" != 1; then
7697 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7698 fi
7699
7700 if test "$wxUSE_XPM" = yes; then
698dcdb6 7701 echo "$ac_t""yes" 1>&6
0046ff7c 7702 else
698dcdb6 7703 echo "$ac_t""no" 1>&6
0046ff7c 7704 fi
698dcdb6 7705
0046ff7c 7706
b12915c1
VZ
7707fi
7708
698dcdb6 7709
10f2d63a
VZ
7710 echo "saving argument cache $wx_arg_cache_file"
7711 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7712
10f2d63a 7713
698dcdb6
VZ
7714
7715echo $ac_n "checking for toolkit""... $ac_c" 1>&6
ab252f7b 7716echo "configure:7717: checking for toolkit" >&5
10f2d63a
VZ
7717
7718if test "$wxUSE_GUI" = "yes"; then
7719
b12915c1 7720if test "$USE_BEOS" = 1; then
698dcdb6 7721 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
b12915c1
VZ
7722fi
7723
10f2d63a
VZ
7724if test "$TOOLKIT_GIVEN" = 1; then
7725 for toolkit in `echo $ALL_TOOLKITS`; do
7726 var=wxUSE_$toolkit
7727 eval "value=\$${var}"
7728 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7729 done
7730else
7731 for toolkit in `echo $ALL_TOOLKITS`; do
7732 if test "$has_toolkit_in_cache" != 1; then
7733 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7734 else
7735 var=DEFAULT_wxUSE_$toolkit
7736 fi
7737 eval "wxUSE_$toolkit=\$${var}"
7738 done
7739fi
7740
1e6feb95 7741NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
cf27ef00 7742
ec14dd32
VZ
7743case "${host}" in
7744 *-pc-os2_emx )
7745 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7746 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7747 LEX_STEM="lexyy"
7748 ;;
7749 *)
7750 PATH_IFS=':'
7751 LEX_STEM="lex.yy"
7752 ;;
7753esac
10f2d63a
VZ
7754
7755case "$NUM_TOOLKITS" in
7756 1)
7757 ;;
7758 0)
698dcdb6 7759 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
10f2d63a
VZ
7760 ;;
7761 *)
698dcdb6 7762 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
10f2d63a
VZ
7763esac
7764
7765for toolkit in `echo $ALL_TOOLKITS`; do
7766 var=wxUSE_$toolkit
7767 eval "value=\$${var}"
7768 if test "x$value" != x; then
7769 cache_var=CACHE_$toolkit
7770 eval "cache=\$${cache_var}"
7771 if test "$cache" = 1; then
7772 echo "$var=$value" >> ${wx_arg_cache_file}
7773 fi
7774 if test "$value" = 1; then
8168de4c
VZ
7775 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7776 echo "$ac_t""$toolkit_echo" 1>&6
10f2d63a
VZ
7777 fi
7778 fi
7779done
7780
7781else
cf27ef00 7782 PATH_IFS=':'
698dcdb6 7783 echo "$ac_t""base only" 1>&6
10f2d63a
VZ
7784fi
7785
698dcdb6
VZ
7786
7787cat > confcache <<\EOF
10f2d63a
VZ
7788# This file is a shell script that caches the results of configure
7789# tests run on this system so they can be shared between configure
698dcdb6
VZ
7790# scripts and configure runs. It is not useful on other systems.
7791# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7792#
698dcdb6
VZ
7793# By default, configure uses ./config.cache as the cache file,
7794# creating it if it does not exist already. You can give configure
7795# the --cache-file=FILE option to use a different cache file; that is
7796# what configure does when it calls configure scripts in
7797# subdirectories, so they share the cache.
7798# Giving --cache-file=/dev/null disables caching, for debugging configure.
7799# config.status only pays attention to the cache file if you give it the
7800# --recheck option to rerun configure.
10f2d63a 7801#
698dcdb6 7802EOF
10f2d63a
VZ
7803# The following way of writing the cache mishandles newlines in values,
7804# but we know of no workaround that is simple, portable, and efficient.
7805# So, don't put newlines in cache variables' values.
7806# Ultrix sh set writes to stderr and can't be redirected directly,
7807# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7808(set) 2>&1 |
7809 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7810 *ac_space=\ *)
7811 # `set' does not quote correctly, so add quotes (double-quote substitution
7812 # turns \\\\ into \\, and sed turns \\ into \).
7813 sed -n \
7814 -e "s/'/'\\\\''/g" \
7815 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7816 ;;
7817 *)
7818 # `set' quotes correctly as required by POSIX, so do not add quotes.
7819 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7820 ;;
7821 esac >> confcache
7822if cmp -s $cache_file confcache; then
7823 :
7824else
10f2d63a 7825 if test -w $cache_file; then
698dcdb6
VZ
7826 echo "updating cache $cache_file"
7827 cat confcache > $cache_file
10f2d63a
VZ
7828 else
7829 echo "not updating unwritable cache $cache_file"
7830 fi
7831fi
7832rm -f confcache
7833
698dcdb6 7834
e59890c3 7835if test "$build" != "$host" ; then
10f2d63a
VZ
7836 CC=$host_alias-gcc
7837 CXX=$host_alias-c++
7838 AR=$host_alias-ar
7839 RANLIB=$host_alias-ranlib
7840 DLLTOOL=$host_alias-dlltool
32832908 7841 RESCOMP=$host_alias-windres
10f2d63a
VZ
7842 LD=$host_alias-ld
7843 NM=$host_alias-nm
7844 STRIP=$host_alias-strip
10f2d63a
VZ
7845fi
7846
698dcdb6 7847# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7848set dummy gcc; ac_word=$2
698dcdb6 7849echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab252f7b 7850echo "configure:7851: checking for $ac_word" >&5
698dcdb6
VZ
7851if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7852 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7853else
7854 if test -n "$CC"; then
7855 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7856else
698dcdb6
VZ
7857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7858 ac_dummy="$PATH"
7859 for ac_dir in $ac_dummy; do
7860 test -z "$ac_dir" && ac_dir=.
7861 if test -f $ac_dir/$ac_word; then
7862 ac_cv_prog_CC="gcc"
7863 break
7864 fi
7865 done
7866 IFS="$ac_save_ifs"
10f2d63a 7867fi
6232543b 7868fi
698dcdb6 7869CC="$ac_cv_prog_CC"
6232543b 7870if test -n "$CC"; then
698dcdb6 7871 echo "$ac_t""$CC" 1>&6
1e487827 7872else
698dcdb6 7873 echo "$ac_t""no" 1>&6
1e487827 7874fi
6232543b 7875
1e487827
VS
7876if test -z "$CC"; then
7877 # Extract the first word of "cc", so it can be a program name with args.
7878set dummy cc; ac_word=$2
698dcdb6 7879echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab252f7b 7880echo "configure:7881: checking for $ac_word" >&5
698dcdb6
VZ
7881if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7882 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7883else
7884 if test -n "$CC"; then
7885 ac_cv_prog_CC="$CC" # Let the user override the test.
7886else
698dcdb6 7887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7888 ac_prog_rejected=no
698dcdb6
VZ
7889 ac_dummy="$PATH"
7890 for ac_dir in $ac_dummy; do
7891 test -z "$ac_dir" && ac_dir=.
7892 if test -f $ac_dir/$ac_word; then
7893 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7894 ac_prog_rejected=yes
7895 continue
7896 fi
7897 ac_cv_prog_CC="cc"
7898 break
7899 fi
7900 done
7901 IFS="$ac_save_ifs"
1e487827
VS
7902if test $ac_prog_rejected = yes; then
7903 # We found a bogon in the path, so make sure we never use it.
7904 set dummy $ac_cv_prog_CC
7905 shift
698dcdb6 7906 if test $# -gt 0; then
1e487827
VS
7907 # We chose a different compiler from the bogus one.
7908 # However, it has the same basename, so the bogon will be chosen
7909 # first if we set CC to just the basename; use the full file name.
7910 shift
698dcdb6 7911 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7912 shift
7913 ac_cv_prog_CC="$@"
703e0a69 7914 fi
1e487827
VS
7915fi
7916fi
7917fi
698dcdb6 7918CC="$ac_cv_prog_CC"
1e487827 7919if test -n "$CC"; then
698dcdb6 7920 echo "$ac_t""$CC" 1>&6
703e0a69 7921else
698dcdb6 7922 echo "$ac_t""no" 1>&6
703e0a69 7923fi
1e487827 7924
698dcdb6
VZ
7925 if test -z "$CC"; then
7926 case "`uname -s`" in
7927 *win32* | *WIN32*)
7928 # Extract the first word of "cl", so it can be a program name with args.
7929set dummy cl; ac_word=$2
7930echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab252f7b 7931echo "configure:7932: checking for $ac_word" >&5
698dcdb6
VZ
7932if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7933 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7934else
7935 if test -n "$CC"; then
7936 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 7937else
698dcdb6
VZ
7938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7939 ac_dummy="$PATH"
7940 for ac_dir in $ac_dummy; do
7941 test -z "$ac_dir" && ac_dir=.
7942 if test -f $ac_dir/$ac_word; then
7943 ac_cv_prog_CC="cl"
7944 break
7945 fi
7946 done
7947 IFS="$ac_save_ifs"
703e0a69 7948fi
1e487827 7949fi
698dcdb6 7950CC="$ac_cv_prog_CC"
1e487827 7951if test -n "$CC"; then
698dcdb6 7952 echo "$ac_t""$CC" 1>&6
1e487827 7953else
698dcdb6 7954 echo "$ac_t""no" 1>&6
1e487827 7955fi
698dcdb6
VZ
7956 ;;
7957 esac
7958 fi
7959 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
7960fi
7961
698dcdb6 7962echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
ab252f7b 7963echo "configure:7964: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 7964
698dcdb6
VZ
7965ac_ext=c
7966# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7967ac_cpp='$CPP $CPPFLAGS'
7968ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7969ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7970cross_compiling=$ac_cv_prog_cc_cross
6232543b 7971
698dcdb6 7972cat > conftest.$ac_ext << EOF
1e487827 7973
ab252f7b 7974#line 7975 "configure"
1e487827
VS
7975#include "confdefs.h"
7976
698dcdb6
VZ
7977main(){return(0);}
7978EOF
ab252f7b 7979if { (eval echo configure:7980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7980 ac_cv_prog_cc_works=yes
7981 # If we can't run a trivial program, we are probably using a cross compiler.
7982 if (./conftest; exit) 2>/dev/null; then
7983 ac_cv_prog_cc_cross=no
7984 else
7985 ac_cv_prog_cc_cross=yes
7986 fi
7987else
7988 echo "configure: failed program was:" >&5
7989 cat conftest.$ac_ext >&5
7990 ac_cv_prog_cc_works=no
7991fi
7992rm -fr conftest*
7993ac_ext=c
7994# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7995ac_cpp='$CPP $CPPFLAGS'
7996ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7997ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7998cross_compiling=$ac_cv_prog_cc_cross
7999
8000echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8001if test $ac_cv_prog_cc_works = no; then
8002 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8003fi
8004echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
ab252f7b 8005echo "configure:8006: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8006echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8007cross_compiling=$ac_cv_prog_cc_cross
8008
8009echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
ab252f7b 8010echo "configure:8011: checking whether we are using GNU C" >&5
698dcdb6
VZ
8011if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8012 echo $ac_n "(cached) $ac_c" 1>&6
8013else
8014 cat > conftest.c <<EOF
8015#ifdef __GNUC__
8016 yes;
1e487827 8017#endif
698dcdb6 8018EOF
ab252f7b 8019if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8020 ac_cv_prog_gcc=yes
8021else
8022 ac_cv_prog_gcc=no
8023fi
8024fi
1e487827 8025
698dcdb6 8026echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8027
698dcdb6
VZ
8028if test $ac_cv_prog_gcc = yes; then
8029 GCC=yes
8030else
8031 GCC=
8032fi
1e487827 8033
698dcdb6
VZ
8034ac_test_CFLAGS="${CFLAGS+set}"
8035ac_save_CFLAGS="$CFLAGS"
8036CFLAGS=
8037echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
ab252f7b 8038echo "configure:8039: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8039if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8040 echo $ac_n "(cached) $ac_c" 1>&6
8041else
8042 echo 'void f(){}' > conftest.c
8043if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8044 ac_cv_prog_cc_g=yes
8045else
698dcdb6 8046 ac_cv_prog_cc_g=no
10f2d63a 8047fi
698dcdb6
VZ
8048rm -f conftest*
8049
10f2d63a 8050fi
698dcdb6
VZ
8051
8052echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8053if test "$ac_test_CFLAGS" = set; then
698dcdb6 8054 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8055elif test $ac_cv_prog_cc_g = yes; then
8056 if test "$GCC" = yes; then
8057 CFLAGS="-g -O2"
8058 else
8059 CFLAGS="-g"
8060 fi
8061else
8062 if test "$GCC" = yes; then
8063 CFLAGS="-O2"
8064 else
8065 CFLAGS=
8066 fi
8067fi
8068
8069
8070CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8071
698dcdb6 8072echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
ab252f7b 8073echo "configure:8074: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8074# On Suns, sometimes $CPP names a directory.
8075if test -n "$CPP" && test -d "$CPP"; then
8076 CPP=
8077fi
8078if test -z "$CPP"; then
698dcdb6
VZ
8079if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8080 echo $ac_n "(cached) $ac_c" 1>&6
8081else
8082 # This must be in double quotes, not single quotes, because CPP may get
8083 # substituted into the Makefile and "${CC-cc}" will confuse make.
8084 CPP="${CC-cc} -E"
10f2d63a 8085 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8086 # not just through cpp.
8087 cat > conftest.$ac_ext <<EOF
ab252f7b 8088#line 8089 "configure"
10f2d63a
VZ
8089#include "confdefs.h"
8090#include <assert.h>
698dcdb6
VZ
8091Syntax Error
8092EOF
8093ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 8094{ (eval echo configure:8095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8095ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8096if test -z "$ac_err"; then
10f2d63a
VZ
8097 :
8098else
698dcdb6
VZ
8099 echo "$ac_err" >&5
8100 echo "configure: failed program was:" >&5
10f2d63a 8101 cat conftest.$ac_ext >&5
698dcdb6
VZ
8102 rm -rf conftest*
8103 CPP="${CC-cc} -E -traditional-cpp"
8104 cat > conftest.$ac_ext <<EOF
ab252f7b 8105#line 8106 "configure"
10f2d63a 8106#include "confdefs.h"
698dcdb6
VZ
8107#include <assert.h>
8108Syntax Error
8109EOF
8110ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 8111{ (eval echo configure:8112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8112ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8113if test -z "$ac_err"; then
8114 :
10f2d63a 8115else
698dcdb6
VZ
8116 echo "$ac_err" >&5
8117 echo "configure: failed program was:" >&5
10f2d63a 8118 cat conftest.$ac_ext >&5
698dcdb6
VZ
8119 rm -rf conftest*
8120 CPP="${CC-cc} -nologo -E"
8121 cat > conftest.$ac_ext <<EOF
ab252f7b 8122#line 8123 "configure"
10f2d63a
VZ
8123#include "confdefs.h"
8124#include <assert.h>
698dcdb6
VZ
8125Syntax Error
8126EOF
8127ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 8128{ (eval echo configure:8129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8129ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8130if test -z "$ac_err"; then
10f2d63a
VZ
8131 :
8132else
698dcdb6
VZ
8133 echo "$ac_err" >&5
8134 echo "configure: failed program was:" >&5
10f2d63a 8135 cat conftest.$ac_ext >&5
698dcdb6
VZ
8136 rm -rf conftest*
8137 CPP=/lib/cpp
10f2d63a 8138fi
698dcdb6 8139rm -f conftest*
10f2d63a 8140fi
698dcdb6 8141rm -f conftest*
703e0a69 8142fi
698dcdb6
VZ
8143rm -f conftest*
8144 ac_cv_prog_CPP="$CPP"
8145fi
8146 CPP="$ac_cv_prog_CPP"
10f2d63a 8147else
698dcdb6 8148 ac_cv_prog_CPP="$CPP"
10f2d63a 8149fi
698dcdb6 8150echo "$ac_t""$CPP" 1>&6
10f2d63a
VZ
8151
8152
698dcdb6
VZ
8153if test $ac_cv_prog_gcc = yes; then
8154 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
ab252f7b 8155echo "configure:8156: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8156if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8157 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8158else
8159 ac_pattern="Autoconf.*'x'"
698dcdb6 8160 cat > conftest.$ac_ext <<EOF
ab252f7b 8161#line 8162 "configure"
10f2d63a
VZ
8162#include "confdefs.h"
8163#include <sgtty.h>
8164Autoconf TIOCGETP
698dcdb6 8165EOF
10f2d63a
VZ
8166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8167 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8168 rm -rf conftest*
10f2d63a
VZ
8169 ac_cv_prog_gcc_traditional=yes
8170else
698dcdb6 8171 rm -rf conftest*
10f2d63a
VZ
8172 ac_cv_prog_gcc_traditional=no
8173fi
8174rm -f conftest*
8175
698dcdb6 8176
10f2d63a 8177 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8178 cat > conftest.$ac_ext <<EOF
ab252f7b 8179#line 8180 "configure"
10f2d63a
VZ
8180#include "confdefs.h"
8181#include <termio.h>
8182Autoconf TCGETA
698dcdb6 8183EOF
10f2d63a
VZ
8184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8185 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8186 rm -rf conftest*
10f2d63a
VZ
8187 ac_cv_prog_gcc_traditional=yes
8188fi
8189rm -f conftest*
8190
8191 fi
8192fi
698dcdb6
VZ
8193
8194echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8195 if test $ac_cv_prog_gcc_traditional = yes; then
8196 CC="$CC -traditional"
8197 fi
8198fi
8199
703e0a69 8200
698dcdb6
VZ
8201
8202ac_ext=C
8203# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8204ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8205ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8206ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8207cross_compiling=$ac_cv_prog_cxx_cross
8208
8209
8210for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8211do
8212# Extract the first word of "$ac_prog", so it can be a program name with args.
8213set dummy $ac_prog; ac_word=$2
8214echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab252f7b 8215echo "configure:8216: checking for $ac_word" >&5
698dcdb6
VZ
8216if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8217 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8218else
8219 if test -n "$CXX"; then
8220 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8221else
698dcdb6
VZ
8222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8223 ac_dummy="$PATH"
8224 for ac_dir in $ac_dummy; do
8225 test -z "$ac_dir" && ac_dir=.
8226 if test -f $ac_dir/$ac_word; then
8227 ac_cv_prog_CXX="$ac_prog"
8228 break
8229 fi
8230 done
8231 IFS="$ac_save_ifs"
10f2d63a
VZ
8232fi
8233fi
698dcdb6 8234CXX="$ac_cv_prog_CXX"
10f2d63a 8235if test -n "$CXX"; then
698dcdb6 8236 echo "$ac_t""$CXX" 1>&6
10f2d63a 8237else
698dcdb6 8238 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8239fi
8240
698dcdb6 8241test -n "$CXX" && break
10f2d63a 8242done
698dcdb6 8243test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8244
8245
698dcdb6 8246echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
ab252f7b 8247echo "configure:8248: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8248
698dcdb6
VZ
8249ac_ext=C
8250# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8251ac_cpp='$CXXCPP $CPPFLAGS'
8252ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8253ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8254cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8255
698dcdb6
VZ
8256cat > conftest.$ac_ext << EOF
8257
ab252f7b 8258#line 8259 "configure"
10f2d63a
VZ
8259#include "confdefs.h"
8260
698dcdb6
VZ
8261int main(){return(0);}
8262EOF
ab252f7b 8263if { (eval echo configure:8264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8264 ac_cv_prog_cxx_works=yes
8265 # If we can't run a trivial program, we are probably using a cross compiler.
8266 if (./conftest; exit) 2>/dev/null; then
8267 ac_cv_prog_cxx_cross=no
8268 else
8269 ac_cv_prog_cxx_cross=yes
8270 fi
8271else
8272 echo "configure: failed program was:" >&5
8273 cat conftest.$ac_ext >&5
8274 ac_cv_prog_cxx_works=no
8275fi
8276rm -fr conftest*
8277ac_ext=C
8278# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8279ac_cpp='$CXXCPP $CPPFLAGS'
8280ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8281ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8282cross_compiling=$ac_cv_prog_cxx_cross
8283
8284echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8285if test $ac_cv_prog_cxx_works = no; then
8286 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8287fi
8288echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
ab252f7b 8289echo "configure:8290: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8290echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8291cross_compiling=$ac_cv_prog_cxx_cross
8292
8293echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
ab252f7b 8294echo "configure:8295: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8295if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8296 echo $ac_n "(cached) $ac_c" 1>&6
8297else
8298 cat > conftest.C <<EOF
8299#ifdef __GNUC__
8300 yes;
10f2d63a 8301#endif
698dcdb6 8302EOF
ab252f7b 8303if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8304 ac_cv_prog_gxx=yes
8305else
8306 ac_cv_prog_gxx=no
8307fi
8308fi
10f2d63a 8309
698dcdb6 8310echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8311
698dcdb6
VZ
8312if test $ac_cv_prog_gxx = yes; then
8313 GXX=yes
8314else
8315 GXX=
8316fi
10f2d63a 8317
698dcdb6
VZ
8318ac_test_CXXFLAGS="${CXXFLAGS+set}"
8319ac_save_CXXFLAGS="$CXXFLAGS"
8320CXXFLAGS=
8321echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
ab252f7b 8322echo "configure:8323: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8323if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8324 echo $ac_n "(cached) $ac_c" 1>&6
8325else
8326 echo 'void f(){}' > conftest.cc
8327if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8328 ac_cv_prog_cxx_g=yes
8329else
698dcdb6 8330 ac_cv_prog_cxx_g=no
10f2d63a 8331fi
698dcdb6
VZ
8332rm -f conftest*
8333
10f2d63a 8334fi
698dcdb6
VZ
8335
8336echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8337if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8338 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8339elif test $ac_cv_prog_cxx_g = yes; then
8340 if test "$GXX" = yes; then
8341 CXXFLAGS="-g -O2"
8342 else
8343 CXXFLAGS="-g"
8344 fi
8345else
8346 if test "$GXX" = yes; then
8347 CXXFLAGS="-O2"
8348 else
8349 CXXFLAGS=
8350 fi
8351fi
8352
8353
698dcdb6 8354echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
ab252f7b 8355echo "configure:8356: checking how to run the C++ preprocessor" >&5
1e487827 8356if test -z "$CXXCPP"; then
698dcdb6
VZ
8357if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8358 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 8359else
698dcdb6
VZ
8360 ac_ext=C
8361# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8362ac_cpp='$CXXCPP $CPPFLAGS'
8363ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8364ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8365cross_compiling=$ac_cv_prog_cxx_cross
8366 CXXCPP="${CXX-g++} -E"
8367 cat > conftest.$ac_ext <<EOF
ab252f7b 8368#line 8369 "configure"
1e487827 8369#include "confdefs.h"
698dcdb6
VZ
8370#include <stdlib.h>
8371EOF
8372ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 8373{ (eval echo configure:8374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8374ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8375if test -z "$ac_err"; then
1e487827
VS
8376 :
8377else
698dcdb6
VZ
8378 echo "$ac_err" >&5
8379 echo "configure: failed program was:" >&5
1e487827 8380 cat conftest.$ac_ext >&5
698dcdb6
VZ
8381 rm -rf conftest*
8382 CXXCPP=/lib/cpp
1e487827 8383fi
698dcdb6
VZ
8384rm -f conftest*
8385 ac_cv_prog_CXXCPP="$CXXCPP"
8386ac_ext=C
8387# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8388ac_cpp='$CXXCPP $CPPFLAGS'
8389ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8390ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8391cross_compiling=$ac_cv_prog_cxx_cross
1e487827 8392fi
1e487827 8393fi
698dcdb6
VZ
8394CXXCPP="$ac_cv_prog_CXXCPP"
8395echo "$ac_t""$CXXCPP" 1>&6
1e487827 8396
10f2d63a
VZ
8397
8398CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8399
8400ac_ext=c
698dcdb6 8401# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8402ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8403ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8404ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8405cross_compiling=$ac_cv_prog_cc_cross
8406
8407
8408# Extract the first word of "ranlib", so it can be a program name with args.
8409set dummy ranlib; ac_word=$2
8410echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab252f7b 8411echo "configure:8412: checking for $ac_word" >&5
698dcdb6
VZ
8412if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8414else
8415 if test -n "$RANLIB"; then
8416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8417else
698dcdb6
VZ
8418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8419 ac_dummy="$PATH"
8420 for ac_dir in $ac_dummy; do
8421 test -z "$ac_dir" && ac_dir=.
8422 if test -f $ac_dir/$ac_word; then
8423 ac_cv_prog_RANLIB="ranlib"
8424 break
8425 fi
8426 done
8427 IFS="$ac_save_ifs"
8428 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8429fi
8430fi
698dcdb6 8431RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8432if test -n "$RANLIB"; then
698dcdb6 8433 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8434else
698dcdb6 8435 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8436fi
8437
8438
8439# Extract the first word of "ar", so it can be a program name with args.
8440set dummy ar; ac_word=$2
698dcdb6 8441echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab252f7b 8442echo "configure:8443: checking for $ac_word" >&5
698dcdb6
VZ
8443if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8444 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8445else
8446 if test -n "$AR"; then
8447 ac_cv_prog_AR="$AR" # Let the user override the test.
8448else
698dcdb6
VZ
8449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8450 ac_dummy="$PATH"
8451 for ac_dir in $ac_dummy; do
8452 test -z "$ac_dir" && ac_dir=.
8453 if test -f $ac_dir/$ac_word; then
8454 ac_cv_prog_AR="ar"
8455 break
8456 fi
8457 done
8458 IFS="$ac_save_ifs"
10f2d63a
VZ
8459 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8460fi
8461fi
698dcdb6 8462AR="$ac_cv_prog_AR"
10f2d63a 8463if test -n "$AR"; then
698dcdb6 8464 echo "$ac_t""$AR" 1>&6
10f2d63a 8465else
698dcdb6 8466 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8467fi
8468
698dcdb6 8469
10f2d63a
VZ
8470# Find a good install program. We prefer a C program (faster),
8471# so one script is as good as another. But avoid the broken or
8472# incompatible versions:
8473# SysV /etc/install, /usr/sbin/install
8474# SunOS /usr/etc/install
8475# IRIX /sbin/install
8476# AIX /bin/install
8477# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8478# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8479# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8480# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8481echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
ab252f7b 8482echo "configure:8483: checking for a BSD compatible install" >&5
10f2d63a 8483if test -z "$INSTALL"; then
698dcdb6
VZ
8484if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8485 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8486else
698dcdb6 8487 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8488 for ac_dir in $PATH; do
8489 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8490 case "$ac_dir/" in
8491 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8492 *)
8493 # OSF1 and SCO ODT 3.0 have their own names for install.
8494 # Don't use installbsd from OSF since it installs stuff as root
8495 # by default.
8496 for ac_prog in ginstall scoinst install; do
698dcdb6 8497 if test -f $ac_dir/$ac_prog; then
10f2d63a 8498 if test $ac_prog = install &&
698dcdb6 8499 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8500 # AIX install. It has an incompatible calling convention.
8501 :
8502 else
8503 ac_cv_path_install="$ac_dir/$ac_prog -c"
8504 break 2
8505 fi
8506 fi
8507 done
8508 ;;
8509 esac
8510 done
698dcdb6 8511 IFS="$ac_save_IFS"
10f2d63a
VZ
8512
8513fi
8514 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8515 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8516 else
8517 # As a last resort, use the slow shell script. We don't cache a
8518 # path for INSTALL within a source directory, because that will
8519 # break other packages using the cache if that directory is
8520 # removed, or if the path is relative.
698dcdb6 8521 INSTALL="$ac_install_sh"
10f2d63a
VZ
8522 fi
8523fi
698dcdb6 8524echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8525
8526# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8527# It thinks the first close brace ends the variable substitution.
8528test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8529
698dcdb6 8530test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8531
8532test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8533
698dcdb6 8534
10f2d63a
VZ
8535# Extract the first word of "strip", so it can be a program name with args.
8536set dummy strip; ac_word=$2
698dcdb6 8537echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab252f7b 8538echo "configure:8539: checking for $ac_word" >&5
698dcdb6
VZ
8539if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8540 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8541else
8542 if test -n "$STRIP"; then
8543 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8544else
698dcdb6
VZ
8545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8546 ac_dummy="$PATH"
8547 for ac_dir in $ac_dummy; do
8548 test -z "$ac_dir" && ac_dir=.
8549 if test -f $ac_dir/$ac_word; then
8550 ac_cv_prog_STRIP="strip"
8551 break
8552 fi
8553 done
8554 IFS="$ac_save_ifs"
10f2d63a
VZ
8555 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8556fi
8557fi
698dcdb6 8558STRIP="$ac_cv_prog_STRIP"
10f2d63a 8559if test -n "$STRIP"; then
698dcdb6 8560 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8561else
698dcdb6 8562 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8563fi
8564
698dcdb6
VZ
8565
8566echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
ab252f7b 8567echo "configure:8568: checking make for VPATH support" >&5
10f2d63a
VZ
8568cat - << EOF > confMake
8569check : file
8570 cp \$? \$@
8571 cp \$? final_file
8572EOF
8573
8574if test ! -d sub ; then
8575 mkdir sub
8576fi
8577echo dummy > sub/file
f6bcfd97 8578${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8579RESULT=$?
8580rm -f sub/file check final_file confMake
8581rmdir sub
8582if test "$RESULT" = 0; then
698dcdb6 8583 echo "$ac_t""yes" 1>&6
10f2d63a 8584else
698dcdb6
VZ
8585 echo "$ac_t""no" 1>&6
8586 { echo "configure: error:
1e487827
VS
8587You need a make-utility that is able to use the variable
8588VPATH correctly.
8589If your version of make does not support VPATH correctly,
8590please install GNU-make (possibly as gmake), and start
8591configure with the following command:
8592export MAKE=gmake; ./configure for sh-type shells
8593setenv MAKE gmake; ./configure for csh-type shells
8594Also please do remember to use gmake in this case every time
8595you are trying to compile.
698dcdb6 8596" 1>&2; exit 1; }
10f2d63a
VZ
8597fi
8598
8599for ac_prog in 'bison -y' byacc
8600do
698dcdb6 8601# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8602set dummy $ac_prog; ac_word=$2
698dcdb6 8603echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab252f7b 8604echo "configure:8605: checking for $ac_word" >&5
698dcdb6
VZ
8605if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8606 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8607else
8608 if test -n "$YACC"; then
8609 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8610else
698dcdb6
VZ
8611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8612 ac_dummy="$PATH"
8613 for ac_dir in $ac_dummy; do
8614 test -z "$ac_dir" && ac_dir=.
8615 if test -f $ac_dir/$ac_word; then
8616 ac_cv_prog_YACC="$ac_prog"
8617 break
8618 fi
8619 done
8620 IFS="$ac_save_ifs"
10f2d63a
VZ
8621fi
8622fi
698dcdb6 8623YACC="$ac_cv_prog_YACC"
10f2d63a 8624if test -n "$YACC"; then
698dcdb6 8625 echo "$ac_t""$YACC" 1>&6
10f2d63a 8626else
698dcdb6 8627 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8628fi
8629
698dcdb6 8630test -n "$YACC" && break
10f2d63a
VZ
8631done
8632test -n "$YACC" || YACC="yacc"
8633
698dcdb6
VZ
8634
8635# Extract the first word of "flex", so it can be a program name with args.
8636set dummy flex; ac_word=$2
8637echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab252f7b 8638echo "configure:8639: checking for $ac_word" >&5
698dcdb6
VZ
8639if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8640 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8641else
8642 if test -n "$LEX"; then
8643 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8644else
698dcdb6
VZ
8645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8646 ac_dummy="$PATH"
8647 for ac_dir in $ac_dummy; do
8648 test -z "$ac_dir" && ac_dir=.
8649 if test -f $ac_dir/$ac_word; then
8650 ac_cv_prog_LEX="flex"
8651 break
8652 fi
8653 done
8654 IFS="$ac_save_ifs"
8655 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8656fi
8657fi
698dcdb6 8658LEX="$ac_cv_prog_LEX"
10f2d63a 8659if test -n "$LEX"; then
698dcdb6 8660 echo "$ac_t""$LEX" 1>&6
10f2d63a 8661else
698dcdb6 8662 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8663fi
8664
8665if test -z "$LEXLIB"
8666then
698dcdb6
VZ
8667 case "$LEX" in
8668 flex*) ac_lib=fl ;;
8669 *) ac_lib=l ;;
8670 esac
8671 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
ab252f7b 8672echo "configure:8673: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8673ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8674if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8675 echo $ac_n "(cached) $ac_c" 1>&6
8676else
8677 ac_save_LIBS="$LIBS"
8678LIBS="-l$ac_lib $LIBS"
8679cat > conftest.$ac_ext <<EOF
ab252f7b 8680#line 8681 "configure"
10f2d63a
VZ
8681#include "confdefs.h"
8682/* Override any gcc2 internal prototype to avoid an error. */
8683/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8684 builtin and then its argument prototype would still apply. */
8685char yywrap();
10f2d63a 8686
698dcdb6
VZ
8687int main() {
8688yywrap()
8689; return 0; }
8690EOF
ab252f7b 8691if { (eval echo configure:8692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8692 rm -rf conftest*
8693 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8694else
698dcdb6
VZ
8695 echo "configure: failed program was:" >&5
8696 cat conftest.$ac_ext >&5
8697 rm -rf conftest*
8698 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8699fi
698dcdb6
VZ
8700rm -f conftest*
8701LIBS="$ac_save_LIBS"
8702
10f2d63a 8703fi
698dcdb6
VZ
8704if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8705 echo "$ac_t""yes" 1>&6
8706 LEXLIB="-l$ac_lib"
8707else
8708 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8709fi
8710
8711fi
8712
8713
698dcdb6 8714echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
ab252f7b 8715echo "configure:8716: checking whether ln -s works" >&5
698dcdb6
VZ
8716if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8717 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8718else
698dcdb6
VZ
8719 rm -f conftestdata
8720if ln -s X conftestdata 2>/dev/null
8721then
8722 rm -f conftestdata
8723 ac_cv_prog_LN_S="ln -s"
10f2d63a 8724else
698dcdb6 8725 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8726fi
8727fi
698dcdb6
VZ
8728LN_S="$ac_cv_prog_LN_S"
8729if test "$ac_cv_prog_LN_S" = "ln -s"; then
8730 echo "$ac_t""yes" 1>&6
10f2d63a 8731else
698dcdb6 8732 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8733fi
8734
8735
8736
8737SEARCH_INCLUDE="\
8738 /usr/local/include \
8739 \
8740 /usr/Motif-1.2/include \
8741 /usr/Motif-2.1/include \
8742 \
8743 /usr/include/Motif1.2 \
8744 /opt/xpm/include/X11 \
8745 /opt/GBxpm/include/ \
8746 /opt/GBxpm/X11/include/ \
8747 \
8748 /usr/Motif1.2/include \
8749 /usr/dt/include \
afc31813
VZ
8750 /usr/openwin/include \
8751 \
10f2d63a
VZ
8752 /usr/include/Xm \
8753 \
8754 /usr/X11R6/include \
afc31813 8755 /usr/X11R6.4/include \
10f2d63a
VZ
8756 /usr/X11R5/include \
8757 /usr/X11R4/include \
8758 \
10f2d63a
VZ
8759 /usr/include/X11R6 \
8760 /usr/include/X11R5 \
8761 /usr/include/X11R4 \
8762 \
8763 /usr/local/X11R6/include \
8764 /usr/local/X11R5/include \
8765 /usr/local/X11R4/include \
8766 \
8767 /usr/local/include/X11R6 \
8768 /usr/local/include/X11R5 \
8769 /usr/local/include/X11R4 \
8770 \
8771 /usr/X11/include \
8772 /usr/include/X11 \
8773 /usr/local/X11/include \
8774 /usr/local/include/X11 \
8775 \
8776 /usr/X386/include \
8777 /usr/x386/include \
8778 /usr/XFree86/include/X11 \
8779 \
cf27ef00 8780 X:/XFree86/include \
ec14dd32
VZ
8781 X:/XFree86/include/X11 \
8782 \
10f2d63a
VZ
8783 /usr/include/gtk \
8784 /usr/local/include/gtk \
8785 /usr/include/glib \
8786 /usr/local/include/glib \
8787 \
8788 /usr/include/qt \
8789 /usr/local/include/qt \
8790 \
8791 /usr/include/windows \
8792 /usr/include/wine \
8793 /usr/local/include/wine \
8794 \
8795 /usr/unsupported/include \
8796 /usr/athena/include \
8797 /usr/local/x11r5/include \
8798 /usr/lpp/Xamples/include \
8799 \
10f2d63a 8800 /usr/openwin/share/include \
928b5c08
VZ
8801 \
8802 /usr/include"
10f2d63a
VZ
8803
8804SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8805
698dcdb6
VZ
8806
8807cat > confcache <<\EOF
10f2d63a
VZ
8808# This file is a shell script that caches the results of configure
8809# tests run on this system so they can be shared between configure
698dcdb6
VZ
8810# scripts and configure runs. It is not useful on other systems.
8811# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8812#
698dcdb6
VZ
8813# By default, configure uses ./config.cache as the cache file,
8814# creating it if it does not exist already. You can give configure
8815# the --cache-file=FILE option to use a different cache file; that is
8816# what configure does when it calls configure scripts in
8817# subdirectories, so they share the cache.
8818# Giving --cache-file=/dev/null disables caching, for debugging configure.
8819# config.status only pays attention to the cache file if you give it the
8820# --recheck option to rerun configure.
10f2d63a 8821#
698dcdb6 8822EOF
10f2d63a
VZ
8823# The following way of writing the cache mishandles newlines in values,
8824# but we know of no workaround that is simple, portable, and efficient.
8825# So, don't put newlines in cache variables' values.
8826# Ultrix sh set writes to stderr and can't be redirected directly,
8827# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8828(set) 2>&1 |
8829 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8830 *ac_space=\ *)
8831 # `set' does not quote correctly, so add quotes (double-quote substitution
8832 # turns \\\\ into \\, and sed turns \\ into \).
8833 sed -n \
8834 -e "s/'/'\\\\''/g" \
8835 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8836 ;;
8837 *)
8838 # `set' quotes correctly as required by POSIX, so do not add quotes.
8839 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8840 ;;
8841 esac >> confcache
8842if cmp -s $cache_file confcache; then
8843 :
8844else
10f2d63a 8845 if test -w $cache_file; then
698dcdb6
VZ
8846 echo "updating cache $cache_file"
8847 cat confcache > $cache_file
10f2d63a
VZ
8848 else
8849 echo "not updating unwritable cache $cache_file"
8850 fi
8851fi
8852rm -f confcache
8853
698dcdb6
VZ
8854
8855
18dbb1f6
VZ
8856REGEX_INCLUDE=
8857if test "$wxUSE_REGEX" != "no"; then
8858 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8859echo $ac_n "checking for regex.h""... $ac_c" 1>&6
ab252f7b 8860echo "configure:8861: checking for regex.h" >&5
18dbb1f6
VZ
8861if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8862 echo $ac_n "(cached) $ac_c" 1>&6
8863else
8864 cat > conftest.$ac_ext <<EOF
ab252f7b 8865#line 8866 "configure"
18dbb1f6
VZ
8866#include "confdefs.h"
8867#include <regex.h>
8868EOF
8869ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 8870{ (eval echo configure:8871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
8871ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8872if test -z "$ac_err"; then
8873 rm -rf conftest*
8874 eval "ac_cv_header_$ac_safe=yes"
8875else
8876 echo "$ac_err" >&5
8877 echo "configure: failed program was:" >&5
8878 cat conftest.$ac_ext >&5
8879 rm -rf conftest*
8880 eval "ac_cv_header_$ac_safe=no"
8881fi
8882rm -f conftest*
8883fi
8884if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8885 echo "$ac_t""yes" 1>&6
8886 for ac_func in regcomp
8887do
8888echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 8889echo "configure:8890: checking for $ac_func" >&5
18dbb1f6
VZ
8890if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8891 echo $ac_n "(cached) $ac_c" 1>&6
8892else
8893 cat > conftest.$ac_ext <<EOF
ab252f7b 8894#line 8895 "configure"
18dbb1f6
VZ
8895#include "confdefs.h"
8896/* System header to define __stub macros and hopefully few prototypes,
8897 which can conflict with char $ac_func(); below. */
8898#include <assert.h>
8899/* Override any gcc2 internal prototype to avoid an error. */
8900/* We use char because int might match the return type of a gcc2
8901 builtin and then its argument prototype would still apply. */
8902char $ac_func();
8903
8904int main() {
8905
8906/* The GNU C library defines this for functions which it implements
8907 to always fail with ENOSYS. Some functions are actually named
8908 something starting with __ and the normal name is an alias. */
8909#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8910choke me
8911#else
8912$ac_func();
8913#endif
8914
8915; return 0; }
8916EOF
ab252f7b 8917if { (eval echo configure:8918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
8918 rm -rf conftest*
8919 eval "ac_cv_func_$ac_func=yes"
8920else
8921 echo "configure: failed program was:" >&5
8922 cat conftest.$ac_ext >&5
8923 rm -rf conftest*
8924 eval "ac_cv_func_$ac_func=no"
8925fi
8926rm -f conftest*
8927fi
8928
8929if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8930 echo "$ac_t""yes" 1>&6
8931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8932 cat >> confdefs.h <<EOF
8933#define $ac_tr_func 1
8934EOF
8935
8936else
8937 echo "$ac_t""no" 1>&6
8938fi
8939done
8940
8941else
8942 echo "$ac_t""no" 1>&6
8943fi
8944
8945
8946 if test "x$ac_cv_func_regcomp" != "xyes"; then
8947 if test "$wxUSE_REGEX" = "sys"; then
8948 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
8949 fi
8950
8951 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
8952 fi
8953
8954 cat >> confdefs.h <<\EOF
8955#define wxUSE_REGEX 1
8956EOF
8957
8958fi
8959
8960
dad6c0ea
VZ
8961AFMINSTALL=
8962
10f2d63a 8963if test "$wxUSE_GUI" = "yes"; then
1e6feb95 8964 USE_GUI=1
10f2d63a 8965
1e6feb95
VZ
8966 TOOLKIT=
8967 TOOLKIT_INCLUDE=
10f2d63a 8968
1e6feb95
VZ
8969 GUI_TK_LIBRARY=
8970 GUI_TK_LINK=
10f2d63a 8971
1e6feb95
VZ
8972 WXGTK12=
8973 WXGTK127=
8974 WXGTK20=
10f2d63a 8975
1e6feb95 8976 WXWINE=
10f2d63a 8977
1e6feb95 8978 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
29fd3c0c
VS
8979 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8980echo $ac_n "checking for windows.h""... $ac_c" 1>&6
ab252f7b 8981echo "configure:8982: checking for windows.h" >&5
d4158b5d
VS
8982if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8983 echo $ac_n "(cached) $ac_c" 1>&6
8984else
8985 cat > conftest.$ac_ext <<EOF
ab252f7b 8986#line 8987 "configure"
d4158b5d 8987#include "confdefs.h"
29fd3c0c 8988#include <windows.h>
d4158b5d
VS
8989EOF
8990ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 8991{ (eval echo configure:8992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
8992ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8993if test -z "$ac_err"; then
8994 rm -rf conftest*
8995 eval "ac_cv_header_$ac_safe=yes"
8996else
8997 echo "$ac_err" >&5
8998 echo "configure: failed program was:" >&5
8999 cat conftest.$ac_ext >&5
9000 rm -rf conftest*
9001 eval "ac_cv_header_$ac_safe=no"
9002fi
9003rm -f conftest*
9004fi
9005if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9006 echo "$ac_t""yes" 1>&6
29fd3c0c 9007 :
d4158b5d
VS
9008else
9009 echo "$ac_t""no" 1>&6
d4158b5d 9010
3f0f0161
VZ
9011 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9012
29fd3c0c 9013fi
10f2d63a 9014
3f0f0161 9015
1e6feb95 9016 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
3f0f0161 9017
031d8228 9018 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
f6bcfd97 9019
1e6feb95
VZ
9020 if test "$wxUSE_ODBC" = "yes" ; then
9021 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9022 fi
10f2d63a 9023
1e6feb95
VZ
9024 if test "$wxUSE_MINGW" = 1; then
9025 LDFLAGS="$LDFLAGS -mwindows"
9026 fi
32832908 9027
1e6feb95
VZ
9028 TOOLKIT=MSW
9029 GUIDIST=MSW_DIST
32832908 9030
1e6feb95
VZ
9031 RCINCSWITCH="--include-dir"
9032 RCDEFSWITCH="--define"
9033 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
9034 RCINPUTSWITCH="-i"
9035 RCOUTPUTSWITCH="-o"
9036 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
32832908 9037
1e6feb95
VZ
9038 RESPROGRAM="\$(RES_PROGRAM)"
9039 fi
10f2d63a 9040
1e6feb95 9041 if test "$wxUSE_GTK" = 1; then
8168de4c 9042 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
ab252f7b 9043echo "configure:9044: checking for GTK+ version" >&5
8168de4c
VZ
9044
9045 gtk_version_cached=1
9046 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9047 echo $ac_n "(cached) $ac_c" 1>&6
9048else
9049
9050 gtk_version_cached=0
9051 echo "$ac_t""""" 1>&6
9052
9053 wx_cv_lib_gtk=
9054 if test "x$wxUSE_GTK2" = "xyes"; then
9055 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
9056if test "${with_gtk_prefix+set}" = set; then
9057 withval="$with_gtk_prefix"
9058 gtk_config_prefix="$withval"
9059else
9060 gtk_config_prefix=""
698dcdb6 9061fi
6f72b082
OK
9062
9063# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9064if test "${with_gtk_exec_prefix+set}" = set; then
9065 withval="$with_gtk_exec_prefix"
9066 gtk_config_exec_prefix="$withval"
9067else
9068 gtk_config_exec_prefix=""
698dcdb6
VZ
9069fi
9070
6f72b082
OK
9071# Check whether --enable-gtktest or --disable-gtktest was given.
9072if test "${enable_gtktest+set}" = set; then
9073 enableval="$enable_gtktest"
698dcdb6 9074 :
6f72b082
OK
9075else
9076 enable_gtktest=yes
698dcdb6
VZ
9077fi
9078
6f72b082 9079
8168de4c 9080 for module in .
6f72b082
OK
9081 do
9082 case "$module" in
8168de4c 9083 gthread)
6f72b082
OK
9084 gtk_config_args="$gtk_config_args gthread"
9085 ;;
9086 esac
9087 done
9088
9089 if test x$gtk_config_exec_prefix != x ; then
9090 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9091 if test x${GTK_CONFIG_2_0+set} != xset ; then
9092 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9093 fi
9094 fi
9095 if test x$gtk_config_prefix != x ; then
9096 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9097 if test x${GTK_CONFIG_2_0+set} != xset ; then
9098 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9099 fi
9100 fi
9101
9102 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9103set dummy gtk-config-2.0; ac_word=$2
698dcdb6 9104echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab252f7b 9105echo "configure:9106: checking for $ac_word" >&5
698dcdb6
VZ
9106if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9107 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9108else
698dcdb6
VZ
9109 case "$GTK_CONFIG_2_0" in
9110 /*)
6f72b082
OK
9111 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9112 ;;
698dcdb6
VZ
9113 ?:/*)
9114 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9115 ;;
6f72b082 9116 *)
698dcdb6
VZ
9117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9118 ac_dummy="$PATH"
9119 for ac_dir in $ac_dummy; do
9120 test -z "$ac_dir" && ac_dir=.
9121 if test -f $ac_dir/$ac_word; then
9122 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9123 break
9124 fi
9125 done
9126 IFS="$ac_save_ifs"
6f72b082
OK
9127 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9128 ;;
9129esac
9130fi
698dcdb6 9131GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 9132if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 9133 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 9134else
698dcdb6 9135 echo "$ac_t""no" 1>&6
6f72b082
OK
9136fi
9137
9138 min_gtk_version=1.3.1
698dcdb6 9139 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
ab252f7b 9140echo "configure:9141: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
9141 no_gtk=""
9142 if test "$GTK_CONFIG_2_0" = "no" ; then
9143 no_gtk=yes
9144 else
9145 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9146 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9147 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9148 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9149 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9150 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9151 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9152 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9153 if test "x$enable_gtktest" = "xyes" ; then
9154 ac_save_CFLAGS="$CFLAGS"
9155 ac_save_LIBS="$LIBS"
9156 CFLAGS="$CFLAGS $GTK_CFLAGS"
9157 LIBS="$GTK_LIBS $LIBS"
9158 rm -f conf.gtktest
9159 if test "$cross_compiling" = yes; then
9160 echo $ac_n "cross compiling; assumed OK... $ac_c"
9161else
698dcdb6 9162 cat > conftest.$ac_ext <<EOF
ab252f7b 9163#line 9164 "configure"
6f72b082
OK
9164#include "confdefs.h"
9165
9166#include <gtk/gtk.h>
9167#include <stdio.h>
9168#include <stdlib.h>
9169
8168de4c 9170int
6f72b082
OK
9171main ()
9172{
9173 int major, minor, micro;
9174 char *tmp_version;
9175
9176 system ("touch conf.gtktest");
9177
9178 /* HP/UX 9 (%@#!) writes to sscanf strings */
9179 tmp_version = g_strdup("$min_gtk_version");
9180 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9181 printf("%s, bad version string\n", "$min_gtk_version");
9182 exit(1);
9183 }
9184
9185 if ((gtk_major_version != $gtk_config_major_version) ||
9186 (gtk_minor_version != $gtk_config_minor_version) ||
9187 (gtk_micro_version != $gtk_config_micro_version))
9188 {
8168de4c 9189 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
9190 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9191 gtk_major_version, gtk_minor_version, gtk_micro_version);
9192 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9193 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9194 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9195 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9196 printf("*** required on your system.\n");
9197 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9198 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9199 printf("*** before re-running configure\n");
8168de4c 9200 }
6f72b082
OK
9201#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9202 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 9203 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
9204 (gtk_micro_version != GTK_MICRO_VERSION))
9205 {
9206 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 9207 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 9208 printf("*** library (version %d.%d.%d)\n",
8168de4c 9209 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
9210 }
9211#endif /* defined (GTK_MAJOR_VERSION) ... */
9212 else
9213 {
9214 if ((gtk_major_version > major) ||
9215 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9216 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9217 {
9218 return 0;
9219 }
9220 else
9221 {
9222 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9223 gtk_major_version, gtk_minor_version, gtk_micro_version);
9224 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 9225 major, minor, micro);
6f72b082
OK
9226 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9227 printf("***\n");
9228 printf("*** If you have already installed a sufficiently new version, this error\n");
9229 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9230 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9231 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9232 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9233 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9234 printf("*** so that the correct libraries are found at run-time))\n");
9235 }
9236 }
9237 return 1;
9238}
9239
698dcdb6 9240EOF
ab252f7b 9241if { (eval echo configure:9242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9242then
6f72b082
OK
9243 :
9244else
698dcdb6
VZ
9245 echo "configure: failed program was:" >&5
9246 cat conftest.$ac_ext >&5
9247 rm -fr conftest*
9248 no_gtk=yes
6f72b082 9249fi
698dcdb6 9250rm -fr conftest*
6f72b082 9251fi
698dcdb6 9252
6f72b082
OK
9253 CFLAGS="$ac_save_CFLAGS"
9254 LIBS="$ac_save_LIBS"
9255 fi
9256 fi
9257 if test "x$no_gtk" = x ; then
698dcdb6 9258 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 9259 wx_cv_lib_gtk=2.0
6f72b082 9260 else
698dcdb6 9261 echo "$ac_t""no" 1>&6
6f72b082
OK
9262 if test "$GTK_CONFIG_2_0" = "no" ; then
9263 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9264 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9265 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9266 echo "*** full path to gtk-config-2.0."
9267 else
9268 if test -f conf.gtktest ; then
9269 :
9270 else
9271 echo "*** Could not run GTK test program, checking why..."
9272 CFLAGS="$CFLAGS $GTK_CFLAGS"
9273 LIBS="$LIBS $GTK_LIBS"
698dcdb6 9274 cat > conftest.$ac_ext <<EOF
ab252f7b 9275#line 9276 "configure"
6f72b082
OK
9276#include "confdefs.h"
9277
9278#include <gtk/gtk.h>
9279#include <stdio.h>
9280
698dcdb6
VZ
9281int main() {
9282 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9283; return 0; }
9284EOF
ab252f7b 9285if { (eval echo configure:9286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9286 rm -rf conftest*
6f72b082
OK
9287 echo "*** The test program compiled, but did not run. This usually means"
9288 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9289 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9290 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9291 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9292 echo "*** is required on your system"
8168de4c 9293 echo "***"
6f72b082
OK
9294 echo "*** If you have an old version installed, it is best to remove it, although"
9295 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9296 echo "***"
9297 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9298 echo "*** came with the system with the command"
9299 echo "***"
698dcdb6 9300 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 9301else
698dcdb6
VZ
9302 echo "configure: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9304 rm -rf conftest*
9305 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
9306 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9307 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 9308 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 9309fi
698dcdb6 9310rm -f conftest*
6f72b082
OK
9311 CFLAGS="$ac_save_CFLAGS"
9312 LIBS="$ac_save_LIBS"
9313 fi
9314 fi
9315 GTK_CFLAGS=""
9316 GTK_LIBS=""
8168de4c
VZ
9317 gthread
9318 fi
9319
9320
9321 rm -f conf.gtktest
9322
9323 fi
9324
9325 if test -z "$wx_cv_lib_gtk"; then
9326
10f2d63a
VZ
9327 if test x$gtk_config_exec_prefix != x ; then
9328 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9329 if test x${GTK_CONFIG+set} != xset ; then
9330 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9331 fi
9332 fi
9333 if test x$gtk_config_prefix != x ; then
9334 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9335 if test x${GTK_CONFIG+set} != xset ; then
9336 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9337 fi
9338 fi
9339
9340 # Extract the first word of "gtk-config", so it can be a program name with args.
9341set dummy gtk-config; ac_word=$2
698dcdb6 9342echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab252f7b 9343echo "configure:9344: checking for $ac_word" >&5
698dcdb6
VZ
9344if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9345 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 9346else
698dcdb6
VZ
9347 case "$GTK_CONFIG" in
9348 /*)
f6bcfd97
BP
9349 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9350 ;;
698dcdb6
VZ
9351 ?:/*)
9352 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9353 ;;
f6bcfd97 9354 *)
698dcdb6
VZ
9355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9356 ac_dummy="$PATH"
9357 for ac_dir in $ac_dummy; do
9358 test -z "$ac_dir" && ac_dir=.
9359 if test -f $ac_dir/$ac_word; then
9360 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9361 break
9362 fi
9363 done
9364 IFS="$ac_save_ifs"
f6bcfd97
BP
9365 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9366 ;;
9367esac
9368fi
698dcdb6 9369GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 9370if test -n "$GTK_CONFIG"; then
698dcdb6 9371 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 9372else
698dcdb6 9373 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9374fi
9375
9376 min_gtk_version=1.2.7
698dcdb6 9377 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
ab252f7b 9378echo "configure:9379: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
9379 no_gtk=""
9380 if test "$GTK_CONFIG" != "no" ; then
9381 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9382 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9383 ac_save_CFLAGS="$CFLAGS"
9384 ac_save_LIBS="$LIBS"
9385 CFLAGS="$CFLAGS $GTK_CFLAGS"
9386 LIBS="$LIBS $GTK_LIBS"
9387 if test "$cross_compiling" = yes; then
9388 echo $ac_n "cross compiling; assumed OK... $ac_c"
9389else
698dcdb6 9390 cat > conftest.$ac_ext <<EOF
ab252f7b 9391#line 9392 "configure"
f6bcfd97
BP
9392#include "confdefs.h"
9393
9394#include <gtk/gtk.h>
9395#include <gtk/gtkfeatures.h>
9396#include <stdio.h>
9397#include <stdlib.h>
9398
9399int
9400main ()
9401{
9402 int major, minor, micro;
9403
9404 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9405 printf("%s, bad version string\n", "$min_gtk_version");
9406 exit(1);
9407 }
9408
9409 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9410 (GTK_MINOR_VERSION != gtk_minor_version) ||
9411 (GTK_MICRO_VERSION != gtk_micro_version)) {
9412 printf("Headers vs. library version mismatch!\n");
9413 exit(1);
9414 }
9415
9416 if (gtk_minor_version == 1) return FALSE;
9417
9418 return !((gtk_major_version > major) ||
9419 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9420 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9421}
9422
698dcdb6 9423EOF
ab252f7b 9424if { (eval echo configure:9425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9425then
f6bcfd97
BP
9426 :
9427else
698dcdb6
VZ
9428 echo "configure: failed program was:" >&5
9429 cat conftest.$ac_ext >&5
9430 rm -fr conftest*
9431 no_gtk=yes
f6bcfd97 9432fi
698dcdb6 9433rm -fr conftest*
f6bcfd97 9434fi
698dcdb6 9435
f6bcfd97
BP
9436 CFLAGS="$ac_save_CFLAGS"
9437 LIBS="$ac_save_LIBS"
9438 else
9439 no_gtk=yes
9440 fi
9441 if test "x$no_gtk" = x ; then
698dcdb6 9442 echo "$ac_t""yes" 1>&6
8168de4c 9443 wx_cv_lib_gtk=1.2.7
f6bcfd97 9444 else
698dcdb6 9445 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9446 GTK_CFLAGS=""
9447 GTK_LIBS=""
9448 :
9449 fi
698dcdb6
VZ
9450
9451
f6bcfd97 9452
8168de4c
VZ
9453 fi
9454
9455 if test -z "$wx_cv_lib_gtk"; then
9456
f6bcfd97
BP
9457 if test x$gtk_config_exec_prefix != x ; then
9458 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9459 if test x${GTK_CONFIG+set} != xset ; then
9460 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9461 fi
9462 fi
9463 if test x$gtk_config_prefix != x ; then
9464 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9465 if test x${GTK_CONFIG+set} != xset ; then
9466 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9467 fi
9468 fi
9469
9470 # Extract the first word of "gtk-config", so it can be a program name with args.
9471set dummy gtk-config; ac_word=$2
698dcdb6 9472echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab252f7b 9473echo "configure:9474: checking for $ac_word" >&5
698dcdb6
VZ
9474if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9475 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9476else
698dcdb6
VZ
9477 case "$GTK_CONFIG" in
9478 /*)
10f2d63a
VZ
9479 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9480 ;;
698dcdb6
VZ
9481 ?:/*)
9482 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9483 ;;
10f2d63a 9484 *)
698dcdb6
VZ
9485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9486 ac_dummy="$PATH"
9487 for ac_dir in $ac_dummy; do
9488 test -z "$ac_dir" && ac_dir=.
9489 if test -f $ac_dir/$ac_word; then
9490 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9491 break
9492 fi
9493 done
9494 IFS="$ac_save_ifs"
10f2d63a
VZ
9495 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9496 ;;
9497esac
9498fi
698dcdb6 9499GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 9500if test -n "$GTK_CONFIG"; then
698dcdb6 9501 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 9502else
698dcdb6 9503 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9504fi
9505
04165bec 9506 min_gtk_version=1.2.3
698dcdb6 9507 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
ab252f7b 9508echo "configure:9509: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
9509 no_gtk=""
9510 if test "$GTK_CONFIG" != "no" ; then
9511 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 9512 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
9513 ac_save_CFLAGS="$CFLAGS"
9514 ac_save_LIBS="$LIBS"
9515 CFLAGS="$CFLAGS $GTK_CFLAGS"
9516 LIBS="$LIBS $GTK_LIBS"
9517 if test "$cross_compiling" = yes; then
9518 echo $ac_n "cross compiling; assumed OK... $ac_c"
9519else
698dcdb6 9520 cat > conftest.$ac_ext <<EOF
ab252f7b 9521#line 9522 "configure"
10f2d63a
VZ
9522#include "confdefs.h"
9523
9524#include <gtk/gtk.h>
f49f2b0c 9525#include <gtk/gtkfeatures.h>
10f2d63a 9526#include <stdio.h>
32832908 9527#include <stdlib.h>
10f2d63a
VZ
9528
9529int
9530main ()
9531{
9532 int major, minor, micro;
9533
9534 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9535 printf("%s, bad version string\n", "$min_gtk_version");
9536 exit(1);
9537 }
9538
f49f2b0c
RR
9539 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9540 (GTK_MINOR_VERSION != gtk_minor_version) ||
9541 (GTK_MICRO_VERSION != gtk_micro_version)) {
9542 printf("Headers vs. library version mismatch!\n");
9543 exit(1);
9544 }
9545
10f2d63a
VZ
9546 if (gtk_minor_version == 1) return FALSE;
9547
9548 return !((gtk_major_version > major) ||
9549 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9550 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9551}
9552
698dcdb6 9553EOF
ab252f7b 9554if { (eval echo configure:9555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9555then
10f2d63a
VZ
9556 :
9557else
698dcdb6
VZ
9558 echo "configure: failed program was:" >&5
9559 cat conftest.$ac_ext >&5
9560 rm -fr conftest*
9561 no_gtk=yes
10f2d63a 9562fi
698dcdb6 9563rm -fr conftest*
10f2d63a 9564fi
698dcdb6 9565
10f2d63a
VZ
9566 CFLAGS="$ac_save_CFLAGS"
9567 LIBS="$ac_save_LIBS"
9568 else
9569 no_gtk=yes
9570 fi
9571 if test "x$no_gtk" = x ; then
698dcdb6 9572 echo "$ac_t""yes" 1>&6
8168de4c 9573 wx_cv_lib_gtk=1.2.3
10f2d63a 9574 else
698dcdb6 9575 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9576 GTK_CFLAGS=""
9577 GTK_LIBS=""
7e99ad86 9578 :
10f2d63a 9579 fi
698dcdb6
VZ
9580
9581
10f2d63a 9582
8168de4c
VZ
9583 fi
9584
9585 if test -z "$wx_cv_lib_gtk"; then
9586 wx_cv_lib_gtk=none
138be253
VZ
9587 else
9588 wx_cv_cflags_gtk=$GTK_CFLAGS
9589 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
9590 fi
9591
1e6feb95 9592
8168de4c 9593fi
703e0a69 9594
698dcdb6 9595
8168de4c
VZ
9596 if test "$gtk_version_cached" = 1; then
9597 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 9598 fi
698dcdb6 9599
8168de4c
VZ
9600 case "$wx_cv_lib_gtk" in
9601 2.0) WXGTK20=1
9602 ;;
9603 1.2.7) WXGTK127=1
d1a8d972 9604 WXGTK12=1
8168de4c
VZ
9605 ;;
9606 1.2.3) WXGTK12=1
9607 ;;
9608 *) { echo "configure: error:
9609Please check that gtk-config is in path, the directory
9610where GTK+ libraries are installed (returned by
9611'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9612equivalent variable and GTK+ is version 1.2.3 or above.
9613 " 1>&2; exit 1; }
9614 ;;
9615 esac
2224580a 9616
138be253 9617 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 9618 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 9619
1e6feb95
VZ
9620 AFMINSTALL=afminstall
9621 TOOLKIT=GTK
9622 GUIDIST=GTK_DIST
7ec2881a 9623
1e6feb95 9624 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
ab252f7b 9625echo "configure:9626: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
9626ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9627if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9628 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 9629else
698dcdb6 9630 ac_save_LIBS="$LIBS"
7ec2881a 9631LIBS="-lgdk $LIBS"
698dcdb6 9632cat > conftest.$ac_ext <<EOF
ab252f7b 9633#line 9634 "configure"
7ec2881a
RR
9634#include "confdefs.h"
9635/* Override any gcc2 internal prototype to avoid an error. */
9636/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9637 builtin and then its argument prototype would still apply. */
9638char gdk_im_open();
9639
9640int main() {
9641gdk_im_open()
9642; return 0; }
9643EOF
ab252f7b 9644if { (eval echo configure:9645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9645 rm -rf conftest*
9646 eval "ac_cv_lib_$ac_lib_var=yes"
9647else
9648 echo "configure: failed program was:" >&5
9649 cat conftest.$ac_ext >&5
9650 rm -rf conftest*
9651 eval "ac_cv_lib_$ac_lib_var=no"
9652fi
9653rm -f conftest*
9654LIBS="$ac_save_LIBS"
9655
9656fi
9657if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9658 echo "$ac_t""yes" 1>&6
9659 cat >> confdefs.h <<\EOF
7ec2881a
RR
9660#define HAVE_XIM 1
9661EOF
9662
698dcdb6
VZ
9663else
9664 echo "$ac_t""no" 1>&6
7ec2881a
RR
9665fi
9666
1e6feb95 9667 fi
10f2d63a 9668
1e6feb95
VZ
9669 if test "$wxUSE_MGL" = 1; then
9670
9671 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
ab252f7b 9672echo "configure:9673: checking for SciTech MGL library" >&5
1e6feb95
VZ
9673 if test "x$MGL_ROOT" = x ; then
9674 echo "$ac_t""not found" 1>&6
9675 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9676 else
9677 echo "$ac_t""$MGL_ROOT" 1>&6
9678 fi
9679
9680 MGL_OS=linux/gcc/glibc
9681 MGL_LIB_TYPE=""
9682
9683 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9684 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9685 MGL_LIB_TYPE=debug
9686 fi
9687 fi
9688 if test "x$MGL_LIB_TYPE" = x ; then
9689 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9690 MGL_LIB_TYPE=release
9691 else
9692 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9693 fi
9694 fi
9695
9696 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9697 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9698
9699 AFMINSTALL=afminstall
9700 TOOLKIT=MGL
9701 GUIDIST=MGL_DIST
9702 fi
9703
9704 if test "$wxUSE_WINE" = 1; then
9705 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
ab252f7b 9706echo "configure:9707: checking for WINE includes" >&5
1e6feb95 9707
10f2d63a
VZ
9708ac_find_includes=
9709for ac_dir in $SEARCH_INCLUDE;
9710 do
9711 if test -f "$ac_dir/windows.h"; then
9712 ac_find_includes=$ac_dir
9713 break
9714 fi
9715 done
9716
1e6feb95
VZ
9717 if test "$ac_find_includes" != "" ; then
9718 echo "$ac_t""found $ac_find_includes" 1>&6
9719 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9720 else
9721 echo "$ac_t""no" 1>&6
9722 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9723 fi
10f2d63a 9724
1e6feb95
VZ
9725 XPM_LINK=""
9726 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
ab252f7b 9727echo "configure:9728: checking for Xpm library" >&5
1e6feb95 9728
10f2d63a
VZ
9729ac_find_libraries=
9730for ac_dir in $SEARCH_LIB;
9731 do
f11bdd03 9732 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9733 if test -f "$ac_dir/libXpm.$ac_extension"; then
9734 ac_find_libraries=$ac_dir
9735 break 2
9736 fi
9737 done
9738 done
9739
1e6feb95
VZ
9740 if test "$ac_find_libraries" != "" ; then
9741 GUI_TK_LIBRARY="-L$ac_find_libraries"
9742 XPM_LINK="-lXpm"
9743 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9744#define wxHAVE_LIB_XPM 1
9745EOF
9746
1e6feb95
VZ
9747 echo "$ac_t""found at $ac_find_libraries" 1>&6
9748 else
9749 echo "$ac_t""no" 1>&6
9750 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9751 fi
10f2d63a 9752
1e6feb95
VZ
9753 MESA_LINK=""
9754 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
ab252f7b 9755echo "configure:9756: checking for Mesa library" >&5
1e6feb95 9756
10f2d63a
VZ
9757ac_find_libraries=
9758for ac_dir in $SEARCH_LIB;
9759 do
f11bdd03 9760 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9761 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9762 ac_find_libraries=$ac_dir
9763 break 2
9764 fi
9765 done
9766 done
9767
1e6feb95
VZ
9768 if test "$ac_find_libraries" != "" ; then
9769 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9770 MESA_LINK="-lMesaGL"
9771 echo "$ac_t""found at $ac_find_libraries" 1>&6
9772 else
9773 { echo "configure: error: no" 1>&2; exit 1; }
9774 fi
10f2d63a 9775
1e6feb95
VZ
9776 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9777 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9778 WXWINE=1
9779 TOOLKIT=MSW
9780 GUIDIST=MSW_DIST
9781 fi
698dcdb6 9782
1e6feb95
VZ
9783
9784 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9785# paths, otherwise set no_x=yes.
9786# Uses ac_ vars as temps to allow command line to override cache and checks.
9787# --without-x overrides everything else, but does not touch the cache.
9788echo $ac_n "checking for X""... $ac_c" 1>&6
ab252f7b 9789echo "configure:9790: checking for X" >&5
ab9b9eab
VZ
9790
9791# Check whether --with-x or --without-x was given.
9792if test "${with_x+set}" = set; then
9793 withval="$with_x"
698dcdb6
VZ
9794 :
9795fi
ba337fe7 9796
ab9b9eab
VZ
9797# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9798if test "x$with_x" = xno; then
9799 # The user explicitly disabled X.
9800 have_x=disabled
9801else
9802 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9803 # Both variables are already set.
9804 have_x=yes
9805 else
698dcdb6
VZ
9806if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9807 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9808else
9809 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9810ac_x_includes=NO ac_x_libraries=NO
9811rm -fr conftestdir
9812if mkdir conftestdir; then
9813 cd conftestdir
ab9b9eab 9814 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9815 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9816acfindx:
9817 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9818EOF
9819 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9820 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9821 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9822 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9823 for ac_extension in a so sl; do
ab9b9eab 9824 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9825 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9826 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9827 fi
9828 done
ab9b9eab
VZ
9829 # Screen out bogus values from the imake configuration. They are
9830 # bogus both because they are the default anyway, and because
9831 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9832 case "$ac_im_incroot" in
ab9b9eab 9833 /usr/include) ;;
698dcdb6 9834 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9835 esac
698dcdb6 9836 case "$ac_im_usrlibdir" in
ab9b9eab 9837 /usr/lib | /lib) ;;
698dcdb6 9838 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9839 esac
ba337fe7 9840 fi
ab9b9eab 9841 cd ..
698dcdb6 9842 rm -fr conftestdir
ab9b9eab 9843fi
10f2d63a 9844
698dcdb6
VZ
9845if test "$ac_x_includes" = NO; then
9846 # Guess where to find include files, by looking for this one X11 .h file.
9847 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9848
ab9b9eab 9849 # First, try using that file with no special directory specified.
698dcdb6 9850cat > conftest.$ac_ext <<EOF
ab252f7b 9851#line 9852 "configure"
ab9b9eab 9852#include "confdefs.h"
698dcdb6
VZ
9853#include <$x_direct_test_include>
9854EOF
9855ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 9856{ (eval echo configure:9857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9857ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9858if test -z "$ac_err"; then
9859 rm -rf conftest*
ab9b9eab
VZ
9860 # We can compile using X headers with no special include directory.
9861ac_x_includes=
9862else
698dcdb6
VZ
9863 echo "$ac_err" >&5
9864 echo "configure: failed program was:" >&5
ab9b9eab 9865 cat conftest.$ac_ext >&5
698dcdb6
VZ
9866 rm -rf conftest*
9867 # Look for the header file in a standard set of common directories.
9868# Check X11 before X11Rn because it is often a symlink to the current release.
9869 for ac_dir in \
9870 /usr/X11/include \
9871 /usr/X11R6/include \
9872 /usr/X11R5/include \
9873 /usr/X11R4/include \
9874 \
9875 /usr/include/X11 \
9876 /usr/include/X11R6 \
9877 /usr/include/X11R5 \
9878 /usr/include/X11R4 \
9879 \
9880 /usr/local/X11/include \
9881 /usr/local/X11R6/include \
9882 /usr/local/X11R5/include \
9883 /usr/local/X11R4/include \
9884 \
9885 /usr/local/include/X11 \
9886 /usr/local/include/X11R6 \
9887 /usr/local/include/X11R5 \
9888 /usr/local/include/X11R4 \
9889 \
9890 /usr/X386/include \
9891 /usr/x386/include \
9892 /usr/XFree86/include/X11 \
9893 \
9894 /usr/include \
9895 /usr/local/include \
9896 /usr/unsupported/include \
9897 /usr/athena/include \
9898 /usr/local/x11r5/include \
9899 /usr/lpp/Xamples/include \
9900 \
9901 /usr/openwin/include \
9902 /usr/openwin/share/include \
9903 ; \
9904 do
9905 if test -r "$ac_dir/$x_direct_test_include"; then
9906 ac_x_includes=$ac_dir
9907 break
9908 fi
9909 done
ab9b9eab 9910fi
698dcdb6
VZ
9911rm -f conftest*
9912fi # $ac_x_includes = NO
10f2d63a 9913
698dcdb6 9914if test "$ac_x_libraries" = NO; then
ab9b9eab 9915 # Check for the libraries.
698dcdb6
VZ
9916
9917 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9918 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9919
ab9b9eab
VZ
9920 # See if we find them without any special options.
9921 # Don't add to $LIBS permanently.
698dcdb6
VZ
9922 ac_save_LIBS="$LIBS"
9923 LIBS="-l$x_direct_test_library $LIBS"
9924cat > conftest.$ac_ext <<EOF
ab252f7b 9925#line 9926 "configure"
ab9b9eab 9926#include "confdefs.h"
698dcdb6
VZ
9927
9928int main() {
9929${x_direct_test_function}()
9930; return 0; }
9931EOF
ab252f7b 9932if { (eval echo configure:9933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9933 rm -rf conftest*
9934 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
9935# We can link X programs with no special library path.
9936ac_x_libraries=
9937else
698dcdb6
VZ
9938 echo "configure: failed program was:" >&5
9939 cat conftest.$ac_ext >&5
9940 rm -rf conftest*
9941 LIBS="$ac_save_LIBS"
9942# First see if replacing the include by lib works.
9943# Check X11 before X11Rn because it is often a symlink to the current release.
9944for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9945 /usr/X11/lib \
9946 /usr/X11R6/lib \
9947 /usr/X11R5/lib \
9948 /usr/X11R4/lib \
9949 \
9950 /usr/lib/X11 \
9951 /usr/lib/X11R6 \
9952 /usr/lib/X11R5 \
9953 /usr/lib/X11R4 \
9954 \
9955 /usr/local/X11/lib \
9956 /usr/local/X11R6/lib \
9957 /usr/local/X11R5/lib \
9958 /usr/local/X11R4/lib \
9959 \
9960 /usr/local/lib/X11 \
9961 /usr/local/lib/X11R6 \
9962 /usr/local/lib/X11R5 \
9963 /usr/local/lib/X11R4 \
9964 \
9965 /usr/X386/lib \
9966 /usr/x386/lib \
9967 /usr/XFree86/lib/X11 \
9968 \
9969 /usr/lib \
9970 /usr/local/lib \
9971 /usr/unsupported/lib \
9972 /usr/athena/lib \
9973 /usr/local/x11r5/lib \
9974 /usr/lpp/Xamples/lib \
9975 /lib/usr/lib/X11 \
9976 \
9977 /usr/openwin/lib \
9978 /usr/openwin/share/lib \
9979 ; \
ab9b9eab
VZ
9980do
9981 for ac_extension in a so sl; do
698dcdb6 9982 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
9983 ac_x_libraries=$ac_dir
9984 break 2
10f2d63a 9985 fi
10f2d63a 9986 done
ab9b9eab
VZ
9987done
9988fi
698dcdb6
VZ
9989rm -f conftest*
9990fi # $ac_x_libraries = NO
10f2d63a 9991
698dcdb6 9992if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
9993 # Didn't find X anywhere. Cache the known absence of X.
9994 ac_cv_have_x="have_x=no"
9995else
9996 # Record where we found X for the cache.
9997 ac_cv_have_x="have_x=yes \
9998 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9999fi
10000fi
10f2d63a 10001 fi
ab9b9eab
VZ
10002 eval "$ac_cv_have_x"
10003fi # $with_x != no
10f2d63a 10004
ab9b9eab 10005if test "$have_x" != yes; then
698dcdb6 10006 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
10007 no_x=yes
10008else
10009 # If each of the values was on the command line, it overrides each guess.
10010 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10011 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10012 # Update the cache value to reflect the command line values.
10013 ac_cv_have_x="have_x=yes \
10014 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 10015 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 10016fi
10f2d63a 10017
ab9b9eab
VZ
10018if test "$no_x" = yes; then
10019 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 10020 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10021#define X_DISPLAY_MISSING 1
10022EOF
10f2d63a 10023
ab9b9eab
VZ
10024 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10025else
10026 if test -n "$x_includes"; then
10027 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
10028 fi
10029
ab9b9eab
VZ
10030 # It would also be nice to do this for all -L options, not just this one.
10031 if test -n "$x_libraries"; then
10032 X_LIBS="$X_LIBS -L$x_libraries"
10033 # For Solaris; some versions of Sun CC require a space after -R and
10034 # others require no space. Words are not sufficient . . . .
698dcdb6 10035 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 10036 "SunOS 5"*)
698dcdb6 10037 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
ab252f7b 10038echo "configure:10039: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
10039 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10040 cat > conftest.$ac_ext <<EOF
ab252f7b 10041#line 10042 "configure"
ab9b9eab 10042#include "confdefs.h"
10f2d63a 10043
698dcdb6 10044int main() {
788deba1 10045
698dcdb6
VZ
10046; return 0; }
10047EOF
ab252f7b 10048if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10049 rm -rf conftest*
ab9b9eab
VZ
10050 ac_R_nospace=yes
10051else
698dcdb6
VZ
10052 echo "configure: failed program was:" >&5
10053 cat conftest.$ac_ext >&5
10054 rm -rf conftest*
10055 ac_R_nospace=no
ab9b9eab 10056fi
698dcdb6 10057rm -f conftest*
ab9b9eab 10058 if test $ac_R_nospace = yes; then
698dcdb6 10059 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10060 X_LIBS="$X_LIBS -R$x_libraries"
10061 else
10062 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 10063 cat > conftest.$ac_ext <<EOF
ab252f7b 10064#line 10065 "configure"
ab9b9eab 10065#include "confdefs.h"
788deba1 10066
698dcdb6 10067int main() {
ab9b9eab 10068
698dcdb6
VZ
10069; return 0; }
10070EOF
ab252f7b 10071if { (eval echo configure:10072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10072 rm -rf conftest*
ab9b9eab
VZ
10073 ac_R_space=yes
10074else
698dcdb6
VZ
10075 echo "configure: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10077 rm -rf conftest*
10078 ac_R_space=no
ab9b9eab 10079fi
698dcdb6 10080rm -f conftest*
ab9b9eab 10081 if test $ac_R_space = yes; then
698dcdb6 10082 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
10083 X_LIBS="$X_LIBS -R $x_libraries"
10084 else
698dcdb6 10085 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
10086 fi
10087 fi
698dcdb6 10088 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
10089 esac
10090 fi
10091
10092 # Check for system-dependent libraries X programs must link with.
10093 # Do this before checking for the system-independent R6 libraries
10094 # (-lICE), since we may need -lsocket or whatever for X linking.
10095
10096 if test "$ISC" = yes; then
10097 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10098 else
698dcdb6
VZ
10099 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10100 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 10101 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 10102 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
ab252f7b 10103echo "configure:10104: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
10104ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10105if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10106 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10107else
698dcdb6 10108 ac_save_LIBS="$LIBS"
ab9b9eab 10109LIBS="-ldnet $LIBS"
698dcdb6 10110cat > conftest.$ac_ext <<EOF
ab252f7b 10111#line 10112 "configure"
ab9b9eab
VZ
10112#include "confdefs.h"
10113/* Override any gcc2 internal prototype to avoid an error. */
10114/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10115 builtin and then its argument prototype would still apply. */
10116char dnet_ntoa();
10117
10118int main() {
10119dnet_ntoa()
10120; return 0; }
10121EOF
ab252f7b 10122if { (eval echo configure:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10123 rm -rf conftest*
10124 eval "ac_cv_lib_$ac_lib_var=yes"
10125else
10126 echo "configure: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 rm -rf conftest*
10129 eval "ac_cv_lib_$ac_lib_var=no"
10130fi
10131rm -f conftest*
10132LIBS="$ac_save_LIBS"
10133
10134fi
10135if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10136 echo "$ac_t""yes" 1>&6
ab9b9eab 10137 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
10138else
10139 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10140fi
10141
10142 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 10143 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
ab252f7b 10144echo "configure:10145: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
10145ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10146if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10147 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10148else
698dcdb6 10149 ac_save_LIBS="$LIBS"
ab9b9eab 10150LIBS="-ldnet_stub $LIBS"
698dcdb6 10151cat > conftest.$ac_ext <<EOF
ab252f7b 10152#line 10153 "configure"
ab9b9eab
VZ
10153#include "confdefs.h"
10154/* Override any gcc2 internal prototype to avoid an error. */
10155/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10156 builtin and then its argument prototype would still apply. */
10157char dnet_ntoa();
10158
10159int main() {
10160dnet_ntoa()
10161; return 0; }
10162EOF
ab252f7b 10163if { (eval echo configure:10164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10164 rm -rf conftest*
10165 eval "ac_cv_lib_$ac_lib_var=yes"
10166else
10167 echo "configure: failed program was:" >&5
10168 cat conftest.$ac_ext >&5
10169 rm -rf conftest*
10170 eval "ac_cv_lib_$ac_lib_var=no"
10171fi
10172rm -f conftest*
10173LIBS="$ac_save_LIBS"
10174
10175fi
10176if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10177 echo "$ac_t""yes" 1>&6
ab9b9eab 10178 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
10179else
10180 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10181fi
10182
10183 fi
10184
10185 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10186 # to get the SysV transport functions.
698dcdb6 10187 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
10188 # needs -lnsl.
10189 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
10190 # on Irix 5.2, according to dickey@clark.net.
10191 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
ab252f7b 10192echo "configure:10193: checking for gethostbyname" >&5
698dcdb6
VZ
10193if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10194 echo $ac_n "(cached) $ac_c" 1>&6
10195else
10196 cat > conftest.$ac_ext <<EOF
ab252f7b 10197#line 10198 "configure"
ab9b9eab
VZ
10198#include "confdefs.h"
10199/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10200 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
10201#include <assert.h>
10202/* Override any gcc2 internal prototype to avoid an error. */
10203/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10204 builtin and then its argument prototype would still apply. */
10205char gethostbyname();
10206
10207int main() {
ab9b9eab
VZ
10208
10209/* The GNU C library defines this for functions which it implements
10210 to always fail with ENOSYS. Some functions are actually named
10211 something starting with __ and the normal name is an alias. */
10212#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10213choke me
10214#else
698dcdb6 10215gethostbyname();
ab9b9eab
VZ
10216#endif
10217
698dcdb6
VZ
10218; return 0; }
10219EOF
ab252f7b 10220if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10221 rm -rf conftest*
10222 eval "ac_cv_func_gethostbyname=yes"
10223else
10224 echo "configure: failed program was:" >&5
10225 cat conftest.$ac_ext >&5
10226 rm -rf conftest*
10227 eval "ac_cv_func_gethostbyname=no"
10228fi
10229rm -f conftest*
10230fi
10231
10232if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10233 echo "$ac_t""yes" 1>&6
10234 :
10235else
10236 echo "$ac_t""no" 1>&6
10237fi
ab9b9eab
VZ
10238
10239 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 10240 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
ab252f7b 10241echo "configure:10242: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
10242ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10243if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10244 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10245else
698dcdb6 10246 ac_save_LIBS="$LIBS"
ab9b9eab 10247LIBS="-lnsl $LIBS"
698dcdb6 10248cat > conftest.$ac_ext <<EOF
ab252f7b 10249#line 10250 "configure"
ab9b9eab
VZ
10250#include "confdefs.h"
10251/* Override any gcc2 internal prototype to avoid an error. */
10252/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10253 builtin and then its argument prototype would still apply. */
10254char gethostbyname();
6232543b 10255
698dcdb6
VZ
10256int main() {
10257gethostbyname()
10258; return 0; }
10259EOF
ab252f7b 10260if { (eval echo configure:10261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10261 rm -rf conftest*
10262 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 10263else
698dcdb6
VZ
10264 echo "configure: failed program was:" >&5
10265 cat conftest.$ac_ext >&5
10266 rm -rf conftest*
10267 eval "ac_cv_lib_$ac_lib_var=no"
10268fi
10269rm -f conftest*
10270LIBS="$ac_save_LIBS"
1e487827 10271
698dcdb6
VZ
10272fi
10273if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10274 echo "$ac_t""yes" 1>&6
10275 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10276else
10277 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10278fi
10279
10280 fi
10281
10282 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10283 # socket/setsockopt and other routines are undefined under SCO ODT
10284 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
10285 # on later versions), says simon@lia.di.epfl.ch: it contains
10286 # gethostby* variants that don't use the nameserver (or something).
10287 # -lsocket must be given before -lnsl if both are needed.
10288 # We assume that if connect needs -lnsl, so does gethostbyname.
10289 echo $ac_n "checking for connect""... $ac_c" 1>&6
ab252f7b 10290echo "configure:10291: checking for connect" >&5
698dcdb6
VZ
10291if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10292 echo $ac_n "(cached) $ac_c" 1>&6
10293else
10294 cat > conftest.$ac_ext <<EOF
ab252f7b 10295#line 10296 "configure"
ab9b9eab
VZ
10296#include "confdefs.h"
10297/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10298 which can conflict with char connect(); below. */
ab9b9eab
VZ
10299#include <assert.h>
10300/* Override any gcc2 internal prototype to avoid an error. */
10301/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10302 builtin and then its argument prototype would still apply. */
10303char connect();
10304
10305int main() {
ab9b9eab
VZ
10306
10307/* The GNU C library defines this for functions which it implements
10308 to always fail with ENOSYS. Some functions are actually named
10309 something starting with __ and the normal name is an alias. */
10310#if defined (__stub_connect) || defined (__stub___connect)
10311choke me
10312#else
698dcdb6 10313connect();
ab9b9eab
VZ
10314#endif
10315
698dcdb6
VZ
10316; return 0; }
10317EOF
ab252f7b 10318if { (eval echo configure:10319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10319 rm -rf conftest*
10320 eval "ac_cv_func_connect=yes"
10321else
10322 echo "configure: failed program was:" >&5
10323 cat conftest.$ac_ext >&5
10324 rm -rf conftest*
10325 eval "ac_cv_func_connect=no"
10326fi
10327rm -f conftest*
10328fi
10329
10330if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10331 echo "$ac_t""yes" 1>&6
10332 :
10333else
10334 echo "$ac_t""no" 1>&6
10335fi
ab9b9eab
VZ
10336
10337 if test $ac_cv_func_connect = no; then
698dcdb6 10338 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
ab252f7b 10339echo "configure:10340: checking for connect in -lsocket" >&5
698dcdb6
VZ
10340ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10341if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10342 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10343else
698dcdb6 10344 ac_save_LIBS="$LIBS"
ab9b9eab 10345LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 10346cat > conftest.$ac_ext <<EOF
ab252f7b 10347#line 10348 "configure"
ab9b9eab
VZ
10348#include "confdefs.h"
10349/* Override any gcc2 internal prototype to avoid an error. */
10350/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10351 builtin and then its argument prototype would still apply. */
10352char connect();
10353
10354int main() {
10355connect()
10356; return 0; }
10357EOF
ab252f7b 10358if { (eval echo configure:10359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10359 rm -rf conftest*
10360 eval "ac_cv_lib_$ac_lib_var=yes"
10361else
10362 echo "configure: failed program was:" >&5
10363 cat conftest.$ac_ext >&5
10364 rm -rf conftest*
10365 eval "ac_cv_lib_$ac_lib_var=no"
10366fi
10367rm -f conftest*
10368LIBS="$ac_save_LIBS"
10369
10370fi
10371if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10372 echo "$ac_t""yes" 1>&6
ab9b9eab 10373 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
10374else
10375 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10376fi
10377
10378 fi
10379
698dcdb6
VZ
10380 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10381 echo $ac_n "checking for remove""... $ac_c" 1>&6
ab252f7b 10382echo "configure:10383: checking for remove" >&5
698dcdb6
VZ
10383if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10384 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10385else
698dcdb6 10386 cat > conftest.$ac_ext <<EOF
ab252f7b 10387#line 10388 "configure"
ab9b9eab
VZ
10388#include "confdefs.h"
10389/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10390 which can conflict with char remove(); below. */
ab9b9eab
VZ
10391#include <assert.h>
10392/* Override any gcc2 internal prototype to avoid an error. */
10393/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10394 builtin and then its argument prototype would still apply. */
10395char remove();
10396
10397int main() {
ab9b9eab
VZ
10398
10399/* The GNU C library defines this for functions which it implements
10400 to always fail with ENOSYS. Some functions are actually named
10401 something starting with __ and the normal name is an alias. */
10402#if defined (__stub_remove) || defined (__stub___remove)
10403choke me
10404#else
698dcdb6 10405remove();
ab9b9eab
VZ
10406#endif
10407
698dcdb6
VZ
10408; return 0; }
10409EOF
ab252f7b 10410if { (eval echo configure:10411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10411 rm -rf conftest*
10412 eval "ac_cv_func_remove=yes"
10413else
10414 echo "configure: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10416 rm -rf conftest*
10417 eval "ac_cv_func_remove=no"
10418fi
10419rm -f conftest*
10420fi
10421
10422if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10423 echo "$ac_t""yes" 1>&6
10424 :
10425else
10426 echo "$ac_t""no" 1>&6
10427fi
ab9b9eab
VZ
10428
10429 if test $ac_cv_func_remove = no; then
698dcdb6 10430 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
ab252f7b 10431echo "configure:10432: checking for remove in -lposix" >&5
698dcdb6
VZ
10432ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10433if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10434 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10435else
698dcdb6 10436 ac_save_LIBS="$LIBS"
ab9b9eab 10437LIBS="-lposix $LIBS"
698dcdb6 10438cat > conftest.$ac_ext <<EOF
ab252f7b 10439#line 10440 "configure"
ab9b9eab
VZ
10440#include "confdefs.h"
10441/* Override any gcc2 internal prototype to avoid an error. */
10442/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10443 builtin and then its argument prototype would still apply. */
10444char remove();
10445
10446int main() {
10447remove()
10448; return 0; }
10449EOF
ab252f7b 10450if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10451 rm -rf conftest*
10452 eval "ac_cv_lib_$ac_lib_var=yes"
10453else
10454 echo "configure: failed program was:" >&5
10455 cat conftest.$ac_ext >&5
10456 rm -rf conftest*
10457 eval "ac_cv_lib_$ac_lib_var=no"
10458fi
10459rm -f conftest*
10460LIBS="$ac_save_LIBS"
10461
10462fi
10463if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10464 echo "$ac_t""yes" 1>&6
ab9b9eab 10465 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
10466else
10467 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10468fi
10469
10470 fi
10471
10472 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 10473 echo $ac_n "checking for shmat""... $ac_c" 1>&6
ab252f7b 10474echo "configure:10475: checking for shmat" >&5
698dcdb6
VZ
10475if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10476 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10477else
698dcdb6 10478 cat > conftest.$ac_ext <<EOF
ab252f7b 10479#line 10480 "configure"
ab9b9eab
VZ
10480#include "confdefs.h"
10481/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10482 which can conflict with char shmat(); below. */
ab9b9eab
VZ
10483#include <assert.h>
10484/* Override any gcc2 internal prototype to avoid an error. */
10485/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10486 builtin and then its argument prototype would still apply. */
10487char shmat();
10488
10489int main() {
ab9b9eab
VZ
10490
10491/* The GNU C library defines this for functions which it implements
10492 to always fail with ENOSYS. Some functions are actually named
10493 something starting with __ and the normal name is an alias. */
10494#if defined (__stub_shmat) || defined (__stub___shmat)
10495choke me
10496#else
698dcdb6 10497shmat();
ab9b9eab
VZ
10498#endif
10499
698dcdb6
VZ
10500; return 0; }
10501EOF
ab252f7b 10502if { (eval echo configure:10503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10503 rm -rf conftest*
10504 eval "ac_cv_func_shmat=yes"
10505else
10506 echo "configure: failed program was:" >&5
10507 cat conftest.$ac_ext >&5
10508 rm -rf conftest*
10509 eval "ac_cv_func_shmat=no"
10510fi
10511rm -f conftest*
10512fi
10513
10514if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10515 echo "$ac_t""yes" 1>&6
10516 :
10517else
10518 echo "$ac_t""no" 1>&6
10519fi
ab9b9eab
VZ
10520
10521 if test $ac_cv_func_shmat = no; then
698dcdb6 10522 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
ab252f7b 10523echo "configure:10524: checking for shmat in -lipc" >&5
698dcdb6
VZ
10524ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10525if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10526 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10527else
698dcdb6 10528 ac_save_LIBS="$LIBS"
ab9b9eab 10529LIBS="-lipc $LIBS"
698dcdb6 10530cat > conftest.$ac_ext <<EOF
ab252f7b 10531#line 10532 "configure"
ab9b9eab
VZ
10532#include "confdefs.h"
10533/* Override any gcc2 internal prototype to avoid an error. */
10534/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10535 builtin and then its argument prototype would still apply. */
10536char shmat();
10537
10538int main() {
10539shmat()
10540; return 0; }
10541EOF
ab252f7b 10542if { (eval echo configure:10543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10543 rm -rf conftest*
10544 eval "ac_cv_lib_$ac_lib_var=yes"
10545else
10546 echo "configure: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10548 rm -rf conftest*
10549 eval "ac_cv_lib_$ac_lib_var=no"
10550fi
10551rm -f conftest*
10552LIBS="$ac_save_LIBS"
10553
10554fi
10555if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10556 echo "$ac_t""yes" 1>&6
ab9b9eab 10557 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
10558else
10559 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10560fi
10561
10562 fi
10563 fi
10564
10565 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 10566 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
10567 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10568 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10569 # check for ICE first), but we must link in the order -lSM -lICE or
10570 # we get undefined symbols. So assume we have SM if we have ICE.
10571 # These have to be linked with before -lX11, unlike the other
10572 # libraries we check for below, so use a different variable.
698dcdb6
VZ
10573 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10574 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
ab252f7b 10575echo "configure:10576: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
10576ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10577if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10578 echo $ac_n "(cached) $ac_c" 1>&6
10579else
10580 ac_save_LIBS="$LIBS"
ab9b9eab 10581LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 10582cat > conftest.$ac_ext <<EOF
ab252f7b 10583#line 10584 "configure"
ab9b9eab
VZ
10584#include "confdefs.h"
10585/* Override any gcc2 internal prototype to avoid an error. */
10586/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10587 builtin and then its argument prototype would still apply. */
10588char IceConnectionNumber();
10589
10590int main() {
10591IceConnectionNumber()
10592; return 0; }
10593EOF
ab252f7b 10594if { (eval echo configure:10595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10595 rm -rf conftest*
10596 eval "ac_cv_lib_$ac_lib_var=yes"
10597else
10598 echo "configure: failed program was:" >&5
10599 cat conftest.$ac_ext >&5
10600 rm -rf conftest*
10601 eval "ac_cv_lib_$ac_lib_var=no"
10602fi
10603rm -f conftest*
10604LIBS="$ac_save_LIBS"
10605
10606fi
10607if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10608 echo "$ac_t""yes" 1>&6
ab9b9eab 10609 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
10610else
10611 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10612fi
10613
698dcdb6 10614 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
10615
10616fi
10617
1e6feb95
VZ
10618 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10619 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 10620
1e6feb95
VZ
10621 if test "$wxUSE_MOTIF" = 1; then
10622 if test "$no_x" = "yes"; then
10623 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10624 fi
ab9b9eab 10625
1e6feb95
VZ
10626 GUI_TK_LIBRARY="$X_LIBS"
10627 TOOLKIT_INCLUDE="$X_CFLAGS"
ab9b9eab 10628
1e6feb95 10629 AFMINSTALL=afminstall
dad6c0ea 10630
1e6feb95
VZ
10631
10632 COMPILED_X_PROGRAM=0
cd6d6d5b 10633
1e6feb95 10634 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
ab252f7b 10635echo "configure:10636: checking for Motif/Lesstif headers" >&5
1e6feb95 10636
ab9b9eab
VZ
10637ac_find_includes=
10638for ac_dir in $SEARCH_INCLUDE;
10639 do
10640 if test -f "$ac_dir/Xm/Xm.h"; then
10641 ac_find_includes=$ac_dir
10642 break
10643 fi
10644 done
10645
1e6feb95
VZ
10646 if test "$ac_find_includes" != "" ; then
10647 echo "$ac_t""found $ac_find_includes" 1>&6
10648 else
10649 cat > conftest.$ac_ext <<EOF
ab252f7b 10650#line 10651 "configure"
cd6d6d5b
VZ
10651#include "confdefs.h"
10652
1e6feb95
VZ
10653 #include <Xm/Xm.h>
10654
698dcdb6 10655int main() {
cd6d6d5b 10656
1e6feb95 10657 int version;
cd6d6d5b 10658
1e6feb95
VZ
10659 version = xmUseVersion;
10660
698dcdb6
VZ
10661; return 0; }
10662EOF
ab252f7b 10663if { (eval echo configure:10664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10664 rm -rf conftest*
10665
1e6feb95
VZ
10666 echo "$ac_t""found in default search path" 1>&6
10667 COMPILED_X_PROGRAM=1
10668
cd6d6d5b 10669else
698dcdb6
VZ
10670 echo "configure: failed program was:" >&5
10671 cat conftest.$ac_ext >&5
10672 rm -rf conftest*
10673
1e6feb95
VZ
10674 echo "$ac_t""no" 1>&6
10675 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10676
698dcdb6 10677
cd6d6d5b 10678fi
698dcdb6 10679rm -f conftest*
1e6feb95 10680 fi
ab9b9eab 10681
1e6feb95
VZ
10682 if test "$COMPILED_X_PROGRAM" = 0; then
10683 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
ab252f7b 10684echo "configure:10685: checking for Motif/Lesstif library" >&5
1e6feb95 10685
ab9b9eab
VZ
10686ac_find_libraries=
10687for ac_dir in $SEARCH_LIB;
10688 do
f11bdd03 10689 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10690 if test -f "$ac_dir/libXm.$ac_extension"; then
10691 ac_find_libraries=$ac_dir
10692 break 2
10693 fi
10694 done
10695 done
10696
1e6feb95
VZ
10697 if test "$ac_find_libraries" != "" ; then
10698
ab9b9eab
VZ
10699 ac_path_to_include=$ac_find_includes
10700 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10701 result=$?
10702 if test $result = 0; then
10703 ac_path_to_include=""
10704 else
10705 ac_path_to_include="-I$ac_find_includes"
10706 fi
10707
1e6feb95 10708
ab9b9eab
VZ
10709 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10710 result=$?
10711 if test $result = 0; then
10712 ac_path_to_link=""
10713 else
10714 ac_path_to_link="-L$ac_find_libraries"
10715 fi
10716
698dcdb6 10717
1e6feb95
VZ
10718 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10719 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10720 echo "$ac_t""found at $ac_find_libraries" 1>&6
10721 else
10722 cat > conftest.$ac_ext <<EOF
ab252f7b 10723#line 10724 "configure"
cd6d6d5b 10724#include "confdefs.h"
ab9b9eab 10725
1e6feb95
VZ
10726 #include <Xm/Xm.h>
10727
698dcdb6 10728int main() {
ab9b9eab 10729
1e6feb95 10730 int version;
ab9b9eab 10731
1e6feb95
VZ
10732 version = xmUseVersion;
10733
698dcdb6
VZ
10734; return 0; }
10735EOF
ab252f7b 10736if { (eval echo configure:10737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10737 rm -rf conftest*
10738
1e6feb95
VZ
10739 echo "$ac_t""found in default search path" 1>&6
10740 COMPILED_X_PROGRAM=1
10741
cd6d6d5b 10742else
698dcdb6
VZ
10743 echo "configure: failed program was:" >&5
10744 cat conftest.$ac_ext >&5
10745 rm -rf conftest*
10746
1e6feb95
VZ
10747 echo "$ac_t""no" 1>&6
10748 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10749
698dcdb6 10750
cd6d6d5b 10751fi
698dcdb6 10752rm -f conftest*
1e6feb95 10753 fi
cd6d6d5b 10754 fi
ab9b9eab 10755
1e6feb95
VZ
10756
10757 XPM_LINK=""
10758 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
ab252f7b 10759echo "configure:10760: checking for Xpm library" >&5
1e6feb95 10760
ab9b9eab
VZ
10761ac_find_libraries=
10762for ac_dir in $SEARCH_LIB;
10763 do
f11bdd03 10764 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10765 if test -f "$ac_dir/libXpm.$ac_extension"; then
10766 ac_find_libraries=$ac_dir
10767 break 2
10768 fi
10769 done
10770 done
10771
1e6feb95
VZ
10772 if test "$ac_find_libraries" != "" ; then
10773
ab9b9eab
VZ
10774 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10775 result=$?
10776 if test $result = 0; then
10777 ac_path_to_link=""
10778 else
10779 ac_path_to_link="-L$ac_find_libraries"
10780 fi
10781
1e6feb95
VZ
10782 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10783 XPM_LINK="-lXpm "
10784 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10785#define wxHAVE_LIB_XPM 1
10786EOF
10787
1e6feb95
VZ
10788 echo "$ac_t""found at $ac_find_libraries" 1>&6
10789 else
10790 cat > conftest.$ac_ext <<EOF
ab252f7b 10791#line 10792 "configure"
cd6d6d5b
VZ
10792#include "confdefs.h"
10793
1e6feb95
VZ
10794 #include <X11/xpm.h>
10795
698dcdb6 10796int main() {
cd6d6d5b 10797
1e6feb95 10798 int version;
cd6d6d5b 10799
1e6feb95
VZ
10800 version = XpmLibraryVersion();
10801
698dcdb6
VZ
10802; return 0; }
10803EOF
ab252f7b 10804if { (eval echo configure:10805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10805 rm -rf conftest*
10806
1e6feb95
VZ
10807 XPM_LINK="-lXpm "
10808 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10809#define wxHAVE_LIB_XPM 1
10810EOF
10811
1e6feb95
VZ
10812 echo "$ac_t""found in default search path" 1>&6
10813 COMPILED_X_PROGRAM=0
10814
cd6d6d5b 10815else
698dcdb6
VZ
10816 echo "configure: failed program was:" >&5
10817 cat conftest.$ac_ext >&5
10818 rm -rf conftest*
10819
1e6feb95
VZ
10820 echo "$ac_t""no" 1>&6
10821 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10822
698dcdb6 10823
cd6d6d5b 10824fi
698dcdb6 10825rm -f conftest*
1e6feb95
VZ
10826 fi
10827
10828 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10829 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10830 TOOLKIT=MOTIF
10831 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10832 fi
10833
1e6feb95
VZ
10834 if test "$wxUSE_MAC" = 1; then
10835 TOOLKIT=MAC
10836 GUIDIST=MACX_DIST
10837 fi
10f2d63a 10838
1e6feb95
VZ
10839 if test "$wxUSE_PM" = 1; then
10840 TOOLKIT=PM
10841 GUIDIST=GTK_DIST
10842 fi
b4085ce6 10843
1e6feb95
VZ
10844 if test "$TOOLKIT" != "PM" ; then
10845 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10846 else
10847 TOOLKIT_DIR="os2"
10848 fi
e07802fc 10849
1e6feb95 10850 TOOLKIT_NAME="${TOOLKIT_DIR}"
10f2d63a 10851
1e6feb95
VZ
10852 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10853
10854 if test "$TOOLKIT_NAME" = "motif"; then
10855 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10856 fi
10857
10858 if test "$wxUSE_UNIVERSAL" = "yes"; then
10859 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10860 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10861 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10862 SETUPH_DIR="univ"
f6bcfd97 10863 else
1e6feb95
VZ
10864 SETUPH_DIR="${TOOLKIT_DIR}"
10865 fi
10866
10867 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10868 TOOLKIT_NAME="${TOOLKIT_NAME}d"
f6bcfd97
BP
10869 fi
10870
2224580a 10871 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
1e6feb95
VZ
10872 if test "$wxUSE_UNIVERSAL" = "yes"; then
10873 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10874 fi
10f2d63a 10875
f6bcfd97 10876 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 10877
1e6feb95
VZ
10878 if test "$wxUSE_UNIVERSAL" = "yes"; then
10879 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10880 else
10881 ALL_OBJECTS="\$(GUIOBJS)"
10882 fi
10883
10884 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10885
10886 if test "$TOOLKIT" != "MSW"; then
10887 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10888 fi
10889
10890 if test "$wxUSE_HTML" = "yes"; then
10891 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10892 fi
3fcdd07b 10893
1e6feb95
VZ
10894 if test "$TOOLKIT" != "MSW"; then
10895 if test "$wxUSE_ODBC" = "yes" ; then
10896 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10897 fi
3fcdd07b
VZ
10898 fi
10899
831b3152
VZ
10900 if test "x$REGEX_INCLUDE" != "x" ; then
10901 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10902 fi
10903
d9d8273d 10904 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10905 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10906 fi
10907 if test "$wxUSE_LIBTIFF" = "yes" ; then
10908 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10909 fi
10910 if test "$wxUSE_LIBPNG" = "yes" ; then
10911 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10912 fi
10913 if test "$wxUSE_ZLIB" = "yes" ; then
10914 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10915 fi
3fed1840
RR
10916 if test "$wxUSE_FREETYPE" = "yes" ; then
10917 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10918 fi
2224580a 10919
1e6feb95
VZ
10920 if test "$wxUSE_UNIVERSAL" = "yes"; then
10921 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10922 else
10923 ALL_DEPFILES="\$(GUIDEPS)"
10924 fi
10925
10926 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10927
10928 if test "$TOOLKIT" != "MSW"; then
10929 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10930 fi
10931
10932 if test "$wxUSE_HTML" = "yes"; then
10933 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10934 fi
10935
879df073 10936 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 10937 if test "$wxUSE_UNIVERSAL" = "yes"; then
879df073 10938 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
1e6feb95 10939 fi
2224580a
VZ
10940 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10941 RPM_SPEC="wx\$(TOOLKIT).spec"
10942
10943 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10944 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 10945else
dad6c0ea
VZ
10946 USE_GUI=0
10947
f6bcfd97
BP
10948 TOOLKIT_DIR="base"
10949
0b2effe9
VZ
10950 TOOLKIT_VPATH="."
10951
f6bcfd97
BP
10952 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10953 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10954 else
10955 TOOLKIT_NAME="${TOOLKIT_DIR}"
10956 fi
10957
07eb77a6
RL
10958 TOOLKIT_DEF="-D__WXBASE__"
10959
b4085ce6
GD
10960 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10961 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 10962
0b2effe9
VZ
10963 if test "x$REGEX_INCLUDE" != "x" ; then
10964 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10965 fi
10966
a20b6d3a
VZ
10967 if test "$wxUSE_ZLIB" = "yes" ; then
10968 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10969 fi
10970
f6bcfd97 10971 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a 10972
831b3152 10973 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
10974 RPM_FILES="src/rpmfiles.lst"
10975 RPM_SPEC="wxBase.spec"
10976
10977 GUIDIST="BASE_DIST"
10978 DISTDIR="wxBase"
10f2d63a
VZ
10979fi
10980
10981WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 10982WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
10983
10984WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 10985WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a 10986
18dbb1f6
VZ
10987case "${host}" in
10988 *-*-mingw32* )
10989 WX_LIBRARY_NAME_SHARED="wx${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}_${WX_RELEASE_NUMBER}.dll"
10990 ;;
10991 * )
10992 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10993 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10994 ;;
10995esac
10f2d63a
VZ
10996
10997WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10998WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10999WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
11000WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
11001WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
11002WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
11003
11004SHARED_LD=
11005PIC_FLAG=
11006WX_ALL=
11007WX_ALL_INSTALLED=
1d62a8b4 11008BURNT_LIBRARY_NAME=
f6bcfd97 11009WX_TARGET_LIBRARY_SONAME=
10f2d63a 11010
698dcdb6 11011
10f2d63a
VZ
11012if test "$wxUSE_SHARED" = "yes"; then
11013 case "${host}" in
11014 *-hp-hpux* )
11015 if test "$GCC" = yes ; then
6b076b40 11016 SHARED_LD="${CXX} -shared -fPIC -o"
10f2d63a
VZ
11017 PIC_FLAG="-fPIC"
11018 else
f6bcfd97
BP
11019 LDFLAGS="-L/usr/lib"
11020
10f2d63a
VZ
11021 SHARED_LD="${CXX} -b -o"
11022 PIC_FLAG="+Z"
11023 fi
f6bcfd97
BP
11024 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
11025 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 11026 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 11027 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
11028 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
11029 else
11030 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
11031 fi
10f2d63a 11032 ;;
b12915c1
VZ
11033
11034 *-*-linux* )
6b076b40 11035 SHARED_LD="${CXX} -shared -o"
10f2d63a 11036 PIC_FLAG="-fPIC"
00cf1208 11037 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 11038 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 11039 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 11040 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 11041 fi
c661ecca
RR
11042 if test "$wxUSE_OPENGL" = "yes"; then
11043 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11044 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11045 else
11046 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11047 WX_ALL="CREATE_LINKS"
422107f9 11048 fi
00cf1208 11049 ;;
10f2d63a
VZ
11050 *-*-irix5* | *-*-irix6* )
11051 if test "$GCC" = yes ; then
6b076b40 11052 SHARED_LD="${CXX} -shared -o"
10f2d63a
VZ
11053 PIC_FLAG="-fPIC"
11054 else
11055 SHARED_LD="${CXX} -shared -o"
11056 fi
c661ecca
RR
11057 if test "$wxUSE_OPENGL" = "yes"; then
11058 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11059 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11060 else
11061 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11062 WX_ALL="CREATE_LINKS"
422107f9 11063 fi
10f2d63a
VZ
11064 ;;
11065 *-*-solaris2* )
11066 if test "$GCC" = yes ; then
6b076b40 11067 SHARED_LD="${CXX} -shared -o"
10f2d63a 11068 PIC_FLAG="-fPIC"
f6bcfd97
BP
11069
11070 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
11071 else
11072 SHARED_LD="${CXX} -G -o"
11073 PIC_FLAG="-KPIC"
11074 fi
c661ecca
RR
11075 if test "$wxUSE_OPENGL" = "yes"; then
11076 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11077 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11078 else
11079 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11080 WX_ALL="CREATE_LINKS"
11081 fi
10f2d63a
VZ
11082 ;;
11083 *-*-sunos4* )
6b076b40 11084 SHARED_LD="${CXX} -shared -o"
10f2d63a
VZ
11085 PIC_FLAG="-fPIC"
11086 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11087 WX_ALL="CREATE_LINKS"
11088 ;;
95c8801c 11089 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
6b076b40 11090 SHARED_LD="${CXX} -shared -o"
10f2d63a 11091 PIC_FLAG="-fPIC"
37d403aa
JS
11092 if test "$wxUSE_OPENGL" = "yes"; then
11093 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11094 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11095 else
11096 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11097 WX_ALL="CREATE_LINKS"
11098 fi
10f2d63a 11099 ;;
b4085ce6 11100 *-*-darwin* )
f11bdd03
GD
11101 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
11102 CFLAGS="${CFLAGS} -fno-common"
11103 CPPFLAGS="${CPPFLAGS} -fno-common"
ea5999b9
GD
11104 SHARED_LD="${CXX} -dynamiclib -o"
11105 PIC_FLAG="-dynamic -fPIC"
b4085ce6
GD
11106 if test "$wxUSE_OPENGL" = "yes"; then
11107 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11108 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11109 else
11110 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11111 WX_ALL="CREATE_LINKS"
11112 fi
f11bdd03
GD
11113 if test "$wxUSE_MAC" = 1 ; then
11114 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
11115 fi
1e6feb95
VZ
11116 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11117 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11118 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
11119 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
11120 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
11121 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
11122 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
11123 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
b4085ce6 11124 ;;
10f2d63a
VZ
11125 *-*-osf* )
11126 SHARED_LD="${CXX} -shared -o"
11127 PIC_FLAG="-fPIC"
11128 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11129 WX_ALL="CREATE_LINKS"
11130 ;;
11131 *-*-dgux5* )
11132 SHARED_LD="${CXX} -shared -o"
11133 PIC_FLAG="-fPIC"
11134 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11135 WX_ALL="CREATE_LINKS"
11136 ;;
11137 *-*-sysv5* )
6b076b40 11138 SHARED_LD="${CXX} -shared -o"
10f2d63a
VZ
11139 PIC_FLAG="-fPIC"
11140 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11141 WX_ALL="CREATE_LINKS"
11142 ;;
11143 *-*-aix* )
11144 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11145 WX_ALL=${WX_LIBRARY_NAME_SHARED}
11146 ;;
1c8183e2 11147 *-*-cygwin* )
10f2d63a 11148 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 11149 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
11150 if test "$wxUSE_OPENGL" = "yes"; then
11151 WX_ALL_INSTALLED="preinstall_gl"
11152 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11153 else
11154 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11155 fi
10f2d63a 11156 ;;
b12915c1 11157 *-*-mingw32* )
18dbb1f6
VZ
11158 WX_LIBRARY_NAME_STATIC="lib/libwx${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}_${WX_RELEASE_NUMBER}.a"
11159 SHARED_LD="${CC} -shared -Wl,--out-implib,${WX_LIBRARY_NAME_STATIC} -o"
11160 TOOLKIT_DEF="${TOOLKIT_DEF} -DWXUSINGDLL=1"
11161 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11162 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11163 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97
BP
11164 if test "$wxUSE_OPENGL" = "yes"; then
11165 WX_ALL_INSTALLED="preinstall_gl"
18dbb1f6 11166 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 11167 else
18dbb1f6 11168 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 11169 fi
10f2d63a
VZ
11170 ;;
11171 *-pc-os2_emx )
e07802fc
VZ
11172 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11173 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 11174 ;;
b12915c1 11175 *-*-beos* )
e2b8b066 11176 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
11177 PIC_FLAG="-fPIC"
11178 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11179 WX_ALL="CREATE_LINKS"
11180 ;;
10f2d63a 11181 *)
698dcdb6 11182 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
11183 esac
11184
11185 if test "x$WX_TARGET_LIBRARY" = "x"; then
11186 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 11187 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 11188 fi
3711412e 11189 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
11190else
11191 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 11192 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
11193
11194 if test "$wxUSE_OPENGL" = "yes"; then
11195 WX_ALL_INSTALLED="preinstall_gl"
11196 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11197 else
11198 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11199 fi
11200
11201 if test "$wxUSE_GUI" = "no"; then
11202 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11203 fi
11204
3711412e 11205 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
11206fi
11207
698dcdb6
VZ
11208
11209for ac_hdr in strings.h
10f2d63a 11210do
698dcdb6
VZ
11211ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11212echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ab252f7b 11213echo "configure:11214: checking for $ac_hdr" >&5
698dcdb6
VZ
11214if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11215 echo $ac_n "(cached) $ac_c" 1>&6
11216else
11217 cat > conftest.$ac_ext <<EOF
ab252f7b 11218#line 11219 "configure"
10f2d63a 11219#include "confdefs.h"
698dcdb6
VZ
11220#include <$ac_hdr>
11221EOF
11222ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 11223{ (eval echo configure:11224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11224ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11225if test -z "$ac_err"; then
11226 rm -rf conftest*
11227 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11228else
698dcdb6
VZ
11229 echo "$ac_err" >&5
11230 echo "configure: failed program was:" >&5
10f2d63a 11231 cat conftest.$ac_ext >&5
698dcdb6
VZ
11232 rm -rf conftest*
11233 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11234fi
698dcdb6 11235rm -f conftest*
10f2d63a 11236fi
698dcdb6
VZ
11237if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11238 echo "$ac_t""yes" 1>&6
11239 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11240 cat >> confdefs.h <<EOF
11241#define $ac_tr_hdr 1
10f2d63a 11242EOF
698dcdb6
VZ
11243
11244else
11245 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11246fi
11247done
11248
698dcdb6 11249for ac_hdr in stdlib.h
9cfadba2 11250do
698dcdb6
VZ
11251ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11252echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ab252f7b 11253echo "configure:11254: checking for $ac_hdr" >&5
698dcdb6
VZ
11254if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11255 echo $ac_n "(cached) $ac_c" 1>&6
11256else
11257 cat > conftest.$ac_ext <<EOF
ab252f7b 11258#line 11259 "configure"
9cfadba2 11259#include "confdefs.h"
698dcdb6
VZ
11260#include <$ac_hdr>
11261EOF
11262ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 11263{ (eval echo configure:11264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11264ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11265if test -z "$ac_err"; then
11266 rm -rf conftest*
11267 eval "ac_cv_header_$ac_safe=yes"
6232543b 11268else
698dcdb6
VZ
11269 echo "$ac_err" >&5
11270 echo "configure: failed program was:" >&5
9cfadba2 11271 cat conftest.$ac_ext >&5
698dcdb6
VZ
11272 rm -rf conftest*
11273 eval "ac_cv_header_$ac_safe=no"
9cfadba2 11274fi
698dcdb6 11275rm -f conftest*
9cfadba2 11276fi
698dcdb6
VZ
11277if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11278 echo "$ac_t""yes" 1>&6
11279 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11280 cat >> confdefs.h <<EOF
11281#define $ac_tr_hdr 1
9cfadba2 11282EOF
698dcdb6
VZ
11283
11284else
11285 echo "$ac_t""no" 1>&6
9cfadba2
VZ
11286fi
11287done
10f2d63a 11288
698dcdb6 11289for ac_hdr in unistd.h
10f2d63a 11290do
698dcdb6
VZ
11291ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11292echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ab252f7b 11293echo "configure:11294: checking for $ac_hdr" >&5
698dcdb6
VZ
11294if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11295 echo $ac_n "(cached) $ac_c" 1>&6
11296else
11297 cat > conftest.$ac_ext <<EOF
ab252f7b 11298#line 11299 "configure"
10f2d63a 11299#include "confdefs.h"
698dcdb6
VZ
11300#include <$ac_hdr>
11301EOF
11302ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 11303{ (eval echo configure:11304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11304ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11305if test -z "$ac_err"; then
11306 rm -rf conftest*
11307 eval "ac_cv_header_$ac_safe=yes"
6232543b 11308else
698dcdb6
VZ
11309 echo "$ac_err" >&5
11310 echo "configure: failed program was:" >&5
10f2d63a 11311 cat conftest.$ac_ext >&5
698dcdb6
VZ
11312 rm -rf conftest*
11313 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11314fi
698dcdb6 11315rm -f conftest*
10f2d63a 11316fi
698dcdb6
VZ
11317if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11318 echo "$ac_t""yes" 1>&6
11319 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11320 cat >> confdefs.h <<EOF
11321#define $ac_tr_hdr 1
10f2d63a 11322EOF
698dcdb6
VZ
11323
11324else
11325 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11326fi
11327done
11328
698dcdb6 11329for ac_hdr in wchar.h
10f2d63a 11330do
698dcdb6
VZ
11331ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11332echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ab252f7b 11333echo "configure:11334: checking for $ac_hdr" >&5
698dcdb6
VZ
11334if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11335 echo $ac_n "(cached) $ac_c" 1>&6
11336else
11337 cat > conftest.$ac_ext <<EOF
ab252f7b 11338#line 11339 "configure"
10f2d63a 11339#include "confdefs.h"
698dcdb6
VZ
11340#include <$ac_hdr>
11341EOF
11342ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 11343{ (eval echo configure:11344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11344ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11345if test -z "$ac_err"; then
11346 rm -rf conftest*
11347 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11348else
698dcdb6
VZ
11349 echo "$ac_err" >&5
11350 echo "configure: failed program was:" >&5
6f72b082 11351 cat conftest.$ac_ext >&5
698dcdb6
VZ
11352 rm -rf conftest*
11353 eval "ac_cv_header_$ac_safe=no"
6f72b082 11354fi
698dcdb6 11355rm -f conftest*
6f72b082 11356fi
698dcdb6
VZ
11357if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11358 echo "$ac_t""yes" 1>&6
11359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11360 cat >> confdefs.h <<EOF
11361#define $ac_tr_hdr 1
6f72b082 11362EOF
698dcdb6
VZ
11363
11364else
11365 echo "$ac_t""no" 1>&6
6f72b082
OK
11366fi
11367done
11368
698dcdb6 11369for ac_hdr in wcstr.h
6f72b082 11370do
698dcdb6
VZ
11371ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11372echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ab252f7b 11373echo "configure:11374: checking for $ac_hdr" >&5
698dcdb6
VZ
11374if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11375 echo $ac_n "(cached) $ac_c" 1>&6
11376else
11377 cat > conftest.$ac_ext <<EOF
ab252f7b 11378#line 11379 "configure"
6f72b082 11379#include "confdefs.h"
698dcdb6
VZ
11380#include <$ac_hdr>
11381EOF
11382ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 11383{ (eval echo configure:11384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11384ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11385if test -z "$ac_err"; then
11386 rm -rf conftest*
11387 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11388else
698dcdb6
VZ
11389 echo "$ac_err" >&5
11390 echo "configure: failed program was:" >&5
6f72b082 11391 cat conftest.$ac_ext >&5
698dcdb6
VZ
11392 rm -rf conftest*
11393 eval "ac_cv_header_$ac_safe=no"
6f72b082 11394fi
698dcdb6 11395rm -f conftest*
6f72b082 11396fi
698dcdb6
VZ
11397if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11398 echo "$ac_t""yes" 1>&6
11399 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11400 cat >> confdefs.h <<EOF
11401#define $ac_tr_hdr 1
6f72b082 11402EOF
698dcdb6
VZ
11403
11404else
11405 echo "$ac_t""no" 1>&6
6f72b082
OK
11406fi
11407done
11408
698dcdb6 11409for ac_hdr in fnmatch.h
6f72b082 11410do
698dcdb6
VZ
11411ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11412echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ab252f7b 11413echo "configure:11414: checking for $ac_hdr" >&5
698dcdb6
VZ
11414if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11415 echo $ac_n "(cached) $ac_c" 1>&6
11416else
11417 cat > conftest.$ac_ext <<EOF
ab252f7b 11418#line 11419 "configure"
6f72b082 11419#include "confdefs.h"
698dcdb6
VZ
11420#include <$ac_hdr>
11421EOF
11422ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 11423{ (eval echo configure:11424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11424ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11425if test -z "$ac_err"; then
11426 rm -rf conftest*
11427 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11428else
698dcdb6
VZ
11429 echo "$ac_err" >&5
11430 echo "configure: failed program was:" >&5
10f2d63a 11431 cat conftest.$ac_ext >&5
698dcdb6
VZ
11432 rm -rf conftest*
11433 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11434fi
698dcdb6 11435rm -f conftest*
10f2d63a 11436fi
698dcdb6
VZ
11437if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11438 echo "$ac_t""yes" 1>&6
11439 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11440 cat >> confdefs.h <<EOF
11441#define $ac_tr_hdr 1
10f2d63a 11442EOF
698dcdb6
VZ
11443
11444else
11445 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11446fi
11447done
11448
698dcdb6 11449for ac_hdr in iconv.h
0fb0dd83 11450do
698dcdb6
VZ
11451ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11452echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ab252f7b 11453echo "configure:11454: checking for $ac_hdr" >&5
698dcdb6
VZ
11454if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11455 echo $ac_n "(cached) $ac_c" 1>&6
11456else
11457 cat > conftest.$ac_ext <<EOF
ab252f7b 11458#line 11459 "configure"
0fb0dd83 11459#include "confdefs.h"
698dcdb6
VZ
11460#include <$ac_hdr>
11461EOF
11462ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 11463{ (eval echo configure:11464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11464ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11465if test -z "$ac_err"; then
11466 rm -rf conftest*
11467 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 11468else
698dcdb6
VZ
11469 echo "$ac_err" >&5
11470 echo "configure: failed program was:" >&5
0fb0dd83 11471 cat conftest.$ac_ext >&5
698dcdb6
VZ
11472 rm -rf conftest*
11473 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 11474fi
698dcdb6 11475rm -f conftest*
0fb0dd83 11476fi
698dcdb6
VZ
11477if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11478 echo "$ac_t""yes" 1>&6
11479 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11480 cat >> confdefs.h <<EOF
11481#define $ac_tr_hdr 1
0fb0dd83 11482EOF
698dcdb6
VZ
11483
11484else
11485 echo "$ac_t""no" 1>&6
0fb0dd83
RR
11486fi
11487done
11488
698dcdb6 11489for ac_hdr in langinfo.h
1f8ae82f 11490do
698dcdb6
VZ
11491ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11492echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ab252f7b 11493echo "configure:11494: checking for $ac_hdr" >&5
698dcdb6
VZ
11494if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11495 echo $ac_n "(cached) $ac_c" 1>&6
11496else
11497 cat > conftest.$ac_ext <<EOF
ab252f7b 11498#line 11499 "configure"
1f8ae82f 11499#include "confdefs.h"
698dcdb6
VZ
11500#include <$ac_hdr>
11501EOF
11502ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 11503{ (eval echo configure:11504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11504ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11505if test -z "$ac_err"; then
11506 rm -rf conftest*
11507 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 11508else
698dcdb6
VZ
11509 echo "$ac_err" >&5
11510 echo "configure: failed program was:" >&5
1f8ae82f 11511 cat conftest.$ac_ext >&5
698dcdb6
VZ
11512 rm -rf conftest*
11513 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 11514fi
698dcdb6 11515rm -f conftest*
1f8ae82f 11516fi
698dcdb6
VZ
11517if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11518 echo "$ac_t""yes" 1>&6
11519 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11520 cat >> confdefs.h <<EOF
11521#define $ac_tr_hdr 1
1f8ae82f 11522EOF
698dcdb6
VZ
11523
11524else
11525 echo "$ac_t""no" 1>&6
1f8ae82f
GD
11526fi
11527done
11528
698dcdb6 11529
73fd4a60
VZ
11530if test "$wxUSE_GUI" = "yes"; then
11531 if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 11532 for ac_hdr in X11/XKBlib.h
10f2d63a 11533do
698dcdb6
VZ
11534ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11535echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ab252f7b 11536echo "configure:11537: checking for $ac_hdr" >&5
698dcdb6
VZ
11537if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11538 echo $ac_n "(cached) $ac_c" 1>&6
11539else
11540 cat > conftest.$ac_ext <<EOF
ab252f7b 11541#line 11542 "configure"
10f2d63a 11542#include "confdefs.h"
698dcdb6
VZ
11543#include <$ac_hdr>
11544EOF
11545ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 11546{ (eval echo configure:11547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11547ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11548if test -z "$ac_err"; then
11549 rm -rf conftest*
11550 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11551else
698dcdb6
VZ
11552 echo "$ac_err" >&5
11553 echo "configure: failed program was:" >&5
10f2d63a 11554 cat conftest.$ac_ext >&5
698dcdb6
VZ
11555 rm -rf conftest*
11556 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11557fi
698dcdb6 11558rm -f conftest*
10f2d63a 11559fi
698dcdb6
VZ
11560if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11561 echo "$ac_t""yes" 1>&6
11562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11563 cat >> confdefs.h <<EOF
11564#define $ac_tr_hdr 1
10f2d63a 11565EOF
698dcdb6
VZ
11566
11567else
11568 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11569fi
11570done
11571
73fd4a60 11572 fi
10f2d63a
VZ
11573fi
11574
3e44f09d 11575if test "$USE_WIN32" = 1; then
29fd3c0c
VS
11576 for ac_hdr in w32api.h
11577do
11578ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11579echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ab252f7b 11580echo "configure:11581: checking for $ac_hdr" >&5
29fd3c0c
VS
11581if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11582 echo $ac_n "(cached) $ac_c" 1>&6
11583else
11584 cat > conftest.$ac_ext <<EOF
ab252f7b 11585#line 11586 "configure"
29fd3c0c
VS
11586#include "confdefs.h"
11587#include <$ac_hdr>
11588EOF
11589ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 11590{ (eval echo configure:11591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
11591ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11592if test -z "$ac_err"; then
11593 rm -rf conftest*
11594 eval "ac_cv_header_$ac_safe=yes"
11595else
11596 echo "$ac_err" >&5
11597 echo "configure: failed program was:" >&5
11598 cat conftest.$ac_ext >&5
11599 rm -rf conftest*
11600 eval "ac_cv_header_$ac_safe=no"
11601fi
11602rm -f conftest*
11603fi
11604if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11605 echo "$ac_t""yes" 1>&6
11606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11607 cat >> confdefs.h <<EOF
11608#define $ac_tr_hdr 1
11609EOF
11610
11611else
11612 echo "$ac_t""no" 1>&6
11613fi
11614done
11615
11616fi
11617
698dcdb6
VZ
11618
11619echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
ab252f7b 11620echo "configure:11621: checking for ANSI C header files" >&5
698dcdb6
VZ
11621if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11622 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11623else
698dcdb6 11624 cat > conftest.$ac_ext <<EOF
ab252f7b 11625#line 11626 "configure"
10f2d63a
VZ
11626#include "confdefs.h"
11627#include <stdlib.h>
11628#include <stdarg.h>
11629#include <string.h>
11630#include <float.h>
698dcdb6
VZ
11631EOF
11632ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 11633{ (eval echo configure:11634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11634ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11635if test -z "$ac_err"; then
11636 rm -rf conftest*
10f2d63a
VZ
11637 ac_cv_header_stdc=yes
11638else
698dcdb6
VZ
11639 echo "$ac_err" >&5
11640 echo "configure: failed program was:" >&5
10f2d63a 11641 cat conftest.$ac_ext >&5
698dcdb6 11642 rm -rf conftest*
10f2d63a
VZ
11643 ac_cv_header_stdc=no
11644fi
698dcdb6 11645rm -f conftest*
10f2d63a
VZ
11646
11647if test $ac_cv_header_stdc = yes; then
11648 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 11649cat > conftest.$ac_ext <<EOF
ab252f7b 11650#line 11651 "configure"
10f2d63a
VZ
11651#include "confdefs.h"
11652#include <string.h>
698dcdb6 11653EOF
10f2d63a
VZ
11654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11655 egrep "memchr" >/dev/null 2>&1; then
11656 :
11657else
698dcdb6 11658 rm -rf conftest*
10f2d63a
VZ
11659 ac_cv_header_stdc=no
11660fi
11661rm -f conftest*
11662
11663fi
11664
11665if test $ac_cv_header_stdc = yes; then
11666 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 11667cat > conftest.$ac_ext <<EOF
ab252f7b 11668#line 11669 "configure"
10f2d63a
VZ
11669#include "confdefs.h"
11670#include <stdlib.h>
698dcdb6 11671EOF
10f2d63a
VZ
11672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11673 egrep "free" >/dev/null 2>&1; then
11674 :
11675else
698dcdb6 11676 rm -rf conftest*
10f2d63a
VZ
11677 ac_cv_header_stdc=no
11678fi
11679rm -f conftest*
11680
11681fi
11682
11683if test $ac_cv_header_stdc = yes; then
11684 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 11685if test "$cross_compiling" = yes; then
10f2d63a
VZ
11686 :
11687else
698dcdb6 11688 cat > conftest.$ac_ext <<EOF
ab252f7b 11689#line 11690 "configure"
10f2d63a
VZ
11690#include "confdefs.h"
11691#include <ctype.h>
698dcdb6
VZ
11692#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11693#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 11694#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
11695int main () { int i; for (i = 0; i < 256; i++)
11696if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11697exit (0); }
11698
11699EOF
ab252f7b 11700if { (eval echo configure:11701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11701then
10f2d63a
VZ
11702 :
11703else
698dcdb6
VZ
11704 echo "configure: failed program was:" >&5
11705 cat conftest.$ac_ext >&5
11706 rm -fr conftest*
11707 ac_cv_header_stdc=no
10f2d63a 11708fi
698dcdb6 11709rm -fr conftest*
10f2d63a 11710fi
698dcdb6 11711
10f2d63a
VZ
11712fi
11713fi
1e487827 11714
698dcdb6
VZ
11715echo "$ac_t""$ac_cv_header_stdc" 1>&6
11716if test $ac_cv_header_stdc = yes; then
11717 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11718#define STDC_HEADERS 1
11719EOF
11720
11721fi
11722
698dcdb6 11723echo $ac_n "checking for mode_t""... $ac_c" 1>&6
ab252f7b 11724echo "configure:11725: checking for mode_t" >&5
698dcdb6
VZ
11725if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11726 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11727else
698dcdb6 11728 cat > conftest.$ac_ext <<EOF
ab252f7b 11729#line 11730 "configure"
1e487827 11730#include "confdefs.h"
698dcdb6
VZ
11731#include <sys/types.h>
11732#if STDC_HEADERS
11733#include <stdlib.h>
11734#include <stddef.h>
11735#endif
11736EOF
11737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11738 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11739 rm -rf conftest*
10f2d63a
VZ
11740 ac_cv_type_mode_t=yes
11741else
698dcdb6
VZ
11742 rm -rf conftest*
11743 ac_cv_type_mode_t=no
703e0a69 11744fi
698dcdb6 11745rm -f conftest*
1e487827 11746
698dcdb6
VZ
11747fi
11748echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11749if test $ac_cv_type_mode_t = no; then
11750 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11751#define mode_t int
11752EOF
11753
11754fi
11755
698dcdb6 11756echo $ac_n "checking for off_t""... $ac_c" 1>&6
ab252f7b 11757echo "configure:11758: checking for off_t" >&5
698dcdb6
VZ
11758if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11759 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11760else
698dcdb6 11761 cat > conftest.$ac_ext <<EOF
ab252f7b 11762#line 11763 "configure"
10f2d63a 11763#include "confdefs.h"
698dcdb6
VZ
11764#include <sys/types.h>
11765#if STDC_HEADERS
11766#include <stdlib.h>
11767#include <stddef.h>
11768#endif
11769EOF
11770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11771 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11772 rm -rf conftest*
10f2d63a
VZ
11773 ac_cv_type_off_t=yes
11774else
698dcdb6
VZ
11775 rm -rf conftest*
11776 ac_cv_type_off_t=no
703e0a69 11777fi
698dcdb6 11778rm -f conftest*
1e487827 11779
698dcdb6
VZ
11780fi
11781echo "$ac_t""$ac_cv_type_off_t" 1>&6
11782if test $ac_cv_type_off_t = no; then
11783 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11784#define off_t long
11785EOF
11786
11787fi
11788
698dcdb6 11789echo $ac_n "checking for pid_t""... $ac_c" 1>&6
ab252f7b 11790echo "configure:11791: checking for pid_t" >&5
698dcdb6
VZ
11791if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11792 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11793else
698dcdb6 11794 cat > conftest.$ac_ext <<EOF
ab252f7b 11795#line 11796 "configure"
10f2d63a 11796#include "confdefs.h"
698dcdb6
VZ
11797#include <sys/types.h>
11798#if STDC_HEADERS
11799#include <stdlib.h>
11800#include <stddef.h>
11801#endif
11802EOF
11803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11804 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11805 rm -rf conftest*
10f2d63a
VZ
11806 ac_cv_type_pid_t=yes
11807else
698dcdb6
VZ
11808 rm -rf conftest*
11809 ac_cv_type_pid_t=no
703e0a69 11810fi
698dcdb6 11811rm -f conftest*
1e487827 11812
698dcdb6
VZ
11813fi
11814echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11815if test $ac_cv_type_pid_t = no; then
11816 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11817#define pid_t int
11818EOF
11819
11820fi
11821
698dcdb6 11822echo $ac_n "checking for size_t""... $ac_c" 1>&6
ab252f7b 11823echo "configure:11824: checking for size_t" >&5
698dcdb6
VZ
11824if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11825 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11826else
698dcdb6 11827 cat > conftest.$ac_ext <<EOF
ab252f7b 11828#line 11829 "configure"
10f2d63a 11829#include "confdefs.h"
698dcdb6
VZ
11830#include <sys/types.h>
11831#if STDC_HEADERS
11832#include <stdlib.h>
11833#include <stddef.h>
11834#endif
11835EOF
11836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11837 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11838 rm -rf conftest*
10f2d63a
VZ
11839 ac_cv_type_size_t=yes
11840else
698dcdb6
VZ
11841 rm -rf conftest*
11842 ac_cv_type_size_t=no
703e0a69 11843fi
698dcdb6 11844rm -f conftest*
1e487827 11845
698dcdb6
VZ
11846fi
11847echo "$ac_t""$ac_cv_type_size_t" 1>&6
11848if test $ac_cv_type_size_t = no; then
11849 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11850#define size_t unsigned
11851EOF
11852
11853fi
11854
698dcdb6 11855echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
ab252f7b 11856echo "configure:11857: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
11857if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11858 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11859else
698dcdb6 11860 cat > conftest.$ac_ext <<EOF
ab252f7b 11861#line 11862 "configure"
10f2d63a
VZ
11862#include "confdefs.h"
11863#include <sys/types.h>
698dcdb6 11864EOF
10f2d63a
VZ
11865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11866 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 11867 rm -rf conftest*
10f2d63a
VZ
11868 ac_cv_type_uid_t=yes
11869else
698dcdb6 11870 rm -rf conftest*
10f2d63a
VZ
11871 ac_cv_type_uid_t=no
11872fi
11873rm -f conftest*
11874
11875fi
1e487827 11876
698dcdb6
VZ
11877echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11878if test $ac_cv_type_uid_t = no; then
11879 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11880#define uid_t int
11881EOF
11882
698dcdb6 11883 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11884#define gid_t int
11885EOF
11886
11887fi
11888
1e487827 11889
698dcdb6 11890echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
ab252f7b 11891echo "configure:11892: checking for wchar_t" >&5
698dcdb6
VZ
11892if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11893 echo $ac_n "(cached) $ac_c" 1>&6
11894else
11895
11896 cat > conftest.$ac_ext <<EOF
ab252f7b 11897#line 11898 "configure"
0046ff7c
VS
11898#include "confdefs.h"
11899#include <wchar.h>
698dcdb6 11900int main() {
0046ff7c 11901
d836ee96
VZ
11902 wchar_t wc, *ws;
11903 wc = L'a';
11904 ws = L"Hello, world!";
698dcdb6
VZ
11905
11906; return 0; }
11907EOF
ab252f7b 11908if { (eval echo configure:11909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11909 rm -rf conftest*
1f8ae82f
GD
11910 wx_cv_type_wchar_t=yes
11911else
698dcdb6
VZ
11912 echo "configure: failed program was:" >&5
11913 cat conftest.$ac_ext >&5
11914 rm -rf conftest*
11915 cat > conftest.$ac_ext <<EOF
ab252f7b 11916#line 11917 "configure"
1f8ae82f
GD
11917#include "confdefs.h"
11918#include <stdlib.h>
698dcdb6 11919int main() {
1f8ae82f 11920
d836ee96
VZ
11921 wchar_t wc, *ws;
11922 wc = L'a';
11923 ws = L"Hello, world!";
698dcdb6
VZ
11924
11925; return 0; }
11926EOF
ab252f7b 11927if { (eval echo configure:11928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11928 rm -rf conftest*
0046ff7c
VS
11929 wx_cv_type_wchar_t=yes
11930else
698dcdb6
VZ
11931 echo "configure: failed program was:" >&5
11932 cat conftest.$ac_ext >&5
11933 rm -rf conftest*
11934 wx_cv_type_wchar_t=no
0046ff7c 11935fi
698dcdb6 11936rm -f conftest*
d836ee96 11937
6232543b 11938fi
698dcdb6 11939rm -f conftest*
703e0a69 11940
1e487827 11941fi
698dcdb6
VZ
11942
11943echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
11944
11945if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 11946 cat >> confdefs.h <<\EOF
0046ff7c
VS
11947#define wxUSE_WCHAR_T 1
11948EOF
11949
11950fi
11951
19af3b06
VZ
11952
11953ac_ext=C
11954# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11955ac_cpp='$CXXCPP $CPPFLAGS'
11956ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11957ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11958cross_compiling=$ac_cv_prog_cxx_cross
11959
d836ee96 11960echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
ab252f7b 11961echo "configure:11962: checking if size_t is unsigned int" >&5
d836ee96
VZ
11962if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11963 echo $ac_n "(cached) $ac_c" 1>&6
11964else
dd2c8b7c 11965 cat > conftest.$ac_ext <<EOF
ab252f7b 11966#line 11967 "configure"
d836ee96
VZ
11967#include "confdefs.h"
11968#include <stddef.h>
11969int main() {
11970
dd2c8b7c
VZ
11971 return 0; }
11972
d836ee96 11973 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
11974
11975 int bar() {
d836ee96
VZ
11976
11977; return 0; }
11978EOF
ab252f7b 11979if { (eval echo configure:11980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11980 rm -rf conftest*
11981 wx_cv_size_t_is_uint=no
11982else
11983 echo "configure: failed program was:" >&5
11984 cat conftest.$ac_ext >&5
11985 rm -rf conftest*
11986 wx_cv_size_t_is_uint=yes
11987
11988fi
11989rm -f conftest*
11990
11991fi
11992
11993echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11994
11995if test "$wx_cv_size_t_is_uint" = "yes"; then
11996 cat >> confdefs.h <<\EOF
11997#define wxSIZE_T_IS_UINT 1
11998EOF
11999
12000else
12001 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
ab252f7b 12002echo "configure:12003: checking if size_t is unsigned long" >&5
d836ee96
VZ
12003if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12004 echo $ac_n "(cached) $ac_c" 1>&6
12005else
12006 cat > conftest.$ac_ext <<EOF
ab252f7b 12007#line 12008 "configure"
d836ee96
VZ
12008#include "confdefs.h"
12009#include <stddef.h>
12010int main() {
12011
dd2c8b7c
VZ
12012 return 0; }
12013
d836ee96 12014 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
12015
12016 int bar() {
d836ee96
VZ
12017
12018; return 0; }
12019EOF
ab252f7b 12020if { (eval echo configure:12021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12021 rm -rf conftest*
12022 wx_cv_size_t_is_ulong=no
12023else
12024 echo "configure: failed program was:" >&5
12025 cat conftest.$ac_ext >&5
12026 rm -rf conftest*
12027 wx_cv_size_t_is_ulong=yes
12028
12029fi
12030rm -f conftest*
12031
12032fi
12033
12034echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12035
12036 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12037 cat >> confdefs.h <<\EOF
12038#define wxSIZE_T_IS_ULONG 1
12039EOF
12040
12041 fi
12042fi
12043
19af3b06
VZ
12044ac_ext=c
12045# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12046ac_cpp='$CPP $CPPFLAGS'
12047ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12048ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12049cross_compiling=$ac_cv_prog_cc_cross
12050
12051
1e487827 12052
698dcdb6 12053echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
ab252f7b 12054echo "configure:12055: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
12055if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12056 echo $ac_n "(cached) $ac_c" 1>&6
12057else
12058
12059 cat > conftest.$ac_ext <<EOF
ab252f7b 12060#line 12061 "configure"
b12915c1
VZ
12061#include "confdefs.h"
12062#include <pwd.h>
698dcdb6 12063int main() {
b12915c1
VZ
12064
12065 char *p;
12066 struct passwd *pw;
12067 p = pw->pw_gecos;
698dcdb6
VZ
12068
12069; return 0; }
12070EOF
ab252f7b 12071if { (eval echo configure:12072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12072 rm -rf conftest*
12073
b12915c1 12074 wx_cv_struct_pw_gecos=yes
698dcdb6 12075
b12915c1 12076else
698dcdb6
VZ
12077 echo "configure: failed program was:" >&5
12078 cat conftest.$ac_ext >&5
12079 rm -rf conftest*
12080
b12915c1 12081 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
12082
12083
6232543b 12084fi
698dcdb6
VZ
12085rm -f conftest*
12086
703e0a69 12087
1e487827 12088fi
698dcdb6
VZ
12089
12090echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 12091
bd3277fe 12092if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 12093 cat >> confdefs.h <<\EOF
bd3277fe
VZ
12094#define HAVE_PW_GECOS 1
12095EOF
12096
12097fi
12098
698dcdb6
VZ
12099
12100echo $ac_n "checking for working const""... $ac_c" 1>&6
ab252f7b 12101echo "configure:12102: checking for working const" >&5
698dcdb6
VZ
12102if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12103 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12104else
698dcdb6 12105 cat > conftest.$ac_ext <<EOF
ab252f7b 12106#line 12107 "configure"
10f2d63a 12107#include "confdefs.h"
698dcdb6
VZ
12108
12109int main() {
12110
12111/* Ultrix mips cc rejects this. */
12112typedef int charset[2]; const charset x;
12113/* SunOS 4.1.1 cc rejects this. */
12114char const *const *ccp;
12115char **p;
12116/* NEC SVR4.0.2 mips cc rejects this. */
12117struct point {int x, y;};
12118static struct point const zero = {0,0};
12119/* AIX XL C 1.02.0.0 rejects this.
12120 It does not let you subtract one const X* pointer from another in an arm
12121 of an if-expression whose if-part is not a constant expression */
12122const char *g = "string";
12123ccp = &g + (g ? g-g : 0);
12124/* HPUX 7.0 cc rejects these. */
12125++ccp;
12126p = (char**) ccp;
12127ccp = (char const *const *) p;
12128{ /* SCO 3.2v4 cc rejects this. */
12129 char *t;
12130 char const *s = 0 ? (char *) 0 : (char const *) 0;
12131
12132 *t++ = 0;
10f2d63a 12133}
698dcdb6
VZ
12134{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12135 int x[] = {25, 17};
12136 const int *foo = &x[0];
12137 ++foo;
703e0a69 12138}
698dcdb6
VZ
12139{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12140 typedef const int *iptr;
12141 iptr p = 0;
12142 ++p;
6232543b 12143}
698dcdb6
VZ
12144{ /* AIX XL C 1.02.0.0 rejects this saying
12145 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12146 struct s { int j; const int *ap[3]; };
12147 struct s *b; b->j = 5;
1e487827 12148}
698dcdb6
VZ
12149{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12150 const int foo = 10;
12151}
12152
12153; return 0; }
12154EOF
ab252f7b 12155if { (eval echo configure:12156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12156 rm -rf conftest*
10f2d63a
VZ
12157 ac_cv_c_const=yes
12158else
698dcdb6
VZ
12159 echo "configure: failed program was:" >&5
12160 cat conftest.$ac_ext >&5
12161 rm -rf conftest*
12162 ac_cv_c_const=no
10f2d63a 12163fi
698dcdb6 12164rm -f conftest*
10f2d63a 12165fi
1e487827 12166
698dcdb6
VZ
12167echo "$ac_t""$ac_cv_c_const" 1>&6
12168if test $ac_cv_c_const = no; then
12169 cat >> confdefs.h <<\EOF
12170#define const
10f2d63a
VZ
12171EOF
12172
12173fi
12174
698dcdb6 12175echo $ac_n "checking for inline""... $ac_c" 1>&6
ab252f7b 12176echo "configure:12177: checking for inline" >&5
698dcdb6
VZ
12177if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12178 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12179else
12180 ac_cv_c_inline=no
12181for ac_kw in inline __inline__ __inline; do
698dcdb6 12182 cat > conftest.$ac_ext <<EOF
ab252f7b 12183#line 12184 "configure"
10f2d63a
VZ
12184#include "confdefs.h"
12185
698dcdb6
VZ
12186int main() {
12187} $ac_kw foo() {
12188; return 0; }
12189EOF
ab252f7b 12190if { (eval echo configure:12191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12191 rm -rf conftest*
10f2d63a
VZ
12192 ac_cv_c_inline=$ac_kw; break
12193else
698dcdb6
VZ
12194 echo "configure: failed program was:" >&5
12195 cat conftest.$ac_ext >&5
10f2d63a 12196fi
698dcdb6 12197rm -f conftest*
10f2d63a
VZ
12198done
12199
12200fi
698dcdb6
VZ
12201
12202echo "$ac_t""$ac_cv_c_inline" 1>&6
12203case "$ac_cv_c_inline" in
10f2d63a 12204 inline | yes) ;;
698dcdb6
VZ
12205 no) cat >> confdefs.h <<\EOF
12206#define inline
10f2d63a
VZ
12207EOF
12208 ;;
698dcdb6 12209 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
12210#define inline $ac_cv_c_inline
12211EOF
12212 ;;
12213esac
12214
698dcdb6
VZ
12215
12216echo $ac_n "checking size of char""... $ac_c" 1>&6
ab252f7b 12217echo "configure:12218: checking size of char" >&5
698dcdb6
VZ
12218if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12219 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 12220else
1e487827 12221 if test "$cross_compiling" = yes; then
698dcdb6 12222 ac_cv_sizeof_char=1
1e487827 12223else
698dcdb6 12224 cat > conftest.$ac_ext <<EOF
ab252f7b 12225#line 12226 "configure"
1e487827 12226#include "confdefs.h"
698dcdb6
VZ
12227#include <stdio.h>
12228main()
1e487827 12229{
698dcdb6
VZ
12230 FILE *f=fopen("conftestval", "w");
12231 if (!f) exit(1);
12232 fprintf(f, "%d\n", sizeof(char));
12233 exit(0);
1e487827 12234}
698dcdb6 12235EOF
ab252f7b 12236if { (eval echo configure:12237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12237then
12238 ac_cv_sizeof_char=`cat conftestval`
1e487827 12239else
698dcdb6
VZ
12240 echo "configure: failed program was:" >&5
12241 cat conftest.$ac_ext >&5
12242 rm -fr conftest*
1e487827
VS
12243 ac_cv_sizeof_char=0
12244fi
698dcdb6 12245rm -fr conftest*
1e487827 12246fi
10f2d63a 12247
1e487827 12248fi
698dcdb6
VZ
12249echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12250cat >> confdefs.h <<EOF
12251#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 12252EOF
6232543b 12253
703e0a69 12254
698dcdb6 12255echo $ac_n "checking size of short""... $ac_c" 1>&6
ab252f7b 12256echo "configure:12257: checking size of short" >&5
698dcdb6
VZ
12257if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12258 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 12259else
1e487827 12260 if test "$cross_compiling" = yes; then
698dcdb6 12261 ac_cv_sizeof_short=2
1e487827 12262else
698dcdb6 12263 cat > conftest.$ac_ext <<EOF
ab252f7b 12264#line 12265 "configure"
1e487827 12265#include "confdefs.h"
698dcdb6
VZ
12266#include <stdio.h>
12267main()
1e487827 12268{
698dcdb6
VZ
12269 FILE *f=fopen("conftestval", "w");
12270 if (!f) exit(1);
12271 fprintf(f, "%d\n", sizeof(short));
12272 exit(0);
1e487827 12273}
698dcdb6 12274EOF
ab252f7b 12275if { (eval echo configure:12276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12276then
12277 ac_cv_sizeof_short=`cat conftestval`
1e487827 12278else
698dcdb6
VZ
12279 echo "configure: failed program was:" >&5
12280 cat conftest.$ac_ext >&5
12281 rm -fr conftest*
12282 ac_cv_sizeof_short=0
1e487827 12283fi
698dcdb6 12284rm -fr conftest*
1e487827 12285fi
698dcdb6 12286
1e487827 12287fi
698dcdb6
VZ
12288echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12289cat >> confdefs.h <<EOF
12290#define SIZEOF_SHORT $ac_cv_sizeof_short
12291EOF
12292
12293
12294echo $ac_n "checking size of int *""... $ac_c" 1>&6
ab252f7b 12295echo "configure:12296: checking size of int *" >&5
698dcdb6
VZ
12296if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12297 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12298else
12299 if test "$cross_compiling" = yes; then
698dcdb6 12300 ac_cv_sizeof_int_p=4
10f2d63a 12301else
698dcdb6 12302 cat > conftest.$ac_ext <<EOF
ab252f7b 12303#line 12304 "configure"
10f2d63a 12304#include "confdefs.h"
698dcdb6
VZ
12305#include <stdio.h>
12306main()
10f2d63a 12307{
698dcdb6
VZ
12308 FILE *f=fopen("conftestval", "w");
12309 if (!f) exit(1);
12310 fprintf(f, "%d\n", sizeof(int *));
12311 exit(0);
10f2d63a 12312}
698dcdb6 12313EOF
ab252f7b 12314if { (eval echo configure:12315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12315then
12316 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 12317else
698dcdb6
VZ
12318 echo "configure: failed program was:" >&5
12319 cat conftest.$ac_ext >&5
12320 rm -fr conftest*
12321 ac_cv_sizeof_int_p=0
6232543b 12322fi
698dcdb6 12323rm -fr conftest*
1e487827 12324fi
698dcdb6 12325
1e487827 12326fi
698dcdb6
VZ
12327echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12328cat >> confdefs.h <<EOF
12329#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
12330EOF
12331
698dcdb6
VZ
12332
12333echo $ac_n "checking size of int""... $ac_c" 1>&6
ab252f7b 12334echo "configure:12335: checking size of int" >&5
698dcdb6
VZ
12335if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12336 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12337else
12338 if test "$cross_compiling" = yes; then
698dcdb6 12339 ac_cv_sizeof_int=4
703e0a69 12340else
698dcdb6 12341 cat > conftest.$ac_ext <<EOF
ab252f7b 12342#line 12343 "configure"
1e487827 12343#include "confdefs.h"
698dcdb6
VZ
12344#include <stdio.h>
12345main()
1e487827 12346{
698dcdb6
VZ
12347 FILE *f=fopen("conftestval", "w");
12348 if (!f) exit(1);
12349 fprintf(f, "%d\n", sizeof(int));
12350 exit(0);
1e487827 12351}
698dcdb6 12352EOF
ab252f7b 12353if { (eval echo configure:12354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12354then
12355 ac_cv_sizeof_int=`cat conftestval`
12356else
12357 echo "configure: failed program was:" >&5
12358 cat conftest.$ac_ext >&5
12359 rm -fr conftest*
12360 ac_cv_sizeof_int=0
703e0a69 12361fi
698dcdb6
VZ
12362rm -fr conftest*
12363fi
12364
12365fi
12366echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12367cat >> confdefs.h <<EOF
12368#define SIZEOF_INT $ac_cv_sizeof_int
12369EOF
12370
12371
12372echo $ac_n "checking size of long""... $ac_c" 1>&6
ab252f7b 12373echo "configure:12374: checking size of long" >&5
698dcdb6
VZ
12374if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12375 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12376else
12377 if test "$cross_compiling" = yes; then
698dcdb6 12378 ac_cv_sizeof_long=4
10f2d63a 12379else
698dcdb6 12380 cat > conftest.$ac_ext <<EOF
ab252f7b 12381#line 12382 "configure"
10f2d63a 12382#include "confdefs.h"
698dcdb6
VZ
12383#include <stdio.h>
12384main()
10f2d63a 12385{
698dcdb6
VZ
12386 FILE *f=fopen("conftestval", "w");
12387 if (!f) exit(1);
12388 fprintf(f, "%d\n", sizeof(long));
12389 exit(0);
10f2d63a 12390}
698dcdb6 12391EOF
ab252f7b 12392if { (eval echo configure:12393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12393then
12394 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 12395else
698dcdb6
VZ
12396 echo "configure: failed program was:" >&5
12397 cat conftest.$ac_ext >&5
12398 rm -fr conftest*
12399 ac_cv_sizeof_long=0
10f2d63a 12400fi
698dcdb6 12401rm -fr conftest*
10f2d63a 12402fi
698dcdb6 12403
10f2d63a 12404fi
698dcdb6
VZ
12405echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12406cat >> confdefs.h <<EOF
12407#define SIZEOF_LONG $ac_cv_sizeof_long
12408EOF
12409
12410
12411echo $ac_n "checking size of long long""... $ac_c" 1>&6
ab252f7b 12412echo "configure:12413: checking size of long long" >&5
698dcdb6
VZ
12413if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12414 echo $ac_n "(cached) $ac_c" 1>&6
12415else
12416 if test "$cross_compiling" = yes; then
12417 ac_cv_sizeof_long_long=0
12418else
12419 cat > conftest.$ac_ext <<EOF
ab252f7b 12420#line 12421 "configure"
698dcdb6
VZ
12421#include "confdefs.h"
12422#include <stdio.h>
12423main()
12424{
12425 FILE *f=fopen("conftestval", "w");
12426 if (!f) exit(1);
12427 fprintf(f, "%d\n", sizeof(long long));
12428 exit(0);
12429}
12430EOF
ab252f7b 12431if { (eval echo configure:12432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12432then
12433 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 12434else
698dcdb6
VZ
12435 echo "configure: failed program was:" >&5
12436 cat conftest.$ac_ext >&5
12437 rm -fr conftest*
6232543b
VS
12438 ac_cv_sizeof_long_long=0
12439fi
698dcdb6
VZ
12440rm -fr conftest*
12441fi
12442
703e0a69 12443fi
698dcdb6
VZ
12444echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12445cat >> confdefs.h <<EOF
10f2d63a
VZ
12446#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12447EOF
12448
1e487827 12449
698dcdb6
VZ
12450
12451echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
ab252f7b 12452echo "configure:12453: checking size of wchar_t" >&5
698dcdb6
VZ
12453if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12454 echo $ac_n "(cached) $ac_c" 1>&6
12455else
12456
b93d0d08
VS
12457 if test "$cross_compiling" = yes; then
12458 wx_cv_sizeof_wchar_t=4
1e6feb95 12459
b93d0d08 12460else
698dcdb6 12461 cat > conftest.$ac_ext <<EOF
ab252f7b 12462#line 12463 "configure"
b93d0d08
VS
12463#include "confdefs.h"
12464
1e6feb95
VZ
12465 #ifdef HAVE_WCHAR_H
12466 # include <wchar.h>
12467 #endif
12468 #ifdef HAVE_STDLIB_H
12469 # include <stdlib.h>
12470 #endif
12471 #include <stdio.h>
12472 int main()
12473 {
12474 FILE *f=fopen("conftestval", "w");
12475 if (!f) exit(1);
12476 fprintf(f, "%i", sizeof(wchar_t));
12477 exit(0);
12478 }
698dcdb6
VZ
12479
12480EOF
ab252f7b 12481if { (eval echo configure:12482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12482then
b93d0d08
VS
12483 wx_cv_sizeof_wchar_t=`cat conftestval`
12484else
698dcdb6
VZ
12485 echo "configure: failed program was:" >&5
12486 cat conftest.$ac_ext >&5
12487 rm -fr conftest*
12488 wx_cv_sizeof_wchar_t=0
b93d0d08 12489fi
698dcdb6 12490rm -fr conftest*
b93d0d08
VS
12491fi
12492
698dcdb6 12493
b93d0d08
VS
12494fi
12495
698dcdb6
VZ
12496echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12497
12498cat >> confdefs.h <<EOF
28c6addc 12499#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
12500EOF
12501
698dcdb6 12502
698dcdb6 12503echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
ab252f7b 12504echo "configure:12505: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
12505if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12506 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12507else
12508 ac_cv_c_bigendian=unknown
12509# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 12510cat > conftest.$ac_ext <<EOF
ab252f7b 12511#line 12512 "configure"
10f2d63a
VZ
12512#include "confdefs.h"
12513#include <sys/types.h>
12514#include <sys/param.h>
698dcdb6 12515int main() {
10f2d63a
VZ
12516
12517#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12518 bogus endian macros
12519#endif
698dcdb6
VZ
12520; return 0; }
12521EOF
ab252f7b 12522if { (eval echo configure:12523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12523 rm -rf conftest*
10f2d63a 12524 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 12525cat > conftest.$ac_ext <<EOF
ab252f7b 12526#line 12527 "configure"
10f2d63a
VZ
12527#include "confdefs.h"
12528#include <sys/types.h>
12529#include <sys/param.h>
698dcdb6 12530int main() {
10f2d63a
VZ
12531
12532#if BYTE_ORDER != BIG_ENDIAN
12533 not big endian
12534#endif
698dcdb6
VZ
12535; return 0; }
12536EOF
ab252f7b 12537if { (eval echo configure:12538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12538 rm -rf conftest*
10f2d63a
VZ
12539 ac_cv_c_bigendian=yes
12540else
698dcdb6
VZ
12541 echo "configure: failed program was:" >&5
12542 cat conftest.$ac_ext >&5
12543 rm -rf conftest*
12544 ac_cv_c_bigendian=no
10f2d63a 12545fi
698dcdb6 12546rm -f conftest*
10f2d63a 12547else
698dcdb6
VZ
12548 echo "configure: failed program was:" >&5
12549 cat conftest.$ac_ext >&5
10f2d63a 12550fi
698dcdb6 12551rm -f conftest*
10f2d63a
VZ
12552if test $ac_cv_c_bigendian = unknown; then
12553if test "$cross_compiling" = yes; then
12554 ac_cv_c_bigendian=unknown
12555else
698dcdb6 12556 cat > conftest.$ac_ext <<EOF
ab252f7b 12557#line 12558 "configure"
10f2d63a
VZ
12558#include "confdefs.h"
12559main () {
12560 /* Are we little or big endian? From Harbison&Steele. */
12561 union
12562 {
12563 long l;
12564 char c[sizeof (long)];
12565 } u;
12566 u.l = 1;
12567 exit (u.c[sizeof (long) - 1] == 1);
12568}
698dcdb6 12569EOF
ab252f7b 12570if { (eval echo configure:12571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12571then
10f2d63a
VZ
12572 ac_cv_c_bigendian=no
12573else
698dcdb6
VZ
12574 echo "configure: failed program was:" >&5
12575 cat conftest.$ac_ext >&5
12576 rm -fr conftest*
12577 ac_cv_c_bigendian=yes
10f2d63a 12578fi
698dcdb6 12579rm -fr conftest*
10f2d63a 12580fi
698dcdb6 12581
10f2d63a
VZ
12582fi
12583fi
698dcdb6
VZ
12584
12585echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 12586if test $ac_cv_c_bigendian = unknown; then
698dcdb6 12587 echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}" to config.cache file" 1>&2
10f2d63a
VZ
12588fi
12589if test $ac_cv_c_bigendian = yes; then
698dcdb6 12590 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12591#define WORDS_BIGENDIAN 1
12592EOF
12593
12594fi
12595
698dcdb6
VZ
12596
12597
10f2d63a 12598 if test "$cross_compiling" = "yes"; then
698dcdb6 12599 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12600#define wxUSE_IOSTREAMH 1
12601EOF
12602
12603 else
698dcdb6
VZ
12604
12605 ac_ext=C
12606# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12607ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12608ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12609ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12610cross_compiling=$ac_cv_prog_cxx_cross
12611
703e0a69 12612
698dcdb6 12613 for ac_hdr in iostream
10f2d63a 12614do
698dcdb6
VZ
12615ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12616echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ab252f7b 12617echo "configure:12618: checking for $ac_hdr" >&5
698dcdb6
VZ
12618if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12619 echo $ac_n "(cached) $ac_c" 1>&6
12620else
12621 cat > conftest.$ac_ext <<EOF
ab252f7b 12622#line 12623 "configure"
10f2d63a 12623#include "confdefs.h"
698dcdb6
VZ
12624#include <$ac_hdr>
12625EOF
12626ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 12627{ (eval echo configure:12628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12628ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12629if test -z "$ac_err"; then
12630 rm -rf conftest*
12631 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12632else
698dcdb6
VZ
12633 echo "$ac_err" >&5
12634 echo "configure: failed program was:" >&5
10f2d63a 12635 cat conftest.$ac_ext >&5
698dcdb6
VZ
12636 rm -rf conftest*
12637 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12638fi
698dcdb6 12639rm -f conftest*
10f2d63a 12640fi
698dcdb6
VZ
12641if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12642 echo "$ac_t""yes" 1>&6
12643 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12644 cat >> confdefs.h <<EOF
12645#define $ac_tr_hdr 1
10f2d63a 12646EOF
698dcdb6
VZ
12647
12648else
12649 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12650fi
12651done
12652
698dcdb6 12653
57fe5ed0
VZ
12654 if test "$ac_cv_header_iostream" = "yes" ; then
12655 :
12656 else
698dcdb6 12657 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12658#define wxUSE_IOSTREAMH 1
12659EOF
12660
10f2d63a
VZ
12661 fi
12662
12663 ac_ext=c
698dcdb6 12664# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12665ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12666ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12667ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12668cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
12669
12670 fi
12671
703e0a69 12672
698dcdb6
VZ
12673
12674 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
ab252f7b 12675echo "configure:12676: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
12676if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12677 echo $ac_n "(cached) $ac_c" 1>&6
12678else
12679
12680
12681 ac_ext=C
12682# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12683ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12684ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12685ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12686cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 12687
698dcdb6
VZ
12688
12689 cat > conftest.$ac_ext <<EOF
ab252f7b 12690#line 12691 "configure"
10f2d63a
VZ
12691#include "confdefs.h"
12692
698dcdb6
VZ
12693
12694int main() {
10f2d63a
VZ
12695
12696 bool b = true;
12697
12698 return 0;
698dcdb6
VZ
12699
12700; return 0; }
12701EOF
ab252f7b 12702if { (eval echo configure:12703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12703 rm -rf conftest*
12704
10f2d63a 12705 wx_cv_cpp_bool=yes
698dcdb6 12706
10f2d63a 12707else
698dcdb6
VZ
12708 echo "configure: failed program was:" >&5
12709 cat conftest.$ac_ext >&5
12710 rm -rf conftest*
12711
10f2d63a 12712 wx_cv_cpp_bool=no
698dcdb6
VZ
12713
12714
10f2d63a 12715fi
698dcdb6 12716rm -f conftest*
10f2d63a
VZ
12717
12718 ac_ext=c
698dcdb6 12719# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12720ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12721ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12722ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12723cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12724
698dcdb6 12725
10f2d63a 12726fi
698dcdb6
VZ
12727
12728echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
12729
12730 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 12731 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12732#define HAVE_BOOL 1
12733EOF
12734
12735 fi
12736
1e487827 12737
698dcdb6 12738
698dcdb6 12739echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
ab252f7b 12740echo "configure:12741: checking for wcslen in -lc" >&5
698dcdb6
VZ
12741ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12742if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12743 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12744else
698dcdb6 12745 ac_save_LIBS="$LIBS"
10f2d63a 12746LIBS="-lc $LIBS"
698dcdb6 12747cat > conftest.$ac_ext <<EOF
ab252f7b 12748#line 12749 "configure"
10f2d63a
VZ
12749#include "confdefs.h"
12750/* Override any gcc2 internal prototype to avoid an error. */
12751/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12752 builtin and then its argument prototype would still apply. */
12753char wcslen();
12754
12755int main() {
12756wcslen()
12757; return 0; }
12758EOF
ab252f7b 12759if { (eval echo configure:12760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12760 rm -rf conftest*
12761 eval "ac_cv_lib_$ac_lib_var=yes"
12762else
12763 echo "configure: failed program was:" >&5
12764 cat conftest.$ac_ext >&5
12765 rm -rf conftest*
12766 eval "ac_cv_lib_$ac_lib_var=no"
12767fi
12768rm -f conftest*
12769LIBS="$ac_save_LIBS"
12770
12771fi
12772if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12773 echo "$ac_t""yes" 1>&6
12774
12775 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12776#define HAVE_WCSLEN 1
12777EOF
12778
12779 WCHAR_LINK=""
698dcdb6 12780
10f2d63a 12781else
698dcdb6 12782 echo "$ac_t""no" 1>&6
10f2d63a 12783
698dcdb6 12784 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
ab252f7b 12785echo "configure:12786: checking for wcslen in -lw" >&5
698dcdb6
VZ
12786ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12787if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12788 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12789else
698dcdb6 12790 ac_save_LIBS="$LIBS"
10f2d63a 12791LIBS="-lw $LIBS"
698dcdb6 12792cat > conftest.$ac_ext <<EOF
ab252f7b 12793#line 12794 "configure"
10f2d63a
VZ
12794#include "confdefs.h"
12795/* Override any gcc2 internal prototype to avoid an error. */
12796/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12797 builtin and then its argument prototype would still apply. */
12798char wcslen();
12799
12800int main() {
12801wcslen()
12802; return 0; }
12803EOF
ab252f7b 12804if { (eval echo configure:12805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12805 rm -rf conftest*
12806 eval "ac_cv_lib_$ac_lib_var=yes"
12807else
12808 echo "configure: failed program was:" >&5
12809 cat conftest.$ac_ext >&5
12810 rm -rf conftest*
12811 eval "ac_cv_lib_$ac_lib_var=no"
12812fi
12813rm -f conftest*
12814LIBS="$ac_save_LIBS"
12815
12816fi
12817if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12818 echo "$ac_t""yes" 1>&6
12819
12820 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12821#define HAVE_WCSLEN 1
12822EOF
12823
12824 WCHAR_LINK="-lw"
698dcdb6 12825
18dbb1f6
VZ
12826else
12827 echo "$ac_t""no" 1>&6
12828
12829 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
ab252f7b 12830echo "configure:12831: checking for wcslen in -lmsvcrt" >&5
18dbb1f6
VZ
12831ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
12832if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12833 echo $ac_n "(cached) $ac_c" 1>&6
12834else
12835 ac_save_LIBS="$LIBS"
12836LIBS="-lmsvcrt $LIBS"
12837cat > conftest.$ac_ext <<EOF
ab252f7b 12838#line 12839 "configure"
18dbb1f6
VZ
12839#include "confdefs.h"
12840/* Override any gcc2 internal prototype to avoid an error. */
12841/* We use char because int might match the return type of a gcc2
12842 builtin and then its argument prototype would still apply. */
12843char wcslen();
12844
12845int main() {
12846wcslen()
12847; return 0; }
12848EOF
ab252f7b 12849if { (eval echo configure:12850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
12850 rm -rf conftest*
12851 eval "ac_cv_lib_$ac_lib_var=yes"
12852else
12853 echo "configure: failed program was:" >&5
12854 cat conftest.$ac_ext >&5
12855 rm -rf conftest*
12856 eval "ac_cv_lib_$ac_lib_var=no"
12857fi
12858rm -f conftest*
12859LIBS="$ac_save_LIBS"
12860
12861fi
12862if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12863 echo "$ac_t""yes" 1>&6
12864
12865 cat >> confdefs.h <<\EOF
12866#define HAVE_WCSLEN 1
12867EOF
12868
12869 WCHAR_LINK=""
12870
698dcdb6
VZ
12871else
12872 echo "$ac_t""no" 1>&6
6232543b 12873fi
10f2d63a 12874
18dbb1f6
VZ
12875
12876fi
12877
698dcdb6 12878
1e487827 12879fi
703e0a69 12880
698dcdb6
VZ
12881
12882echo $ac_n "checking for vprintf""... $ac_c" 1>&6
ab252f7b 12883echo "configure:12884: checking for vprintf" >&5
698dcdb6
VZ
12884if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12885 echo $ac_n "(cached) $ac_c" 1>&6
12886else
12887 cat > conftest.$ac_ext <<EOF
ab252f7b 12888#line 12889 "configure"
10f2d63a
VZ
12889#include "confdefs.h"
12890/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12891 which can conflict with char vprintf(); below. */
10f2d63a
VZ
12892#include <assert.h>
12893/* Override any gcc2 internal prototype to avoid an error. */
12894/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12895 builtin and then its argument prototype would still apply. */
12896char vprintf();
12897
12898int main() {
10f2d63a
VZ
12899
12900/* The GNU C library defines this for functions which it implements
12901 to always fail with ENOSYS. Some functions are actually named
12902 something starting with __ and the normal name is an alias. */
698dcdb6 12903#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
12904choke me
12905#else
698dcdb6 12906vprintf();
10f2d63a
VZ
12907#endif
12908
698dcdb6
VZ
12909; return 0; }
12910EOF
ab252f7b 12911if { (eval echo configure:12912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12912 rm -rf conftest*
12913 eval "ac_cv_func_vprintf=yes"
12914else
12915 echo "configure: failed program was:" >&5
12916 cat conftest.$ac_ext >&5
12917 rm -rf conftest*
12918 eval "ac_cv_func_vprintf=no"
12919fi
12920rm -f conftest*
12921fi
12922
12923if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12924 echo "$ac_t""yes" 1>&6
12925 cat >> confdefs.h <<\EOF
12926#define HAVE_VPRINTF 1
12927EOF
12928
12929else
12930 echo "$ac_t""no" 1>&6
12931fi
12932
12933if test "$ac_cv_func_vprintf" != yes; then
12934echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
ab252f7b 12935echo "configure:12936: checking for _doprnt" >&5
698dcdb6
VZ
12936if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12937 echo $ac_n "(cached) $ac_c" 1>&6
12938else
12939 cat > conftest.$ac_ext <<EOF
ab252f7b 12940#line 12941 "configure"
10f2d63a
VZ
12941#include "confdefs.h"
12942/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12943 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
12944#include <assert.h>
12945/* Override any gcc2 internal prototype to avoid an error. */
12946/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12947 builtin and then its argument prototype would still apply. */
12948char _doprnt();
12949
12950int main() {
10f2d63a
VZ
12951
12952/* The GNU C library defines this for functions which it implements
12953 to always fail with ENOSYS. Some functions are actually named
12954 something starting with __ and the normal name is an alias. */
12955#if defined (__stub__doprnt) || defined (__stub____doprnt)
12956choke me
12957#else
698dcdb6 12958_doprnt();
10f2d63a
VZ
12959#endif
12960
698dcdb6
VZ
12961; return 0; }
12962EOF
ab252f7b 12963if { (eval echo configure:12964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12964 rm -rf conftest*
12965 eval "ac_cv_func__doprnt=yes"
12966else
12967 echo "configure: failed program was:" >&5
12968 cat conftest.$ac_ext >&5
12969 rm -rf conftest*
12970 eval "ac_cv_func__doprnt=no"
12971fi
12972rm -f conftest*
12973fi
12974
12975if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12976 echo "$ac_t""yes" 1>&6
12977 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12978#define HAVE_DOPRNT 1
12979EOF
12980
698dcdb6
VZ
12981else
12982 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12983fi
12984
12985fi
12986
1e487827 12987
698dcdb6
VZ
12988
12989
12990
12991
12992
12993echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
ab252f7b 12994echo "configure:12995: checking for vsnprintf" >&5
698dcdb6
VZ
12995if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12996 echo $ac_n "(cached) $ac_c" 1>&6
12997else
12998
12999 cat > conftest.$ac_ext <<EOF
ab252f7b 13000#line 13001 "configure"
f6bcfd97
BP
13001#include "confdefs.h"
13002
13003 #include <stdio.h>
698dcdb6
VZ
13004 #include <stdarg.h>
13005
13006int main() {
10f2d63a 13007
f6bcfd97 13008 int wx_test_vsnprintf(const char *, ...);
10f2d63a 13009
f6bcfd97
BP
13010 wx_test_vsnprintf("%s");
13011 return 0;
13012 }
13013
13014 int wx_test_vsnprintf(const char *fmt, ...)
13015 {
13016 char *s;
13017
13018 va_list argp;
13019 va_start(argp, fmt);
13020 vsnprintf(s, 42, fmt, argp);
13021 va_end(argp);
698dcdb6
VZ
13022
13023; return 0; }
13024EOF
ab252f7b 13025if { (eval echo configure:13026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13026 rm -rf conftest*
13027
f6bcfd97 13028 wx_cv_func_vsnprintf=yes
698dcdb6 13029
10f2d63a 13030else
698dcdb6
VZ
13031 echo "configure: failed program was:" >&5
13032 cat conftest.$ac_ext >&5
13033 rm -rf conftest*
13034
13035 cat > conftest.$ac_ext <<EOF
ab252f7b 13036#line 13037 "configure"
c521c494
RL
13037#include "confdefs.h"
13038
13039 #include <stdio.h>
13040 #include <stdarg.h>
698dcdb6
VZ
13041
13042int main() {
c521c494
RL
13043
13044 int wx_test_vsnprintf(const char *, ...);
13045
13046 wx_test_vsnprintf("%s");
13047 return 0;
13048 }
13049
13050 int wx_test_vsnprintf(const char *fmt, ...)
13051 {
13052 char *s;
13053
13054 va_list argp;
13055 va_start(argp, fmt);
13056 _vsnprintf(s, 42, fmt, argp);
13057 va_end(argp);
698dcdb6
VZ
13058
13059; return 0; }
13060EOF
ab252f7b 13061if { (eval echo configure:13062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13062 rm -rf conftest*
13063
c521c494 13064 wx_cv_func_vsnprintf=yes
698dcdb6 13065
c521c494 13066else
698dcdb6
VZ
13067 echo "configure: failed program was:" >&5
13068 cat conftest.$ac_ext >&5
13069 rm -rf conftest*
13070
c521c494 13071 wx_cv_func_vsnprintf=no
698dcdb6 13072
10f2d63a 13073fi
698dcdb6
VZ
13074rm -f conftest*
13075
6232543b 13076fi
698dcdb6 13077rm -f conftest*
703e0a69 13078
1e487827 13079fi
698dcdb6
VZ
13080
13081echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 13082
9d8deca0 13083if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 13084 cat >> confdefs.h <<\EOF
9d8deca0
VZ
13085#define HAVE_VSNPRINTF 1
13086EOF
13087
13088else
698dcdb6 13089 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
13090fi
13091
698dcdb6 13092echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
ab252f7b 13093echo "configure:13094: checking for vsscanf" >&5
698dcdb6
VZ
13094if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13095 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13096else
698dcdb6
VZ
13097
13098 cat > conftest.$ac_ext <<EOF
ab252f7b 13099#line 13100 "configure"
10f2d63a 13100#include "confdefs.h"
10f2d63a 13101
f6bcfd97
BP
13102 #include <stdio.h>
13103 #include <stdarg.h>
698dcdb6
VZ
13104
13105int main() {
10f2d63a 13106
f6bcfd97 13107 int wx_test_vsscanf(const char *, ...);
10f2d63a 13108
f6bcfd97
BP
13109 wx_test_vsscanf("%d");
13110 return 0;
10f2d63a
VZ
13111 }
13112
f6bcfd97 13113 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 13114 {
f6bcfd97
BP
13115 va_list argp;
13116 va_start(argp, fmt);
13117 vsscanf("42", fmt, argp);
13118 va_end(argp);
698dcdb6
VZ
13119
13120; return 0; }
13121EOF
ab252f7b 13122if { (eval echo configure:13123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13123 rm -rf conftest*
13124
f6bcfd97 13125 wx_cv_func_vsscanf=yes
698dcdb6 13126
10f2d63a 13127else
698dcdb6
VZ
13128 echo "configure: failed program was:" >&5
13129 cat conftest.$ac_ext >&5
13130 rm -rf conftest*
13131
f6bcfd97 13132 wx_cv_func_vsscanf=no
698dcdb6 13133
6232543b 13134fi
698dcdb6 13135rm -f conftest*
703e0a69 13136
1e487827 13137fi
698dcdb6
VZ
13138
13139echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 13140
9d8deca0 13141if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 13142 cat >> confdefs.h <<\EOF
9d8deca0
VZ
13143#define HAVE_VSSCANF 1
13144EOF
13145
13146fi
13147
95c8801c
VS
13148if test "$TOOLKIT" != "MSW"; then
13149
13150
13151
698dcdb6
VZ
13152ac_ext=C
13153# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13154ac_cpp='$CXXCPP $CPPFLAGS'
13155ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13156ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13157cross_compiling=$ac_cv_prog_cxx_cross
13158
13159echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
ab252f7b 13160echo "configure:13161: checking if iconv() takes char**" >&5
698dcdb6
VZ
13161if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
13162 echo $ac_n "(cached) $ac_c" 1>&6
13163else
13164
13165 cat > conftest.$ac_ext <<EOF
ab252f7b 13166#line 13167 "configure"
95c8801c
VS
13167#include "confdefs.h"
13168#include <iconv.h>
698dcdb6 13169int main() {
95c8801c
VS
13170
13171 char **inbuf, **outbuf;
19af3b06
VZ
13172 iconv_t cd;
13173 size_t insz, outsz;
13174 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
13175
13176; return 0; }
13177EOF
ab252f7b 13178if { (eval echo configure:13179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 13179 rm -rf conftest*
95c8801c
VS
13180 wx_cv_iconv_takes_char=yes
13181else
698dcdb6
VZ
13182 echo "configure: failed program was:" >&5
13183 cat conftest.$ac_ext >&5
13184 rm -rf conftest*
13185 wx_cv_iconv_takes_char=no
95c8801c 13186fi
698dcdb6 13187rm -f conftest*
95c8801c
VS
13188
13189fi
698dcdb6
VZ
13190
13191echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 13192ac_ext=c
698dcdb6 13193# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 13194ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13195ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13196ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13197cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 13198
95c8801c 13199if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 13200 cat >> confdefs.h <<\EOF
95c8801c
VS
13201#define WX_ICONV_TAKES_CHAR 1
13202EOF
13203
13204fi
10f2d63a 13205
1e487827 13206
698dcdb6
VZ
13207if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13208 for ac_func in sigaction
eb4efbdc 13209do
698dcdb6 13210echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 13211echo "configure:13212: checking for $ac_func" >&5
698dcdb6
VZ
13212if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13213 echo $ac_n "(cached) $ac_c" 1>&6
13214else
13215 cat > conftest.$ac_ext <<EOF
ab252f7b 13216#line 13217 "configure"
eb4efbdc
VZ
13217#include "confdefs.h"
13218/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13219 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
13220#include <assert.h>
13221/* Override any gcc2 internal prototype to avoid an error. */
13222/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13223 builtin and then its argument prototype would still apply. */
13224char $ac_func();
13225
13226int main() {
eb4efbdc
VZ
13227
13228/* The GNU C library defines this for functions which it implements
13229 to always fail with ENOSYS. Some functions are actually named
13230 something starting with __ and the normal name is an alias. */
13231#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13232choke me
13233#else
698dcdb6 13234$ac_func();
eb4efbdc
VZ
13235#endif
13236
698dcdb6 13237; return 0; }
eb4efbdc 13238EOF
ab252f7b 13239if { (eval echo configure:13240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13240 rm -rf conftest*
13241 eval "ac_cv_func_$ac_func=yes"
13242else
13243 echo "configure: failed program was:" >&5
13244 cat conftest.$ac_ext >&5
13245 rm -rf conftest*
13246 eval "ac_cv_func_$ac_func=no"
13247fi
13248rm -f conftest*
13249fi
eb4efbdc 13250
698dcdb6
VZ
13251if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13252 echo "$ac_t""yes" 1>&6
13253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13254 cat >> confdefs.h <<EOF
13255#define $ac_tr_func 1
13256EOF
13257
13258else
13259 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
13260fi
13261done
13262
698dcdb6 13263
eb4efbdc 13264 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 13265 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
13266 wxUSE_ON_FATAL_EXCEPTION=no
13267 fi
f6bcfd97
BP
13268
13269 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
13270
13271 ac_ext=C
13272# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 13273ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13274ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13275ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13276cross_compiling=$ac_cv_prog_cxx_cross
6232543b 13277
1e487827 13278
698dcdb6 13279 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
ab252f7b 13280echo "configure:13281: checking for sa_handler type" >&5
698dcdb6
VZ
13281if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13282 echo $ac_n "(cached) $ac_c" 1>&6
13283else
13284
13285 cat > conftest.$ac_ext <<EOF
ab252f7b 13286#line 13287 "configure"
f6bcfd97
BP
13287#include "confdefs.h"
13288#include <signal.h>
698dcdb6 13289int main() {
f6bcfd97
BP
13290
13291 extern void testSigHandler(int);
13292
13293 struct sigaction sa;
13294 sa.sa_handler = testSigHandler;
698dcdb6
VZ
13295
13296; return 0; }
13297EOF
ab252f7b 13298if { (eval echo configure:13299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13299 rm -rf conftest*
13300
f6bcfd97 13301 wx_cv_type_sa_handler=int
698dcdb6 13302
f6bcfd97 13303else
698dcdb6
VZ
13304 echo "configure: failed program was:" >&5
13305 cat conftest.$ac_ext >&5
13306 rm -rf conftest*
13307
f6bcfd97 13308 wx_cv_type_sa_handler=void
698dcdb6 13309
6232543b 13310fi
698dcdb6
VZ
13311rm -f conftest*
13312
1e487827 13313fi
698dcdb6
VZ
13314
13315echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
13316
13317 ac_ext=c
698dcdb6 13318# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 13319ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13320ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13321ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13322cross_compiling=$ac_cv_prog_cc_cross
13323
703e0a69 13324
698dcdb6 13325 cat >> confdefs.h <<EOF
f6bcfd97
BP
13326#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13327EOF
13328
13329 fi
eb4efbdc
VZ
13330fi
13331
10f2d63a
VZ
13332for ac_func in vfork
13333do
698dcdb6 13334echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 13335echo "configure:13336: checking for $ac_func" >&5
698dcdb6
VZ
13336if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13337 echo $ac_n "(cached) $ac_c" 1>&6
13338else
13339 cat > conftest.$ac_ext <<EOF
ab252f7b 13340#line 13341 "configure"
10f2d63a
VZ
13341#include "confdefs.h"
13342/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13343 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13344#include <assert.h>
13345/* Override any gcc2 internal prototype to avoid an error. */
13346/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13347 builtin and then its argument prototype would still apply. */
13348char $ac_func();
13349
13350int main() {
10f2d63a
VZ
13351
13352/* The GNU C library defines this for functions which it implements
13353 to always fail with ENOSYS. Some functions are actually named
13354 something starting with __ and the normal name is an alias. */
13355#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13356choke me
13357#else
698dcdb6 13358$ac_func();
10f2d63a
VZ
13359#endif
13360
698dcdb6 13361; return 0; }
10f2d63a 13362EOF
ab252f7b 13363if { (eval echo configure:13364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13364 rm -rf conftest*
13365 eval "ac_cv_func_$ac_func=yes"
13366else
13367 echo "configure: failed program was:" >&5
13368 cat conftest.$ac_ext >&5
13369 rm -rf conftest*
13370 eval "ac_cv_func_$ac_func=no"
13371fi
13372rm -f conftest*
13373fi
270a909e 13374
698dcdb6
VZ
13375if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13376 echo "$ac_t""yes" 1>&6
13377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13378 cat >> confdefs.h <<EOF
13379#define $ac_tr_func 1
13380EOF
13381
13382else
13383 echo "$ac_t""no" 1>&6
270a909e
VZ
13384fi
13385done
13386
1e487827 13387
698dcdb6
VZ
13388if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13389 for ac_func in fcntl flock
4f3c5f06 13390do
698dcdb6 13391echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 13392echo "configure:13393: checking for $ac_func" >&5
698dcdb6
VZ
13393if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13394 echo $ac_n "(cached) $ac_c" 1>&6
13395else
13396 cat > conftest.$ac_ext <<EOF
ab252f7b 13397#line 13398 "configure"
4f3c5f06
VZ
13398#include "confdefs.h"
13399/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13400 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
13401#include <assert.h>
13402/* Override any gcc2 internal prototype to avoid an error. */
13403/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13404 builtin and then its argument prototype would still apply. */
13405char $ac_func();
13406
13407int main() {
4f3c5f06
VZ
13408
13409/* The GNU C library defines this for functions which it implements
13410 to always fail with ENOSYS. Some functions are actually named
13411 something starting with __ and the normal name is an alias. */
13412#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13413choke me
13414#else
698dcdb6 13415$ac_func();
4f3c5f06
VZ
13416#endif
13417
698dcdb6
VZ
13418; return 0; }
13419EOF
ab252f7b 13420if { (eval echo configure:13421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13421 rm -rf conftest*
13422 eval "ac_cv_func_$ac_func=yes"
13423else
13424 echo "configure: failed program was:" >&5
13425 cat conftest.$ac_ext >&5
13426 rm -rf conftest*
13427 eval "ac_cv_func_$ac_func=no"
13428fi
13429rm -f conftest*
13430fi
13431
13432if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13433 echo "$ac_t""yes" 1>&6
13434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13435 cat >> confdefs.h <<EOF
13436#define $ac_tr_func 1
4f3c5f06
VZ
13437EOF
13438 break
698dcdb6
VZ
13439else
13440 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
13441fi
13442done
13443
698dcdb6 13444
4f3c5f06 13445 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 13446 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
13447 wxUSE_SNGLINST_CHECKER=no
13448 fi
13449fi
13450
270a909e
VZ
13451for ac_func in timegm
13452do
698dcdb6 13453echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 13454echo "configure:13455: checking for $ac_func" >&5
698dcdb6
VZ
13455if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13456 echo $ac_n "(cached) $ac_c" 1>&6
13457else
13458 cat > conftest.$ac_ext <<EOF
ab252f7b 13459#line 13460 "configure"
270a909e
VZ
13460#include "confdefs.h"
13461/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13462 which can conflict with char $ac_func(); below. */
270a909e
VZ
13463#include <assert.h>
13464/* Override any gcc2 internal prototype to avoid an error. */
13465/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13466 builtin and then its argument prototype would still apply. */
13467char $ac_func();
13468
13469int main() {
270a909e
VZ
13470
13471/* The GNU C library defines this for functions which it implements
13472 to always fail with ENOSYS. Some functions are actually named
13473 something starting with __ and the normal name is an alias. */
13474#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13475choke me
13476#else
698dcdb6 13477$ac_func();
270a909e
VZ
13478#endif
13479
698dcdb6 13480; return 0; }
270a909e 13481EOF
ab252f7b 13482if { (eval echo configure:13483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13483 rm -rf conftest*
13484 eval "ac_cv_func_$ac_func=yes"
13485else
13486 echo "configure: failed program was:" >&5
13487 cat conftest.$ac_ext >&5
13488 rm -rf conftest*
13489 eval "ac_cv_func_$ac_func=no"
13490fi
13491rm -f conftest*
13492fi
10f2d63a 13493
698dcdb6
VZ
13494if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13495 echo "$ac_t""yes" 1>&6
13496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13497 cat >> confdefs.h <<EOF
13498#define $ac_tr_func 1
13499EOF
13500
13501else
13502 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13503fi
13504done
13505
698dcdb6 13506
8fd0d89b
VZ
13507for ac_func in putenv setenv
13508do
698dcdb6 13509echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 13510echo "configure:13511: checking for $ac_func" >&5
698dcdb6
VZ
13511if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13512 echo $ac_n "(cached) $ac_c" 1>&6
13513else
13514 cat > conftest.$ac_ext <<EOF
ab252f7b 13515#line 13516 "configure"
8fd0d89b
VZ
13516#include "confdefs.h"
13517/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13518 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
13519#include <assert.h>
13520/* Override any gcc2 internal prototype to avoid an error. */
13521/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13522 builtin and then its argument prototype would still apply. */
13523char $ac_func();
13524
13525int main() {
8fd0d89b
VZ
13526
13527/* The GNU C library defines this for functions which it implements
13528 to always fail with ENOSYS. Some functions are actually named
13529 something starting with __ and the normal name is an alias. */
13530#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13531choke me
13532#else
698dcdb6 13533$ac_func();
8fd0d89b
VZ
13534#endif
13535
698dcdb6
VZ
13536; return 0; }
13537EOF
ab252f7b 13538if { (eval echo configure:13539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13539 rm -rf conftest*
13540 eval "ac_cv_func_$ac_func=yes"
13541else
13542 echo "configure: failed program was:" >&5
13543 cat conftest.$ac_ext >&5
13544 rm -rf conftest*
13545 eval "ac_cv_func_$ac_func=no"
13546fi
13547rm -f conftest*
13548fi
13549
13550if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13551 echo "$ac_t""yes" 1>&6
13552 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13553 cat >> confdefs.h <<EOF
13554#define $ac_tr_func 1
8fd0d89b
VZ
13555EOF
13556 break
698dcdb6
VZ
13557else
13558 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
13559fi
13560done
13561
698dcdb6 13562
b12915c1
VZ
13563HAVE_SOME_SLEEP_FUNC=0
13564if test "$USE_BEOS" = 1; then
698dcdb6 13565 cat >> confdefs.h <<\EOF
b12915c1
VZ
13566#define HAVE_SLEEP 1
13567EOF
13568
13569 HAVE_SOME_SLEEP_FUNC=1
13570fi
13571
f11bdd03 13572if test "$USE_DARWIN" = 1; then
698dcdb6 13573 cat >> confdefs.h <<\EOF
b4085ce6
GD
13574#define HAVE_USLEEP 1
13575EOF
13576
13577 HAVE_SOME_SLEEP_FUNC=1
13578fi
13579
b12915c1
VZ
13580if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13581 POSIX4_LINK=
698dcdb6 13582 for ac_func in nanosleep
10f2d63a 13583do
698dcdb6 13584echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 13585echo "configure:13586: checking for $ac_func" >&5
698dcdb6
VZ
13586if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13587 echo $ac_n "(cached) $ac_c" 1>&6
13588else
13589 cat > conftest.$ac_ext <<EOF
ab252f7b 13590#line 13591 "configure"
10f2d63a
VZ
13591#include "confdefs.h"
13592/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13593 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13594#include <assert.h>
13595/* Override any gcc2 internal prototype to avoid an error. */
13596/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13597 builtin and then its argument prototype would still apply. */
13598char $ac_func();
13599
13600int main() {
10f2d63a
VZ
13601
13602/* The GNU C library defines this for functions which it implements
13603 to always fail with ENOSYS. Some functions are actually named
13604 something starting with __ and the normal name is an alias. */
13605#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13606choke me
13607#else
698dcdb6 13608$ac_func();
10f2d63a
VZ
13609#endif
13610
698dcdb6
VZ
13611; return 0; }
13612EOF
ab252f7b 13613if { (eval echo configure:13614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13614 rm -rf conftest*
13615 eval "ac_cv_func_$ac_func=yes"
13616else
13617 echo "configure: failed program was:" >&5
13618 cat conftest.$ac_ext >&5
13619 rm -rf conftest*
13620 eval "ac_cv_func_$ac_func=no"
13621fi
13622rm -f conftest*
13623fi
13624
13625if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13626 echo "$ac_t""yes" 1>&6
13627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13628 cat >> confdefs.h <<EOF
13629#define $ac_tr_func 1
13630EOF
13631 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13632#define HAVE_NANOSLEEP 1
13633EOF
13634
13635else
698dcdb6
VZ
13636 echo "$ac_t""no" 1>&6
13637echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
ab252f7b 13638echo "configure:13639: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
13639ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13640if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13641 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13642else
698dcdb6 13643 ac_save_LIBS="$LIBS"
10f2d63a 13644LIBS="-lposix4 $LIBS"
698dcdb6 13645cat > conftest.$ac_ext <<EOF
ab252f7b 13646#line 13647 "configure"
10f2d63a
VZ
13647#include "confdefs.h"
13648/* Override any gcc2 internal prototype to avoid an error. */
13649/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13650 builtin and then its argument prototype would still apply. */
13651char nanosleep();
13652
13653int main() {
13654nanosleep()
13655; return 0; }
13656EOF
ab252f7b 13657if { (eval echo configure:13658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13658 rm -rf conftest*
13659 eval "ac_cv_lib_$ac_lib_var=yes"
13660else
13661 echo "configure: failed program was:" >&5
13662 cat conftest.$ac_ext >&5
13663 rm -rf conftest*
13664 eval "ac_cv_lib_$ac_lib_var=no"
13665fi
13666rm -f conftest*
13667LIBS="$ac_save_LIBS"
13668
13669fi
13670if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13671 echo "$ac_t""yes" 1>&6
13672
13673 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13674#define HAVE_NANOSLEEP 1
13675EOF
13676
b12915c1 13677 POSIX4_LINK="-lposix4"
698dcdb6 13678
10f2d63a 13679else
698dcdb6 13680 echo "$ac_t""no" 1>&6
10f2d63a 13681
698dcdb6 13682 for ac_func in usleep
10f2d63a 13683do
698dcdb6 13684echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 13685echo "configure:13686: checking for $ac_func" >&5
698dcdb6
VZ
13686if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13687 echo $ac_n "(cached) $ac_c" 1>&6
13688else
13689 cat > conftest.$ac_ext <<EOF
ab252f7b 13690#line 13691 "configure"
10f2d63a
VZ
13691#include "confdefs.h"
13692/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13693 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13694#include <assert.h>
13695/* Override any gcc2 internal prototype to avoid an error. */
13696/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13697 builtin and then its argument prototype would still apply. */
13698char $ac_func();
13699
13700int main() {
10f2d63a
VZ
13701
13702/* The GNU C library defines this for functions which it implements
13703 to always fail with ENOSYS. Some functions are actually named
13704 something starting with __ and the normal name is an alias. */
13705#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13706choke me
13707#else
698dcdb6 13708$ac_func();
10f2d63a
VZ
13709#endif
13710
698dcdb6
VZ
13711; return 0; }
13712EOF
ab252f7b 13713if { (eval echo configure:13714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13714 rm -rf conftest*
13715 eval "ac_cv_func_$ac_func=yes"
13716else
13717 echo "configure: failed program was:" >&5
13718 cat conftest.$ac_ext >&5
13719 rm -rf conftest*
13720 eval "ac_cv_func_$ac_func=no"
13721fi
13722rm -f conftest*
13723fi
13724
13725if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13726 echo "$ac_t""yes" 1>&6
13727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13728 cat >> confdefs.h <<EOF
13729#define $ac_tr_func 1
13730EOF
13731 cat >> confdefs.h <<\EOF
b4085ce6
GD
13732#define HAVE_USLEEP 1
13733EOF
13734
10f2d63a 13735else
698dcdb6
VZ
13736 echo "$ac_t""no" 1>&6
13737echo "configure: warning: wxSleep() function will not work" 1>&2
13738
10f2d63a
VZ
13739fi
13740done
13741
698dcdb6
VZ
13742
13743
10f2d63a
VZ
13744fi
13745
698dcdb6
VZ
13746
13747
10f2d63a
VZ
13748fi
13749done
13750
b12915c1 13751fi
10f2d63a
VZ
13752
13753for ac_func in uname gethostname
13754do
698dcdb6 13755echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 13756echo "configure:13757: checking for $ac_func" >&5
698dcdb6
VZ
13757if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13758 echo $ac_n "(cached) $ac_c" 1>&6
13759else
13760 cat > conftest.$ac_ext <<EOF
ab252f7b 13761#line 13762 "configure"
10f2d63a
VZ
13762#include "confdefs.h"
13763/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13764 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13765#include <assert.h>
13766/* Override any gcc2 internal prototype to avoid an error. */
13767/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13768 builtin and then its argument prototype would still apply. */
13769char $ac_func();
13770
13771int main() {
10f2d63a
VZ
13772
13773/* The GNU C library defines this for functions which it implements
13774 to always fail with ENOSYS. Some functions are actually named
13775 something starting with __ and the normal name is an alias. */
13776#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13777choke me
13778#else
698dcdb6 13779$ac_func();
10f2d63a
VZ
13780#endif
13781
698dcdb6
VZ
13782; return 0; }
13783EOF
ab252f7b 13784if { (eval echo configure:13785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13785 rm -rf conftest*
13786 eval "ac_cv_func_$ac_func=yes"
13787else
13788 echo "configure: failed program was:" >&5
13789 cat conftest.$ac_ext >&5
13790 rm -rf conftest*
13791 eval "ac_cv_func_$ac_func=no"
13792fi
13793rm -f conftest*
13794fi
13795
13796if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13797 echo "$ac_t""yes" 1>&6
13798 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13799 cat >> confdefs.h <<EOF
13800#define $ac_tr_func 1
10f2d63a
VZ
13801EOF
13802 break
698dcdb6
VZ
13803else
13804 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13805fi
13806done
13807
698dcdb6
VZ
13808
13809
13810ac_ext=C
13811# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13812ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13813ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13814ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13815cross_compiling=$ac_cv_prog_cxx_cross
13816
6098c7f9 13817
10f2d63a
VZ
13818for ac_func in strtok_r
13819do
698dcdb6 13820echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 13821echo "configure:13822: checking for $ac_func" >&5
698dcdb6
VZ
13822if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13823 echo $ac_n "(cached) $ac_c" 1>&6
13824else
13825 cat > conftest.$ac_ext <<EOF
ab252f7b 13826#line 13827 "configure"
10f2d63a
VZ
13827#include "confdefs.h"
13828/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13829 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13830#include <assert.h>
13831/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
13832#ifdef __cplusplus
13833extern "C"
13834#endif
10f2d63a 13835/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13836 builtin and then its argument prototype would still apply. */
13837char $ac_func();
13838
13839int main() {
10f2d63a
VZ
13840
13841/* The GNU C library defines this for functions which it implements
13842 to always fail with ENOSYS. Some functions are actually named
13843 something starting with __ and the normal name is an alias. */
13844#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13845choke me
13846#else
698dcdb6 13847$ac_func();
10f2d63a
VZ
13848#endif
13849
698dcdb6 13850; return 0; }
10f2d63a 13851EOF
ab252f7b 13852if { (eval echo configure:13853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13853 rm -rf conftest*
13854 eval "ac_cv_func_$ac_func=yes"
13855else
13856 echo "configure: failed program was:" >&5
13857 cat conftest.$ac_ext >&5
13858 rm -rf conftest*
13859 eval "ac_cv_func_$ac_func=no"
13860fi
13861rm -f conftest*
13862fi
10f2d63a 13863
698dcdb6
VZ
13864if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13865 echo "$ac_t""yes" 1>&6
13866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13867 cat >> confdefs.h <<EOF
13868#define $ac_tr_func 1
13869EOF
13870
13871else
13872 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13873fi
13874done
13875
698dcdb6 13876
6098c7f9 13877ac_ext=c
698dcdb6 13878# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13879ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13880ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13881ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13882cross_compiling=$ac_cv_prog_cc_cross
6232543b 13883
1e487827 13884
698dcdb6 13885INET_LINK=
10f2d63a
VZ
13886for ac_func in inet_addr
13887do
698dcdb6 13888echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 13889echo "configure:13890: checking for $ac_func" >&5
698dcdb6
VZ
13890if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13891 echo $ac_n "(cached) $ac_c" 1>&6
13892else
13893 cat > conftest.$ac_ext <<EOF
ab252f7b 13894#line 13895 "configure"
10f2d63a
VZ
13895#include "confdefs.h"
13896/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
13897 which can conflict with char $ac_func(); below. */
13898#include <assert.h>
13899/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 13900/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13901 builtin and then its argument prototype would still apply. */
13902char $ac_func();
13903
13904int main() {
10f2d63a
VZ
13905
13906/* The GNU C library defines this for functions which it implements
13907 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
13908 something starting with __ and the normal name is an alias. */
13909#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13910choke me
13911#else
698dcdb6 13912$ac_func();
1e487827 13913#endif
703e0a69 13914
698dcdb6
VZ
13915; return 0; }
13916EOF
ab252f7b 13917if { (eval echo configure:13918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13918 rm -rf conftest*
13919 eval "ac_cv_func_$ac_func=yes"
13920else
13921 echo "configure: failed program was:" >&5
13922 cat conftest.$ac_ext >&5
13923 rm -rf conftest*
13924 eval "ac_cv_func_$ac_func=no"
13925fi
13926rm -f conftest*
13927fi
13928
13929if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13930 echo "$ac_t""yes" 1>&6
13931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13932 cat >> confdefs.h <<EOF
13933#define $ac_tr_func 1
13934EOF
13935 cat >> confdefs.h <<\EOF
c63c7106
VZ
13936#define HAVE_INET_ADDR 1
13937EOF
13938
10f2d63a 13939else
698dcdb6
VZ
13940 echo "$ac_t""no" 1>&6
13941echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
ab252f7b 13942echo "configure:13943: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
13943ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13944if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13945 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13946else
698dcdb6 13947 ac_save_LIBS="$LIBS"
c63c7106 13948LIBS="-lnsl $LIBS"
698dcdb6 13949cat > conftest.$ac_ext <<EOF
ab252f7b 13950#line 13951 "configure"
c63c7106
VZ
13951#include "confdefs.h"
13952/* Override any gcc2 internal prototype to avoid an error. */
13953/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13954 builtin and then its argument prototype would still apply. */
13955char inet_addr();
13956
13957int main() {
13958inet_addr()
13959; return 0; }
13960EOF
ab252f7b 13961if { (eval echo configure:13962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13962 rm -rf conftest*
13963 eval "ac_cv_lib_$ac_lib_var=yes"
13964else
13965 echo "configure: failed program was:" >&5
13966 cat conftest.$ac_ext >&5
13967 rm -rf conftest*
13968 eval "ac_cv_lib_$ac_lib_var=no"
13969fi
13970rm -f conftest*
13971LIBS="$ac_save_LIBS"
13972
13973fi
13974if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13975 echo "$ac_t""yes" 1>&6
c63c7106
VZ
13976 INET_LINK="nsl"
13977else
698dcdb6
VZ
13978 echo "$ac_t""no" 1>&6
13979echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
ab252f7b 13980echo "configure:13981: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
13981ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13982if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13983 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13984else
698dcdb6 13985 ac_save_LIBS="$LIBS"
c63c7106 13986LIBS="-lresolv $LIBS"
698dcdb6 13987cat > conftest.$ac_ext <<EOF
ab252f7b 13988#line 13989 "configure"
c63c7106
VZ
13989#include "confdefs.h"
13990/* Override any gcc2 internal prototype to avoid an error. */
13991/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13992 builtin and then its argument prototype would still apply. */
13993char inet_addr();
13994
13995int main() {
13996inet_addr()
13997; return 0; }
13998EOF
ab252f7b 13999if { (eval echo configure:14000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14000 rm -rf conftest*
14001 eval "ac_cv_lib_$ac_lib_var=yes"
14002else
14003 echo "configure: failed program was:" >&5
14004 cat conftest.$ac_ext >&5
14005 rm -rf conftest*
14006 eval "ac_cv_lib_$ac_lib_var=no"
14007fi
14008rm -f conftest*
14009LIBS="$ac_save_LIBS"
c63c7106 14010
6232543b 14011fi
698dcdb6
VZ
14012if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14013 echo "$ac_t""yes" 1>&6
14014 INET_LINK="resolv"
14015
14016else
14017 echo "$ac_t""no" 1>&6
14018fi
c63c7106 14019
698dcdb6 14020
1e487827 14021fi
703e0a69 14022
698dcdb6
VZ
14023
14024
10f2d63a
VZ
14025fi
14026done
14027
698dcdb6 14028
10f2d63a
VZ
14029for ac_func in inet_aton
14030do
698dcdb6 14031echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 14032echo "configure:14033: checking for $ac_func" >&5
698dcdb6
VZ
14033if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14034 echo $ac_n "(cached) $ac_c" 1>&6
14035else
14036 cat > conftest.$ac_ext <<EOF
ab252f7b 14037#line 14038 "configure"
10f2d63a
VZ
14038#include "confdefs.h"
14039/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14040 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14041#include <assert.h>
14042/* Override any gcc2 internal prototype to avoid an error. */
14043/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14044 builtin and then its argument prototype would still apply. */
14045char $ac_func();
14046
14047int main() {
10f2d63a
VZ
14048
14049/* The GNU C library defines this for functions which it implements
14050 to always fail with ENOSYS. Some functions are actually named
14051 something starting with __ and the normal name is an alias. */
14052#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14053choke me
14054#else
698dcdb6 14055$ac_func();
10f2d63a
VZ
14056#endif
14057
698dcdb6
VZ
14058; return 0; }
14059EOF
ab252f7b 14060if { (eval echo configure:14061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14061 rm -rf conftest*
14062 eval "ac_cv_func_$ac_func=yes"
14063else
14064 echo "configure: failed program was:" >&5
14065 cat conftest.$ac_ext >&5
14066 rm -rf conftest*
14067 eval "ac_cv_func_$ac_func=no"
14068fi
14069rm -f conftest*
14070fi
14071
14072if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14073 echo "$ac_t""yes" 1>&6
14074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14075 cat >> confdefs.h <<EOF
14076#define $ac_tr_func 1
14077EOF
14078 cat >> confdefs.h <<\EOF
c63c7106
VZ
14079#define HAVE_INET_ATON 1
14080EOF
14081
10f2d63a 14082else
698dcdb6
VZ
14083 echo "$ac_t""no" 1>&6
14084 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
ab252f7b 14085echo "configure:14086: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
14086ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
14087if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14088 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14089else
698dcdb6 14090 ac_save_LIBS="$LIBS"
c63c7106 14091LIBS="-l$INET_LINK $LIBS"
698dcdb6 14092cat > conftest.$ac_ext <<EOF
ab252f7b 14093#line 14094 "configure"
10f2d63a
VZ
14094#include "confdefs.h"
14095/* Override any gcc2 internal prototype to avoid an error. */
14096/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14097 builtin and then its argument prototype would still apply. */
14098char inet_aton();
14099
14100int main() {
14101inet_aton()
14102; return 0; }
14103EOF
ab252f7b 14104if { (eval echo configure:14105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14105 rm -rf conftest*
14106 eval "ac_cv_lib_$ac_lib_var=yes"
14107else
14108 echo "configure: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14110 rm -rf conftest*
14111 eval "ac_cv_lib_$ac_lib_var=no"
14112fi
14113rm -f conftest*
14114LIBS="$ac_save_LIBS"
14115
14116fi
14117if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14118 echo "$ac_t""yes" 1>&6
14119 cat >> confdefs.h <<\EOF
c63c7106 14120#define HAVE_INET_ATON 1
10f2d63a
VZ
14121EOF
14122
698dcdb6
VZ
14123else
14124 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14125fi
14126
698dcdb6 14127
c63c7106
VZ
14128fi
14129done
14130
698dcdb6 14131
c63c7106 14132if test "x$INET_LINK" != "x"; then
698dcdb6 14133 cat >> confdefs.h <<\EOF
c63c7106
VZ
14134#define HAVE_INET_ADDR 1
14135EOF
14136
14137 INET_LINK="-l$INET_LINK"
14138fi
10f2d63a
VZ
14139
14140fi
14141
698dcdb6
VZ
14142
14143cat > confcache <<\EOF
10f2d63a
VZ
14144# This file is a shell script that caches the results of configure
14145# tests run on this system so they can be shared between configure
698dcdb6
VZ
14146# scripts and configure runs. It is not useful on other systems.
14147# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 14148#
698dcdb6
VZ
14149# By default, configure uses ./config.cache as the cache file,
14150# creating it if it does not exist already. You can give configure
14151# the --cache-file=FILE option to use a different cache file; that is
14152# what configure does when it calls configure scripts in
14153# subdirectories, so they share the cache.
14154# Giving --cache-file=/dev/null disables caching, for debugging configure.
14155# config.status only pays attention to the cache file if you give it the
14156# --recheck option to rerun configure.
10f2d63a 14157#
698dcdb6 14158EOF
10f2d63a
VZ
14159# The following way of writing the cache mishandles newlines in values,
14160# but we know of no workaround that is simple, portable, and efficient.
14161# So, don't put newlines in cache variables' values.
14162# Ultrix sh set writes to stderr and can't be redirected directly,
14163# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
14164(set) 2>&1 |
14165 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14166 *ac_space=\ *)
14167 # `set' does not quote correctly, so add quotes (double-quote substitution
14168 # turns \\\\ into \\, and sed turns \\ into \).
14169 sed -n \
14170 -e "s/'/'\\\\''/g" \
14171 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14172 ;;
14173 *)
14174 # `set' quotes correctly as required by POSIX, so do not add quotes.
14175 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14176 ;;
14177 esac >> confcache
14178if cmp -s $cache_file confcache; then
14179 :
14180else
10f2d63a 14181 if test -w $cache_file; then
698dcdb6
VZ
14182 echo "updating cache $cache_file"
14183 cat confcache > $cache_file
10f2d63a
VZ
14184 else
14185 echo "not updating unwritable cache $cache_file"
14186 fi
14187fi
14188rm -f confcache
14189
698dcdb6
VZ
14190
14191
b089607b 14192if test "$TOOLKIT" != "MSW"; then
10f2d63a 14193
698dcdb6 14194
10f2d63a
VZ
14195THREADS_LINK=""
14196THREADS_OBJ=""
14197
14198if test "$wxUSE_THREADS" = "yes" ; then
14199 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 14200 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 14201 wxUSE_THREADS="no"
b12915c1 14202 elif test "$USE_BEOS" = 1; then
698dcdb6 14203 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 14204 wxUSE_THREADS="no"
10f2d63a
VZ
14205 fi
14206fi
14207
14208if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14209
186837b0 14210 if test "$USE_AIX" = 1; then
f6bcfd97
BP
14211 THREADS_LIB=pthreads
14212 else
14213 THREADS_LIB=pthread
14214 fi
14215
698dcdb6 14216 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
ab252f7b 14217echo "configure:14218: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
14218ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14219if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14220 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14221else
698dcdb6 14222 ac_save_LIBS="$LIBS"
f6bcfd97 14223LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 14224cat > conftest.$ac_ext <<EOF
ab252f7b 14225#line 14226 "configure"
10f2d63a
VZ
14226#include "confdefs.h"
14227/* Override any gcc2 internal prototype to avoid an error. */
14228/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14229 builtin and then its argument prototype would still apply. */
14230char pthread_create();
14231
14232int main() {
14233pthread_create()
14234; return 0; }
14235EOF
ab252f7b 14236if { (eval echo configure:14237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14237 rm -rf conftest*
14238 eval "ac_cv_lib_$ac_lib_var=yes"
14239else
14240 echo "configure: failed program was:" >&5
14241 cat conftest.$ac_ext >&5
14242 rm -rf conftest*
14243 eval "ac_cv_lib_$ac_lib_var=no"
14244fi
14245rm -f conftest*
14246LIBS="$ac_save_LIBS"
10f2d63a 14247
698dcdb6
VZ
14248fi
14249if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14250 echo "$ac_t""yes" 1>&6
14251
10f2d63a 14252 THREADS_OBJ="threadpsx.lo"
f6bcfd97 14253 THREADS_LINK=$THREADS_LIB
698dcdb6 14254
10f2d63a 14255else
698dcdb6 14256 echo "$ac_t""no" 1>&6
10f2d63a 14257
698dcdb6 14258 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
ab252f7b 14259echo "configure:14260: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
14260ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14261if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14262 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14263else
698dcdb6 14264 ac_save_LIBS="$LIBS"
10f2d63a 14265LIBS="-lc_r $LIBS"
698dcdb6 14266cat > conftest.$ac_ext <<EOF
ab252f7b 14267#line 14268 "configure"
10f2d63a
VZ
14268#include "confdefs.h"
14269/* Override any gcc2 internal prototype to avoid an error. */
14270/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14271 builtin and then its argument prototype would still apply. */
14272char pthread_create();
14273
14274int main() {
14275pthread_create()
14276; return 0; }
14277EOF
ab252f7b 14278if { (eval echo configure:14279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14279 rm -rf conftest*
14280 eval "ac_cv_lib_$ac_lib_var=yes"
14281else
14282 echo "configure: failed program was:" >&5
14283 cat conftest.$ac_ext >&5
14284 rm -rf conftest*
14285 eval "ac_cv_lib_$ac_lib_var=no"
14286fi
14287rm -f conftest*
14288LIBS="$ac_save_LIBS"
10f2d63a 14289
698dcdb6
VZ
14290fi
14291if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14292 echo "$ac_t""yes" 1>&6
14293
10f2d63a
VZ
14294 THREADS_OBJ="threadpsx.lo"
14295 THREADS_LINK="c_r"
698dcdb6 14296
10f2d63a 14297else
698dcdb6 14298 echo "$ac_t""no" 1>&6
10f2d63a 14299
698dcdb6
VZ
14300 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14301echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
ab252f7b 14302echo "configure:14303: checking for sys/prctl.h" >&5
698dcdb6
VZ
14303if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14304 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14305else
698dcdb6 14306 cat > conftest.$ac_ext <<EOF
ab252f7b 14307#line 14308 "configure"
10f2d63a
VZ
14308#include "confdefs.h"
14309#include <sys/prctl.h>
698dcdb6
VZ
14310EOF
14311ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 14312{ (eval echo configure:14313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14313ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14314if test -z "$ac_err"; then
14315 rm -rf conftest*
14316 eval "ac_cv_header_$ac_safe=yes"
1e487827 14317else
698dcdb6
VZ
14318 echo "$ac_err" >&5
14319 echo "configure: failed program was:" >&5
10f2d63a 14320 cat conftest.$ac_ext >&5
698dcdb6
VZ
14321 rm -rf conftest*
14322 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14323fi
698dcdb6 14324rm -f conftest*
10f2d63a 14325fi
698dcdb6
VZ
14326if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14327 echo "$ac_t""yes" 1>&6
14328
1f8ae82f 14329 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
14330
14331else
14332 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14333fi
14334
698dcdb6 14335
6232543b 14336fi
10f2d63a 14337
698dcdb6 14338
1e487827 14339fi
703e0a69 14340
698dcdb6 14341
10f2d63a
VZ
14342 if test -z "$THREADS_OBJ" ; then
14343 wxUSE_THREADS=no
698dcdb6 14344 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
14345 fi
14346fi
14347
14348if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14349 for ac_func in thr_setconcurrency
70846f0a 14350do
698dcdb6 14351echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 14352echo "configure:14353: checking for $ac_func" >&5
698dcdb6
VZ
14353if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14354 echo $ac_n "(cached) $ac_c" 1>&6
14355else
14356 cat > conftest.$ac_ext <<EOF
ab252f7b 14357#line 14358 "configure"
70846f0a
VZ
14358#include "confdefs.h"
14359/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14360 which can conflict with char $ac_func(); below. */
70846f0a
VZ
14361#include <assert.h>
14362/* Override any gcc2 internal prototype to avoid an error. */
14363/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14364 builtin and then its argument prototype would still apply. */
14365char $ac_func();
14366
14367int main() {
70846f0a
VZ
14368
14369/* The GNU C library defines this for functions which it implements
14370 to always fail with ENOSYS. Some functions are actually named
14371 something starting with __ and the normal name is an alias. */
14372#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14373choke me
14374#else
698dcdb6 14375$ac_func();
70846f0a
VZ
14376#endif
14377
698dcdb6 14378; return 0; }
70846f0a 14379EOF
ab252f7b 14380if { (eval echo configure:14381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14381 rm -rf conftest*
14382 eval "ac_cv_func_$ac_func=yes"
14383else
14384 echo "configure: failed program was:" >&5
14385 cat conftest.$ac_ext >&5
14386 rm -rf conftest*
14387 eval "ac_cv_func_$ac_func=no"
14388fi
14389rm -f conftest*
14390fi
70846f0a 14391
698dcdb6
VZ
14392if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14393 echo "$ac_t""yes" 1>&6
14394 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14395 cat >> confdefs.h <<EOF
14396#define $ac_tr_func 1
14397EOF
14398
14399else
14400 echo "$ac_t""no" 1>&6
70846f0a
VZ
14401fi
14402done
14403
698dcdb6
VZ
14404
14405
14406 for ac_hdr in sched.h
10f2d63a 14407do
698dcdb6
VZ
14408ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14409echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ab252f7b 14410echo "configure:14411: checking for $ac_hdr" >&5
698dcdb6
VZ
14411if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14412 echo $ac_n "(cached) $ac_c" 1>&6
14413else
14414 cat > conftest.$ac_ext <<EOF
ab252f7b 14415#line 14416 "configure"
10f2d63a 14416#include "confdefs.h"
698dcdb6
VZ
14417#include <$ac_hdr>
14418EOF
14419ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 14420{ (eval echo configure:14421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14421ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14422if test -z "$ac_err"; then
14423 rm -rf conftest*
14424 eval "ac_cv_header_$ac_safe=yes"
1e487827 14425else
698dcdb6
VZ
14426 echo "$ac_err" >&5
14427 echo "configure: failed program was:" >&5
10f2d63a 14428 cat conftest.$ac_ext >&5
698dcdb6
VZ
14429 rm -rf conftest*
14430 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14431fi
698dcdb6 14432rm -f conftest*
10f2d63a 14433fi
698dcdb6
VZ
14434if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14435 echo "$ac_t""yes" 1>&6
14436 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14437 cat >> confdefs.h <<EOF
14438#define $ac_tr_hdr 1
10f2d63a 14439EOF
698dcdb6
VZ
14440
14441else
14442 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14443fi
14444done
14445
698dcdb6
VZ
14446
14447 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
ab252f7b 14448echo "configure:14449: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
14449ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14450if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14451 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14452else
698dcdb6 14453 ac_save_LIBS="$LIBS"
10f2d63a 14454LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14455cat > conftest.$ac_ext <<EOF
ab252f7b 14456#line 14457 "configure"
10f2d63a
VZ
14457#include "confdefs.h"
14458/* Override any gcc2 internal prototype to avoid an error. */
14459/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14460 builtin and then its argument prototype would still apply. */
14461char sched_yield();
14462
14463int main() {
14464sched_yield()
14465; return 0; }
14466EOF
ab252f7b 14467if { (eval echo configure:14468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14468 rm -rf conftest*
14469 eval "ac_cv_lib_$ac_lib_var=yes"
14470else
14471 echo "configure: failed program was:" >&5
14472 cat conftest.$ac_ext >&5
14473 rm -rf conftest*
14474 eval "ac_cv_lib_$ac_lib_var=no"
14475fi
14476rm -f conftest*
14477LIBS="$ac_save_LIBS"
14478
14479fi
14480if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14481 echo "$ac_t""yes" 1>&6
14482 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14483#define HAVE_SCHED_YIELD 1
14484EOF
14485
14486else
698dcdb6
VZ
14487 echo "$ac_t""no" 1>&6
14488echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
ab252f7b 14489echo "configure:14490: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
14490ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14491if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14492 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14493else
698dcdb6 14494 ac_save_LIBS="$LIBS"
1e487827 14495LIBS="-lposix4 $LIBS"
698dcdb6 14496cat > conftest.$ac_ext <<EOF
ab252f7b 14497#line 14498 "configure"
10f2d63a
VZ
14498#include "confdefs.h"
14499/* Override any gcc2 internal prototype to avoid an error. */
14500/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14501 builtin and then its argument prototype would still apply. */
14502char sched_yield();
14503
14504int main() {
14505sched_yield()
14506; return 0; }
14507EOF
ab252f7b 14508if { (eval echo configure:14509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14509 rm -rf conftest*
14510 eval "ac_cv_lib_$ac_lib_var=yes"
14511else
14512 echo "configure: failed program was:" >&5
14513 cat conftest.$ac_ext >&5
14514 rm -rf conftest*
14515 eval "ac_cv_lib_$ac_lib_var=no"
14516fi
14517rm -f conftest*
14518LIBS="$ac_save_LIBS"
14519
14520fi
14521if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14522 echo "$ac_t""yes" 1>&6
14523 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14524#define HAVE_SCHED_YIELD 1
14525EOF
14526 POSIX4_LINK="-lposix4"
14527else
698dcdb6
VZ
14528 echo "$ac_t""no" 1>&6
14529echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14530
6232543b 14531fi
10f2d63a 14532
698dcdb6 14533
1e487827 14534fi
703e0a69 14535
698dcdb6 14536
f6bcfd97 14537 HAVE_PRIOR_FUNCS=0
698dcdb6 14538 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
ab252f7b 14539echo "configure:14540: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
14540ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14541if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14542 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14543else
698dcdb6 14544 ac_save_LIBS="$LIBS"
10f2d63a 14545LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14546cat > conftest.$ac_ext <<EOF
ab252f7b 14547#line 14548 "configure"
10f2d63a
VZ
14548#include "confdefs.h"
14549/* Override any gcc2 internal prototype to avoid an error. */
14550/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14551 builtin and then its argument prototype would still apply. */
14552char pthread_attr_getschedpolicy();
14553
14554int main() {
14555pthread_attr_getschedpolicy()
14556; return 0; }
14557EOF
ab252f7b 14558if { (eval echo configure:14559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14559 rm -rf conftest*
14560 eval "ac_cv_lib_$ac_lib_var=yes"
14561else
14562 echo "configure: failed program was:" >&5
14563 cat conftest.$ac_ext >&5
14564 rm -rf conftest*
14565 eval "ac_cv_lib_$ac_lib_var=no"
14566fi
14567rm -f conftest*
14568LIBS="$ac_save_LIBS"
14569
14570fi
14571if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14572 echo "$ac_t""yes" 1>&6
14573 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
ab252f7b 14574echo "configure:14575: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
14575ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14576if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14577 echo $ac_n "(cached) $ac_c" 1>&6
14578else
14579 ac_save_LIBS="$LIBS"
f6bcfd97 14580LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14581cat > conftest.$ac_ext <<EOF
ab252f7b 14582#line 14583 "configure"
f6bcfd97
BP
14583#include "confdefs.h"
14584/* Override any gcc2 internal prototype to avoid an error. */
14585/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14586 builtin and then its argument prototype would still apply. */
14587char pthread_attr_setschedparam();
14588
14589int main() {
14590pthread_attr_setschedparam()
14591; return 0; }
14592EOF
ab252f7b 14593if { (eval echo configure:14594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14594 rm -rf conftest*
14595 eval "ac_cv_lib_$ac_lib_var=yes"
14596else
14597 echo "configure: failed program was:" >&5
14598 cat conftest.$ac_ext >&5
14599 rm -rf conftest*
14600 eval "ac_cv_lib_$ac_lib_var=no"
14601fi
14602rm -f conftest*
14603LIBS="$ac_save_LIBS"
14604
14605fi
14606if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14607 echo "$ac_t""yes" 1>&6
14608 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
ab252f7b 14609echo "configure:14610: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
14610ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14611if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14612 echo $ac_n "(cached) $ac_c" 1>&6
14613else
14614 ac_save_LIBS="$LIBS"
f6bcfd97 14615LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14616cat > conftest.$ac_ext <<EOF
ab252f7b 14617#line 14618 "configure"
f6bcfd97
BP
14618#include "confdefs.h"
14619/* Override any gcc2 internal prototype to avoid an error. */
14620/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14621 builtin and then its argument prototype would still apply. */
14622char sched_get_priority_max();
14623
14624int main() {
14625sched_get_priority_max()
14626; return 0; }
14627EOF
ab252f7b 14628if { (eval echo configure:14629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14629 rm -rf conftest*
14630 eval "ac_cv_lib_$ac_lib_var=yes"
14631else
14632 echo "configure: failed program was:" >&5
14633 cat conftest.$ac_ext >&5
14634 rm -rf conftest*
14635 eval "ac_cv_lib_$ac_lib_var=no"
14636fi
14637rm -f conftest*
14638LIBS="$ac_save_LIBS"
14639
14640fi
14641if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14642 echo "$ac_t""yes" 1>&6
f6bcfd97 14643 HAVE_PRIOR_FUNCS=1
10f2d63a 14644else
698dcdb6
VZ
14645 echo "$ac_t""no" 1>&6
14646echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
ab252f7b 14647echo "configure:14648: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
14648ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14649if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14650 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 14651else
698dcdb6 14652 ac_save_LIBS="$LIBS"
1e487827 14653LIBS="-lposix4 $LIBS"
698dcdb6 14654cat > conftest.$ac_ext <<EOF
ab252f7b 14655#line 14656 "configure"
10f2d63a 14656#include "confdefs.h"
6232543b 14657/* Override any gcc2 internal prototype to avoid an error. */
6232543b 14658/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14659 builtin and then its argument prototype would still apply. */
14660char sched_get_priority_max();
14661
14662int main() {
14663sched_get_priority_max()
14664; return 0; }
14665EOF
ab252f7b 14666if { (eval echo configure:14667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14667 rm -rf conftest*
14668 eval "ac_cv_lib_$ac_lib_var=yes"
14669else
14670 echo "configure: failed program was:" >&5
14671 cat conftest.$ac_ext >&5
14672 rm -rf conftest*
14673 eval "ac_cv_lib_$ac_lib_var=no"
14674fi
14675rm -f conftest*
14676LIBS="$ac_save_LIBS"
10f2d63a 14677
698dcdb6
VZ
14678fi
14679if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14680 echo "$ac_t""yes" 1>&6
14681
f6bcfd97
BP
14682 HAVE_PRIOR_FUNCS=1
14683 POSIX4_LINK="-lposix4"
698dcdb6
VZ
14684
14685else
14686 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14687fi
14688
698dcdb6 14689
10f2d63a
VZ
14690fi
14691
698dcdb6
VZ
14692
14693else
14694 echo "$ac_t""no" 1>&6
6232543b 14695fi
10f2d63a 14696
698dcdb6
VZ
14697
14698else
14699 echo "$ac_t""no" 1>&6
1e487827 14700fi
703e0a69 14701
698dcdb6 14702
f6bcfd97 14703 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 14704 cat >> confdefs.h <<\EOF
f6bcfd97
BP
14705#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14706EOF
14707
14708 else
698dcdb6 14709 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
14710 fi
14711
698dcdb6 14712 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
ab252f7b 14713echo "configure:14714: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
14714ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14715if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14716 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14717else
698dcdb6 14718 ac_save_LIBS="$LIBS"
10f2d63a 14719LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14720cat > conftest.$ac_ext <<EOF
ab252f7b 14721#line 14722 "configure"
10f2d63a
VZ
14722#include "confdefs.h"
14723/* Override any gcc2 internal prototype to avoid an error. */
14724/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14725 builtin and then its argument prototype would still apply. */
14726char pthread_cancel();
14727
14728int main() {
14729pthread_cancel()
14730; return 0; }
14731EOF
ab252f7b 14732if { (eval echo configure:14733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14733 rm -rf conftest*
14734 eval "ac_cv_lib_$ac_lib_var=yes"
14735else
14736 echo "configure: failed program was:" >&5
14737 cat conftest.$ac_ext >&5
14738 rm -rf conftest*
14739 eval "ac_cv_lib_$ac_lib_var=no"
14740fi
14741rm -f conftest*
14742LIBS="$ac_save_LIBS"
14743
14744fi
14745if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14746 echo "$ac_t""yes" 1>&6
14747 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14748#define HAVE_PTHREAD_CANCEL 1
14749EOF
14750
14751else
698dcdb6
VZ
14752 echo "$ac_t""no" 1>&6
14753echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
14754fi
14755
1e487827 14756
698dcdb6 14757 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
ab252f7b 14758echo "configure:14759: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
14759if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14760 echo $ac_n "(cached) $ac_c" 1>&6
14761else
14762
14763 cat > conftest.$ac_ext <<EOF
ab252f7b 14764#line 14765 "configure"
10f2d63a
VZ
14765#include "confdefs.h"
14766#include <pthread.h>
698dcdb6 14767int main() {
10f2d63a
VZ
14768
14769 pthread_cleanup_push(NULL, NULL);
14770 pthread_cleanup_pop(0);
698dcdb6
VZ
14771
14772; return 0; }
14773EOF
ab252f7b 14774if { (eval echo configure:14775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14775 rm -rf conftest*
14776
10f2d63a 14777 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 14778
10f2d63a 14779else
698dcdb6
VZ
14780 echo "configure: failed program was:" >&5
14781 cat conftest.$ac_ext >&5
14782 rm -rf conftest*
14783
10f2d63a 14784 wx_cv_func_pthread_cleanup_push=no
698dcdb6 14785
6232543b 14786fi
698dcdb6
VZ
14787rm -f conftest*
14788
1e487827 14789fi
698dcdb6
VZ
14790
14791echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 14792
d9b9876f 14793 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 14794 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14795#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14796EOF
14797
14798 fi
14799
698dcdb6 14800
ab252f7b
VZ
14801 if test "x$wx_lib_glibc21" = "xyes"; then
14802 CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500"
14803 fi
14804
698dcdb6 14805 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
ab252f7b 14806echo "configure:14807: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
14807if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14808 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 14809else
698dcdb6
VZ
14810
14811 cat > conftest.$ac_ext <<EOF
ab252f7b 14812#line 14813 "configure"
d9b9876f
VZ
14813#include "confdefs.h"
14814#include <pthread.h>
698dcdb6 14815int main() {
d9b9876f
VZ
14816
14817 pthread_mutexattr_t attr;
14818 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
14819
14820; return 0; }
14821EOF
ab252f7b 14822if { (eval echo configure:14823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14823 rm -rf conftest*
14824
d9b9876f 14825 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 14826
d9b9876f 14827else
698dcdb6
VZ
14828 echo "configure: failed program was:" >&5
14829 cat conftest.$ac_ext >&5
14830 rm -rf conftest*
14831
d9b9876f 14832 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
14833
14834
6232543b 14835fi
698dcdb6
VZ
14836rm -f conftest*
14837
1e487827 14838fi
698dcdb6
VZ
14839
14840echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
14841
14842 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 14843 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14844#define HAVE_PTHREAD_MUTEXATTR_T 1
14845EOF
14846
14847 else
698dcdb6 14848 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
ab252f7b 14849echo "configure:14850: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
14850if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14851 echo $ac_n "(cached) $ac_c" 1>&6
14852else
14853
14854 cat > conftest.$ac_ext <<EOF
ab252f7b 14855#line 14856 "configure"
d9b9876f
VZ
14856#include "confdefs.h"
14857#include <pthread.h>
698dcdb6 14858int main() {
d9b9876f
VZ
14859
14860 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
14861
14862; return 0; }
14863EOF
ab252f7b 14864if { (eval echo configure:14865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14865 rm -rf conftest*
14866
d9b9876f 14867 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 14868
d9b9876f 14869else
698dcdb6
VZ
14870 echo "configure: failed program was:" >&5
14871 cat conftest.$ac_ext >&5
14872 rm -rf conftest*
14873
d9b9876f 14874 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
14875
14876
6232543b 14877fi
698dcdb6
VZ
14878rm -f conftest*
14879
1e487827 14880fi
698dcdb6
VZ
14881
14882echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 14883 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 14884 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14885#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14886EOF
14887
14888 else
698dcdb6 14889 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
14890 fi
14891 fi
14892
10f2d63a 14893 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
14894
14895 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14896 CFLAGS="${CFLAGS} -mt"
14897 CXXFLAGS="${CXXFLAGS} -mt"
14898 LDFLAGS="${LDFLAGS} -mt"
14899 fi
10f2d63a
VZ
14900fi
14901
14902fi
14903
14904if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 14905 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14906#define wxUSE_THREADS 1
14907EOF
14908
698dcdb6 14909
7b6058cd 14910 if test "$USE_DARWIN" != 1; then
10f2d63a 14911 CFLAGS="${CFLAGS} -D_REENTRANT"
2c6025bc
GD
14912 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14913 fi
10f2d63a
VZ
14914
14915 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14916else
14917 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 14918 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
ab252f7b 14919echo "configure:14920: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
14920 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14921 CFLAGS="${CFLAGS} -D_REENTRANT"
14922 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
698dcdb6 14923 echo "$ac_t""yes" 1>&6
ab9b9eab 14924 else
698dcdb6 14925 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14926 fi
14927 fi
14928fi
14929
6f72b082 14930if test "$WXGTK20" = 1 ; then
698dcdb6 14931 cat >> confdefs.h <<EOF
6f72b082 14932#define __WXGTK20__ $WXGTK20
13111b2a
VZ
14933EOF
14934
14935 WXGTK12=1
14936fi
14937
10f2d63a 14938if test "$WXGTK12" = 1 ; then
698dcdb6 14939 cat >> confdefs.h <<EOF
10f2d63a
VZ
14940#define __WXGTK12__ $WXGTK12
14941EOF
14942
14943fi
14944
f6bcfd97 14945if test "$WXGTK127" = 1 ; then
698dcdb6 14946 cat >> confdefs.h <<EOF
f6bcfd97
BP
14947#define __WXGTK127__ $WXGTK127
14948EOF
14949
14950fi
14951
10f2d63a
VZ
14952if test "$WXWINE" = 1 ; then
14953 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14954fi
14955
b4085ce6 14956if test "$wxUSE_MAC" = 1 ; then
f11bdd03
GD
14957 TOOLKIT_DEF="${TOOLKIT_DEF} -DTARGET_CARBON"
14958 CFLAGS="${CFLAGS} -fpascal-strings"
14959 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fpascal-strings"
2f51a9ec
GD
14960 # Extract the first word of "Rez", so it can be a program name with args.
14961set dummy Rez; ac_word=$2
698dcdb6 14962echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab252f7b 14963echo "configure:14964: checking for $ac_word" >&5
698dcdb6
VZ
14964if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14965 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14966else
14967 if test -n "$REZ"; then
14968 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14969else
698dcdb6
VZ
14970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14971 ac_dummy="$PATH"
14972 for ac_dir in $ac_dummy; do
14973 test -z "$ac_dir" && ac_dir=.
14974 if test -f $ac_dir/$ac_word; then
14975 ac_cv_prog_REZ="Rez"
14976 break
14977 fi
14978 done
14979 IFS="$ac_save_ifs"
2f51a9ec
GD
14980 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14981fi
14982fi
698dcdb6 14983REZ="$ac_cv_prog_REZ"
2f51a9ec 14984if test -n "$REZ"; then
698dcdb6 14985 echo "$ac_t""$REZ" 1>&6
2f51a9ec 14986else
698dcdb6 14987 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14988fi
14989
14990 # Extract the first word of "Derez", so it can be a program name with args.
14991set dummy Derez; ac_word=$2
698dcdb6 14992echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab252f7b 14993echo "configure:14994: checking for $ac_word" >&5
698dcdb6
VZ
14994if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14995 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14996else
14997 if test -n "$DEREZ"; then
14998 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14999else
698dcdb6
VZ
15000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15001 ac_dummy="$PATH"
15002 for ac_dir in $ac_dummy; do
15003 test -z "$ac_dir" && ac_dir=.
15004 if test -f $ac_dir/$ac_word; then
15005 ac_cv_prog_DEREZ="Derez"
15006 break
15007 fi
15008 done
15009 IFS="$ac_save_ifs"
2f51a9ec
GD
15010 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
15011fi
15012fi
698dcdb6 15013DEREZ="$ac_cv_prog_DEREZ"
2f51a9ec 15014if test -n "$DEREZ"; then
698dcdb6 15015 echo "$ac_t""$DEREZ" 1>&6
2f51a9ec 15016else
698dcdb6 15017 echo "$ac_t""no" 1>&6
2f51a9ec
GD
15018fi
15019
15020 RESCOMP=${REZ}
15021 REZFLAGS="-d __UNIX__ -useDF"
15022 DEREZFLAGS="Carbon.r -useDF"
15023 RESFLAGS="Carbon.r -t APPL"
15024 LIBWXMACRES="\$(LIBWX_MACRES)"
15025 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
b4085ce6
GD
15026fi
15027
10f2d63a
VZ
15028if test "$wxUSE_CYGWIN" = 1 ; then
15029 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
15030fi
15031
15032WXDEBUG=
15033
15034if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15035 WXDEBUG="-g"
15036 wxUSE_OPTIMISE=no
15037fi
15038
15039if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15040 wxUSE_DEBUG_INFO=yes
15041 WXDEBUG="-ggdb"
15042fi
15043
15044if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 15045 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15046#define WXDEBUG 1
15047EOF
15048
15049 WXDEBUG_DEFINE="-D__WXDEBUG__"
15050else
15051 if test "$wxUSE_GTK" = 1 ; then
15052 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15053 fi
15054fi
15055
15056if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 15057 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15058#define wxUSE_MEMORY_TRACING 1
15059EOF
15060
698dcdb6 15061 cat >> confdefs.h <<\EOF
10f2d63a 15062#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
15063EOF
15064
698dcdb6 15065 cat >> confdefs.h <<\EOF
47c13eb7 15066#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
15067EOF
15068
15069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15070fi
15071
15072if test "$wxUSE_DMALLOC" = "yes" ; then
15073 DMALLOC_LINK="-ldmalloc"
15074fi
15075
15076PROFILE=
15077if test "$wxUSE_PROFILE" = "yes" ; then
15078 PROFILE="-pg"
15079fi
15080
15081DEP_INFO_FLAGS=
caa2c79b 15082CODE_GEN_FLAGS=
0f3f1cbc 15083CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
15084if test "$GCC" = yes ; then
15085 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 15086 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
15087 fi
15088 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 15089 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
15090 fi
15091 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 15092 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
15093 fi
15094 if test "$wxUSE_NO_DEPS" = "no" ; then
15095 DEP_INFO_FLAGS="-MMD"
15096 fi
15097fi
15098
698dcdb6 15099
10f2d63a
VZ
15100CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15101CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15102if test "$wxUSE_OPTIMISE" = "no" ; then
15103 OPTIMISE=
15104else
15105 if test "$GCC" = yes ; then
15106 OPTIMISE="-O2"
15107 case "${host}" in
15108 i586-*-*|i686-*-* )
15109 OPTIMISE="${OPTIMISE} "
15110 ;;
15111 esac
15112 else
15113 OPTIMISE="-O"
15114 fi
15115fi
15116
54276ccf
VZ
15117if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
15118 cat >> confdefs.h <<\EOF
15119#define WXWIN_COMPATIBILITY_2 1
15120EOF
15121
15122
15123 WXWIN_COMPATIBILITY_2_2="yes"
15124fi
15125
15126if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
15127 cat >> confdefs.h <<\EOF
15128#define WXWIN_COMPATIBILITY_2_2 1
15129EOF
15130
15131fi
15132
698dcdb6 15133
10f2d63a 15134ZLIB_INCLUDE=
422107f9 15135if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 15136 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15137#define wxUSE_ZLIB 1
15138EOF
15139
422107f9
VZ
15140 if test "$wxUSE_ZLIB" = "yes" ; then
15141 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15142 else
15143 ZLIB_LINK=
698dcdb6
VZ
15144 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15145echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
ab252f7b 15146echo "configure:15147: checking for zlib.h" >&5
698dcdb6
VZ
15147if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15148 echo $ac_n "(cached) $ac_c" 1>&6
15149else
15150 cat > conftest.$ac_ext <<EOF
ab252f7b 15151#line 15152 "configure"
422107f9
VZ
15152#include "confdefs.h"
15153#include <zlib.h>
698dcdb6
VZ
15154EOF
15155ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 15156{ (eval echo configure:15157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15157ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15158if test -z "$ac_err"; then
15159 rm -rf conftest*
15160 eval "ac_cv_header_$ac_safe=yes"
422107f9 15161else
698dcdb6
VZ
15162 echo "$ac_err" >&5
15163 echo "configure: failed program was:" >&5
422107f9 15164 cat conftest.$ac_ext >&5
698dcdb6
VZ
15165 rm -rf conftest*
15166 eval "ac_cv_header_$ac_safe=no"
422107f9 15167fi
698dcdb6 15168rm -f conftest*
422107f9 15169fi
698dcdb6
VZ
15170if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15171 echo "$ac_t""yes" 1>&6
15172 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
ab252f7b 15173echo "configure:15174: checking for deflate in -lz" >&5
698dcdb6
VZ
15174ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15175if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15176 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15177else
698dcdb6 15178 ac_save_LIBS="$LIBS"
422107f9 15179LIBS="-lz $LIBS"
698dcdb6 15180cat > conftest.$ac_ext <<EOF
ab252f7b 15181#line 15182 "configure"
422107f9
VZ
15182#include "confdefs.h"
15183/* Override any gcc2 internal prototype to avoid an error. */
15184/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15185 builtin and then its argument prototype would still apply. */
15186char deflate();
15187
15188int main() {
15189deflate()
15190; return 0; }
15191EOF
ab252f7b 15192if { (eval echo configure:15193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15193 rm -rf conftest*
15194 eval "ac_cv_lib_$ac_lib_var=yes"
15195else
15196 echo "configure: failed program was:" >&5
15197 cat conftest.$ac_ext >&5
15198 rm -rf conftest*
15199 eval "ac_cv_lib_$ac_lib_var=no"
15200fi
15201rm -f conftest*
15202LIBS="$ac_save_LIBS"
15203
15204fi
15205if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15206 echo "$ac_t""yes" 1>&6
422107f9 15207 ZLIB_LINK="-lz"
698dcdb6
VZ
15208else
15209 echo "$ac_t""no" 1>&6
422107f9
VZ
15210fi
15211
698dcdb6
VZ
15212else
15213 echo "$ac_t""no" 1>&6
422107f9
VZ
15214fi
15215
15216 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 15217 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
15218 fi
15219 fi
10f2d63a
VZ
15220fi
15221
15222PNG_INCLUDE=
422107f9 15223if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 15224 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15225#define wxUSE_LIBPNG 1
15226EOF
15227
41fd4136 15228 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 15229 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
15230 wxUSE_LIBPNG=yes
15231 fi
15232
15233 if test "$wxUSE_LIBPNG" = "yes" ; then
15234 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15235 else
15236 PNG_LINK=
698dcdb6
VZ
15237 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15238echo $ac_n "checking for png.h""... $ac_c" 1>&6
ab252f7b 15239echo "configure:15240: checking for png.h" >&5
698dcdb6
VZ
15240if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15241 echo $ac_n "(cached) $ac_c" 1>&6
15242else
15243 cat > conftest.$ac_ext <<EOF
ab252f7b 15244#line 15245 "configure"
422107f9
VZ
15245#include "confdefs.h"
15246#include <png.h>
698dcdb6
VZ
15247EOF
15248ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 15249{ (eval echo configure:15250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15250ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15251if test -z "$ac_err"; then
15252 rm -rf conftest*
15253 eval "ac_cv_header_$ac_safe=yes"
422107f9 15254else
698dcdb6
VZ
15255 echo "$ac_err" >&5
15256 echo "configure: failed program was:" >&5
422107f9 15257 cat conftest.$ac_ext >&5
698dcdb6
VZ
15258 rm -rf conftest*
15259 eval "ac_cv_header_$ac_safe=no"
422107f9 15260fi
698dcdb6 15261rm -f conftest*
422107f9 15262fi
698dcdb6
VZ
15263if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15264 echo "$ac_t""yes" 1>&6
15265 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
ab252f7b 15266echo "configure:15267: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
15267ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15268if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15269 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15270else
698dcdb6 15271 ac_save_LIBS="$LIBS"
422107f9 15272LIBS="-lpng -lz -lm $LIBS"
698dcdb6 15273cat > conftest.$ac_ext <<EOF
ab252f7b 15274#line 15275 "configure"
422107f9
VZ
15275#include "confdefs.h"
15276/* Override any gcc2 internal prototype to avoid an error. */
15277/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15278 builtin and then its argument prototype would still apply. */
15279char png_check_sig();
15280
15281int main() {
15282png_check_sig()
15283; return 0; }
15284EOF
ab252f7b 15285if { (eval echo configure:15286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15286 rm -rf conftest*
15287 eval "ac_cv_lib_$ac_lib_var=yes"
15288else
15289 echo "configure: failed program was:" >&5
15290 cat conftest.$ac_ext >&5
15291 rm -rf conftest*
15292 eval "ac_cv_lib_$ac_lib_var=no"
15293fi
15294rm -f conftest*
15295LIBS="$ac_save_LIBS"
15296
15297fi
15298if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15299 echo "$ac_t""yes" 1>&6
422107f9 15300 PNG_LINK="-lpng"
698dcdb6
VZ
15301else
15302 echo "$ac_t""no" 1>&6
422107f9
VZ
15303fi
15304
698dcdb6
VZ
15305
15306else
15307 echo "$ac_t""no" 1>&6
422107f9
VZ
15308fi
15309
15310 if test "x$PNG_LINK" = "x" ; then
698dcdb6 15311 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
15312 fi
15313 fi
15314
10f2d63a
VZ
15315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15316fi
15317
15318JPEG_INCLUDE=
422107f9 15319if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 15320 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15321#define wxUSE_LIBJPEG 1
15322EOF
15323
422107f9
VZ
15324 if test "$wxUSE_LIBJPEG" = "yes" ; then
15325 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15326 else
15327 JPEG_LINK=
463abc64 15328 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
ab252f7b 15329echo "configure:15330: checking for jpeglib.h" >&5
463abc64 15330 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
698dcdb6
VZ
15331 echo $ac_n "(cached) $ac_c" 1>&6
15332else
15333 cat > conftest.$ac_ext <<EOF
ab252f7b 15334#line 15335 "configure"
422107f9 15335#include "confdefs.h"
463abc64
VZ
15336
15337 #undef HAVE_STDLIB_H
15338 #include <stdio.h>
15339 #include <jpeglib.h>
15340
15341int main() {
15342
15343
15344; return 0; }
698dcdb6 15345EOF
ab252f7b 15346if { (eval echo configure:15347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15347 rm -rf conftest*
463abc64 15348 ac_cv_header_jpeglib_h=yes
6232543b 15349else
698dcdb6 15350 echo "configure: failed program was:" >&5
422107f9 15351 cat conftest.$ac_ext >&5
698dcdb6 15352 rm -rf conftest*
463abc64
VZ
15353 ac_cv_header_jpeglib_h=no
15354
422107f9 15355fi
698dcdb6 15356rm -f conftest*
463abc64 15357
422107f9 15358fi
463abc64
VZ
15359
15360 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15361
15362 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15363 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
ab252f7b 15364echo "configure:15365: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
15365ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15366if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15367 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15368else
698dcdb6 15369 ac_save_LIBS="$LIBS"
422107f9 15370LIBS="-ljpeg $LIBS"
698dcdb6 15371cat > conftest.$ac_ext <<EOF
ab252f7b 15372#line 15373 "configure"
422107f9
VZ
15373#include "confdefs.h"
15374/* Override any gcc2 internal prototype to avoid an error. */
15375/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15376 builtin and then its argument prototype would still apply. */
15377char jpeg_read_header();
15378
15379int main() {
15380jpeg_read_header()
15381; return 0; }
15382EOF
ab252f7b 15383if { (eval echo configure:15384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15384 rm -rf conftest*
15385 eval "ac_cv_lib_$ac_lib_var=yes"
15386else
15387 echo "configure: failed program was:" >&5
15388 cat conftest.$ac_ext >&5
15389 rm -rf conftest*
15390 eval "ac_cv_lib_$ac_lib_var=no"
15391fi
15392rm -f conftest*
15393LIBS="$ac_save_LIBS"
15394
15395fi
15396if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15397 echo "$ac_t""yes" 1>&6
422107f9 15398 JPEG_LINK="-ljpeg"
698dcdb6
VZ
15399else
15400 echo "$ac_t""no" 1>&6
422107f9
VZ
15401fi
15402
463abc64 15403 fi
422107f9
VZ
15404
15405 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 15406 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
15407 fi
15408 fi
10f2d63a
VZ
15409fi
15410
c7a2bf27 15411TIFF_INCLUDE=
0dcf9893 15412if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 15413 cat >> confdefs.h <<\EOF
c7a2bf27
RR
15414#define wxUSE_LIBTIFF 1
15415EOF
15416
665bbe97 15417 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
15418 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15419 else
15420 TIFF_LINK=
698dcdb6
VZ
15421 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15422echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
ab252f7b 15423echo "configure:15424: checking for tiffio.h" >&5
698dcdb6
VZ
15424if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15425 echo $ac_n "(cached) $ac_c" 1>&6
15426else
15427 cat > conftest.$ac_ext <<EOF
ab252f7b 15428#line 15429 "configure"
0dcf9893
VZ
15429#include "confdefs.h"
15430#include <tiffio.h>
698dcdb6
VZ
15431EOF
15432ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 15433{ (eval echo configure:15434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15434ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15435if test -z "$ac_err"; then
15436 rm -rf conftest*
15437 eval "ac_cv_header_$ac_safe=yes"
1e487827 15438else
698dcdb6
VZ
15439 echo "$ac_err" >&5
15440 echo "configure: failed program was:" >&5
0dcf9893 15441 cat conftest.$ac_ext >&5
698dcdb6
VZ
15442 rm -rf conftest*
15443 eval "ac_cv_header_$ac_safe=no"
0dcf9893 15444fi
698dcdb6 15445rm -f conftest*
0dcf9893 15446fi
698dcdb6
VZ
15447if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15448 echo "$ac_t""yes" 1>&6
15449 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
ab252f7b 15450echo "configure:15451: checking for TIFFError in -ltiff" >&5
698dcdb6
VZ
15451ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15452if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15453 echo $ac_n "(cached) $ac_c" 1>&6
0dcf9893 15454else
698dcdb6 15455 ac_save_LIBS="$LIBS"
0dcf9893 15456LIBS="-ltiff -lm $LIBS"
698dcdb6 15457cat > conftest.$ac_ext <<EOF
ab252f7b 15458#line 15459 "configure"
0dcf9893
VZ
15459#include "confdefs.h"
15460/* Override any gcc2 internal prototype to avoid an error. */
15461/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15462 builtin and then its argument prototype would still apply. */
15463char TIFFError();
15464
15465int main() {
15466TIFFError()
15467; return 0; }
15468EOF
ab252f7b 15469if { (eval echo configure:15470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15470 rm -rf conftest*
15471 eval "ac_cv_lib_$ac_lib_var=yes"
15472else
15473 echo "configure: failed program was:" >&5
15474 cat conftest.$ac_ext >&5
15475 rm -rf conftest*
15476 eval "ac_cv_lib_$ac_lib_var=no"
15477fi
15478rm -f conftest*
15479LIBS="$ac_save_LIBS"
15480
15481fi
15482if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15483 echo "$ac_t""yes" 1>&6
0dcf9893 15484 TIFF_LINK="-ltiff"
698dcdb6
VZ
15485else
15486 echo "$ac_t""no" 1>&6
0dcf9893
VZ
15487fi
15488
698dcdb6
VZ
15489else
15490 echo "$ac_t""no" 1>&6
0dcf9893
VZ
15491fi
15492
15493 if test "x$TIFF_LINK" = "x" ; then
698dcdb6 15494 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
0dcf9893
VZ
15495 fi
15496 fi
c7a2bf27
RR
15497fi
15498
3fed1840
RR
15499FREETYPE_INCLUDE=
15500if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
698dcdb6 15501 cat >> confdefs.h <<\EOF
3fed1840
RR
15502#define wxUSE_FREETYPE 1
15503EOF
15504
15505 if test "$wxUSE_FREETYPE" = "yes" ; then
15506 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15507 else
15508 FREETYPE_LINK=
698dcdb6
VZ
15509 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15510echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
ab252f7b 15511echo "configure:15512: checking for freetype.h" >&5
698dcdb6
VZ
15512if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15513 echo $ac_n "(cached) $ac_c" 1>&6
15514else
15515 cat > conftest.$ac_ext <<EOF
ab252f7b 15516#line 15517 "configure"
3fed1840
RR
15517#include "confdefs.h"
15518#include <freetype.h>
698dcdb6
VZ
15519EOF
15520ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 15521{ (eval echo configure:15522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15522ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15523if test -z "$ac_err"; then
15524 rm -rf conftest*
15525 eval "ac_cv_header_$ac_safe=yes"
3fed1840 15526else
698dcdb6
VZ
15527 echo "$ac_err" >&5
15528 echo "configure: failed program was:" >&5
3fed1840 15529 cat conftest.$ac_ext >&5
698dcdb6
VZ
15530 rm -rf conftest*
15531 eval "ac_cv_header_$ac_safe=no"
3fed1840 15532fi
698dcdb6 15533rm -f conftest*
3fed1840 15534fi
698dcdb6
VZ
15535if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15536 echo "$ac_t""yes" 1>&6
15537 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
ab252f7b 15538echo "configure:15539: checking for FT_Render_Glyph in -lfreetype" >&5
698dcdb6
VZ
15539ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15540if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15541 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 15542else
698dcdb6 15543 ac_save_LIBS="$LIBS"
3fed1840 15544LIBS="-lfreetype -lm $LIBS"
698dcdb6 15545cat > conftest.$ac_ext <<EOF
ab252f7b 15546#line 15547 "configure"
3fed1840
RR
15547#include "confdefs.h"
15548/* Override any gcc2 internal prototype to avoid an error. */
15549/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15550 builtin and then its argument prototype would still apply. */
15551char FT_Render_Glyph();
15552
15553int main() {
15554FT_Render_Glyph()
15555; return 0; }
15556EOF
ab252f7b 15557if { (eval echo configure:15558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15558 rm -rf conftest*
15559 eval "ac_cv_lib_$ac_lib_var=yes"
15560else
15561 echo "configure: failed program was:" >&5
15562 cat conftest.$ac_ext >&5
15563 rm -rf conftest*
15564 eval "ac_cv_lib_$ac_lib_var=no"
15565fi
15566rm -f conftest*
15567LIBS="$ac_save_LIBS"
15568
15569fi
15570if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15571 echo "$ac_t""yes" 1>&6
3fed1840 15572 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
15573else
15574 echo "$ac_t""no" 1>&6
3fed1840
RR
15575fi
15576
698dcdb6
VZ
15577
15578else
15579 echo "$ac_t""no" 1>&6
3fed1840
RR
15580fi
15581
15582 if test "x$FREETYPE_LINK" = "x" ; then
698dcdb6 15583 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
3fed1840
RR
15584 fi
15585 fi
15586fi
15587
10f2d63a 15588if test "$wxUSE_OPENGL" = "yes"; then
7b6058cd
GD
15589 if test "$wxUSE_MAC" = 1; then
15590 cat >> confdefs.h <<\EOF
15591#define wxUSE_OPENGL 1
15592EOF
15593
15594 cat >> confdefs.h <<\EOF
15595#define wxUSE_GLCANVAS 1
15596EOF
15597
15598 OPENGL_LINK="-framework OpenGL -framework AGL"
24176f2c 15599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
7b6058cd
GD
15600 else
15601 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
698dcdb6 15602echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
ab252f7b 15603echo "configure:15604: checking for GL/gl.h" >&5
698dcdb6
VZ
15604if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15605 echo $ac_n "(cached) $ac_c" 1>&6
15606else
15607 cat > conftest.$ac_ext <<EOF
ab252f7b 15608#line 15609 "configure"
10f2d63a
VZ
15609#include "confdefs.h"
15610#include <GL/gl.h>
698dcdb6
VZ
15611EOF
15612ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 15613{ (eval echo configure:15614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15614ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15615if test -z "$ac_err"; then
15616 rm -rf conftest*
15617 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15618else
698dcdb6
VZ
15619 echo "$ac_err" >&5
15620 echo "configure: failed program was:" >&5
10f2d63a 15621 cat conftest.$ac_ext >&5
698dcdb6
VZ
15622 rm -rf conftest*
15623 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15624fi
698dcdb6 15625rm -f conftest*
10f2d63a 15626fi
698dcdb6
VZ
15627if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15628 echo "$ac_t""yes" 1>&6
15629
7b6058cd 15630 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15631#define wxUSE_OPENGL 1
15632EOF
15633
7b6058cd 15634 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15635#define wxUSE_GLCANVAS 1
15636EOF
15637
24176f2c 15638 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
7b6058cd 15639 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
ab252f7b 15640echo "configure:15641: checking for glFlush in -lGL" >&5
698dcdb6
VZ
15641ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15642if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15643 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15644else
698dcdb6 15645 ac_save_LIBS="$LIBS"
bdad4e7e 15646LIBS="-lGL $LIBS"
698dcdb6 15647cat > conftest.$ac_ext <<EOF
ab252f7b 15648#line 15649 "configure"
10f2d63a
VZ
15649#include "confdefs.h"
15650/* Override any gcc2 internal prototype to avoid an error. */
15651/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15652 builtin and then its argument prototype would still apply. */
15653char glFlush();
6232543b 15654
698dcdb6
VZ
15655int main() {
15656glFlush()
15657; return 0; }
15658EOF
ab252f7b 15659if { (eval echo configure:15660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15660 rm -rf conftest*
15661 eval "ac_cv_lib_$ac_lib_var=yes"
15662else
15663 echo "configure: failed program was:" >&5
15664 cat conftest.$ac_ext >&5
15665 rm -rf conftest*
15666 eval "ac_cv_lib_$ac_lib_var=no"
15667fi
15668rm -f conftest*
15669LIBS="$ac_save_LIBS"
1e487827 15670
698dcdb6
VZ
15671fi
15672if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15673 echo "$ac_t""yes" 1>&6
15674
7b6058cd
GD
15675 OPENGL_LINK="-lGL -lGLU"
15676
10f2d63a 15677else
698dcdb6 15678 echo "$ac_t""no" 1>&6
10f2d63a 15679
7b6058cd 15680 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
ab252f7b 15681echo "configure:15682: checking for glFlush in -lMesaGL" >&5
698dcdb6
VZ
15682ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15683if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15684 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15685else
698dcdb6 15686 ac_save_LIBS="$LIBS"
10f2d63a 15687LIBS="-lMesaGL $LIBS"
698dcdb6 15688cat > conftest.$ac_ext <<EOF
ab252f7b 15689#line 15690 "configure"
10f2d63a
VZ
15690#include "confdefs.h"
15691/* Override any gcc2 internal prototype to avoid an error. */
15692/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15693 builtin and then its argument prototype would still apply. */
15694char glFlush();
15695
15696int main() {
15697glFlush()
15698; return 0; }
15699EOF
ab252f7b 15700if { (eval echo configure:15701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15701 rm -rf conftest*
15702 eval "ac_cv_lib_$ac_lib_var=yes"
15703else
15704 echo "configure: failed program was:" >&5
15705 cat conftest.$ac_ext >&5
15706 rm -rf conftest*
15707 eval "ac_cv_lib_$ac_lib_var=no"
15708fi
15709rm -f conftest*
15710LIBS="$ac_save_LIBS"
10f2d63a 15711
698dcdb6
VZ
15712fi
15713if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15714 echo "$ac_t""yes" 1>&6
15715
7b6058cd
GD
15716 OPENGL_LINK="-lMesaGL -lMesaGLU"
15717
698dcdb6
VZ
15718else
15719 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15720fi
15721
7b6058cd 15722
10f2d63a
VZ
15723fi
15724
7b6058cd 15725
10f2d63a 15726else
698dcdb6
VZ
15727 echo "$ac_t""no" 1>&6
15728wxUSE_OPENGL=0
10f2d63a
VZ
15729fi
15730
7b6058cd 15731 fi
10f2d63a
VZ
15732fi
15733
698dcdb6 15734
10f2d63a 15735if test "$wxUSE_GUI" = "yes"; then
698dcdb6 15736 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15737#define wxUSE_GUI 1
15738EOF
15739
698dcdb6 15740
10f2d63a 15741 else
698dcdb6 15742 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15743#define wxUSE_NOGUI 1
15744EOF
15745
15746fi
15747
698dcdb6 15748
10f2d63a 15749if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 15750 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15751#define wxUSE_UNIX 1
15752EOF
15753
15754fi
15755
698dcdb6 15756
10f2d63a 15757if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 15758 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15759#define wxUSE_APPLE_IEEE 1
15760EOF
15761
15762fi
15763
1e6feb95
VZ
15764if test "$wxUSE_TIMER" = "yes"; then
15765 cat >> confdefs.h <<\EOF
15766#define wxUSE_TIMER 1
15767EOF
15768
15769fi
15770
10f2d63a 15771if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 15772 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15773#define wxUSE_WAVE 1
15774EOF
15775
15776fi
15777
1e6feb95
VZ
15778if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15779 cat >> confdefs.h <<\EOF
15780#define wxUSE_CMDLINE_PARSER 1
15781EOF
15782
15783fi
15784
15785if test "$wxUSE_STOPWATCH" = "yes"; then
15786 cat >> confdefs.h <<\EOF
15787#define wxUSE_STOPWATCH 1
15788EOF
15789
15790fi
15791
15792if test "$wxUSE_DATETIME" = "yes"; then
15793 cat >> confdefs.h <<\EOF
15794#define wxUSE_DATETIME 1
15795EOF
15796
15797fi
15798
15799if test "$wxUSE_TIMEDATE" = "yes"; then
15800 cat >> confdefs.h <<\EOF
15801#define wxUSE_TIMEDATE 1
15802EOF
15803
15804fi
15805
10f2d63a 15806if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15807 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15808#define wxUSE_FILE 1
15809EOF
15810
15811fi
15812
1e6feb95
VZ
15813if test "$wxUSE_FFILE" = "yes"; then
15814 cat >> confdefs.h <<\EOF
15815#define wxUSE_FFILE 1
15816EOF
15817
15818fi
15819
24528b0c 15820if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15821 cat >> confdefs.h <<\EOF
24528b0c
VS
15822#define wxUSE_FILESYSTEM 1
15823EOF
15824
15825fi
15826
10f2d63a 15827if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15828 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15829#define wxUSE_FS_INET 1
15830EOF
15831
15832fi
15833
15834if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15835 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15836#define wxUSE_FS_ZIP 1
15837EOF
15838
15839fi
15840
15841if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15842 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15843#define wxUSE_ZIPSTREAM 1
15844EOF
15845
15846fi
15847
eb4efbdc 15848if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 15849 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
15850#define wxUSE_ON_FATAL_EXCEPTION 1
15851EOF
15852
15853fi
15854
4f3c5f06 15855if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 15856 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
15857#define wxUSE_SNGLINST_CHECKER 1
15858EOF
15859
15860fi
15861
10f2d63a 15862if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 15863 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15864#define wxUSE_BUSYINFO 1
15865EOF
15866
15867fi
15868
15869if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 15870 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15871#define wxUSE_STD_IOSTREAM 1
15872EOF
15873
15874fi
15875
15876if test "$wxUSE_TEXTFILE" = "yes"; then
15877 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15878 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15879 else
698dcdb6 15880 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15881#define wxUSE_TEXTFILE 1
15882EOF
15883
15884 fi
15885fi
15886
15887if test "$wxUSE_CONFIG" = "yes" ; then
15888 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 15889 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 15890 else
698dcdb6 15891 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15892#define wxUSE_CONFIG 1
15893EOF
15894
15895 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15896 fi
15897fi
15898
15899if test "$wxUSE_INTL" = "yes" ; then
15900 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15901 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15902 else
698dcdb6 15903 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15904#define wxUSE_INTL 1
15905EOF
15906
15907 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 15908 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
15909 fi
15910fi
15911
15912if test "$wxUSE_LOG" = "yes"; then
698dcdb6 15913 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15914#define wxUSE_LOG 1
15915EOF
15916
d73be714
VZ
15917
15918 if test "$wxUSE_LOGGUI" = "yes"; then
15919 cat >> confdefs.h <<\EOF
15920#define wxUSE_LOGGUI 1
15921EOF
15922
15923 fi
15924
15925 if test "$wxUSE_LOGWINDOW" = "yes"; then
15926 cat >> confdefs.h <<\EOF
15927#define wxUSE_LOGWINDOW 1
15928EOF
15929
15930 fi
10f2d63a
VZ
15931fi
15932
15933if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 15934 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15935#define wxUSE_LONGLONG 1
15936EOF
15937
15938fi
15939
e8f65ba6 15940if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 15941 cat >> confdefs.h <<\EOF
e8f65ba6
RR
15942#define wxUSE_GEOMETRY 1
15943EOF
15944
15945fi
15946
10f2d63a 15947if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 15948 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15949#define wxUSE_DIALUP_MANAGER 1
15950EOF
15951
70f7a477 15952 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
15953fi
15954
15955if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 15956 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15957#define wxUSE_STREAMS 1
15958EOF
15959
15960fi
15961
1e487827 15962
1e6feb95 15963if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 15964 for ac_func in strptime
83307f33 15965do
698dcdb6 15966echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 15967echo "configure:15968: checking for $ac_func" >&5
698dcdb6
VZ
15968if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15969 echo $ac_n "(cached) $ac_c" 1>&6
15970else
15971 cat > conftest.$ac_ext <<EOF
ab252f7b 15972#line 15973 "configure"
83307f33
VZ
15973#include "confdefs.h"
15974/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15975 which can conflict with char $ac_func(); below. */
83307f33
VZ
15976#include <assert.h>
15977/* Override any gcc2 internal prototype to avoid an error. */
15978/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15979 builtin and then its argument prototype would still apply. */
15980char $ac_func();
15981
15982int main() {
83307f33
VZ
15983
15984/* The GNU C library defines this for functions which it implements
15985 to always fail with ENOSYS. Some functions are actually named
15986 something starting with __ and the normal name is an alias. */
15987#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15988choke me
15989#else
698dcdb6 15990$ac_func();
83307f33
VZ
15991#endif
15992
698dcdb6 15993; return 0; }
83307f33 15994EOF
ab252f7b 15995if { (eval echo configure:15996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15996 rm -rf conftest*
15997 eval "ac_cv_func_$ac_func=yes"
15998else
15999 echo "configure: failed program was:" >&5
16000 cat conftest.$ac_ext >&5
16001 rm -rf conftest*
16002 eval "ac_cv_func_$ac_func=no"
16003fi
16004rm -f conftest*
16005fi
83307f33 16006
698dcdb6
VZ
16007if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16008 echo "$ac_t""yes" 1>&6
16009 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16010 cat >> confdefs.h <<EOF
16011#define $ac_tr_func 1
16012EOF
16013
16014else
16015 echo "$ac_t""no" 1>&6
83307f33
VZ
16016fi
16017done
16018
1e487827 16019
698dcdb6 16020 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
ab252f7b 16021echo "configure:16022: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
16022if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16023 echo $ac_n "(cached) $ac_c" 1>&6
16024else
16025
16026 cat > conftest.$ac_ext <<EOF
ab252f7b 16027#line 16028 "configure"
360d6699
VZ
16028#include "confdefs.h"
16029
b4085ce6 16030 #include <time.h>
698dcdb6
VZ
16031
16032int main() {
360d6699
VZ
16033
16034 int tz;
4f11a343 16035 tz = timezone;
698dcdb6
VZ
16036
16037; return 0; }
16038EOF
ab252f7b 16039if { (eval echo configure:16040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16040 rm -rf conftest*
16041
4f11a343 16042 wx_cv_var_timezone=timezone
698dcdb6 16043
360d6699 16044else
698dcdb6
VZ
16045 echo "configure: failed program was:" >&5
16046 cat conftest.$ac_ext >&5
16047 rm -rf conftest*
16048
16049 cat > conftest.$ac_ext <<EOF
ab252f7b 16050#line 16051 "configure"
360d6699
VZ
16051#include "confdefs.h"
16052
b4085ce6 16053 #include <time.h>
698dcdb6
VZ
16054
16055int main() {
360d6699
VZ
16056
16057 int tz;
16058 tz = _timezone;
698dcdb6
VZ
16059
16060; return 0; }
16061EOF
ab252f7b 16062if { (eval echo configure:16063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16063 rm -rf conftest*
16064
360d6699 16065 wx_cv_var_timezone=_timezone
698dcdb6 16066
5357c8e8 16067else
698dcdb6
VZ
16068 echo "configure: failed program was:" >&5
16069 cat conftest.$ac_ext >&5
16070 rm -rf conftest*
16071
16072 cat > conftest.$ac_ext <<EOF
ab252f7b 16073#line 16074 "configure"
5357c8e8
VZ
16074#include "confdefs.h"
16075
b4085ce6 16076 #include <time.h>
698dcdb6
VZ
16077
16078int main() {
5357c8e8
VZ
16079
16080 int tz;
4f11a343 16081 tz = __timezone;
698dcdb6
VZ
16082
16083; return 0; }
16084EOF
ab252f7b 16085if { (eval echo configure:16086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16086 rm -rf conftest*
16087
4f11a343 16088 wx_cv_var_timezone=__timezone
698dcdb6 16089
360d6699 16090else
698dcdb6
VZ
16091 echo "configure: failed program was:" >&5
16092 cat conftest.$ac_ext >&5
16093 rm -rf conftest*
16094 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16095
360d6699 16096fi
698dcdb6
VZ
16097rm -f conftest*
16098
16099
360d6699 16100fi
698dcdb6
VZ
16101rm -f conftest*
16102
16103
6232543b 16104fi
698dcdb6
VZ
16105rm -f conftest*
16106
16107
1e487827 16108fi
703e0a69 16109
698dcdb6
VZ
16110echo "$ac_t""$wx_cv_var_timezone" 1>&6
16111
16112 cat >> confdefs.h <<EOF
360d6699
VZ
16113#define WX_TIMEZONE $wx_cv_var_timezone
16114EOF
16115
698dcdb6
VZ
16116
16117 for ac_func in localtime
afc31813 16118do
698dcdb6 16119echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 16120echo "configure:16121: checking for $ac_func" >&5
698dcdb6
VZ
16121if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16122 echo $ac_n "(cached) $ac_c" 1>&6
16123else
16124 cat > conftest.$ac_ext <<EOF
ab252f7b 16125#line 16126 "configure"
10f2d63a 16126#include "confdefs.h"
afc31813 16127/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16128 which can conflict with char $ac_func(); below. */
afc31813
VZ
16129#include <assert.h>
16130/* Override any gcc2 internal prototype to avoid an error. */
16131/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16132 builtin and then its argument prototype would still apply. */
16133char $ac_func();
16134
16135int main() {
afc31813
VZ
16136
16137/* The GNU C library defines this for functions which it implements
16138 to always fail with ENOSYS. Some functions are actually named
16139 something starting with __ and the normal name is an alias. */
16140#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16141choke me
16142#else
698dcdb6 16143$ac_func();
afc31813
VZ
16144#endif
16145
698dcdb6 16146; return 0; }
10f2d63a 16147EOF
ab252f7b 16148if { (eval echo configure:16149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16149 rm -rf conftest*
16150 eval "ac_cv_func_$ac_func=yes"
16151else
16152 echo "configure: failed program was:" >&5
16153 cat conftest.$ac_ext >&5
16154 rm -rf conftest*
16155 eval "ac_cv_func_$ac_func=no"
16156fi
16157rm -f conftest*
16158fi
afc31813 16159
698dcdb6
VZ
16160if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16161 echo "$ac_t""yes" 1>&6
16162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16163 cat >> confdefs.h <<EOF
16164#define $ac_tr_func 1
16165EOF
16166
16167else
16168 echo "$ac_t""no" 1>&6
afc31813
VZ
16169fi
16170done
16171
1e487827 16172
698dcdb6
VZ
16173 if test "$ac_cv_func_localtime" = "yes"; then
16174 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
ab252f7b 16175echo "configure:16176: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
16176if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16177 echo $ac_n "(cached) $ac_c" 1>&6
16178else
16179
16180 cat > conftest.$ac_ext <<EOF
ab252f7b 16181#line 16182 "configure"
0470b1e6
VZ
16182#include "confdefs.h"
16183
b4085ce6 16184 #include <time.h>
698dcdb6
VZ
16185
16186int main() {
0470b1e6
VZ
16187
16188 struct tm tm;
16189 tm.tm_gmtoff++;
698dcdb6
VZ
16190
16191; return 0; }
16192EOF
ab252f7b 16193if { (eval echo configure:16194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16194 rm -rf conftest*
16195
f03a98d8 16196 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 16197
0470b1e6 16198else
698dcdb6
VZ
16199 echo "configure: failed program was:" >&5
16200 cat conftest.$ac_ext >&5
16201 rm -rf conftest*
16202 wx_cv_struct_tm_has_gmtoff=no
16203
0470b1e6 16204fi
698dcdb6
VZ
16205rm -f conftest*
16206
1e487827 16207fi
698dcdb6
VZ
16208
16209echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
16210 fi
16211
16212 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 16213 cat >> confdefs.h <<\EOF
6232543b
VS
16214#define WX_GMTOFF_IN_TM 1
16215EOF
0470b1e6 16216
3fcdd07b
VZ
16217 fi
16218
698dcdb6 16219 for ac_func in gettimeofday ftime
3fcdd07b 16220do
698dcdb6 16221echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 16222echo "configure:16223: checking for $ac_func" >&5
698dcdb6
VZ
16223if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16224 echo $ac_n "(cached) $ac_c" 1>&6
16225else
16226 cat > conftest.$ac_ext <<EOF
ab252f7b 16227#line 16228 "configure"
3fcdd07b
VZ
16228#include "confdefs.h"
16229/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16230 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
16231#include <assert.h>
16232/* Override any gcc2 internal prototype to avoid an error. */
16233/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16234 builtin and then its argument prototype would still apply. */
16235char $ac_func();
16236
16237int main() {
3fcdd07b
VZ
16238
16239/* The GNU C library defines this for functions which it implements
16240 to always fail with ENOSYS. Some functions are actually named
16241 something starting with __ and the normal name is an alias. */
16242#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16243choke me
16244#else
698dcdb6 16245$ac_func();
3fcdd07b
VZ
16246#endif
16247
698dcdb6
VZ
16248; return 0; }
16249EOF
ab252f7b 16250if { (eval echo configure:16251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16251 rm -rf conftest*
16252 eval "ac_cv_func_$ac_func=yes"
16253else
16254 echo "configure: failed program was:" >&5
16255 cat conftest.$ac_ext >&5
16256 rm -rf conftest*
16257 eval "ac_cv_func_$ac_func=no"
16258fi
16259rm -f conftest*
16260fi
16261
16262if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16263 echo "$ac_t""yes" 1>&6
16264 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16265 cat >> confdefs.h <<EOF
16266#define $ac_tr_func 1
3fcdd07b
VZ
16267EOF
16268 break
698dcdb6
VZ
16269else
16270 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
16271fi
16272done
16273
afc31813 16274
698dcdb6
VZ
16275 if test "$ac_cv_func_gettimeofday" = "yes"; then
16276 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
ab252f7b 16277echo "configure:16278: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
16278if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16279 echo $ac_n "(cached) $ac_c" 1>&6
16280else
16281
16282
16283 ac_ext=C
16284# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16285ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16286ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16287ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16288cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16289
698dcdb6
VZ
16290
16291 cat > conftest.$ac_ext <<EOF
ab252f7b 16292#line 16293 "configure"
10f2d63a 16293#include "confdefs.h"
afc31813
VZ
16294
16295 #include <sys/time.h>
16296 #include <unistd.h>
698dcdb6
VZ
16297
16298int main() {
afc31813
VZ
16299
16300 struct timeval tv;
16301 struct timezone tz;
16302 gettimeofday(&tv, &tz);
698dcdb6
VZ
16303
16304; return 0; }
16305EOF
ab252f7b 16306if { (eval echo configure:16307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16307 rm -rf conftest*
afc31813 16308 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 16309else
698dcdb6
VZ
16310 echo "configure: failed program was:" >&5
16311 cat conftest.$ac_ext >&5
16312 rm -rf conftest*
16313 cat > conftest.$ac_ext <<EOF
ab252f7b 16314#line 16315 "configure"
10f2d63a 16315#include "confdefs.h"
afc31813
VZ
16316
16317 #include <sys/time.h>
16318 #include <unistd.h>
698dcdb6
VZ
16319
16320int main() {
afc31813
VZ
16321
16322 struct timeval tv;
16323 gettimeofday(&tv);
698dcdb6
VZ
16324
16325; return 0; }
16326EOF
ab252f7b 16327if { (eval echo configure:16328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16328 rm -rf conftest*
afc31813 16329 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 16330else
698dcdb6
VZ
16331 echo "configure: failed program was:" >&5
16332 cat conftest.$ac_ext >&5
16333 rm -rf conftest*
16334 wx_cv_func_gettimeofday_has_2_args=unknown
16335
10f2d63a 16336fi
698dcdb6
VZ
16337rm -f conftest*
16338
10f2d63a 16339fi
698dcdb6 16340rm -f conftest*
afc31813 16341 ac_ext=c
698dcdb6 16342# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 16343ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16344ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16345ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16346cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 16347
698dcdb6 16348
afc31813 16349fi
698dcdb6
VZ
16350
16351echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 16352
afc31813 16353 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 16354 cat >> confdefs.h <<\EOF
afc31813
VZ
16355#define WX_GETTIMEOFDAY_NO_TZ 1
16356EOF
16357
16358 fi
16359 fi
16360
698dcdb6 16361 cat >> confdefs.h <<\EOF
afc31813
VZ
16362#define wxUSE_TIMEDATE 1
16363EOF
16364
16365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16366fi
16367
698dcdb6 16368
b089607b
VZ
16369if test "$TOOLKIT" != "MSW"; then
16370
afc31813 16371if test "$wxUSE_SOCKETS" = "yes"; then
698dcdb6 16372 echo $ac_n "checking for socket""... $ac_c" 1>&6
ab252f7b 16373echo "configure:16374: checking for socket" >&5
698dcdb6
VZ
16374if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16375 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16376else
698dcdb6 16377 cat > conftest.$ac_ext <<EOF
ab252f7b 16378#line 16379 "configure"
c63c7106
VZ
16379#include "confdefs.h"
16380/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16381 which can conflict with char socket(); below. */
c63c7106
VZ
16382#include <assert.h>
16383/* Override any gcc2 internal prototype to avoid an error. */
16384/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16385 builtin and then its argument prototype would still apply. */
16386char socket();
16387
16388int main() {
c63c7106
VZ
16389
16390/* The GNU C library defines this for functions which it implements
16391 to always fail with ENOSYS. Some functions are actually named
16392 something starting with __ and the normal name is an alias. */
16393#if defined (__stub_socket) || defined (__stub___socket)
16394choke me
16395#else
698dcdb6 16396socket();
c63c7106
VZ
16397#endif
16398
698dcdb6
VZ
16399; return 0; }
16400EOF
ab252f7b 16401if { (eval echo configure:16402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16402 rm -rf conftest*
16403 eval "ac_cv_func_socket=yes"
16404else
16405 echo "configure: failed program was:" >&5
16406 cat conftest.$ac_ext >&5
16407 rm -rf conftest*
16408 eval "ac_cv_func_socket=no"
16409fi
16410rm -f conftest*
16411fi
16412
16413if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16414 echo "$ac_t""yes" 1>&6
c63c7106
VZ
16415 :
16416else
698dcdb6
VZ
16417 echo "$ac_t""no" 1>&6
16418echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
ab252f7b 16419echo "configure:16420: checking for socket in -lsocket" >&5
698dcdb6
VZ
16420ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16421if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16422 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16423else
698dcdb6 16424 ac_save_LIBS="$LIBS"
c63c7106 16425LIBS="-lsocket $LIBS"
698dcdb6 16426cat > conftest.$ac_ext <<EOF
ab252f7b 16427#line 16428 "configure"
c63c7106
VZ
16428#include "confdefs.h"
16429/* Override any gcc2 internal prototype to avoid an error. */
16430/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16431 builtin and then its argument prototype would still apply. */
16432char socket();
16433
16434int main() {
16435socket()
16436; return 0; }
16437EOF
ab252f7b 16438if { (eval echo configure:16439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16439 rm -rf conftest*
16440 eval "ac_cv_lib_$ac_lib_var=yes"
16441else
16442 echo "configure: failed program was:" >&5
16443 cat conftest.$ac_ext >&5
16444 rm -rf conftest*
16445 eval "ac_cv_lib_$ac_lib_var=no"
16446fi
16447rm -f conftest*
16448LIBS="$ac_save_LIBS"
16449
16450fi
16451if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16452 echo "$ac_t""yes" 1>&6
c63c7106 16453 INET_LINK="$INET_LINK -lsocket"
c63c7106 16454else
698dcdb6 16455 echo "$ac_t""no" 1>&6
afc31813 16456
698dcdb6 16457 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
afc31813 16458 wxUSE_SOCKETS=no
698dcdb6
VZ
16459
16460
10f2d63a
VZ
16461fi
16462
698dcdb6 16463
6232543b 16464fi
b089607b 16465
1e487827 16466fi
afc31813 16467
51a9faba 16468
698dcdb6
VZ
16469if test "$wxUSE_SOCKETS" = "yes" ; then
16470 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
ab252f7b 16471echo "configure:16472: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
16472if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16473 echo $ac_n "(cached) $ac_c" 1>&6
16474else
16475
16476
16477 ac_ext=C
16478# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16479ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16480ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16481ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16482cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16483
698dcdb6
VZ
16484
16485 cat > conftest.$ac_ext <<EOF
ab252f7b 16486#line 16487 "configure"
afc31813 16487#include "confdefs.h"
51a9faba 16488
3ace2e6d 16489 #include <sys/types.h>
51a9faba 16490 #include <sys/socket.h>
698dcdb6
VZ
16491
16492int main() {
51a9faba
VZ
16493
16494 socklen_t len;
16495 getsockname(0, 0, &len);
698dcdb6
VZ
16496
16497; return 0; }
16498EOF
ab252f7b 16499if { (eval echo configure:16500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16500 rm -rf conftest*
51a9faba 16501 wx_cv_type_getsockname3=socklen_t
afc31813 16502else
698dcdb6
VZ
16503 echo "configure: failed program was:" >&5
16504 cat conftest.$ac_ext >&5
16505 rm -rf conftest*
16506 cat > conftest.$ac_ext <<EOF
ab252f7b 16507#line 16508 "configure"
afc31813 16508#include "confdefs.h"
51a9faba 16509
3ace2e6d 16510 #include <sys/types.h>
51a9faba 16511 #include <sys/socket.h>
698dcdb6
VZ
16512
16513int main() {
51a9faba
VZ
16514
16515 size_t len;
16516 getsockname(0, 0, &len);
698dcdb6
VZ
16517
16518; return 0; }
16519EOF
ab252f7b 16520if { (eval echo configure:16521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16521 rm -rf conftest*
51a9faba 16522 wx_cv_type_getsockname3=size_t
afc31813 16523else
698dcdb6
VZ
16524 echo "configure: failed program was:" >&5
16525 cat conftest.$ac_ext >&5
16526 rm -rf conftest*
16527 cat > conftest.$ac_ext <<EOF
ab252f7b 16528#line 16529 "configure"
afc31813 16529#include "confdefs.h"
51a9faba 16530
3ace2e6d 16531 #include <sys/types.h>
51a9faba 16532 #include <sys/socket.h>
698dcdb6
VZ
16533
16534int main() {
51a9faba
VZ
16535
16536 int len;
16537 getsockname(0, 0, &len);
698dcdb6
VZ
16538
16539; return 0; }
16540EOF
ab252f7b 16541if { (eval echo configure:16542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16542 rm -rf conftest*
51a9faba 16543 wx_cv_type_getsockname3=int
afc31813 16544else
698dcdb6
VZ
16545 echo "configure: failed program was:" >&5
16546 cat conftest.$ac_ext >&5
16547 rm -rf conftest*
16548 wx_cv_type_getsockname3=unknown
16549
afc31813 16550fi
698dcdb6
VZ
16551rm -f conftest*
16552
afc31813 16553fi
698dcdb6
VZ
16554rm -f conftest*
16555
afc31813 16556fi
698dcdb6 16557rm -f conftest*
51a9faba
VZ
16558
16559 ac_ext=c
698dcdb6 16560# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 16561ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16562ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16563ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16564cross_compiling=$ac_cv_prog_cc_cross
afc31813 16565
698dcdb6 16566
51a9faba 16567fi
698dcdb6
VZ
16568
16569echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba
VZ
16570
16571 if test "$wx_cv_type_getsockname3" = "unknown"; then
16572 wxUSE_SOCKETS=no
698dcdb6 16573 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
51a9faba 16574 else
698dcdb6 16575 cat >> confdefs.h <<EOF
51a9faba
VZ
16576#define SOCKLEN_T $wx_cv_type_getsockname3
16577EOF
16578
16579 fi
16580fi
afc31813 16581
c521c494
RL
16582fi
16583
51a9faba 16584if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 16585 cat >> confdefs.h <<\EOF
afc31813
VZ
16586#define wxUSE_SOCKETS 1
16587EOF
16588
70f7a477 16589 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
16590 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
16591fi
16592
698dcdb6 16593
dc3d889d
VZ
16594if test "$wxUSE_GUI" = "yes"; then
16595
b089607b
VZ
16596if test "$TOOLKIT" != "MSW"; then
16597
ceded8b9 16598if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16599 for ac_hdr in linux/joystick.h
10f2d63a 16600do
698dcdb6
VZ
16601ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16602echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ab252f7b 16603echo "configure:16604: checking for $ac_hdr" >&5
698dcdb6
VZ
16604if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16605 echo $ac_n "(cached) $ac_c" 1>&6
16606else
16607 cat > conftest.$ac_ext <<EOF
ab252f7b 16608#line 16609 "configure"
10f2d63a 16609#include "confdefs.h"
698dcdb6
VZ
16610#include <$ac_hdr>
16611EOF
16612ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 16613{ (eval echo configure:16614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16614ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16615if test -z "$ac_err"; then
16616 rm -rf conftest*
16617 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 16618else
698dcdb6
VZ
16619 echo "$ac_err" >&5
16620 echo "configure: failed program was:" >&5
10f2d63a 16621 cat conftest.$ac_ext >&5
698dcdb6
VZ
16622 rm -rf conftest*
16623 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16624fi
698dcdb6 16625rm -f conftest*
10f2d63a 16626fi
698dcdb6
VZ
16627if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16628 echo "$ac_t""yes" 1>&6
16629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16630 cat >> confdefs.h <<EOF
16631#define $ac_tr_hdr 1
10f2d63a 16632EOF
698dcdb6
VZ
16633
16634else
16635 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16636fi
16637done
16638
b089607b 16639 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 16640 wxUSE_JOYSTICK=no
698dcdb6 16641 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
16642 fi
16643fi
16644
16645fi
16646
ceded8b9 16647if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16648 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16649#define wxUSE_JOYSTICK 1
16650EOF
16651
16652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
16653fi
16654
dc3d889d
VZ
16655fi
16656
698dcdb6 16657
b089607b
VZ
16658if test "$TOOLKIT" != "MSW"; then
16659
10f2d63a
VZ
16660HAVE_DL_FUNCS=0
16661HAVE_SHL_FUNCS=0
16662if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
f11bdd03 16663 if test "$USE_DARWIN" = 1; then
b4085ce6
GD
16664 HAVE_DL_FUNCS=1
16665 else
698dcdb6 16666 for ac_func in dlopen
10f2d63a 16667do
698dcdb6 16668echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 16669echo "configure:16670: checking for $ac_func" >&5
698dcdb6
VZ
16670if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16671 echo $ac_n "(cached) $ac_c" 1>&6
16672else
16673 cat > conftest.$ac_ext <<EOF
ab252f7b 16674#line 16675 "configure"
10f2d63a
VZ
16675#include "confdefs.h"
16676/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16677 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16678#include <assert.h>
16679/* Override any gcc2 internal prototype to avoid an error. */
16680/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16681 builtin and then its argument prototype would still apply. */
16682char $ac_func();
16683
16684int main() {
10f2d63a
VZ
16685
16686/* The GNU C library defines this for functions which it implements
16687 to always fail with ENOSYS. Some functions are actually named
16688 something starting with __ and the normal name is an alias. */
16689#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16690choke me
16691#else
698dcdb6 16692$ac_func();
10f2d63a
VZ
16693#endif
16694
698dcdb6
VZ
16695; return 0; }
16696EOF
ab252f7b 16697if { (eval echo configure:16698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16698 rm -rf conftest*
16699 eval "ac_cv_func_$ac_func=yes"
16700else
16701 echo "configure: failed program was:" >&5
16702 cat conftest.$ac_ext >&5
16703 rm -rf conftest*
16704 eval "ac_cv_func_$ac_func=no"
16705fi
16706rm -f conftest*
16707fi
16708
16709if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16710 echo "$ac_t""yes" 1>&6
16711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16712 cat >> confdefs.h <<EOF
16713#define $ac_tr_func 1
16714EOF
16715
16716 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16717#define HAVE_DLOPEN 1
16718EOF
16719
16720 HAVE_DL_FUNCS=1
698dcdb6 16721
10f2d63a 16722else
698dcdb6
VZ
16723 echo "$ac_t""no" 1>&6
16724echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
ab252f7b 16725echo "configure:16726: checking for dlopen in -ldl" >&5
698dcdb6
VZ
16726ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16727if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16728 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16729else
698dcdb6 16730 ac_save_LIBS="$LIBS"
10f2d63a 16731LIBS="-ldl $LIBS"
698dcdb6 16732cat > conftest.$ac_ext <<EOF
ab252f7b 16733#line 16734 "configure"
10f2d63a
VZ
16734#include "confdefs.h"
16735/* Override any gcc2 internal prototype to avoid an error. */
16736/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16737 builtin and then its argument prototype would still apply. */
16738char dlopen();
16739
16740int main() {
16741dlopen()
16742; return 0; }
16743EOF
ab252f7b 16744if { (eval echo configure:16745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16745 rm -rf conftest*
16746 eval "ac_cv_lib_$ac_lib_var=yes"
16747else
16748 echo "configure: failed program was:" >&5
16749 cat conftest.$ac_ext >&5
16750 rm -rf conftest*
16751 eval "ac_cv_lib_$ac_lib_var=no"
16752fi
16753rm -f conftest*
16754LIBS="$ac_save_LIBS"
16755
16756fi
16757if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16758 echo "$ac_t""yes" 1>&6
16759
16760 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16761#define HAVE_DLOPEN 1
16762EOF
16763
16764 HAVE_DL_FUNCS=1
16765 LIBS="$LIBS -ldl"
698dcdb6 16766
10f2d63a 16767else
698dcdb6 16768 echo "$ac_t""no" 1>&6
10f2d63a 16769
698dcdb6 16770 for ac_func in shl_load
10f2d63a 16771do
698dcdb6 16772echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 16773echo "configure:16774: checking for $ac_func" >&5
698dcdb6
VZ
16774if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16775 echo $ac_n "(cached) $ac_c" 1>&6
16776else
16777 cat > conftest.$ac_ext <<EOF
ab252f7b 16778#line 16779 "configure"
10f2d63a
VZ
16779#include "confdefs.h"
16780/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16781 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16782#include <assert.h>
16783/* Override any gcc2 internal prototype to avoid an error. */
16784/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16785 builtin and then its argument prototype would still apply. */
16786char $ac_func();
16787
16788int main() {
10f2d63a
VZ
16789
16790/* The GNU C library defines this for functions which it implements
16791 to always fail with ENOSYS. Some functions are actually named
16792 something starting with __ and the normal name is an alias. */
16793#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16794choke me
16795#else
698dcdb6 16796$ac_func();
10f2d63a
VZ
16797#endif
16798
698dcdb6
VZ
16799; return 0; }
16800EOF
ab252f7b 16801if { (eval echo configure:16802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16802 rm -rf conftest*
16803 eval "ac_cv_func_$ac_func=yes"
16804else
16805 echo "configure: failed program was:" >&5
16806 cat conftest.$ac_ext >&5
16807 rm -rf conftest*
16808 eval "ac_cv_func_$ac_func=no"
16809fi
16810rm -f conftest*
16811fi
16812
16813if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16814 echo "$ac_t""yes" 1>&6
16815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16816 cat >> confdefs.h <<EOF
16817#define $ac_tr_func 1
16818EOF
16819
16820 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16821#define HAVE_SHL_LOAD 1
16822EOF
16823
16824 HAVE_SHL_FUNCS=1
698dcdb6 16825
10f2d63a 16826else
698dcdb6
VZ
16827 echo "$ac_t""no" 1>&6
16828echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
ab252f7b 16829echo "configure:16830: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16830ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16831if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16832 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16833else
698dcdb6 16834 ac_save_LIBS="$LIBS"
f6bcfd97 16835LIBS="-lshl_load $LIBS"
698dcdb6 16836cat > conftest.$ac_ext <<EOF
ab252f7b 16837#line 16838 "configure"
f6bcfd97
BP
16838#include "confdefs.h"
16839/* Override any gcc2 internal prototype to avoid an error. */
16840/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16841 builtin and then its argument prototype would still apply. */
16842char dld();
16843
16844int main() {
16845dld()
16846; return 0; }
16847EOF
ab252f7b 16848if { (eval echo configure:16849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16849 rm -rf conftest*
16850 eval "ac_cv_lib_$ac_lib_var=yes"
16851else
16852 echo "configure: failed program was:" >&5
16853 cat conftest.$ac_ext >&5
16854 rm -rf conftest*
16855 eval "ac_cv_lib_$ac_lib_var=no"
16856fi
16857rm -f conftest*
16858LIBS="$ac_save_LIBS"
f6bcfd97 16859
698dcdb6
VZ
16860fi
16861if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16862 echo "$ac_t""yes" 1>&6
16863
f6bcfd97
BP
16864 HAVE_SHL_FUNCS=1
16865 LIBS="$LIBS -ldld"
698dcdb6
VZ
16866
16867else
16868 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16869fi
16870
698dcdb6 16871
10f2d63a
VZ
16872fi
16873done
16874
698dcdb6 16875
10f2d63a
VZ
16876fi
16877
698dcdb6 16878
10f2d63a
VZ
16879fi
16880done
16881
1e487827 16882
698dcdb6
VZ
16883 if test "$HAVE_DL_FUNCS" = 1; then
16884 for ac_func in dlerror
f6bcfd97 16885do
698dcdb6 16886echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ab252f7b 16887echo "configure:16888: checking for $ac_func" >&5
698dcdb6
VZ
16888if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16889 echo $ac_n "(cached) $ac_c" 1>&6
16890else
16891 cat > conftest.$ac_ext <<EOF
ab252f7b 16892#line 16893 "configure"
f6bcfd97
BP
16893#include "confdefs.h"
16894/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16895 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
16896#include <assert.h>
16897/* Override any gcc2 internal prototype to avoid an error. */
16898/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16899 builtin and then its argument prototype would still apply. */
16900char $ac_func();
16901
16902int main() {
f6bcfd97
BP
16903
16904/* The GNU C library defines this for functions which it implements
16905 to always fail with ENOSYS. Some functions are actually named
16906 something starting with __ and the normal name is an alias. */
16907#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16908choke me
16909#else
698dcdb6 16910$ac_func();
f6bcfd97
BP
16911#endif
16912
698dcdb6
VZ
16913; return 0; }
16914EOF
ab252f7b 16915if { (eval echo configure:16916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16916 rm -rf conftest*
16917 eval "ac_cv_func_$ac_func=yes"
16918else
16919 echo "configure: failed program was:" >&5
16920 cat conftest.$ac_ext >&5
16921 rm -rf conftest*
16922 eval "ac_cv_func_$ac_func=no"
16923fi
16924rm -f conftest*
16925fi
16926
16927if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16928 echo "$ac_t""yes" 1>&6
16929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16930 cat >> confdefs.h <<EOF
16931#define $ac_tr_func 1
16932EOF
16933 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16934#define HAVE_DLERROR 1
16935EOF
16936
16937else
698dcdb6
VZ
16938 echo "$ac_t""no" 1>&6
16939echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
ab252f7b 16940echo "configure:16941: checking for dlerror in -ldl" >&5
698dcdb6
VZ
16941ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16942if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16943 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16944else
698dcdb6 16945 ac_save_LIBS="$LIBS"
f6bcfd97 16946LIBS="-ldl $LIBS"
698dcdb6 16947cat > conftest.$ac_ext <<EOF
ab252f7b 16948#line 16949 "configure"
f6bcfd97
BP
16949#include "confdefs.h"
16950/* Override any gcc2 internal prototype to avoid an error. */
16951/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16952 builtin and then its argument prototype would still apply. */
16953char dlerror();
16954
16955int main() {
16956dlerror()
16957; return 0; }
16958EOF
ab252f7b 16959if { (eval echo configure:16960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16960 rm -rf conftest*
16961 eval "ac_cv_lib_$ac_lib_var=yes"
16962else
16963 echo "configure: failed program was:" >&5
16964 cat conftest.$ac_ext >&5
16965 rm -rf conftest*
16966 eval "ac_cv_lib_$ac_lib_var=no"
16967fi
16968rm -f conftest*
16969LIBS="$ac_save_LIBS"
16970
16971fi
16972if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16973 echo "$ac_t""yes" 1>&6
16974 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16975#define HAVE_DLERROR 1
16976EOF
16977
698dcdb6
VZ
16978else
16979 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16980fi
16981
16982fi
16983done
16984
16985 fi
b4085ce6 16986 fi
f6bcfd97 16987
10f2d63a
VZ
16988 if test "$HAVE_DL_FUNCS" = 0; then
16989 if test "$HAVE_SHL_FUNCS" = 0; then
16990 if test "$USE_UNIX" = 1; then
698dcdb6 16991 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
16992 wxUSE_DYNLIB_CLASS=no
16993 else
698dcdb6 16994 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
16995 fi
16996 fi
16997 fi
16998fi
16999
b089607b
VZ
17000fi
17001
10f2d63a 17002if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 17003 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17004#define wxUSE_DYNLIB_CLASS 1
17005EOF
17006
b12915c1
VZ
17007else
17008 wxUSE_ODBC=no
17009 wxUSE_SERIAL=no
10f2d63a
VZ
17010fi
17011
698dcdb6 17012
1e6feb95
VZ
17013if test "$wxUSE_FONTMAP" = "yes" ; then
17014 cat >> confdefs.h <<\EOF
17015#define wxUSE_FONTMAP 1
17016EOF
17017
17018fi
17019
10f2d63a 17020if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 17021 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17022#define wxUSE_UNICODE 1
17023EOF
17024
17025fi
17026
17027if test "$wxUSE_WCSRTOMBS" = "yes" ; then
698dcdb6 17028 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17029#define wxUSE_WCSRTOMBS 1
17030EOF
17031
17032fi
17033
17034if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 17035 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17036#define wxUSE_EXPERIMENTAL_PRINTF 1
17037EOF
17038
17039fi
17040
698dcdb6 17041
b12915c1 17042if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 17043 cat >> confdefs.h <<\EOF
b12915c1
VZ
17044#define wxUSE_SERIAL 1
17045EOF
17046
17047fi
17048
698dcdb6 17049
10f2d63a
VZ
17050IODBC_C_SRC=""
17051if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 17052 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17053#define wxUSE_ODBC 1
17054EOF
17055
17056 WXODBCFLAG="-D_IODBC_"
17057 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
17058fi
17059
698dcdb6 17060
10f2d63a 17061if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 17062 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17063#define wxUSE_POSTSCRIPT 1
17064EOF
17065
17066fi
17067
698dcdb6 17068cat >> confdefs.h <<\EOF
10f2d63a
VZ
17069#define wxUSE_AFM_FOR_POSTSCRIPT 1
17070EOF
17071
698dcdb6
VZ
17072
17073cat >> confdefs.h <<\EOF
10f2d63a
VZ
17074#define wxUSE_NORMALIZED_PS_FONTS 1
17075EOF
17076
698dcdb6
VZ
17077
17078
10f2d63a 17079if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 17080 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17081#define wxUSE_CONSTRAINTS 1
17082EOF
17083
17084 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17085fi
17086
17087if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
698dcdb6 17088 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17089#define wxUSE_MDI_ARCHITECTURE 1
17090EOF
17091
17092 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17093fi
17094
17095if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 17096 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17097#define wxUSE_DOC_VIEW_ARCHITECTURE 1
17098EOF
17099
17100 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17101 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17102 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17103 fi
17104fi
17105
17106if test "$wxUSE_HELP" = "yes"; then
698dcdb6 17107 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17108#define wxUSE_HELP 1
17109EOF
17110
17111 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 17112
3e44f09d 17113 if test "$USE_WIN32" = 1; then
031d8228 17114 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
17115 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17116echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
ab252f7b 17117echo "configure:17118: checking for htmlhelp.h" >&5
29fd3c0c
VS
17118if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17119 echo $ac_n "(cached) $ac_c" 1>&6
17120else
17121 cat > conftest.$ac_ext <<EOF
ab252f7b 17122#line 17123 "configure"
29fd3c0c
VS
17123#include "confdefs.h"
17124#include <htmlhelp.h>
17125EOF
17126ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 17127{ (eval echo configure:17128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
17128ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17129if test -z "$ac_err"; then
17130 rm -rf conftest*
17131 eval "ac_cv_header_$ac_safe=yes"
17132else
17133 echo "$ac_err" >&5
17134 echo "configure: failed program was:" >&5
17135 cat conftest.$ac_ext >&5
17136 rm -rf conftest*
17137 eval "ac_cv_header_$ac_safe=no"
17138fi
17139rm -f conftest*
17140fi
17141if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17142 echo "$ac_t""yes" 1>&6
17143
17144 cat >> confdefs.h <<\EOF
17145#define wxUSE_MS_HTML_HELP 1
17146EOF
17147
17148
17149else
17150 echo "$ac_t""no" 1>&6
17151
17152 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2
17153 wxUSE_MS_HTML_HELP=no
17154
17155fi
17156
3e44f09d 17157 fi
3379ed37 17158 fi
031d8228
VS
17159
17160 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17161 if test "$wxUSE_HTML" = "yes"; then
17162 cat >> confdefs.h <<\EOF
17163#define wxUSE_WXHTML_HELP 1
17164EOF
17165
17166 else
17167 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17168 wxUSE_WXHTML_HELP=no
17169 fi
17170 fi
10f2d63a
VZ
17171fi
17172
17173if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17174 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 17175 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 17176 else
698dcdb6 17177 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17178#define wxUSE_PRINTING_ARCHITECTURE 1
17179EOF
17180
17181 fi
17182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17183fi
17184
17185if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 17186 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17187#define wxUSE_PROLOGIO 1
17188EOF
17189
17190fi
17191
17192if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 17193 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17194#define wxUSE_RESOURCES 1
17195EOF
17196
3379ed37 17197 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
17198fi
17199
17200if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 17201 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17202#define wxUSE_X_RESOURCES 1
17203EOF
17204
17205fi
17206
698dcdb6 17207
10f2d63a 17208if test "$wxUSE_IPC" = "yes"; then
eb4efbdc 17209 if test "$wxUSE_SOCKETS" != "yes"; then
698dcdb6 17210 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
eb4efbdc
VZ
17211 fi
17212
698dcdb6 17213 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17214#define wxUSE_IPC 1
17215EOF
17216
17217fi
17218
17219if test "$wxUSE_CLIPBOARD" = "yes"; then
698dcdb6 17220 cat >> confdefs.h <<\EOF
10f2d63a 17221#define wxUSE_CLIPBOARD 1
1e6feb95
VZ
17222EOF
17223
17224 cat >> confdefs.h <<\EOF
17225#define wxUSE_DATAOBJ 1
10f2d63a
VZ
17226EOF
17227
17228fi
17229
17230if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17231 if test "$wxUSE_GTK" = 1; then
17232 if test "$WXGTK12" != 1; then
698dcdb6 17233 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
17234 wxUSE_DRAG_AND_DROP=no
17235 fi
17236 fi
17237
17238 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17239 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
10f2d63a
VZ
17240 wxUSE_DRAG_AND_DROP=no
17241 fi
17242
2c6025bc 17243 if test "$wxUSE_MAC" = 1; then
698dcdb6 17244 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
2c6025bc
GD
17245 wxUSE_DRAG_AND_DROP=no
17246 fi
17247
10f2d63a 17248 if test "$USE_WIN32" = 1; then
698dcdb6
VZ
17249
17250 for ac_hdr in ole2.h
10f2d63a 17251do
698dcdb6
VZ
17252ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17253echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ab252f7b 17254echo "configure:17255: checking for $ac_hdr" >&5
698dcdb6
VZ
17255if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17256 echo $ac_n "(cached) $ac_c" 1>&6
17257else
17258 cat > conftest.$ac_ext <<EOF
ab252f7b 17259#line 17260 "configure"
10f2d63a 17260#include "confdefs.h"
698dcdb6
VZ
17261#include <$ac_hdr>
17262EOF
17263ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab252f7b 17264{ (eval echo configure:17265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17265ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17266if test -z "$ac_err"; then
17267 rm -rf conftest*
17268 eval "ac_cv_header_$ac_safe=yes"
1e487827 17269else
698dcdb6
VZ
17270 echo "$ac_err" >&5
17271 echo "configure: failed program was:" >&5
10f2d63a 17272 cat conftest.$ac_ext >&5
698dcdb6
VZ
17273 rm -rf conftest*
17274 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17275fi
698dcdb6 17276rm -f conftest*
10f2d63a 17277fi
698dcdb6
VZ
17278if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17279 echo "$ac_t""yes" 1>&6
17280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17281 cat >> confdefs.h <<EOF
17282#define $ac_tr_hdr 1
10f2d63a 17283EOF
698dcdb6
VZ
17284
17285else
17286 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17287fi
17288done
17289
698dcdb6 17290
57fe5ed0 17291 if test "$ac_cv_header_ole2_h" = "yes" ; then
c521c494 17292 if test "$GCC" = yes ; then
b64f0a5f
RL
17293 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17294 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 17295 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
18dbb1f6 17296 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
4f11a343
VS
17297 cat >> confdefs.h <<\EOF
17298#define wxUSE_OLE 1
17299EOF
17300
b64f0a5f
RL
17301
17302 if test "$wxUSE_METAFILE" = "yes"; then
698dcdb6 17303 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17304#define wxUSE_METAFILE 1
17305EOF
17306
698dcdb6 17307 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17308#define wxUSE_ENH_METAFILE 1
17309EOF
17310
17311 fi
c521c494
RL
17312 fi
17313 else
698dcdb6 17314 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
10f2d63a
VZ
17315 wxUSE_DRAG_AND_DROP=no
17316 fi
17317 fi
17318
17319 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 17320 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17321#define wxUSE_DRAG_AND_DROP 1
17322EOF
17323
17324 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17325 fi
17326
17327fi
17328
17329if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 17330 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17331#define wxUSE_SPLINES 1
17332EOF
17333
17334fi
17335
698dcdb6 17336
1e6feb95
VZ
17337USES_CONTROLS=0
17338if test "$wxUSE_CONTROLS" = "yes"; then
17339 USES_CONTROLS=1
17340fi
17341
10f2d63a 17342if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 17343 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17344#define wxUSE_ACCEL 1
17345EOF
17346
1e6feb95
VZ
17347 USES_CONTROLS=1
17348fi
17349
17350if test "$wxUSE_BUTTON" = "yes"; then
17351 cat >> confdefs.h <<\EOF
17352#define wxUSE_BUTTON 1
17353EOF
17354
17355 USES_CONTROLS=1
17356fi
17357
17358if test "$wxUSE_BMPBUTTON" = "yes"; then
17359 cat >> confdefs.h <<\EOF
17360#define wxUSE_BMPBUTTON 1
17361EOF
17362
17363 USES_CONTROLS=1
17364fi
17365
17366if test "$wxUSE_CALCTRL" = "yes"; then
17367 cat >> confdefs.h <<\EOF
17368#define wxUSE_CALENDARCTRL 1
17369EOF
17370
17371 USES_CONTROLS=1
17372 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
17373fi
17374
17375if test "$wxUSE_CARET" = "yes"; then
698dcdb6 17376 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17377#define wxUSE_CARET 1
17378EOF
17379
1e6feb95 17380 USES_CONTROLS=1
10f2d63a
VZ
17381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17382fi
17383
17384if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 17385 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17386#define wxUSE_COMBOBOX 1
17387EOF
17388
1e6feb95 17389 USES_CONTROLS=1
10f2d63a
VZ
17390fi
17391
17392if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 17393 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17394#define wxUSE_CHOICE 1
17395EOF
17396
1e6feb95 17397 USES_CONTROLS=1
10f2d63a
VZ
17398fi
17399
17400if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 17401 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17402#define wxUSE_CHECKBOX 1
17403EOF
17404
1e6feb95 17405 USES_CONTROLS=1
10f2d63a
VZ
17406fi
17407
17408if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 17409 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17410#define wxUSE_CHECKLISTBOX 1
17411EOF
17412
1e6feb95 17413 USES_CONTROLS=1
10f2d63a
VZ
17414 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17415fi
17416
17417if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 17418 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17419#define wxUSE_GAUGE 1
17420EOF
17421
1e6feb95 17422 USES_CONTROLS=1
10f2d63a
VZ
17423fi
17424
d6a55c4b
VZ
17425if test "$wxUSE_NEW_GRID" = "yes"; then
17426 wxUSE_GRID="yes"
698dcdb6 17427 cat >> confdefs.h <<\EOF
d6a55c4b 17428#define wxUSE_NEW_GRID 1
10f2d63a
VZ
17429EOF
17430
1e6feb95 17431 USES_CONTROLS=1
d6a55c4b 17432 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
17433fi
17434
d6a55c4b 17435if test "$wxUSE_GRID" = "yes"; then
698dcdb6 17436 cat >> confdefs.h <<\EOF
d6a55c4b 17437#define wxUSE_GRID 1
10f2d63a
VZ
17438EOF
17439
1e6feb95 17440 USES_CONTROLS=1
d6a55c4b 17441 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
17442fi
17443
17444if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17445 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17446#define wxUSE_IMAGLIST 1
17447EOF
17448
17449fi
17450
17451if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 17452 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17453#define wxUSE_LISTBOX 1
17454EOF
17455
1e6feb95 17456 USES_CONTROLS=1
10f2d63a
VZ
17457fi
17458
17459if test "$wxUSE_LISTCTRL" = "yes"; then
17460 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17461 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17462#define wxUSE_LISTCTRL 1
17463EOF
17464
1e6feb95 17465 USES_CONTROLS=1
10f2d63a
VZ
17466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17467 else
698dcdb6 17468 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17469 fi
17470fi
17471
17472if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 17473 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17474#define wxUSE_NOTEBOOK 1
17475EOF
17476
1e6feb95 17477 USES_CONTROLS=1
10f2d63a
VZ
17478 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17479fi
17480
24176f2c
GD
17481if test "$wxUSE_PROPSHEET" = "yes"; then
17482 cat >> confdefs.h <<\EOF
17483#define wxUSE_PROPSHEET 1
17484EOF
17485
17486 USES_CONTROLS=1
17487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17488fi
17489
10f2d63a 17490if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 17491 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17492#define wxUSE_RADIOBOX 1
17493EOF
17494
1e6feb95 17495 USES_CONTROLS=1
10f2d63a
VZ
17496fi
17497
17498if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 17499 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17500#define wxUSE_RADIOBTN 1
17501EOF
17502
1e6feb95 17503 USES_CONTROLS=1
10f2d63a
VZ
17504fi
17505
17506if test "$wxUSE_SASH" = "yes"; then
698dcdb6 17507 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17508#define wxUSE_SASH 1
17509EOF
17510
17511 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17512fi
17513
17514if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 17515 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17516#define wxUSE_SCROLLBAR 1
17517EOF
17518
1e6feb95 17519 USES_CONTROLS=1
741a9306 17520 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
17521fi
17522
17523if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 17524 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17525#define wxUSE_SLIDER 1
17526EOF
17527
1e6feb95 17528 USES_CONTROLS=1
10f2d63a
VZ
17529fi
17530
17531if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 17532 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17533#define wxUSE_SPINBTN 1
17534EOF
17535
1e6feb95 17536 USES_CONTROLS=1
10f2d63a
VZ
17537fi
17538
56cfaa52 17539if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 17540 cat >> confdefs.h <<\EOF
56cfaa52
RR
17541#define wxUSE_SPINCTRL 1
17542EOF
17543
1e6feb95 17544 USES_CONTROLS=1
56cfaa52
RR
17545fi
17546
10f2d63a 17547if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 17548 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17549#define wxUSE_SPLITTER 1
17550EOF
17551
17552 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17553fi
17554
17555if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 17556 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17557#define wxUSE_STATBMP 1
17558EOF
17559
1e6feb95 17560 USES_CONTROLS=1
10f2d63a
VZ
17561fi
17562
17563if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 17564 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17565#define wxUSE_STATBOX 1
17566EOF
17567
1e6feb95
VZ
17568 USES_CONTROLS=1
17569fi
17570
17571if test "$wxUSE_STATTEXT" = "yes"; then
17572 cat >> confdefs.h <<\EOF
17573#define wxUSE_STATTEXT 1
17574EOF
17575
17576 USES_CONTROLS=1
10f2d63a
VZ
17577fi
17578
17579if test "$wxUSE_STATLINE" = "yes"; then
17580 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 17581 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 17582 else
698dcdb6 17583 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17584#define wxUSE_STATLINE 1
17585EOF
17586
1e6feb95 17587 USES_CONTROLS=1
10f2d63a
VZ
17588 fi
17589fi
17590
17591if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 17592 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17593#define wxUSE_STATUSBAR 1
17594EOF
17595
1e6feb95 17596 USES_CONTROLS=1
698dcdb6 17597
2286341c 17598 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
17599fi
17600
17601if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 17602 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17603#define wxUSE_TAB_DIALOG 1
17604EOF
17605
17606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17607fi
17608
1e6feb95
VZ
17609if test "$wxUSE_TEXTCTRL" = "yes"; then
17610 cat >> confdefs.h <<\EOF
17611#define wxUSE_TEXTCTRL 1
17612EOF
17613
17614 USES_CONTROLS=1
17615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17616fi
17617
1db8dc4a 17618if test "$wxUSE_TOGGLEBTN" = "yes"; then
a45d7ab7
GD
17619 if test "$wxUSE_MAC" = 1; then
17620 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17621 wxUSE_TOGGLEBTN=no
17622 fi
17623
17624 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17625 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
17626#define wxUSE_TOGGLEBTN 1
17627EOF
17628
1e6feb95 17629 USES_CONTROLS=1
a45d7ab7 17630 fi
1db8dc4a
VZ
17631fi
17632
360d6699 17633if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 17634 cat >> confdefs.h <<\EOF
360d6699
VZ
17635#define wxUSE_TOOLBAR_SIMPLE 1
17636EOF
17637
17638 wxUSE_TOOLBAR="yes"
1e6feb95 17639 USES_CONTROLS=1
360d6699
VZ
17640fi
17641
10f2d63a 17642if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 17643 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17644#define wxUSE_TOOLBAR 1
17645EOF
17646
1e6feb95 17647 USES_CONTROLS=1
698dcdb6 17648
360d6699
VZ
17649 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17650 wxUSE_TOOLBAR_NATIVE="yes"
17651 fi
17652
1e6feb95
VZ
17653 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17654 cat >> confdefs.h <<\EOF
360d6699
VZ
17655#define wxUSE_TOOLBAR_NATIVE 1
17656EOF
17657
1e6feb95
VZ
17658 USES_CONTROLS=1
17659 fi
17660
17661 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
17662fi
17663
10f2d63a
VZ
17664if test "$wxUSE_TOOLTIPS" = "yes"; then
17665 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17666 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
17667 else
17668 if test "$wxUSE_WINE" = 1; then
698dcdb6 17669 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 17670 else
698dcdb6 17671 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17672#define wxUSE_TOOLTIPS 1
17673EOF
17674
17675 fi
17676 fi
17677fi
17678
17679if test "$wxUSE_TREECTRL" = "yes"; then
17680 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17681 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17682#define wxUSE_TREECTRL 1
17683EOF
17684
1e6feb95 17685 USES_CONTROLS=1
10f2d63a
VZ
17686 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17687 else
698dcdb6 17688 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17689 fi
17690fi
17691
9f41d601 17692if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65
GD
17693 if test "$wxUSE_MAC" = 1; then
17694 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17695 else
17696 cat >> confdefs.h <<\EOF
9f41d601
RR
17697#define wxUSE_POPUPWIN 1
17698EOF
17699
6abe4b65
GD
17700 USES_CONTROLS=1
17701 fi
9f41d601
RR
17702fi
17703
1e6feb95
VZ
17704if test "$USES_CONTROLS" = 1; then
17705 cat >> confdefs.h <<\EOF
17706#define wxUSE_CONTROLS 1
10f2d63a
VZ
17707EOF
17708
10f2d63a
VZ
17709fi
17710
1e6feb95 17711
24176f2c
GD
17712if test "$wxUSE_TREELAYOUT" = "yes"; then
17713 cat >> confdefs.h <<\EOF
17714#define wxUSE_TREELAYOUT 1
17715EOF
17716
17717 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17718fi
1e6feb95 17719
24fd6d87
VZ
17720if test "$wxUSE_DRAGIMAGE" = "yes"; then
17721 cat >> confdefs.h <<\EOF
17722#define wxUSE_DRAGIMAGE 1
17723EOF
17724
17725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17726fi
17727
1e6feb95 17728if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 17729 cat >> confdefs.h <<\EOF
1e6feb95 17730#define wxUSE_MENUS 1
10f2d63a
VZ
17731EOF
17732
1e6feb95 17733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
17734fi
17735
1e6feb95
VZ
17736if test "$wxUSE_METAFILE" = "yes"; then
17737 cat >> confdefs.h <<\EOF
17738#define wxUSE_METAFILE 1
10f2d63a
VZ
17739EOF
17740
10f2d63a
VZ
17741fi
17742
1e6feb95
VZ
17743if test "$wxUSE_MIMETYPE" = "yes"; then
17744 cat >> confdefs.h <<\EOF
17745#define wxUSE_MIMETYPE 1
10f2d63a
VZ
17746EOF
17747
10f2d63a
VZ
17748fi
17749
3e44f09d
VZ
17750if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17751 cat >> confdefs.h <<\EOF
17752#define wxUSE_SYSTEM_OPTIONS 1
17753EOF
17754
17755fi
17756
10f2d63a 17757if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 17758 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17759#define wxUSE_MINIFRAME 1
17760EOF
17761
17762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17763fi
17764
17765if test "$wxUSE_HTML" = "yes"; then
698dcdb6 17766 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17767#define wxUSE_HTML 1
17768EOF
17769
17770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17771 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17772fi
17773
17774if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 17775 cat >> confdefs.h <<\EOF
1e487827
VS
17776#define wxUSE_VALIDATORS 1
17777EOF
703e0a69 17778
698dcdb6
VZ
17779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17780fi
17781
17782if test "$wxUSE_IMAGE" = "yes" ; then
17783 cat >> confdefs.h <<\EOF
17784#define wxUSE_IMAGE 1
17785EOF
17786
17787fi
17788
17789if test "$wxUSE_GIF" = "yes" ; then
17790 cat >> confdefs.h <<\EOF
17791#define wxUSE_GIF 1
17792EOF
17793
17794fi
17795
17796if test "$wxUSE_PCX" = "yes" ; then
17797 cat >> confdefs.h <<\EOF
17798#define wxUSE_PCX 1
17799EOF
17800
17801fi
17802
17803if test "$wxUSE_PNM" = "yes" ; then
17804 cat >> confdefs.h <<\EOF
17805#define wxUSE_PNM 1
17806EOF
17807
17808fi
17809
17810if test "$wxUSE_XPM" = "yes" ; then
17811 cat >> confdefs.h <<\EOF
17812#define wxUSE_XPM 1
17813EOF
17814
17815fi
17816
17817
1e6feb95
VZ
17818if test "$wxUSE_CHOICEDLG" = "yes"; then
17819 cat >> confdefs.h <<\EOF
17820#define wxUSE_CHOICEDLG 1
17821EOF
17822
17823fi
17824
17825if test "$wxUSE_COLOURDLG" = "yes"; then
17826 cat >> confdefs.h <<\EOF
17827#define wxUSE_COLOURDLG 1
17828EOF
17829
17830fi
17831
17832if test "$wxUSE_FILEDLG" = "yes"; then
17833 cat >> confdefs.h <<\EOF
17834#define wxUSE_FILEDLG 1
17835EOF
17836
17837fi
17838
8db37e06
VZ
17839if test "$wxUSE_FINDREPLDLG" = "yes"; then
17840 cat >> confdefs.h <<\EOF
17841#define wxUSE_FINDREPLDLG 1
17842EOF
17843
17844fi
17845
1e6feb95
VZ
17846if test "$wxUSE_FONTDLG" = "yes"; then
17847 cat >> confdefs.h <<\EOF
17848#define wxUSE_FONTDLG 1
17849EOF
17850
17851fi
17852
17853if test "$wxUSE_DIRDLG" = "yes"; then
17854 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17855 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17856 else
17857 if test "$wxUSE_TREECTRL" != "yes"; then
17858 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17859 else
17860 cat >> confdefs.h <<\EOF
17861#define wxUSE_DIRDLG 1
17862EOF
17863
17864 fi
17865 fi
17866fi
17867
17868if test "$wxUSE_MSGDLG" = "yes"; then
17869 cat >> confdefs.h <<\EOF
17870#define wxUSE_MSGDLG 1
17871EOF
17872
17873fi
17874
17875if test "$wxUSE_NUMBERDLG" = "yes"; then
17876 cat >> confdefs.h <<\EOF
17877#define wxUSE_NUMBERDLG 1
17878EOF
17879
17880fi
17881
17882if test "$wxUSE_PROGRESSDLG" = "yes"; then
17883 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17884 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17885 else
17886 cat >> confdefs.h <<\EOF
17887#define wxUSE_PROGRESSDLG 1
17888EOF
17889
17890 fi
17891fi
17892
cbca9943
VZ
17893if test "$wxUSE_SPLASH" = "yes"; then
17894 cat >> confdefs.h <<\EOF
17895#define wxUSE_SPLASH 1
17896EOF
17897
17898fi
17899
1e6feb95
VZ
17900if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17901 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17902 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17903 else
17904 cat >> confdefs.h <<\EOF
17905#define wxUSE_STARTUP_TIPS 1
17906EOF
17907
17908 fi
17909fi
17910
17911if test "$wxUSE_TEXTDLG" = "yes"; then
17912 cat >> confdefs.h <<\EOF
17913#define wxUSE_TEXTDLG 1
17914EOF
17915
17916fi
17917
b1f5d087
VZ
17918if test "$wxUSE_WIZARDDLG" = "yes"; then
17919 cat >> confdefs.h <<\EOF
17920#define wxUSE_WIZARDDLG 1
17921EOF
17922
17923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17924fi
17925
1e6feb95 17926
698dcdb6
VZ
17927if test "$cross_compiling" = "yes"; then
17928 OSINFO="\"$host\""
17929else
17930 OSINFO=`uname -s -r -m`
17931 OSINFO="\"$OSINFO\""
17932fi
17933
17934cat >> confdefs.h <<EOF
17935#define WXWIN_OS_DESCRIPTION $OSINFO
17936EOF
17937
17938
17939
17940GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17941OPENGL_LIBS="$OPENGL_LINK"
17942
17943EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
f11bdd03 17944if test "$wxUSE_MAC" = 1 ; then
698dcdb6
VZ
17945 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17946fi
17947if test "$wxUSE_GUI" = "yes"; then
17948 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17949fi
17950
17951LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17952
3e44f09d
VZ
17953INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include \
17954$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
17955$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6
VZ
17956
17957if test "$wxUSE_GTK" = 1; then
17958 WXCONFIG_INCLUDE=""
17959else
17960 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17961fi
17962
17963if test "$GXX" = yes ; then
17964 CXXWARNINGS="-Wall"
17965 fi
17966EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17967
17968CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17969CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17970
17971LDFLAGS="$LDFLAGS $PROFILE"
17972
17973if test "$wxUSE_GUI" = "yes"; then
17974
24fd6d87 17975 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
24176f2c
GD
17976 drawing dynamic erase event exec font image \
17977 minimal richedit rotate widgets"
1e6feb95
VZ
17978
17979 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17981 fi
698dcdb6
VZ
17982
17983 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17984else
24176f2c 17985 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
17986fi
17987
17988SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
32832908
VZ
18056
18057
18058
18059
18060
18061
18062
2224580a 18063
dad6c0ea 18064
f6bcfd97
BP
18065
18066
18067
2f51a9ec
GD
18068
18069
18070
18071
18072
18073
f6bcfd97 18074
dad6c0ea 18075
caa2c79b 18076
3711412e 18077
1e6feb95
VZ
18078
18079
0f3f1cbc 18080
18dbb1f6 18081
10f2d63a
VZ
18082
18083
698dcdb6 18084echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
ab252f7b 18085echo "configure:18086: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
18086set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18087if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18088 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18089else
698dcdb6 18090 cat > conftestmake <<\EOF
10f2d63a
VZ
18091all:
18092 @echo 'ac_maketemp="${MAKE}"'
18093EOF
18094# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 18095eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
18096if test -n "$ac_maketemp"; then
18097 eval ac_cv_prog_make_${ac_make}_set=yes
18098else
18099 eval ac_cv_prog_make_${ac_make}_set=no
18100fi
698dcdb6 18101rm -f conftestmake
10f2d63a
VZ
18102fi
18103if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 18104 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
18105 SET_MAKE=
18106else
698dcdb6 18107 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18108 SET_MAKE="MAKE=${MAKE-make}"
18109fi
18110
698dcdb6 18111
00cf1208
RR
18112if test -d include; then
18113 if test -d include/wx; then
1e6feb95
VZ
18114 if test -d include/wx/${SETUPH_DIR}; then
18115 if test -f include/wx/${SETUPH_DIR}/setup.h; then
18116 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
00cf1208
RR
18117 fi
18118 fi
18119 fi
18120fi
665bbe97 18121
698dcdb6 18122
10f2d63a 18123
2224580a 18124if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 18125 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
18126 wx_cv_path_ifs=$PATH_IFS
18127 wx_cv_program_ext=$PROGRAM_EXT
18128 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 18129 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 18130 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 18131 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 18132 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 18133 subdirs="demos samples utils contrib"
2224580a
VZ
18134
18135fi
10f2d63a 18136
698dcdb6
VZ
18137trap '' 1 2 15
18138cat > confcache <<\EOF
10f2d63a
VZ
18139# This file is a shell script that caches the results of configure
18140# tests run on this system so they can be shared between configure
698dcdb6
VZ
18141# scripts and configure runs. It is not useful on other systems.
18142# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 18143#
698dcdb6
VZ
18144# By default, configure uses ./config.cache as the cache file,
18145# creating it if it does not exist already. You can give configure
18146# the --cache-file=FILE option to use a different cache file; that is
18147# what configure does when it calls configure scripts in
18148# subdirectories, so they share the cache.
18149# Giving --cache-file=/dev/null disables caching, for debugging configure.
18150# config.status only pays attention to the cache file if you give it the
18151# --recheck option to rerun configure.
10f2d63a 18152#
698dcdb6 18153EOF
10f2d63a
VZ
18154# The following way of writing the cache mishandles newlines in values,
18155# but we know of no workaround that is simple, portable, and efficient.
18156# So, don't put newlines in cache variables' values.
18157# Ultrix sh set writes to stderr and can't be redirected directly,
18158# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
18159(set) 2>&1 |
18160 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18161 *ac_space=\ *)
18162 # `set' does not quote correctly, so add quotes (double-quote substitution
18163 # turns \\\\ into \\, and sed turns \\ into \).
18164 sed -n \
18165 -e "s/'/'\\\\''/g" \
18166 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18167 ;;
18168 *)
18169 # `set' quotes correctly as required by POSIX, so do not add quotes.
18170 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18171 ;;
18172 esac >> confcache
18173if cmp -s $cache_file confcache; then
18174 :
18175else
10f2d63a 18176 if test -w $cache_file; then
698dcdb6
VZ
18177 echo "updating cache $cache_file"
18178 cat confcache > $cache_file
10f2d63a
VZ
18179 else
18180 echo "not updating unwritable cache $cache_file"
18181 fi
18182fi
18183rm -f confcache
18184
698dcdb6
VZ
18185trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18186
10f2d63a
VZ
18187test "x$prefix" = xNONE && prefix=$ac_default_prefix
18188# Let make expand exec_prefix.
18189test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18190
698dcdb6
VZ
18191# Any assignment to VPATH causes Sun make to only execute
18192# the first set of double-colon rules, so remove it if not needed.
18193# If there is a colon in the path, we need to keep it.
10f2d63a 18194if test "x$srcdir" = x.; then
698dcdb6 18195 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
18196fi
18197
698dcdb6
VZ
18198trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18199
10f2d63a
VZ
18200DEFS=-DHAVE_CONFIG_H
18201
698dcdb6 18202# Without the "./", some shells look in PATH for config.status.
10f2d63a 18203: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
18204
18205echo creating $CONFIG_STATUS
18206rm -f $CONFIG_STATUS
18207cat > $CONFIG_STATUS <<EOF
18208#! /bin/sh
10f2d63a
VZ
18209# Generated automatically by configure.
18210# Run this file to recreate the current configuration.
698dcdb6
VZ
18211# This directory was configured as follows,
18212# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18213#
18214# $0 $ac_configure_args
18215#
10f2d63a 18216# Compiler output produced by configure, useful for debugging
698dcdb6 18217# configure, is in ./config.log if it exists.
1e487827 18218
698dcdb6
VZ
18219ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18220for ac_option
10f2d63a 18221do
698dcdb6 18222 case "\$ac_option" in
10f2d63a 18223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
18224 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18225 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18226 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18227 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18228 exit 0 ;;
18229 -help | --help | --hel | --he | --h)
18230 echo "\$ac_cs_usage"; exit 0 ;;
18231 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
18232 esac
18233done
18234
698dcdb6
VZ
18235ac_given_srcdir=$srcdir
18236ac_given_INSTALL="$INSTALL"
703e0a69 18237
698dcdb6
VZ
18238trap 'rm -fr `echo "
18239 wx-config
18240 src/make.env
18241 src/makeprog.env
18242 src/makelib.env
18243 Makefile
18244 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 18245EOF
698dcdb6 18246cat >> $CONFIG_STATUS <<EOF
1e487827 18247
698dcdb6
VZ
18248# Protect against being on the right side of a sed subst in config.status.
18249sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18250 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18251$ac_vpsub
18252$extrasub
18253s%@SHELL@%$SHELL%g
18254s%@CFLAGS@%$CFLAGS%g
18255s%@CPPFLAGS@%$CPPFLAGS%g
18256s%@CXXFLAGS@%$CXXFLAGS%g
18257s%@FFLAGS@%$FFLAGS%g
18258s%@DEFS@%$DEFS%g
18259s%@LDFLAGS@%$LDFLAGS%g
18260s%@LIBS@%$LIBS%g
18261s%@exec_prefix@%$exec_prefix%g
18262s%@prefix@%$prefix%g
18263s%@program_transform_name@%$program_transform_name%g
18264s%@bindir@%$bindir%g
18265s%@sbindir@%$sbindir%g
18266s%@libexecdir@%$libexecdir%g
18267s%@datadir@%$datadir%g
18268s%@sysconfdir@%$sysconfdir%g
18269s%@sharedstatedir@%$sharedstatedir%g
18270s%@localstatedir@%$localstatedir%g
18271s%@libdir@%$libdir%g
18272s%@includedir@%$includedir%g
18273s%@oldincludedir@%$oldincludedir%g
18274s%@infodir@%$infodir%g
18275s%@mandir@%$mandir%g
18276s%@host@%$host%g
18277s%@host_alias@%$host_alias%g
18278s%@host_cpu@%$host_cpu%g
18279s%@host_vendor@%$host_vendor%g
18280s%@host_os@%$host_os%g
18281s%@target@%$target%g
18282s%@target_alias@%$target_alias%g
18283s%@target_cpu@%$target_cpu%g
18284s%@target_vendor@%$target_vendor%g
18285s%@target_os@%$target_os%g
18286s%@build@%$build%g
18287s%@build_alias@%$build_alias%g
18288s%@build_cpu@%$build_cpu%g
18289s%@build_vendor@%$build_vendor%g
18290s%@build_os@%$build_os%g
18291s%@CC@%$CC%g
18292s%@CPP@%$CPP%g
18293s%@CXX@%$CXX%g
18294s%@CXXCPP@%$CXXCPP%g
18295s%@RANLIB@%$RANLIB%g
18296s%@AR@%$AR%g
18297s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18298s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18299s%@INSTALL_DATA@%$INSTALL_DATA%g
18300s%@STRIP@%$STRIP%g
18301s%@YACC@%$YACC%g
18302s%@LEX@%$LEX%g
18303s%@LEXLIB@%$LEXLIB%g
18304s%@LN_S@%$LN_S%g
18305s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
18306s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18307s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 18308s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
18309s%@X_CFLAGS@%$X_CFLAGS%g
18310s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18311s%@X_LIBS@%$X_LIBS%g
18312s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18313s%@REZ@%$REZ%g
18314s%@DEREZ@%$DEREZ%g
18315s%@LEX_STEM@%$LEX_STEM%g
18316s%@PATH_IFS@%$PATH_IFS%g
18317s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18318s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18319s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18320s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
18321s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18322s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18323s%@WX_LIBRARY@%$WX_LIBRARY%g
18324s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18325s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18326s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18327s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
18328s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18329s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
18330s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18331s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18332s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
18333s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18334s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18335s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18336s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
18337s%@WX_ALL@%$WX_ALL%g
18338s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18339s%@SHARED_LD@%$SHARED_LD%g
18340s%@PIC_FLAG@%$PIC_FLAG%g
18341s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
18342s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18343s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18344s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
18345s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
18346s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18347s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18348s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18349s%@USE_GUI@%$USE_GUI%g
18350s%@AFMINSTALL@%$AFMINSTALL%g
1e6feb95 18351s%@SETUPH_DIR@%$SETUPH_DIR%g
698dcdb6
VZ
18352s%@TOOLKIT@%$TOOLKIT%g
18353s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
18354s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18355s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
18356s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
1e6feb95 18357s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
698dcdb6
VZ
18358s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18359s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18360s%@ALL_DEPFILES@%$ALL_DEPFILES%g
18361s%@GUIDIST@%$GUIDIST%g
18362s%@PORT_FILES@%$PORT_FILES%g
18363s%@DISTDIR@%$DISTDIR%g
18364s%@RPM_SPEC@%$RPM_SPEC%g
18365s%@RPM_FILES@%$RPM_FILES%g
18366s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
18367s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
18368s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
18369s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
18370s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18371s%@USER_SUBDIRS@%$USER_SUBDIRS%g
18372s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18373s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18374s%@EXTRADEFS@%$EXTRADEFS%g
18375s%@LD_LIBS@%$LD_LIBS%g
18dbb1f6 18376s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
698dcdb6
VZ
18377s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
18378s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
18379s%@RESPROGRAM@%$RESPROGRAM%g
18380s%@RESCOMP@%$RESCOMP%g
18381s%@RESFLAGS@%$RESFLAGS%g
18382s%@REZFLAGS@%$REZFLAGS%g
18383s%@DEREZFLAGS@%$DEREZFLAGS%g
18384s%@LIBWXMACRES@%$LIBWXMACRES%g
18385s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18386s%@DLLTOOL@%$DLLTOOL%g
18387s%@AS@%$AS%g
18388s%@NM@%$NM%g
18389s%@LD@%$LD%g
18390s%@MAKEINFO@%$MAKEINFO%g
18391s%@SET_MAKE@%$SET_MAKE%g
18392s%@subdirs@%$subdirs%g
1e487827 18393
1e487827 18394CEOF
1e487827
VS
18395EOF
18396
698dcdb6
VZ
18397cat >> $CONFIG_STATUS <<\EOF
18398
18399# Split the substitutions into bite-sized pieces for seds with
18400# small command number limits, like on Digital OSF/1 and HP-UX.
18401ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18402ac_file=1 # Number of current file.
18403ac_beg=1 # First line for current file.
18404ac_end=$ac_max_sed_cmds # Line after last line for current file.
18405ac_more_lines=:
18406ac_sed_cmds=""
18407while $ac_more_lines; do
18408 if test $ac_beg -gt 1; then
18409 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18410 else
18411 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18412 fi
18413 if test ! -s conftest.s$ac_file; then
18414 ac_more_lines=false
18415 rm -f conftest.s$ac_file
18416 else
18417 if test -z "$ac_sed_cmds"; then
18418 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 18419 else
698dcdb6 18420 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 18421 fi
698dcdb6
VZ
18422 ac_file=`expr $ac_file + 1`
18423 ac_beg=$ac_end
18424 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 18425 fi
698dcdb6
VZ
18426done
18427if test -z "$ac_sed_cmds"; then
18428 ac_sed_cmds=cat
18429fi
18430EOF
10f2d63a 18431
698dcdb6
VZ
18432cat >> $CONFIG_STATUS <<EOF
18433
18434CONFIG_FILES=\${CONFIG_FILES-"wx-config
18435 src/make.env
18436 src/makeprog.env
18437 src/makelib.env
18438 Makefile
18439 "}
10f2d63a 18440EOF
698dcdb6
VZ
18441cat >> $CONFIG_STATUS <<\EOF
18442for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 18443 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18444 case "$ac_file" in
18445 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18446 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18447 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18448 esac
18449
698dcdb6 18450 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 18451
698dcdb6
VZ
18452 # Remove last slash and all that follows it. Not all systems have dirname.
18453 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18454 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18455 # The file is in a subdirectory.
18456 test ! -d "$ac_dir" && mkdir "$ac_dir"
18457 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 18458 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 18459 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
18460 else
18461 ac_dir_suffix= ac_dots=
18462 fi
18463
698dcdb6
VZ
18464 case "$ac_given_srcdir" in
18465 .) srcdir=.
18466 if test -z "$ac_dots"; then top_srcdir=.
18467 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18468 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 18469 *) # Relative path.
698dcdb6
VZ
18470 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18471 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
18472 esac
18473
698dcdb6
VZ
18474 case "$ac_given_INSTALL" in
18475 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18476 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
18477 esac
18478
698dcdb6
VZ
18479 echo creating "$ac_file"
18480 rm -f "$ac_file"
18481 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18482 case "$ac_file" in
18483 *Makefile*) ac_comsub="1i\\
18484# $configure_input" ;;
18485 *) ac_comsub= ;;
18486 esac
10f2d63a 18487
698dcdb6
VZ
18488 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18489 sed -e "$ac_comsub
18490s%@configure_input@%$configure_input%g
18491s%@srcdir@%$srcdir%g
18492s%@top_srcdir@%$top_srcdir%g
18493s%@INSTALL@%$INSTALL%g
18494" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18495fi; done
18496rm -f conftest.s*
10f2d63a
VZ
18497
18498# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18499# NAME is the cpp macro being defined and VALUE is the value it is being given.
18500#
18501# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
18502ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18503ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18504ac_dC='\3'
18505ac_dD='%g'
18506# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18507ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18508ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 18509ac_uC=' '
698dcdb6
VZ
18510ac_uD='\4%g'
18511# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18512ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18513ac_eB='$%\1#\2define\3'
18514ac_eC=' '
18515ac_eD='%g'
10f2d63a 18516
698dcdb6
VZ
18517if test "${CONFIG_HEADERS+set}" != set; then
18518EOF
18519cat >> $CONFIG_STATUS <<EOF
18520 CONFIG_HEADERS="setup.h:setup.h.in"
18521EOF
18522cat >> $CONFIG_STATUS <<\EOF
18523fi
18524for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 18525 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18526 case "$ac_file" in
18527 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18528 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18529 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18530 esac
18531
698dcdb6
VZ
18532 echo creating $ac_file
18533
18534 rm -f conftest.frag conftest.in conftest.out
18535 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18536 cat $ac_file_inputs > conftest.in
18537
18538EOF
18539
18540# Transform confdefs.h into a sed script conftest.vals that substitutes
18541# the proper values into config.h.in to produce config.h. And first:
18542# Protect against being on the right side of a sed subst in config.status.
18543# Protect against being in an unquoted here document in config.status.
18544rm -f conftest.vals
18545cat > conftest.hdr <<\EOF
18546s/[\\&%]/\\&/g
18547s%[\\$`]%\\&%g
18548s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18549s%ac_d%ac_u%gp
18550s%ac_u%ac_e%gp
18551EOF
18552sed -n -f conftest.hdr confdefs.h > conftest.vals
18553rm -f conftest.hdr
10f2d63a
VZ
18554
18555# This sed command replaces #undef with comments. This is necessary, for
18556# example, in the case of _POSIX_SOURCE, which is predefined and required
18557# on some systems where configure will not decide to define it.
698dcdb6
VZ
18558cat >> conftest.vals <<\EOF
18559s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
18560EOF
18561
698dcdb6
VZ
18562# Break up conftest.vals because some shells have a limit on
18563# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
18564
18565rm -f conftest.tail
698dcdb6 18566while :
10f2d63a 18567do
698dcdb6
VZ
18568 ac_lines=`grep -c . conftest.vals`
18569 # grep -c gives empty output for an empty file on some AIX systems.
18570 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18571 # Write a limited-size here document to conftest.frag.
18572 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18573 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 18574 echo 'CEOF
698dcdb6
VZ
18575 sed -f conftest.frag conftest.in > conftest.out
18576 rm -f conftest.in
18577 mv conftest.out conftest.in
18578' >> $CONFIG_STATUS
18579 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18580 rm -f conftest.vals
18581 mv conftest.tail conftest.vals
10f2d63a 18582done
698dcdb6
VZ
18583rm -f conftest.vals
18584
18585cat >> $CONFIG_STATUS <<\EOF
18586 rm -f conftest.frag conftest.h
18587 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18588 cat conftest.in >> conftest.h
18589 rm -f conftest.in
18590 if cmp -s $ac_file conftest.h 2>/dev/null; then
18591 echo "$ac_file is unchanged"
18592 rm -f conftest.h
10f2d63a 18593 else
698dcdb6
VZ
18594 # Remove last slash and all that follows it. Not all systems have dirname.
18595 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 18596 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
18597 # The file is in a subdirectory.
18598 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 18599 fi
698dcdb6
VZ
18600 rm -f $ac_file
18601 mv conftest.h $ac_file
10f2d63a 18602 fi
698dcdb6
VZ
18603fi; done
18604
10f2d63a 18605EOF
698dcdb6 18606cat >> $CONFIG_STATUS <<EOF
10f2d63a 18607
1e6feb95 18608 SETUPH_DIR="${SETUPH_DIR}"
698dcdb6
VZ
18609 TOOLKIT_NAME="${TOOLKIT_NAME}"
18610 LN_S="${LN_S}"
18611
18612
18613EOF
18614cat >> $CONFIG_STATUS <<\EOF
10f2d63a 18615
6ef41520 18616 if test ! -f wx${TOOLKIT_NAME}-config; then
991a5759
VZ
18617 chmod +x wx-config
18618 mv wx-config wx${TOOLKIT_NAME}-config
18619 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
18620 fi
665bbe97 18621
698dcdb6 18622
00cf1208
RR
18623 if test ! -d lib; then
18624 mkdir lib
18625 fi
18626 if test ! -d lib/wx; then
18627 mkdir lib/wx
18628 fi
18629 if test ! -d lib/wx/include; then
18630 mkdir lib/wx/include
18631 fi
18632 if test ! -d lib/wx/include/wx; then
18633 mkdir lib/wx/include/wx
18634 fi
f6bcfd97
BP
18635 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
18636 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
18637 fi
18638 if test -f setup.h; then
066b00aa 18639 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 18640 fi
07eb77a6 18641
698dcdb6 18642
10f2d63a
VZ
18643 if test ! -d include; then
18644 mkdir include
18645 fi
18646 if test ! -d include/wx; then
18647 mkdir include/wx
18648 fi
1e6feb95
VZ
18649 if test ! -d include/wx/${SETUPH_DIR}; then
18650 mkdir include/wx/${SETUPH_DIR}
10f2d63a 18651 fi
afc31813 18652 if test -f setup.h; then
1e6feb95 18653 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
afc31813 18654 fi
665bbe97 18655
698dcdb6
VZ
18656
18657exit 0
10f2d63a
VZ
18658EOF
18659chmod +x $CONFIG_STATUS
698dcdb6
VZ
18660rm -fr confdefs* $ac_clean_files
18661test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 18662
2224580a
VZ
18663if test "$no_recursion" != yes; then
18664
18665 # Remove --cache-file and --srcdir arguments so they do not pile up.
18666 ac_sub_configure_args=
18667 ac_prev=
18668 for ac_arg in $ac_configure_args; do
18669 if test -n "$ac_prev"; then
18670 ac_prev=
18671 continue
18672 fi
698dcdb6 18673 case "$ac_arg" in
2224580a
VZ
18674 -cache-file | --cache-file | --cache-fil | --cache-fi \
18675 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18676 ac_prev=cache_file ;;
18677 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 18678 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
18679 ;;
18680 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18681 ac_prev=srcdir ;;
18682 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18683 ;;
18684 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18685 esac
18686 done
18687
698dcdb6 18688 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
18689
18690 # Do not complain, so a configure script can configure whichever
18691 # parts of a large source tree are present.
698dcdb6
VZ
18692 if test ! -d $srcdir/$ac_config_dir; then
18693 continue
18694 fi
18695
18696 echo configuring in $ac_config_dir
2224580a 18697
698dcdb6 18698 case "$srcdir" in
2224580a
VZ
18699 .) ;;
18700 *)
698dcdb6
VZ
18701 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18702 else
18703 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18704 fi
18705 ;;
2224580a
VZ
18706 esac
18707
18708 ac_popdir=`pwd`
698dcdb6 18709 cd $ac_config_dir
2224580a 18710
698dcdb6
VZ
18711 # A "../" for each directory in /$ac_config_dir.
18712 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 18713
698dcdb6 18714 case "$srcdir" in
2224580a
VZ
18715 .) # No --srcdir option. We are building in place.
18716 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
18717 /*) # Absolute path.
18718 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 18719 *) # Relative path.
698dcdb6 18720 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
18721 esac
18722
18723 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
18724 if test -f $ac_sub_srcdir/configure; then
18725 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
18726 elif test -f $ac_sub_srcdir/configure.in; then
18727 ac_sub_configure=$ac_configure
18728 else
698dcdb6 18729 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
18730 ac_sub_configure=
18731 fi
18732
18733 # The recursion is here.
18734 if test -n "$ac_sub_configure"; then
698dcdb6 18735
2224580a 18736 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
18737 case "$cache_file" in
18738 /*) ac_sub_cache_file=$cache_file ;;
2224580a 18739 *) # Relative path.
698dcdb6 18740 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 18741 esac
698dcdb6
VZ
18742 case "$ac_given_INSTALL" in
18743 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18744 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18745 esac
2224580a 18746
698dcdb6 18747 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 18748 # The eval makes quoting arguments work.
698dcdb6
VZ
18749 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18750 then :
18751 else
18752 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18753 fi
2224580a
VZ
18754 fi
18755
18756 cd $ac_popdir
18757 done
18758fi
18759
698dcdb6 18760