minor fixes:
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59 # Configure paths for GTK+
60 # Owen Taylor     1997-2001
61
62
63
64
65
66
67
68
69 # Configure paths for GTK+
70 # Owen Taylor     97-11-3
71
72
73
74 # Guess values for system-dependent variables and create Makefiles.
75 # Generated automatically using autoconf version 2.12 
76 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
77 #
78 # This configure script is free software; the Free Software Foundation
79 # gives unlimited permission to copy, distribute and modify it.
80
81 # Defaults:
82 ac_help=
83 ac_default_prefix=/usr/local
84 # Any additions from configure.in:
85 ac_help="$ac_help
86   --enable-gui            use GUI classes"
87 ac_help="$ac_help
88   --enable-universal      use wxWindows GUI controls instead of native ones"
89 ac_help="$ac_help
90   --with-gtk              use GTK+"
91 ac_help="$ac_help
92   --with-motif            use Motif/Lesstif"
93 ac_help="$ac_help
94   --with-mac              use Mac OS X"
95 ac_help="$ac_help
96   --with-wine             use WINE"
97 ac_help="$ac_help
98   --with-msw              use MS-Windows"
99 ac_help="$ac_help
100   --with-pm               use OS/2 Presentation Manager"
101 ac_help="$ac_help
102   --with-mgl              use SciTech MGL"
103 ac_help="$ac_help
104   --with-microwin         use MicroWindows"
105 ac_help="$ac_help
106   --with-x11              use X11"
107 ac_help="$ac_help
108   --enable-nanox          use NanoX"
109 ac_help="$ac_help
110   --enable-gtk2           use GTK+ 2.0 if available (EXPERIMENTAL)"
111 ac_help="$ac_help
112   --with-libpng           use libpng (PNG image format)"
113 ac_help="$ac_help
114   --with-libjpeg          use libjpeg (JPEG file format)"
115 ac_help="$ac_help
116   --with-libtiff          use libtiff (TIFF file format)"
117 ac_help="$ac_help
118   --with-opengl           use OpenGL (or Mesa)"
119 ac_help="$ac_help
120   --with-dmalloc          use dmalloc library (http://dmalloc.com/)"
121 ac_help="$ac_help
122   --with-regex            enable support for wxRegEx class"
123 ac_help="$ac_help
124   --with-zlib             use zlib for LZW compression"
125 ac_help="$ac_help
126   --with-odbc             use the IODBC and wxODBC classes"
127 ac_help="$ac_help
128   --enable-shared         create shared library code"
129 ac_help="$ac_help
130   --enable-soname         set the DT_SONAME field in ELF shared libraries"
131 ac_help="$ac_help
132   --enable-optimise       create optimised code"
133 ac_help="$ac_help
134   --enable-debug          same as debug_flag and debug_info"
135 ac_help="$ac_help
136   --enable-precomp        enable use of precompiled headers (Mac OS X)"
137 ac_help="$ac_help
138   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)"
139 ac_help="$ac_help
140   --enable-debug_info     create code with debugging information"
141 ac_help="$ac_help
142   --enable-debug_gdb      create code with extra GDB debugging information"
143 ac_help="$ac_help
144   --enable-debug_cntxt    use wxDebugContext"
145 ac_help="$ac_help
146   --enable-mem_tracing    create code with memory tracing"
147 ac_help="$ac_help
148   --enable-profile        create code with profiling information"
149 ac_help="$ac_help
150   --enable-no_rtti        create code without RTTI information"
151 ac_help="$ac_help
152   --enable-no_exceptions  create code without C++ exceptions handling"
153 ac_help="$ac_help
154   --enable-permissive     compile code disregarding strict ANSI"
155 ac_help="$ac_help
156   --enable-no_deps        create code without dependency information"
157 ac_help="$ac_help
158   --enable-compat20       enable wxWindows 2.0 compatibility"
159 ac_help="$ac_help
160   --disable-compat22      disable wxWindows 2.2 compatibility"
161 ac_help="$ac_help
162   --enable-rpath=DIR      output the rpath flag from wx-config"
163 ac_help="$ac_help
164   --enable-intl           use internationalization system"
165 ac_help="$ac_help
166   --enable-config         use wxConfig (and derived) classes"
167 ac_help="$ac_help
168   --enable-protocols      use wxProtocol and derived classes"
169 ac_help="$ac_help
170   --enable-ftp            use wxFTP (requires wxProtocol"
171 ac_help="$ac_help
172   --enable-http           use wxHTTP (requires wxProtocol"
173 ac_help="$ac_help
174   --enable-fileproto      use wxFileProto class (requires wxProtocol"
175 ac_help="$ac_help
176   --enable-sockets        use socket/network classes"
177 ac_help="$ac_help
178   --enable-ipc            use interprocess communication (wxSocket etc.)"
179 ac_help="$ac_help
180   --enable-cmdline        use wxCmdLineParser class"
181 ac_help="$ac_help
182   --enable-datetime       use wxDateTime class"
183 ac_help="$ac_help
184   --enable-timedate       use obsolete wxDate/wxTime classes"
185 ac_help="$ac_help
186   --enable-stopwatch      use wxStopWatch class"
187 ac_help="$ac_help
188   --enable-dialupman      use dialup network classes"
189 ac_help="$ac_help
190   --enable-apple_ieee     use the Apple IEEE codec"
191 ac_help="$ac_help
192   --enable-timer          use wxTimer class"
193 ac_help="$ac_help
194   --enable-wave           use wxWave class"
195 ac_help="$ac_help
196   --enable-fraction       use wxFraction class"
197 ac_help="$ac_help
198   --enable-dynlib         use wxLibrary class for DLL loading"
199 ac_help="$ac_help
200   --enable-dynamicloader  use (new) wxDynamicLibrary class"
201 ac_help="$ac_help
202   --enable-longlong       use wxLongLong class"
203 ac_help="$ac_help
204   --enable-geometry       use geometry class"
205 ac_help="$ac_help
206   --enable-log            use logging system"
207 ac_help="$ac_help
208   --enable-streams        use wxStream etc classes"
209 ac_help="$ac_help
210   --enable-file           use wxFile classes"
211 ac_help="$ac_help
212   --enable-ffile          use wxFFile classes"
213 ac_help="$ac_help
214   --enable-textbuf        use wxTextBuffer class"
215 ac_help="$ac_help
216   --enable-textfile       use wxTextFile class"
217 ac_help="$ac_help
218   --enable-fontmap        use font encodings conversion classes"
219 ac_help="$ac_help
220   --enable-unicode        compile wxString with Unicode support"
221 ac_help="$ac_help
222   --enable-mslu           use MS Layer for Unicode on Windows 9x (win32 only)"
223 ac_help="$ac_help
224   --enable-wxprintfv      use wxWindows implementation of vprintf()"
225 ac_help="$ac_help
226   --enable-std_iostreams  use standard C++ stream classes"
227 ac_help="$ac_help
228   --enable-filesystem     use virtual file systems classes"
229 ac_help="$ac_help
230   --enable-fs_inet        use virtual HTTP/FTP filesystems"
231 ac_help="$ac_help
232   --enable-fs_zip         use virtual ZIP filesystems"
233 ac_help="$ac_help
234   --enable-zipstream      use wxZipInputStream"
235 ac_help="$ac_help
236   --enable-catch_segvs    catch signals and pass them to wxApp::OnFatalException"
237 ac_help="$ac_help
238   --enable-snglinst       use wxSingleInstanceChecker class"
239 ac_help="$ac_help
240   --enable-mimetype       use wxMimeTypesManager"
241 ac_help="$ac_help
242   --enable-sysoptions     use wxSystemOptions"
243 ac_help="$ac_help
244   --enable-url            use wxURL class"
245 ac_help="$ac_help
246   --enable-protocol       use wxProtocol class"
247 ac_help="$ac_help
248   --enable-protocol-http  HTTP support in wxProtocol"
249 ac_help="$ac_help
250   --enable-protocol-ftp   FTP support in wxProtocol"
251 ac_help="$ac_help
252   --enable-protocol-file  FILE support in wxProtocol"
253 ac_help="$ac_help
254   --enable-threads        use threads"
255 ac_help="$ac_help
256   --enable-docview        use document view architecture"
257 ac_help="$ac_help
258   --enable-help           use help subsystem"
259 ac_help="$ac_help
260   --enable-mshtmlhelp     use MS HTML Help (win32)"
261 ac_help="$ac_help
262   --enable-html           use wxHTML sub-library"
263 ac_help="$ac_help
264   --enable-htmlhelp       use wxHTML-based help"
265 ac_help="$ac_help
266   --enable-constraints    use layout-constraints system"
267 ac_help="$ac_help
268   --enable-printarch      use printing architecture"
269 ac_help="$ac_help
270   --enable-mdi            use multiple document interface architecture"
271 ac_help="$ac_help
272   --enable-loggui         use standard GUI logger"
273 ac_help="$ac_help
274   --enable-logwin         use wxLogWindow"
275 ac_help="$ac_help
276   --enable-logdialog      use wxLogDialog"
277 ac_help="$ac_help
278   --enable-postscript     use wxPostscriptDC device context (default for gtk+)"
279 ac_help="$ac_help
280   --enable-prologio       use Prolog IO library"
281 ac_help="$ac_help
282   --enable-resources      use wxWindows resources"
283 ac_help="$ac_help
284   --enable-xresources     use X resources for save (default for gtk+)"
285 ac_help="$ac_help
286   --enable-clipboard      use wxClipboard classes"
287 ac_help="$ac_help
288   --enable-dnd            use Drag'n'Drop classes"
289 ac_help="$ac_help
290   --enable-metafile       use win32 metafiles"
291 ac_help="$ac_help
292   --enable-treelayout     use wxTreeLayout classes"
293 ac_help="$ac_help
294   --enable-controls       use all usual controls"
295 ac_help="$ac_help
296   --enable-accel          use accelerators"
297 ac_help="$ac_help
298   --enable-button         use wxButton class"
299 ac_help="$ac_help
300   --enable-bmpbutton      use wxBitmapButton class"
301 ac_help="$ac_help
302   --enable-calendar       use wxCalendarCtrl class"
303 ac_help="$ac_help
304   --enable-caret          use wxCaret class"
305 ac_help="$ac_help
306   --enable-checkbox       use wxCheckBox class"
307 ac_help="$ac_help
308   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class"
309 ac_help="$ac_help
310   --enable-choice         use wxChoice class"
311 ac_help="$ac_help
312   --enable-combobox       use wxComboBox classes"
313 ac_help="$ac_help
314   --enable-gauge          use wxGauge class"
315 ac_help="$ac_help
316   --enable-grid           use wxGrid class"
317 ac_help="$ac_help
318   --enable-newgrid        use new wxGrid class"
319 ac_help="$ac_help
320   --enable-imaglist       use wxImageList class"
321 ac_help="$ac_help
322   --enable-listbox        use wxListBox class"
323 ac_help="$ac_help
324   --enable-listctrl       use wxListCtrl class"
325 ac_help="$ac_help
326   --enable-notebook       use wxNotebook class"
327 ac_help="$ac_help
328   --enable-propsheet      use wxPropertySheet class"
329 ac_help="$ac_help
330   --enable-radiobox       use wxRadioBox class"
331 ac_help="$ac_help
332   --enable-radiobtn       use wxRadioButton class"
333 ac_help="$ac_help
334   --enable-sash           use wxSashWindow class"
335 ac_help="$ac_help
336   --enable-scrollbar      use wxScrollBar class and scrollable windows"
337 ac_help="$ac_help
338   --enable-slider         use wxSlider class"
339 ac_help="$ac_help
340   --enable-spinbtn        use wxSpinButton class"
341 ac_help="$ac_help
342   --enable-spinctrl       use wxSpinCtrl class"
343 ac_help="$ac_help
344   --enable-splitter       use wxSplitterWindow class"
345 ac_help="$ac_help
346   --enable-statbmp        use wxStaticBitmap class"
347 ac_help="$ac_help
348   --enable-statbox        use wxStaticBox class"
349 ac_help="$ac_help
350   --enable-statline       use wxStaticLine class"
351 ac_help="$ac_help
352   --enable-stattext       use wxStaticText class"
353 ac_help="$ac_help
354   --enable-statusbar      use wxStatusBar class"
355 ac_help="$ac_help
356   --enable-tabdialog      use wxTabControl class"
357 ac_help="$ac_help
358   --enable-textctrl       use wxTextCtrl class"
359 ac_help="$ac_help
360   --enable-togglebtn      use wxToggleButton class"
361 ac_help="$ac_help
362   --enable-toolbar        use wxToolBar class"
363 ac_help="$ac_help
364   --enable-tbarnative     use native wxToolBar class"
365 ac_help="$ac_help
366   --enable-tbarsmpl       use wxToolBarSimple class"
367 ac_help="$ac_help
368   --enable-treectrl       use wxTreeCtrl class"
369 ac_help="$ac_help
370   --enable-tipwindow      use wxTipWindow class"
371 ac_help="$ac_help
372   --enable-popupwin       use wxPopUpWindow class"
373 ac_help="$ac_help
374   --enable-commondlg      use all common dialogs"
375 ac_help="$ac_help
376   --enable-choicedlg      use wxChoiceDialog"
377 ac_help="$ac_help
378   --enable-coldlg         use wxColourDialog"
379 ac_help="$ac_help
380   --enable-filedlg        use wxFileDialog"
381 ac_help="$ac_help
382   --enable-finddlg        use wxFindReplaceDialog"
383 ac_help="$ac_help
384   --enable-fontdlg        use wxFontDialog"
385 ac_help="$ac_help
386   --enable-dirdlg         use wxDirDialog"
387 ac_help="$ac_help
388   --enable-msgdlg         use wxMessageDialog"
389 ac_help="$ac_help
390   --enable-numberdlg      use wxNumberEntryDialog"
391 ac_help="$ac_help
392   --enable-splash         use wxSplashScreen"
393 ac_help="$ac_help
394   --enable-textdlg        use wxTextDialog"
395 ac_help="$ac_help
396   --enable-tipdlg         use startup tips"
397 ac_help="$ac_help
398   --enable-progressdlg    use wxProgressDialog"
399 ac_help="$ac_help
400   --enable-wizarddlg      use wxWizard"
401 ac_help="$ac_help
402   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes"
403 ac_help="$ac_help
404   --enable-miniframe      use wxMiniFrame class"
405 ac_help="$ac_help
406   --enable-tooltips       use wxToolTip class"
407 ac_help="$ac_help
408   --enable-splines        use spline drawing code"
409 ac_help="$ac_help
410   --enable-validators     use wxValidator and derived classes"
411 ac_help="$ac_help
412   --enable-busyinfo       use wxBusyInfo"
413 ac_help="$ac_help
414   --enable-joystick       use wxJoystick (Linux only)"
415 ac_help="$ac_help
416   --enable-metafiles      use wxMetaFile (Windows only)"
417 ac_help="$ac_help
418   --enable-dragimage      use wxDragImage"
419 ac_help="$ac_help
420   --enable-palette        use wxPalette class"
421 ac_help="$ac_help
422   --enable-image          use wxImage class"
423 ac_help="$ac_help
424   --enable-gif            use gif images (GIF file format)"
425 ac_help="$ac_help
426   --enable-pcx            use pcx images (PCX file format)"
427 ac_help="$ac_help
428   --enable-iff            use iff images (IFF file format)"
429 ac_help="$ac_help
430   --enable-pnm            use pnm images (PNM file format)"
431 ac_help="$ac_help
432   --enable-xpm            use xpm images (XPM file format)"
433 ac_help="$ac_help
434   --enable-icocur         use Windows ICO and CUR formats"
435 ac_help="$ac_help
436   --disable-largefile     omit support for large files"
437 ac_help="$ac_help
438   --disable-gtktest       do not try to compile and run a test GTK+ program"
439 ac_help="$ac_help
440   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
441 ac_help="$ac_help
442   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
443 ac_help="$ac_help
444   --disable-gtktest       Do not try to compile and run a test GTK program"
445 ac_help="$ac_help
446   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
447 ac_help="$ac_help
448   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
449 ac_help="$ac_help
450   --disable-gtktest       Do not try to compile and run a test GTK program"
451 ac_help="$ac_help
452   --with-x                use the X Window System"
453 ac_help="$ac_help
454   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
455
456 # Initialize some variables set by options.
457 # The variables have the same names as the options, with
458 # dashes changed to underlines.
459 build=NONE
460 cache_file=./config.cache
461 exec_prefix=NONE
462 host=NONE
463 no_create=
464 nonopt=NONE
465 no_recursion=
466 prefix=NONE
467 program_prefix=NONE
468 program_suffix=NONE
469 program_transform_name=s,x,x,
470 silent=
471 site=
472 srcdir=
473 target=NONE
474 verbose=
475 x_includes=NONE
476 x_libraries=NONE
477 bindir='${exec_prefix}/bin'
478 sbindir='${exec_prefix}/sbin'
479 libexecdir='${exec_prefix}/libexec'
480 datadir='${prefix}/share'
481 sysconfdir='${prefix}/etc'
482 sharedstatedir='${prefix}/com'
483 localstatedir='${prefix}/var'
484 libdir='${exec_prefix}/lib'
485 includedir='${prefix}/include'
486 oldincludedir='/usr/include'
487 infodir='${prefix}/info'
488 mandir='${prefix}/man'
489
490 # Initialize some other variables.
491 subdirs=
492 MFLAGS= MAKEFLAGS=
493 # Maximum number of lines to put in a shell here document.
494 ac_max_here_lines=12
495
496 ac_prev=
497 for ac_option
498 do
499
500   # If the previous option needs an argument, assign it.
501   if test -n "$ac_prev"; then
502     eval "$ac_prev=\$ac_option"
503     ac_prev=
504     continue
505   fi
506
507   case "$ac_option" in
508   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
509   *) ac_optarg= ;;
510   esac
511
512   # Accept the important Cygnus configure options, so we can diagnose typos.
513
514   case "$ac_option" in
515
516   -bindir | --bindir | --bindi | --bind | --bin | --bi)
517     ac_prev=bindir ;;
518   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
519     bindir="$ac_optarg" ;;
520
521   -build | --build | --buil | --bui | --bu)
522     ac_prev=build ;;
523   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
524     build="$ac_optarg" ;;
525
526   -cache-file | --cache-file | --cache-fil | --cache-fi \
527   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
528     ac_prev=cache_file ;;
529   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
530   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
531     cache_file="$ac_optarg" ;;
532
533   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
534     ac_prev=datadir ;;
535   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
536   | --da=*)
537     datadir="$ac_optarg" ;;
538
539   -disable-* | --disable-*)
540     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
541     # Reject names that are not valid shell variable names.
542     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
543       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
544     fi
545     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
546     eval "enable_${ac_feature}=no" ;;
547
548   -enable-* | --enable-*)
549     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
550     # Reject names that are not valid shell variable names.
551     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
552       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
553     fi
554     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
555     case "$ac_option" in
556       *=*) ;;
557       *) ac_optarg=yes ;;
558     esac
559     eval "enable_${ac_feature}='$ac_optarg'" ;;
560
561   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
562   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
563   | --exec | --exe | --ex)
564     ac_prev=exec_prefix ;;
565   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
566   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
567   | --exec=* | --exe=* | --ex=*)
568     exec_prefix="$ac_optarg" ;;
569
570   -gas | --gas | --ga | --g)
571     # Obsolete; use --with-gas.
572     with_gas=yes ;;
573
574   -help | --help | --hel | --he)
575     # Omit some internal or obsolete options to make the list less imposing.
576     # This message is too long to be a string in the A/UX 3.1 sh.
577     cat << EOF
578 Usage: configure [options] [host]
579 Options: [defaults in brackets after descriptions]
580 Configuration:
581   --cache-file=FILE       cache test results in FILE
582   --help                  print this message
583   --no-create             do not create output files
584   --quiet, --silent       do not print \`checking...' messages
585   --version               print the version of autoconf that created configure
586 Directory and file names:
587   --prefix=PREFIX         install architecture-independent files in PREFIX
588                           [$ac_default_prefix]
589   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
590                           [same as prefix]
591   --bindir=DIR            user executables in DIR [EPREFIX/bin]
592   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
593   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
594   --datadir=DIR           read-only architecture-independent data in DIR
595                           [PREFIX/share]
596   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
597   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
598                           [PREFIX/com]
599   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
600   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
601   --includedir=DIR        C header files in DIR [PREFIX/include]
602   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
603   --infodir=DIR           info documentation in DIR [PREFIX/info]
604   --mandir=DIR            man documentation in DIR [PREFIX/man]
605   --srcdir=DIR            find the sources in DIR [configure dir or ..]
606   --program-prefix=PREFIX prepend PREFIX to installed program names
607   --program-suffix=SUFFIX append SUFFIX to installed program names
608   --program-transform-name=PROGRAM
609                           run sed PROGRAM on installed program names
610 EOF
611     cat << EOF
612 Host type:
613   --build=BUILD           configure for building on BUILD [BUILD=HOST]
614   --host=HOST             configure for HOST [guessed]
615   --target=TARGET         configure for TARGET [TARGET=HOST]
616 Features and packages:
617   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
618   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
619   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
620   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
621   --x-includes=DIR        X include files are in DIR
622   --x-libraries=DIR       X library files are in DIR
623 EOF
624     if test -n "$ac_help"; then
625       echo "--enable and --with options recognized:$ac_help"
626     fi
627     exit 0 ;;
628
629   -host | --host | --hos | --ho)
630     ac_prev=host ;;
631   -host=* | --host=* | --hos=* | --ho=*)
632     host="$ac_optarg" ;;
633
634   -includedir | --includedir | --includedi | --included | --include \
635   | --includ | --inclu | --incl | --inc)
636     ac_prev=includedir ;;
637   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
638   | --includ=* | --inclu=* | --incl=* | --inc=*)
639     includedir="$ac_optarg" ;;
640
641   -infodir | --infodir | --infodi | --infod | --info | --inf)
642     ac_prev=infodir ;;
643   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
644     infodir="$ac_optarg" ;;
645
646   -libdir | --libdir | --libdi | --libd)
647     ac_prev=libdir ;;
648   -libdir=* | --libdir=* | --libdi=* | --libd=*)
649     libdir="$ac_optarg" ;;
650
651   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
652   | --libexe | --libex | --libe)
653     ac_prev=libexecdir ;;
654   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
655   | --libexe=* | --libex=* | --libe=*)
656     libexecdir="$ac_optarg" ;;
657
658   -localstatedir | --localstatedir | --localstatedi | --localstated \
659   | --localstate | --localstat | --localsta | --localst \
660   | --locals | --local | --loca | --loc | --lo)
661     ac_prev=localstatedir ;;
662   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
663   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
664   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
665     localstatedir="$ac_optarg" ;;
666
667   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
668     ac_prev=mandir ;;
669   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
670     mandir="$ac_optarg" ;;
671
672   -nfp | --nfp | --nf)
673     # Obsolete; use --without-fp.
674     with_fp=no ;;
675
676   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
677   | --no-cr | --no-c)
678     no_create=yes ;;
679
680   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
681   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
682     no_recursion=yes ;;
683
684   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
685   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
686   | --oldin | --oldi | --old | --ol | --o)
687     ac_prev=oldincludedir ;;
688   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
689   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
690   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
691     oldincludedir="$ac_optarg" ;;
692
693   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
694     ac_prev=prefix ;;
695   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
696     prefix="$ac_optarg" ;;
697
698   -program-prefix | --program-prefix | --program-prefi | --program-pref \
699   | --program-pre | --program-pr | --program-p)
700     ac_prev=program_prefix ;;
701   -program-prefix=* | --program-prefix=* | --program-prefi=* \
702   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
703     program_prefix="$ac_optarg" ;;
704
705   -program-suffix | --program-suffix | --program-suffi | --program-suff \
706   | --program-suf | --program-su | --program-s)
707     ac_prev=program_suffix ;;
708   -program-suffix=* | --program-suffix=* | --program-suffi=* \
709   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
710     program_suffix="$ac_optarg" ;;
711
712   -program-transform-name | --program-transform-name \
713   | --program-transform-nam | --program-transform-na \
714   | --program-transform-n | --program-transform- \
715   | --program-transform | --program-transfor \
716   | --program-transfo | --program-transf \
717   | --program-trans | --program-tran \
718   | --progr-tra | --program-tr | --program-t)
719     ac_prev=program_transform_name ;;
720   -program-transform-name=* | --program-transform-name=* \
721   | --program-transform-nam=* | --program-transform-na=* \
722   | --program-transform-n=* | --program-transform-=* \
723   | --program-transform=* | --program-transfor=* \
724   | --program-transfo=* | --program-transf=* \
725   | --program-trans=* | --program-tran=* \
726   | --progr-tra=* | --program-tr=* | --program-t=*)
727     program_transform_name="$ac_optarg" ;;
728
729   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
730   | -silent | --silent | --silen | --sile | --sil)
731     silent=yes ;;
732
733   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
734     ac_prev=sbindir ;;
735   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
736   | --sbi=* | --sb=*)
737     sbindir="$ac_optarg" ;;
738
739   -sharedstatedir | --sharedstatedir | --sharedstatedi \
740   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
741   | --sharedst | --shareds | --shared | --share | --shar \
742   | --sha | --sh)
743     ac_prev=sharedstatedir ;;
744   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
745   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
746   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
747   | --sha=* | --sh=*)
748     sharedstatedir="$ac_optarg" ;;
749
750   -site | --site | --sit)
751     ac_prev=site ;;
752   -site=* | --site=* | --sit=*)
753     site="$ac_optarg" ;;
754
755   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
756     ac_prev=srcdir ;;
757   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
758     srcdir="$ac_optarg" ;;
759
760   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
761   | --syscon | --sysco | --sysc | --sys | --sy)
762     ac_prev=sysconfdir ;;
763   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
764   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
765     sysconfdir="$ac_optarg" ;;
766
767   -target | --target | --targe | --targ | --tar | --ta | --t)
768     ac_prev=target ;;
769   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
770     target="$ac_optarg" ;;
771
772   -v | -verbose | --verbose | --verbos | --verbo | --verb)
773     verbose=yes ;;
774
775   -version | --version | --versio | --versi | --vers)
776     echo "configure generated by autoconf version 2.12"
777     exit 0 ;;
778
779   -with-* | --with-*)
780     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
781     # Reject names that are not valid shell variable names.
782     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
783       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
784     fi
785     ac_package=`echo $ac_package| sed 's/-/_/g'`
786     case "$ac_option" in
787       *=*) ;;
788       *) ac_optarg=yes ;;
789     esac
790     eval "with_${ac_package}='$ac_optarg'" ;;
791
792   -without-* | --without-*)
793     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
794     # Reject names that are not valid shell variable names.
795     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
796       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
797     fi
798     ac_package=`echo $ac_package| sed 's/-/_/g'`
799     eval "with_${ac_package}=no" ;;
800
801   --x)
802     # Obsolete; use --with-x.
803     with_x=yes ;;
804
805   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
806   | --x-incl | --x-inc | --x-in | --x-i)
807     ac_prev=x_includes ;;
808   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
809   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
810     x_includes="$ac_optarg" ;;
811
812   -x-libraries | --x-libraries | --x-librarie | --x-librari \
813   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
814     ac_prev=x_libraries ;;
815   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
816   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
817     x_libraries="$ac_optarg" ;;
818
819   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
820     ;;
821
822   *)
823     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
824       echo "configure: warning: $ac_option: invalid host type" 1>&2
825     fi
826     if test "x$nonopt" != xNONE; then
827       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
828     fi
829     nonopt="$ac_option"
830     ;;
831
832   esac
833 done
834
835 if test -n "$ac_prev"; then
836   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
837 fi
838
839 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
840
841 # File descriptor usage:
842 # 0 standard input
843 # 1 file creation
844 # 2 errors and warnings
845 # 3 some systems may open it to /dev/tty
846 # 4 used on the Kubota Titan
847 # 6 checking for... messages and results
848 # 5 compiler messages saved in config.log
849 if test "$silent" = yes; then
850   exec 6>/dev/null
851 else
852   exec 6>&1
853 fi
854 exec 5>./config.log
855
856 echo "\
857 This file contains any messages produced by compilers while
858 running configure, to aid debugging if configure makes a mistake.
859 " 1>&5
860
861 # Strip out --no-create and --no-recursion so they do not pile up.
862 # Also quote any args containing shell metacharacters.
863 ac_configure_args=
864 for ac_arg
865 do
866   case "$ac_arg" in
867   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
868   | --no-cr | --no-c) ;;
869   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
870   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
871   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
872   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
873   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
874   esac
875 done
876
877 # NLS nuisances.
878 # Only set these to C if already set.  These must not be set unconditionally
879 # because not all systems understand e.g. LANG=C (notably SCO).
880 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
881 # Non-C LC_CTYPE values break the ctype check.
882 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
883 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
884 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
885 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
886
887 # confdefs.h avoids OS command line length limits that DEFS can exceed.
888 rm -rf conftest* confdefs.h
889 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
890 echo > confdefs.h
891
892 # A filename unique to this package, relative to the directory that
893 # configure is in, which we can look for to find out if srcdir is correct.
894 ac_unique_file=wx-config.in
895
896 # Find the source files, if location was not specified.
897 if test -z "$srcdir"; then
898   ac_srcdir_defaulted=yes
899   # Try the directory containing this script, then its parent.
900   ac_prog=$0
901   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
902   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
903   srcdir=$ac_confdir
904   if test ! -r $srcdir/$ac_unique_file; then
905     srcdir=..
906   fi
907 else
908   ac_srcdir_defaulted=no
909 fi
910 if test ! -r $srcdir/$ac_unique_file; then
911   if test "$ac_srcdir_defaulted" = yes; then
912     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
913   else
914     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
915   fi
916 fi
917 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
918
919 # Prefer explicitly selected file to automatically selected ones.
920 if test -z "$CONFIG_SITE"; then
921   if test "x$prefix" != xNONE; then
922     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
923   else
924     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
925   fi
926 fi
927 for ac_site_file in $CONFIG_SITE; do
928   if test -r "$ac_site_file"; then
929     echo "loading site script $ac_site_file"
930     . "$ac_site_file"
931   fi
932 done
933
934 if test -r "$cache_file"; then
935   echo "loading cache $cache_file"
936   . $cache_file
937 else
938   echo "creating cache $cache_file"
939   > $cache_file
940 fi
941
942 ac_ext=c
943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
944 ac_cpp='$CPP $CPPFLAGS'
945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
946 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
947 cross_compiling=$ac_cv_prog_cc_cross
948
949 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
950   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
951   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
952     ac_n= ac_c='
953 ' ac_t='        '
954   else
955     ac_n=-n ac_c= ac_t=
956   fi
957 else
958   ac_n= ac_c='\c' ac_t=
959 fi
960
961
962
963 ac_aux_dir=
964 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
965   if test -f $ac_dir/install-sh; then
966     ac_aux_dir=$ac_dir
967     ac_install_sh="$ac_aux_dir/install-sh -c"
968     break
969   elif test -f $ac_dir/install.sh; then
970     ac_aux_dir=$ac_dir
971     ac_install_sh="$ac_aux_dir/install.sh -c"
972     break
973   fi
974 done
975 if test -z "$ac_aux_dir"; then
976   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
977 fi
978 ac_config_guess=$ac_aux_dir/config.guess
979 ac_config_sub=$ac_aux_dir/config.sub
980 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
981
982
983 # Do some error checking and defaulting for the host and target type.
984 # The inputs are:
985 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
986 #
987 # The rules are:
988 # 1. You are not allowed to specify --host, --target, and nonopt at the
989 #    same time.
990 # 2. Host defaults to nonopt.
991 # 3. If nonopt is not specified, then host defaults to the current host,
992 #    as determined by config.guess.
993 # 4. Target and build default to nonopt.
994 # 5. If nonopt is not specified, then target and build default to host.
995
996 # The aliases save the names the user supplied, while $host etc.
997 # will get canonicalized.
998 case $host---$target---$nonopt in
999 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1000 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1001 esac
1002
1003
1004 # Make sure we can run config.sub.
1005 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1006 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1007 fi
1008
1009 echo $ac_n "checking host system type""... $ac_c" 1>&6
1010 echo "configure:1011: checking host system type" >&5
1011
1012 host_alias=$host
1013 case "$host_alias" in
1014 NONE)
1015   case $nonopt in
1016   NONE)
1017     if host_alias=`$ac_config_guess`; then :
1018     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1019     fi ;;
1020   *) host_alias=$nonopt ;;
1021   esac ;;
1022 esac
1023
1024 host=`$ac_config_sub $host_alias`
1025 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1026 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1027 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1028 echo "$ac_t""$host" 1>&6
1029
1030 echo $ac_n "checking target system type""... $ac_c" 1>&6
1031 echo "configure:1032: checking target system type" >&5
1032
1033 target_alias=$target
1034 case "$target_alias" in
1035 NONE)
1036   case $nonopt in
1037   NONE) target_alias=$host_alias ;;
1038   *) target_alias=$nonopt ;;
1039   esac ;;
1040 esac
1041
1042 target=`$ac_config_sub $target_alias`
1043 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1044 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1045 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1046 echo "$ac_t""$target" 1>&6
1047
1048 echo $ac_n "checking build system type""... $ac_c" 1>&6
1049 echo "configure:1050: checking build system type" >&5
1050
1051 build_alias=$build
1052 case "$build_alias" in
1053 NONE)
1054   case $nonopt in
1055   NONE) build_alias=$host_alias ;;
1056   *) build_alias=$nonopt ;;
1057   esac ;;
1058 esac
1059
1060 build=`$ac_config_sub $build_alias`
1061 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1062 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1063 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1064 echo "$ac_t""$build" 1>&6
1065
1066 test "$host_alias" != "$target_alias" &&
1067   test "$program_prefix$program_suffix$program_transform_name" = \
1068     NONENONEs,x,x, &&
1069   program_prefix=${target_alias}-
1070
1071
1072
1073 WX_MAJOR_VERSION_NUMBER=2
1074 WX_MINOR_VERSION_NUMBER=3
1075 WX_RELEASE_NUMBER=3
1076
1077 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1078 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1079
1080 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1081
1082 WX_CURRENT=2
1083 WX_REVISION=0
1084 WX_AGE=0
1085
1086
1087
1088 USE_UNIX=1
1089 USE_WIN32=0
1090 USE_DOS=0
1091 USE_BEOS=0
1092 USE_MAC=0
1093
1094 USE_LINUX=
1095 USE_SGI=
1096 USE_HPUX=
1097 USE_SYSV=
1098 USE_SVR4=
1099 USE_AIX=
1100 USE_SUN=
1101 USE_SOLARIS=
1102 USE_SUNOS=
1103 USE_ALPHA=
1104 USE_OSF=
1105 USE_BSD=
1106 USE_DARWIN=
1107 USE_FREEBSD=
1108 USE_OPENBSD=
1109 USE_NETBSD=
1110 USE_VMS=
1111 USE_ULTRIX=
1112 USE_DATA_GENERAL=
1113
1114 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1115
1116 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1117
1118 DEFAULT_wxUSE_GTK=0
1119 DEFAULT_wxUSE_MAC=0
1120 DEFAULT_wxUSE_MGL=0
1121 DEFAULT_wxUSE_MICROWIN=0
1122 DEFAULT_wxUSE_MOTIF=0
1123 DEFAULT_wxUSE_MSW=0
1124 DEFAULT_wxUSE_PM=0
1125 DEFAULT_wxUSE_WINE=0
1126 DEFAULT_wxUSE_X11=0
1127
1128 DEFAULT_DEFAULT_wxUSE_GTK=0
1129 DEFAULT_DEFAULT_wxUSE_MAC=0
1130 DEFAULT_DEFAULT_wxUSE_MGL=0
1131 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1132 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1133 DEFAULT_DEFAULT_wxUSE_MSW=0
1134 DEFAULT_DEFAULT_wxUSE_PM=0
1135 DEFAULT_DEFAULT_wxUSE_WINE=0
1136 DEFAULT_DEFAULT_wxUSE_X11=0
1137
1138 PROGRAM_EXT=
1139 SO_SUFFIX=so
1140
1141 case "${host}" in
1142   *-hp-hpux* )
1143     USE_HPUX=1
1144     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1145     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1146     SO_SUFFIX=sl
1147     cat >> confdefs.h <<\EOF
1148 #define __HPUX__ 1
1149 EOF
1150
1151   ;;
1152   *-*-linux* )
1153     USE_LINUX=1
1154     cat >> confdefs.h <<\EOF
1155 #define __LINUX__ 1
1156 EOF
1157
1158     TMP=`uname -m`
1159     if test "x$TMP" = "xalpha"; then
1160       USE_ALPHA=1
1161       cat >> confdefs.h <<\EOF
1162 #define __ALPHA__ 1
1163 EOF
1164
1165     fi
1166     DEFAULT_DEFAULT_wxUSE_GTK=1
1167   ;;
1168   *-*-irix5* | *-*-irix6* )
1169     USE_SGI=1
1170     USE_SVR4=1
1171     cat >> confdefs.h <<\EOF
1172 #define __SGI__ 1
1173 EOF
1174
1175     cat >> confdefs.h <<\EOF
1176 #define __SVR4__ 1
1177 EOF
1178
1179     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1180   ;;
1181   *-*-solaris2* )
1182     USE_SUN=1
1183     USE_SOLARIS=1
1184     USE_SVR4=1
1185     cat >> confdefs.h <<\EOF
1186 #define __SUN__ 1
1187 EOF
1188
1189     cat >> confdefs.h <<\EOF
1190 #define __SOLARIS__ 1
1191 EOF
1192
1193     cat >> confdefs.h <<\EOF
1194 #define __SVR4__ 1
1195 EOF
1196
1197     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1198     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1199   ;;
1200   *-*-sunos4* )
1201     USE_SUN=1
1202     USE_SUNOS=1
1203     USE_BSD=1
1204     cat >> confdefs.h <<\EOF
1205 #define __SUN__ 1
1206 EOF
1207
1208     cat >> confdefs.h <<\EOF
1209 #define __SUNOS__ 1
1210 EOF
1211
1212     cat >> confdefs.h <<\EOF
1213 #define __BSD__ 1
1214 EOF
1215
1216     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1217   ;;
1218   *-*-freebsd*)
1219     USE_BSD=1
1220     USE_FREEBSD=1
1221     cat >> confdefs.h <<\EOF
1222 #define __FREEBSD__ 1
1223 EOF
1224
1225     cat >> confdefs.h <<\EOF
1226 #define __BSD__ 1
1227 EOF
1228
1229     DEFAULT_DEFAULT_wxUSE_GTK=1
1230   ;;
1231   *-*-openbsd*)
1232     USE_BSD=1
1233     USE_OPENBSD=1
1234     cat >> confdefs.h <<\EOF
1235 #define __FREEBSD__ 1
1236 EOF
1237
1238     cat >> confdefs.h <<\EOF
1239 #define __OPENBSD__ 1
1240 EOF
1241
1242     DEFAULT_DEFAULT_wxUSE_GTK=1
1243   ;;
1244   *-*-netbsd*)
1245     USE_BSD=1
1246     USE_NETBSD=1
1247     cat >> confdefs.h <<\EOF
1248 #define __FREEBSD__ 1
1249 EOF
1250
1251     cat >> confdefs.h <<\EOF
1252 #define __NETBSD__ 1
1253 EOF
1254
1255     DEFAULT_DEFAULT_wxUSE_GTK=1
1256   ;;
1257   *-*-osf* )
1258     USE_ALPHA=1
1259     USE_OSF=1
1260     cat >> confdefs.h <<\EOF
1261 #define __ALPHA__ 1
1262 EOF
1263
1264     cat >> confdefs.h <<\EOF
1265 #define __OSF__ 1
1266 EOF
1267
1268     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1269     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1270   ;;
1271   *-*-dgux5* )
1272     USE_ALPHA=1
1273     USE_SVR4=1
1274     cat >> confdefs.h <<\EOF
1275 #define __ALPHA__ 1
1276 EOF
1277
1278     cat >> confdefs.h <<\EOF
1279 #define __SVR4__ 1
1280 EOF
1281
1282     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1283   ;;
1284   *-*-sysv5* )
1285     USE_SYSV=1
1286     USE_SVR4=1
1287     cat >> confdefs.h <<\EOF
1288 #define __SYSV__ 1
1289 EOF
1290
1291     cat >> confdefs.h <<\EOF
1292 #define __SVR4__ 1
1293 EOF
1294
1295     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1296   ;;
1297   *-*-aix* )
1298     USE_AIX=1
1299     USE_SYSV=1
1300     USE_SVR4=1
1301             SO_SUFFIX=a
1302     cat >> confdefs.h <<\EOF
1303 #define __AIX__ 1
1304 EOF
1305
1306     cat >> confdefs.h <<\EOF
1307 #define __SYSV__ 1
1308 EOF
1309
1310     cat >> confdefs.h <<\EOF
1311 #define __SVR4__ 1
1312 EOF
1313
1314     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1315   ;;
1316
1317   *-*-cygwin* | *-*-mingw32* )
1318                 SO_SUFFIX=dll
1319     PROGRAM_EXT=".exe"
1320     RESCOMP=windres
1321     DEFAULT_DEFAULT_wxUSE_MSW=1
1322   ;;
1323
1324   *-pc-msdosdjgpp )
1325     USE_UNIX=0
1326     USE_DOS=1
1327     cat >> confdefs.h <<\EOF
1328 #define __DOS__ 1
1329 EOF
1330
1331     PROGRAM_EXT=".exe"
1332     DEFAULT_DEFAULT_wxUSE_MGL=1
1333         LIBS="$LIBS -lstdc++"
1334   ;;
1335
1336   *-pc-os2_emx | *-pc-os2-emx )
1337     cat >> confdefs.h <<\EOF
1338 #define __EMX__ 1
1339 EOF
1340
1341     PROGRAM_EXT=".exe"
1342     DEFAULT_DEFAULT_wxUSE_PM=1
1343     LIBS="$LIBS -lstdcpp"
1344   ;;
1345
1346   powerpc-*-darwin* )
1347         USE_BSD=1
1348     USE_DARWIN=1
1349     SO_SUFFIX=dylib
1350     cat >> confdefs.h <<\EOF
1351 #define __BSD__ 1
1352 EOF
1353
1354     cat >> confdefs.h <<\EOF
1355 #define __DARWIN__ 1
1356 EOF
1357
1358     cat >> confdefs.h <<\EOF
1359 #define __POWERPC__ 1
1360 EOF
1361
1362     DEFAULT_DEFAULT_wxUSE_MAC=1
1363   ;;
1364
1365   *-*-beos* )
1366         USE_BEOS=1
1367     cat >> confdefs.h <<\EOF
1368 #define __BEOS__ 1
1369 EOF
1370
1371   ;;
1372
1373   *)
1374     { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1375 esac
1376
1377
1378
1379
1380           wx_arg_cache_file="configarg.cache"
1381           echo "loading argument cache $wx_arg_cache_file"
1382           rm -f ${wx_arg_cache_file}.tmp
1383           touch ${wx_arg_cache_file}.tmp
1384           touch ${wx_arg_cache_file}
1385         
1386
1387 DEBUG_CONFIGURE=0
1388 if test $DEBUG_CONFIGURE = 1; then
1389   DEFAULT_wxUSE_UNIVERSAL=no
1390
1391   DEFAULT_wxUSE_NANOX=no
1392
1393   DEFAULT_wxUSE_THREADS=yes
1394
1395   DEFAULT_wxUSE_SHARED=yes
1396   DEFAULT_wxUSE_SONAME=no
1397   DEFAULT_wxUSE_OPTIMISE=no
1398   DEFAULT_wxUSE_PROFILE=no
1399   DEFAULT_wxUSE_NO_DEPS=no
1400   DEFAULT_wxUSE_NO_RTTI=no
1401   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1402   DEFAULT_wxUSE_PERMISSIVE=no
1403   DEFAULT_wxUSE_DEBUG_FLAG=yes
1404   DEFAULT_wxUSE_DEBUG_INFO=yes
1405   DEFAULT_wxUSE_DEBUG_GDB=yes
1406   DEFAULT_wxUSE_MEM_TRACING=no
1407   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1408   DEFAULT_wxUSE_DMALLOC=no
1409   DEFAULT_wxUSE_PRECOMP=no
1410   DEFAULT_wxUSE_APPLE_IEEE=no
1411
1412   DEFAULT_wxUSE_LOG=yes
1413   DEFAULT_wxUSE_LOGWINDOW=no
1414   DEFAULT_wxUSE_LOGGUI=no
1415   DEFAULT_wxUSE_LOGDIALOG=no
1416
1417   DEFAULT_wxUSE_GUI=yes
1418   DEFAULT_wxUSE_CONTROLS=no
1419
1420   DEFAULT_wxUSE_REGEX=no
1421   DEFAULT_wxUSE_ZLIB=no
1422   DEFAULT_wxUSE_LIBPNG=no
1423   DEFAULT_wxUSE_LIBJPEG=no
1424   DEFAULT_wxUSE_LIBTIFF=no
1425   DEFAULT_wxUSE_ODBC=no
1426   DEFAULT_wxUSE_OPENGL=no
1427
1428   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1429   DEFAULT_wxUSE_SNGLINST_CHECKER=no
1430   DEFAULT_wxUSE_STD_IOSTREAM=no
1431   DEFAULT_wxUSE_CMDLINE_PARSER=no
1432   DEFAULT_wxUSE_DATETIME=no
1433   DEFAULT_wxUSE_TIMEDATE=no
1434   DEFAULT_wxUSE_TIMER=no
1435   DEFAULT_wxUSE_STOPWATCH=no
1436   DEFAULT_wxUSE_FILE=no
1437   DEFAULT_wxUSE_FFILE=no
1438   DEFAULT_wxUSE_TEXTBUFFER=no
1439   DEFAULT_wxUSE_TEXTFILE=no
1440   DEFAULT_wxUSE_WAVE=no
1441   DEFAULT_wxUSE_INTL=no
1442   DEFAULT_wxUSE_CONFIG=no
1443   DEFAULT_wxUSE_FONTMAP=no
1444   DEFAULT_wxUSE_STREAMS=no
1445   DEFAULT_wxUSE_SOCKETS=no
1446   DEFAULT_wxUSE_DIALUP_MANAGER=no
1447   DEFAULT_wxUSE_JOYSTICK=no
1448   DEFAULT_wxUSE_DYNLIB_CLASS=no
1449   DEFAULT_wxUSE_DYNAMIC_LOADER=no
1450   DEFAULT_wxUSE_LONGLONG=no
1451   DEFAULT_wxUSE_GEOMETRY=no
1452
1453   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1454   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1455   DEFAULT_wxUSE_POSTSCRIPT=no
1456
1457   DEFAULT_wxUSE_X_RESOURCES=no
1458   DEFAULT_wxUSE_CLIPBOARD=no
1459   DEFAULT_wxUSE_TOOLTIPS=no
1460   DEFAULT_wxUSE_DRAG_AND_DROP=no
1461   DEFAULT_wxUSE_DRAGIMAGE=no
1462   DEFAULT_wxUSE_SPLINES=no
1463
1464   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1465   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1466   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1467
1468   DEFAULT_wxUSE_PROLOGIO=no
1469   DEFAULT_wxUSE_RESOURCES=no
1470   DEFAULT_wxUSE_CONSTRAINTS=no
1471   DEFAULT_wxUSE_IPC=no
1472   DEFAULT_wxUSE_HELP=no
1473   DEFAULT_wxUSE_MS_HTML_HELP=no
1474   DEFAULT_wxUSE_WXHTML_HELP=no
1475   DEFAULT_wxUSE_TREELAYOUT=no
1476   DEFAULT_wxUSE_METAFILE=no
1477   DEFAULT_wxUSE_MIMETYPE=no
1478   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1479   DEFAULT_wxUSE_PROTOCOL=no
1480   DEFAULT_wxUSE_PROTOCOL_HTTP=no
1481   DEFAULT_wxUSE_PROTOCOL_FTP=no
1482   DEFAULT_wxUSE_PROTOCOL_FILE=no
1483   DEFAULT_wxUSE_URL=no
1484
1485   DEFAULT_wxUSE_COMMONDLGS=no
1486   DEFAULT_wxUSE_CHOICEDLG=no
1487   DEFAULT_wxUSE_COLOURDLG=no
1488   DEFAULT_wxUSE_DIRDLG=no
1489   DEFAULT_wxUSE_FILEDLG=no
1490   DEFAULT_wxUSE_FINDREPLDLG=no
1491   DEFAULT_wxUSE_FONTDLG=no
1492   DEFAULT_wxUSE_MSGDLG=no
1493   DEFAULT_wxUSE_NUMBERDLG=no
1494   DEFAULT_wxUSE_TEXTDLG=no
1495   DEFAULT_wxUSE_SPLASH=no
1496   DEFAULT_wxUSE_STARTUP_TIPS=no
1497   DEFAULT_wxUSE_PROGRESSDLG=no
1498   DEFAULT_wxUSE_WIZARDDLG=no
1499
1500   DEFAULT_wxUSE_MENUS=no
1501   DEFAULT_wxUSE_MINIFRAME=no
1502   DEFAULT_wxUSE_HTML=no
1503   DEFAULT_wxUSE_FILESYSTEM=no
1504   DEFAULT_wxUSE_FS_INET=no
1505   DEFAULT_wxUSE_FS_ZIP=no
1506   DEFAULT_wxUSE_BUSYINFO=no
1507   DEFAULT_wxUSE_ZIPSTREAM=no
1508   DEFAULT_wxUSE_VALIDATORS=no
1509
1510   DEFAULT_wxUSE_ACCEL=no
1511   DEFAULT_wxUSE_BUTTON=no
1512   DEFAULT_wxUSE_BMPBUTTON=no
1513   DEFAULT_wxUSE_CALCTRL=no
1514   DEFAULT_wxUSE_CARET=no
1515   DEFAULT_wxUSE_CHECKBOX=no
1516   DEFAULT_wxUSE_CHECKLST=no
1517   DEFAULT_wxUSE_CHOICE=no
1518   DEFAULT_wxUSE_COMBOBOX=no
1519   DEFAULT_wxUSE_GAUGE=no
1520   DEFAULT_wxUSE_GRID=no
1521   DEFAULT_wxUSE_NEW_GRID=no
1522   DEFAULT_wxUSE_IMAGLIST=no
1523   DEFAULT_wxUSE_LISTBOX=no
1524   DEFAULT_wxUSE_LISTCTRL=no
1525   DEFAULT_wxUSE_NOTEBOOK=no
1526   DEFAULT_wxUSE_PROPSHEET=no
1527   DEFAULT_wxUSE_RADIOBOX=no
1528   DEFAULT_wxUSE_RADIOBTN=no
1529   DEFAULT_wxUSE_SASH=no
1530   DEFAULT_wxUSE_SCROLLBAR=no
1531   DEFAULT_wxUSE_SLIDER=no
1532   DEFAULT_wxUSE_SPINBTN=no
1533   DEFAULT_wxUSE_SPINCTRL=no
1534   DEFAULT_wxUSE_SPLITTER=no
1535   DEFAULT_wxUSE_STATBMP=no
1536   DEFAULT_wxUSE_STATBOX=no
1537   DEFAULT_wxUSE_STATLINE=no
1538   DEFAULT_wxUSE_STATTEXT=no
1539   DEFAULT_wxUSE_STATUSBAR=yes
1540   DEFAULT_wxUSE_TABDIALOG=no
1541   DEFAULT_wxUSE_TEXTCTRL=no
1542   DEFAULT_wxUSE_TOGGLEBTN=no
1543   DEFAULT_wxUSE_TOOLBAR=no
1544   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1545   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1546   DEFAULT_wxUSE_TREECTRL=no
1547   DEFAULT_wxUSE_POPUPWIN=no
1548   DEFAULT_wxUSE_TIPWINDOW=no
1549
1550   DEFAULT_wxUSE_UNICODE=no
1551   DEFAULT_wxUSE_UNICODE_MSLU=no
1552   DEFAULT_wxUSE_WCSRTOMBS=no
1553
1554   DEFAULT_wxUSE_PALETTE=no
1555   DEFAULT_wxUSE_IMAGE=no
1556   DEFAULT_wxUSE_GIF=no
1557   DEFAULT_wxUSE_PCX=no
1558   DEFAULT_wxUSE_PNM=no
1559   DEFAULT_wxUSE_IFF=no
1560   DEFAULT_wxUSE_XPM=no
1561   DEFAULT_wxUSE_ICO_CUR=no
1562 else
1563   DEFAULT_wxUSE_UNIVERSAL=no
1564
1565   DEFAULT_wxUSE_NANOX=no
1566
1567   DEFAULT_wxUSE_THREADS=yes
1568
1569   DEFAULT_wxUSE_SHARED=yes
1570   DEFAULT_wxUSE_SONAME=no
1571   DEFAULT_wxUSE_OPTIMISE=yes
1572   DEFAULT_wxUSE_PROFILE=no
1573   DEFAULT_wxUSE_NO_DEPS=no
1574   DEFAULT_wxUSE_NO_RTTI=no
1575   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1576   DEFAULT_wxUSE_PERMISSIVE=no
1577   DEFAULT_wxUSE_DEBUG_FLAG=no
1578   DEFAULT_wxUSE_DEBUG_INFO=no
1579   DEFAULT_wxUSE_DEBUG_GDB=no
1580   DEFAULT_wxUSE_MEM_TRACING=no
1581   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1582   DEFAULT_wxUSE_DMALLOC=no
1583   DEFAULT_wxUSE_PRECOMP=no
1584   DEFAULT_wxUSE_APPLE_IEEE=yes
1585
1586   DEFAULT_wxUSE_LOG=yes
1587   DEFAULT_wxUSE_LOGWINDOW=yes
1588   DEFAULT_wxUSE_LOGGUI=yes
1589   DEFAULT_wxUSE_LOGDIALOG=yes
1590
1591   DEFAULT_wxUSE_GUI=yes
1592
1593   DEFAULT_wxUSE_REGEX=yes
1594   DEFAULT_wxUSE_ZLIB=yes
1595   DEFAULT_wxUSE_LIBPNG=yes
1596   DEFAULT_wxUSE_LIBJPEG=yes
1597   DEFAULT_wxUSE_LIBTIFF=yes
1598   DEFAULT_wxUSE_ODBC=no
1599   DEFAULT_wxUSE_OPENGL=no
1600
1601   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1602   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1603   DEFAULT_wxUSE_STD_IOSTREAM=no
1604   DEFAULT_wxUSE_CMDLINE_PARSER=yes
1605   DEFAULT_wxUSE_DATETIME=yes
1606   DEFAULT_wxUSE_TIMEDATE=no
1607   DEFAULT_wxUSE_TIMER=yes
1608   DEFAULT_wxUSE_STOPWATCH=yes
1609   DEFAULT_wxUSE_FILE=yes
1610   DEFAULT_wxUSE_FFILE=yes
1611   DEFAULT_wxUSE_TEXTBUFFER=yes
1612   DEFAULT_wxUSE_TEXTFILE=yes
1613   DEFAULT_wxUSE_WAVE=no
1614   DEFAULT_wxUSE_INTL=yes
1615   DEFAULT_wxUSE_CONFIG=yes
1616   DEFAULT_wxUSE_FONTMAP=yes
1617   DEFAULT_wxUSE_STREAMS=yes
1618   DEFAULT_wxUSE_SOCKETS=yes
1619   DEFAULT_wxUSE_DIALUP_MANAGER=yes
1620   DEFAULT_wxUSE_JOYSTICK=yes
1621   DEFAULT_wxUSE_DYNLIB_CLASS=yes
1622   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1623   DEFAULT_wxUSE_LONGLONG=yes
1624   DEFAULT_wxUSE_GEOMETRY=yes
1625
1626   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1627   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1628   DEFAULT_wxUSE_POSTSCRIPT=yes
1629
1630   DEFAULT_wxUSE_X_RESOURCES=no
1631   DEFAULT_wxUSE_CLIPBOARD=yes
1632   DEFAULT_wxUSE_TOOLTIPS=yes
1633   DEFAULT_wxUSE_DRAG_AND_DROP=yes
1634   DEFAULT_wxUSE_DRAGIMAGE=yes
1635   DEFAULT_wxUSE_SPLINES=yes
1636
1637   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1638   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1639   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1640
1641   DEFAULT_wxUSE_PROLOGIO=yes
1642   DEFAULT_wxUSE_RESOURCES=yes
1643   DEFAULT_wxUSE_CONSTRAINTS=yes
1644   DEFAULT_wxUSE_IPC=yes
1645   DEFAULT_wxUSE_HELP=yes
1646   DEFAULT_wxUSE_MS_HTML_HELP=yes
1647   DEFAULT_wxUSE_WXHTML_HELP=yes
1648   DEFAULT_wxUSE_TREELAYOUT=yes
1649   DEFAULT_wxUSE_METAFILE=yes
1650   DEFAULT_wxUSE_MIMETYPE=yes
1651   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1652   DEFAULT_wxUSE_PROTOCOL=yes
1653   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1654   DEFAULT_wxUSE_PROTOCOL_FTP=yes
1655   DEFAULT_wxUSE_PROTOCOL_FILE=yes
1656   DEFAULT_wxUSE_URL=yes
1657
1658   DEFAULT_wxUSE_COMMONDLGS=yes
1659   DEFAULT_wxUSE_CHOICEDLG=yes
1660   DEFAULT_wxUSE_COLOURDLG=yes
1661   DEFAULT_wxUSE_DIRDLG=yes
1662   DEFAULT_wxUSE_FILEDLG=yes
1663   DEFAULT_wxUSE_FINDREPLDLG=yes
1664   DEFAULT_wxUSE_FONTDLG=yes
1665   DEFAULT_wxUSE_MSGDLG=yes
1666   DEFAULT_wxUSE_NUMBERDLG=yes
1667   DEFAULT_wxUSE_TEXTDLG=yes
1668   DEFAULT_wxUSE_SPLASH=yes
1669   DEFAULT_wxUSE_STARTUP_TIPS=yes
1670   DEFAULT_wxUSE_PROGRESSDLG=yes
1671   DEFAULT_wxUSE_WIZARDDLG=yes
1672
1673   DEFAULT_wxUSE_MENUS=yes
1674   DEFAULT_wxUSE_MINIFRAME=yes
1675   DEFAULT_wxUSE_HTML=yes
1676   DEFAULT_wxUSE_FILESYSTEM=yes
1677   DEFAULT_wxUSE_FS_INET=yes
1678   DEFAULT_wxUSE_FS_ZIP=yes
1679   DEFAULT_wxUSE_BUSYINFO=yes
1680   DEFAULT_wxUSE_ZIPSTREAM=yes
1681   DEFAULT_wxUSE_VALIDATORS=yes
1682
1683   DEFAULT_wxUSE_ACCEL=yes
1684   DEFAULT_wxUSE_BUTTON=yes
1685   DEFAULT_wxUSE_BMPBUTTON=yes
1686   DEFAULT_wxUSE_CALCTRL=yes
1687   DEFAULT_wxUSE_CARET=yes
1688   DEFAULT_wxUSE_CHECKBOX=yes
1689   DEFAULT_wxUSE_CHECKLST=yes
1690   DEFAULT_wxUSE_CHOICE=yes
1691   DEFAULT_wxUSE_COMBOBOX=yes
1692   DEFAULT_wxUSE_GAUGE=yes
1693   DEFAULT_wxUSE_GRID=yes
1694   DEFAULT_wxUSE_NEW_GRID=yes
1695   DEFAULT_wxUSE_IMAGLIST=yes
1696   DEFAULT_wxUSE_LISTBOX=yes
1697   DEFAULT_wxUSE_LISTCTRL=yes
1698   DEFAULT_wxUSE_NOTEBOOK=yes
1699   DEFAULT_wxUSE_PROPSHEET=yes
1700   DEFAULT_wxUSE_RADIOBOX=yes
1701   DEFAULT_wxUSE_RADIOBTN=yes
1702   DEFAULT_wxUSE_SASH=yes
1703   DEFAULT_wxUSE_SCROLLBAR=yes
1704   DEFAULT_wxUSE_SLIDER=yes
1705   DEFAULT_wxUSE_SPINBTN=yes
1706   DEFAULT_wxUSE_SPINCTRL=yes
1707   DEFAULT_wxUSE_SPLITTER=yes
1708   DEFAULT_wxUSE_STATBMP=yes
1709   DEFAULT_wxUSE_STATBOX=yes
1710   DEFAULT_wxUSE_STATLINE=yes
1711   DEFAULT_wxUSE_STATTEXT=yes
1712   DEFAULT_wxUSE_STATUSBAR=yes
1713   DEFAULT_wxUSE_TABDIALOG=no
1714   DEFAULT_wxUSE_TEXTCTRL=yes
1715   DEFAULT_wxUSE_TOGGLEBTN=yes
1716   DEFAULT_wxUSE_TOOLBAR=yes
1717   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1718   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1719   DEFAULT_wxUSE_TREECTRL=yes
1720   DEFAULT_wxUSE_POPUPWIN=yes
1721   DEFAULT_wxUSE_TIPWINDOW=yes
1722
1723   DEFAULT_wxUSE_UNICODE=no
1724   DEFAULT_wxUSE_UNICODE_MSLU=yes
1725   DEFAULT_wxUSE_WCSRTOMBS=no
1726
1727   DEFAULT_wxUSE_PALETTE=yes
1728   DEFAULT_wxUSE_IMAGE=yes
1729   DEFAULT_wxUSE_GIF=yes
1730   DEFAULT_wxUSE_PCX=yes
1731   DEFAULT_wxUSE_IFF=no
1732   DEFAULT_wxUSE_PNM=yes
1733   DEFAULT_wxUSE_XPM=yes
1734   DEFAULT_wxUSE_ICO_CUR=yes
1735 fi
1736
1737
1738
1739 for toolkit in `echo $ALL_TOOLKITS`; do
1740   LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1741   if test "x$LINE" != x ; then
1742     has_toolkit_in_cache=1
1743     eval "DEFAULT_$LINE"
1744     eval "CACHE_$toolkit=1"
1745   fi
1746 done
1747
1748
1749
1750           echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1751 echo "configure:1752: checking for --enable-gui" >&5
1752           no_cache=0
1753           # Check whether --enable-gui or --disable-gui was given.
1754 if test "${enable_gui+set}" = set; then
1755   enableval="$enable_gui"
1756   
1757                           if test "$enableval" = yes; then
1758                             ac_cv_use_gui='wxUSE_GUI=yes'
1759                           else
1760                             ac_cv_use_gui='wxUSE_GUI=no'
1761                           fi
1762                         
1763 else
1764   
1765                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1766                           if test "x$LINE" != x ; then
1767                             eval "DEFAULT_$LINE"
1768                           else
1769                             no_cache=1
1770                           fi
1771
1772                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1773                         
1774 fi
1775
1776
1777           eval "$ac_cv_use_gui"
1778           if test "$no_cache" != 1; then
1779             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1780           fi
1781
1782           if test "$wxUSE_GUI" = yes; then
1783             echo "$ac_t""yes" 1>&6
1784           else
1785             echo "$ac_t""no" 1>&6
1786           fi
1787         
1788
1789 if test "$wxUSE_GUI" = "yes"; then
1790
1791
1792           echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1793 echo "configure:1794: checking for --enable-universal" >&5
1794           no_cache=0
1795           # Check whether --enable-universal or --disable-universal was given.
1796 if test "${enable_universal+set}" = set; then
1797   enableval="$enable_universal"
1798   
1799                           if test "$enableval" = yes; then
1800                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1801                           else
1802                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1803                           fi
1804                         
1805 else
1806   
1807                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1808                           if test "x$LINE" != x ; then
1809                             eval "DEFAULT_$LINE"
1810                           else
1811                             no_cache=1
1812                           fi
1813
1814                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1815                         
1816 fi
1817
1818
1819           eval "$ac_cv_use_universal"
1820           if test "$no_cache" != 1; then
1821             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1822           fi
1823
1824           if test "$wxUSE_UNIVERSAL" = yes; then
1825             echo "$ac_t""yes" 1>&6
1826           else
1827             echo "$ac_t""no" 1>&6
1828           fi
1829         
1830 # Check whether --with-gtk or --without-gtk was given.
1831 if test "${with_gtk+set}" = set; then
1832   withval="$with_gtk"
1833   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1834 fi
1835
1836 # Check whether --with-motif or --without-motif was given.
1837 if test "${with_motif+set}" = set; then
1838   withval="$with_motif"
1839   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1840 fi
1841
1842 # Check whether --with-mac or --without-mac was given.
1843 if test "${with_mac+set}" = set; then
1844   withval="$with_mac"
1845   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1846 fi
1847
1848 # Check whether --with-wine or --without-wine was given.
1849 if test "${with_wine+set}" = set; then
1850   withval="$with_wine"
1851   wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1852 fi
1853
1854 # Check whether --with-msw or --without-msw was given.
1855 if test "${with_msw+set}" = set; then
1856   withval="$with_msw"
1857   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1858 fi
1859
1860 # Check whether --with-pm or --without-pm was given.
1861 if test "${with_pm+set}" = set; then
1862   withval="$with_pm"
1863   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1864 fi
1865
1866 # Check whether --with-mgl or --without-mgl was given.
1867 if test "${with_mgl+set}" = set; then
1868   withval="$with_mgl"
1869   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1870 fi
1871
1872 # Check whether --with-microwin or --without-microwin was given.
1873 if test "${with_microwin+set}" = set; then
1874   withval="$with_microwin"
1875   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1876 fi
1877
1878 # Check whether --with-x11 or --without-x11 was given.
1879 if test "${with_x11+set}" = set; then
1880   withval="$with_x11"
1881   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1882 fi
1883
1884
1885           echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
1886 echo "configure:1887: checking for --enable-nanox" >&5
1887           no_cache=0
1888           # Check whether --enable-nanox or --disable-nanox was given.
1889 if test "${enable_nanox+set}" = set; then
1890   enableval="$enable_nanox"
1891   
1892                           if test "$enableval" = yes; then
1893                             ac_cv_use_nanox='wxUSE_NANOX=yes'
1894                           else
1895                             ac_cv_use_nanox='wxUSE_NANOX=no'
1896                           fi
1897                         
1898 else
1899   
1900                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1901                           if test "x$LINE" != x ; then
1902                             eval "DEFAULT_$LINE"
1903                           else
1904                             no_cache=1
1905                           fi
1906
1907                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1908                         
1909 fi
1910
1911
1912           eval "$ac_cv_use_nanox"
1913           if test "$no_cache" != 1; then
1914             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1915           fi
1916
1917           if test "$wxUSE_NANOX" = yes; then
1918             echo "$ac_t""yes" 1>&6
1919           else
1920             echo "$ac_t""no" 1>&6
1921           fi
1922         
1923
1924 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1925 if test "${enable_gtk2+set}" = set; then
1926   enableval="$enable_gtk2"
1927   wxUSE_GTK2="yes"
1928 else
1929   wxUSE_GTK2="no"
1930 fi
1931
1932
1933
1934           echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1935 echo "configure:1936: checking for --with-libpng" >&5
1936           no_cache=0
1937           # Check whether --with-libpng or --without-libpng was given.
1938 if test "${with_libpng+set}" = set; then
1939   withval="$with_libpng"
1940   
1941                         if test "$withval" = yes; then
1942                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1943                         elif test "$withval" = no; then
1944                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
1945                         elif test "$withval" = sys; then
1946                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1947                         elif test "$withval" = builtin; then
1948                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1949                         else
1950                           { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1951                         fi
1952                       
1953 else
1954   
1955                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1956                         if test "x$LINE" != x ; then
1957                           eval "DEFAULT_$LINE"
1958                         else
1959                           no_cache=1
1960                         fi
1961
1962                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1963                       
1964 fi
1965
1966
1967           eval "$ac_cv_use_libpng"
1968           if test "$no_cache" != 1; then
1969             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1970           fi
1971
1972           if test "$wxUSE_LIBPNG" = yes; then
1973             echo "$ac_t""yes" 1>&6
1974           elif test "$wxUSE_LIBPNG" = no; then
1975             echo "$ac_t""no" 1>&6
1976           elif test "$wxUSE_LIBPNG" = sys; then
1977             echo "$ac_t""system version" 1>&6
1978           elif test "$wxUSE_LIBPNG" = builtin; then
1979             echo "$ac_t""builtin version" 1>&6
1980           else
1981             { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1982           fi
1983         
1984
1985           echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1986 echo "configure:1987: checking for --with-libjpeg" >&5
1987           no_cache=0
1988           # Check whether --with-libjpeg or --without-libjpeg was given.
1989 if test "${with_libjpeg+set}" = set; then
1990   withval="$with_libjpeg"
1991   
1992                         if test "$withval" = yes; then
1993                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1994                         elif test "$withval" = no; then
1995                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1996                         elif test "$withval" = sys; then
1997                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1998                         elif test "$withval" = builtin; then
1999                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2000                         else
2001                           { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2002                         fi
2003                       
2004 else
2005   
2006                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2007                         if test "x$LINE" != x ; then
2008                           eval "DEFAULT_$LINE"
2009                         else
2010                           no_cache=1
2011                         fi
2012
2013                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2014                       
2015 fi
2016
2017
2018           eval "$ac_cv_use_libjpeg"
2019           if test "$no_cache" != 1; then
2020             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2021           fi
2022
2023           if test "$wxUSE_LIBJPEG" = yes; then
2024             echo "$ac_t""yes" 1>&6
2025           elif test "$wxUSE_LIBJPEG" = no; then
2026             echo "$ac_t""no" 1>&6
2027           elif test "$wxUSE_LIBJPEG" = sys; then
2028             echo "$ac_t""system version" 1>&6
2029           elif test "$wxUSE_LIBJPEG" = builtin; then
2030             echo "$ac_t""builtin version" 1>&6
2031           else
2032             { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2033           fi
2034         
2035
2036           echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2037 echo "configure:2038: checking for --with-libtiff" >&5
2038           no_cache=0
2039           # Check whether --with-libtiff or --without-libtiff was given.
2040 if test "${with_libtiff+set}" = set; then
2041   withval="$with_libtiff"
2042   
2043                         if test "$withval" = yes; then
2044                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2045                         elif test "$withval" = no; then
2046                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2047                         elif test "$withval" = sys; then
2048                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2049                         elif test "$withval" = builtin; then
2050                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2051                         else
2052                           { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2053                         fi
2054                       
2055 else
2056   
2057                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2058                         if test "x$LINE" != x ; then
2059                           eval "DEFAULT_$LINE"
2060                         else
2061                           no_cache=1
2062                         fi
2063
2064                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2065                       
2066 fi
2067
2068
2069           eval "$ac_cv_use_libtiff"
2070           if test "$no_cache" != 1; then
2071             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2072           fi
2073
2074           if test "$wxUSE_LIBTIFF" = yes; then
2075             echo "$ac_t""yes" 1>&6
2076           elif test "$wxUSE_LIBTIFF" = no; then
2077             echo "$ac_t""no" 1>&6
2078           elif test "$wxUSE_LIBTIFF" = sys; then
2079             echo "$ac_t""system version" 1>&6
2080           elif test "$wxUSE_LIBTIFF" = builtin; then
2081             echo "$ac_t""builtin version" 1>&6
2082           else
2083             { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2084           fi
2085         
2086
2087           echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2088 echo "configure:2089: checking for --with-opengl" >&5
2089           no_cache=0
2090           # Check whether --with-opengl or --without-opengl was given.
2091 if test "${with_opengl+set}" = set; then
2092   withval="$with_opengl"
2093   
2094                         if test "$withval" = yes; then
2095                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
2096                         else
2097                           ac_cv_use_opengl='wxUSE_OPENGL=no'
2098                         fi
2099                       
2100 else
2101   
2102                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2103                         if test "x$LINE" != x ; then
2104                           eval "DEFAULT_$LINE"
2105                         else
2106                           no_cache=1
2107                         fi
2108
2109                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2110                       
2111 fi
2112
2113
2114           eval "$ac_cv_use_opengl"
2115           if test "$no_cache" != 1; then
2116             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2117           fi
2118
2119           if test "$wxUSE_OPENGL" = yes; then
2120             echo "$ac_t""yes" 1>&6
2121           else
2122             echo "$ac_t""no" 1>&6
2123           fi
2124         
2125
2126 fi
2127
2128
2129           echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2130 echo "configure:2131: checking for --with-dmalloc" >&5
2131           no_cache=0
2132           # Check whether --with-dmalloc or --without-dmalloc was given.
2133 if test "${with_dmalloc+set}" = set; then
2134   withval="$with_dmalloc"
2135   
2136                         if test "$withval" = yes; then
2137                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2138                         else
2139                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2140                         fi
2141                       
2142 else
2143   
2144                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2145                         if test "x$LINE" != x ; then
2146                           eval "DEFAULT_$LINE"
2147                         else
2148                           no_cache=1
2149                         fi
2150
2151                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2152                       
2153 fi
2154
2155
2156           eval "$ac_cv_use_dmalloc"
2157           if test "$no_cache" != 1; then
2158             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2159           fi
2160
2161           if test "$wxUSE_DMALLOC" = yes; then
2162             echo "$ac_t""yes" 1>&6
2163           else
2164             echo "$ac_t""no" 1>&6
2165           fi
2166         
2167
2168           echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2169 echo "configure:2170: checking for --with-regex" >&5
2170           no_cache=0
2171           # Check whether --with-regex or --without-regex was given.
2172 if test "${with_regex+set}" = set; then
2173   withval="$with_regex"
2174   
2175                         if test "$withval" = yes; then
2176                           ac_cv_use_regex='wxUSE_REGEX=yes'
2177                         elif test "$withval" = no; then
2178                           ac_cv_use_regex='wxUSE_REGEX=no'
2179                         elif test "$withval" = sys; then
2180                           ac_cv_use_regex='wxUSE_REGEX=sys'
2181                         elif test "$withval" = builtin; then
2182                           ac_cv_use_regex='wxUSE_REGEX=builtin'
2183                         else
2184                           { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2185                         fi
2186                       
2187 else
2188   
2189                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2190                         if test "x$LINE" != x ; then
2191                           eval "DEFAULT_$LINE"
2192                         else
2193                           no_cache=1
2194                         fi
2195
2196                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2197                       
2198 fi
2199
2200
2201           eval "$ac_cv_use_regex"
2202           if test "$no_cache" != 1; then
2203             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2204           fi
2205
2206           if test "$wxUSE_REGEX" = yes; then
2207             echo "$ac_t""yes" 1>&6
2208           elif test "$wxUSE_REGEX" = no; then
2209             echo "$ac_t""no" 1>&6
2210           elif test "$wxUSE_REGEX" = sys; then
2211             echo "$ac_t""system version" 1>&6
2212           elif test "$wxUSE_REGEX" = builtin; then
2213             echo "$ac_t""builtin version" 1>&6
2214           else
2215             { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2216           fi
2217         
2218
2219           echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2220 echo "configure:2221: checking for --with-zlib" >&5
2221           no_cache=0
2222           # Check whether --with-zlib or --without-zlib was given.
2223 if test "${with_zlib+set}" = set; then
2224   withval="$with_zlib"
2225   
2226                         if test "$withval" = yes; then
2227                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
2228                         elif test "$withval" = no; then
2229                           ac_cv_use_zlib='wxUSE_ZLIB=no'
2230                         elif test "$withval" = sys; then
2231                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
2232                         elif test "$withval" = builtin; then
2233                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2234                         else
2235                           { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2236                         fi
2237                       
2238 else
2239   
2240                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2241                         if test "x$LINE" != x ; then
2242                           eval "DEFAULT_$LINE"
2243                         else
2244                           no_cache=1
2245                         fi
2246
2247                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2248                       
2249 fi
2250
2251
2252           eval "$ac_cv_use_zlib"
2253           if test "$no_cache" != 1; then
2254             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2255           fi
2256
2257           if test "$wxUSE_ZLIB" = yes; then
2258             echo "$ac_t""yes" 1>&6
2259           elif test "$wxUSE_ZLIB" = no; then
2260             echo "$ac_t""no" 1>&6
2261           elif test "$wxUSE_ZLIB" = sys; then
2262             echo "$ac_t""system version" 1>&6
2263           elif test "$wxUSE_ZLIB" = builtin; then
2264             echo "$ac_t""builtin version" 1>&6
2265           else
2266             { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2267           fi
2268         
2269
2270           echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2271 echo "configure:2272: checking for --with-odbc" >&5
2272           no_cache=0
2273           # Check whether --with-odbc or --without-odbc was given.
2274 if test "${with_odbc+set}" = set; then
2275   withval="$with_odbc"
2276   
2277                         if test "$withval" = yes; then
2278                           ac_cv_use_odbc='wxUSE_ODBC=yes'
2279                         else
2280                           ac_cv_use_odbc='wxUSE_ODBC=no'
2281                         fi
2282                       
2283 else
2284   
2285                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2286                         if test "x$LINE" != x ; then
2287                           eval "DEFAULT_$LINE"
2288                         else
2289                           no_cache=1
2290                         fi
2291
2292                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2293                       
2294 fi
2295
2296
2297           eval "$ac_cv_use_odbc"
2298           if test "$no_cache" != 1; then
2299             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2300           fi
2301
2302           if test "$wxUSE_ODBC" = yes; then
2303             echo "$ac_t""yes" 1>&6
2304           else
2305             echo "$ac_t""no" 1>&6
2306           fi
2307         
2308
2309
2310
2311           echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2312 echo "configure:2313: checking for --enable-shared" >&5
2313           no_cache=0
2314           # Check whether --enable-shared or --disable-shared was given.
2315 if test "${enable_shared+set}" = set; then
2316   enableval="$enable_shared"
2317   
2318                           if test "$enableval" = yes; then
2319                             ac_cv_use_shared='wxUSE_SHARED=yes'
2320                           else
2321                             ac_cv_use_shared='wxUSE_SHARED=no'
2322                           fi
2323                         
2324 else
2325   
2326                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2327                           if test "x$LINE" != x ; then
2328                             eval "DEFAULT_$LINE"
2329                           else
2330                             no_cache=1
2331                           fi
2332
2333                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2334                         
2335 fi
2336
2337
2338           eval "$ac_cv_use_shared"
2339           if test "$no_cache" != 1; then
2340             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2341           fi
2342
2343           if test "$wxUSE_SHARED" = yes; then
2344             echo "$ac_t""yes" 1>&6
2345           else
2346             echo "$ac_t""no" 1>&6
2347           fi
2348         
2349
2350           echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2351 echo "configure:2352: checking for --enable-soname" >&5
2352           no_cache=0
2353           # Check whether --enable-soname or --disable-soname was given.
2354 if test "${enable_soname+set}" = set; then
2355   enableval="$enable_soname"
2356   
2357                           if test "$enableval" = yes; then
2358                             ac_cv_use_soname='wxUSE_SONAME=yes'
2359                           else
2360                             ac_cv_use_soname='wxUSE_SONAME=no'
2361                           fi
2362                         
2363 else
2364   
2365                           LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2366                           if test "x$LINE" != x ; then
2367                             eval "DEFAULT_$LINE"
2368                           else
2369                             no_cache=1
2370                           fi
2371
2372                           ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2373                         
2374 fi
2375
2376
2377           eval "$ac_cv_use_soname"
2378           if test "$no_cache" != 1; then
2379             echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2380           fi
2381
2382           if test "$wxUSE_SONAME" = yes; then
2383             echo "$ac_t""yes" 1>&6
2384           else
2385             echo "$ac_t""no" 1>&6
2386           fi
2387         
2388
2389           echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2390 echo "configure:2391: checking for --enable-optimise" >&5
2391           no_cache=0
2392           # Check whether --enable-optimise or --disable-optimise was given.
2393 if test "${enable_optimise+set}" = set; then
2394   enableval="$enable_optimise"
2395   
2396                           if test "$enableval" = yes; then
2397                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2398                           else
2399                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2400                           fi
2401                         
2402 else
2403   
2404                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2405                           if test "x$LINE" != x ; then
2406                             eval "DEFAULT_$LINE"
2407                           else
2408                             no_cache=1
2409                           fi
2410
2411                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2412                         
2413 fi
2414
2415
2416           eval "$ac_cv_use_optimise"
2417           if test "$no_cache" != 1; then
2418             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2419           fi
2420
2421           if test "$wxUSE_OPTIMISE" = yes; then
2422             echo "$ac_t""yes" 1>&6
2423           else
2424             echo "$ac_t""no" 1>&6
2425           fi
2426         
2427
2428           echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2429 echo "configure:2430: checking for --enable-debug" >&5
2430           no_cache=0
2431           # Check whether --enable-debug or --disable-debug was given.
2432 if test "${enable_debug+set}" = set; then
2433   enableval="$enable_debug"
2434   
2435                           if test "$enableval" = yes; then
2436                             ac_cv_use_debug='wxUSE_DEBUG=yes'
2437                           else
2438                             ac_cv_use_debug='wxUSE_DEBUG=no'
2439                           fi
2440                         
2441 else
2442   
2443                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2444                           if test "x$LINE" != x ; then
2445                             eval "DEFAULT_$LINE"
2446                           else
2447                             no_cache=1
2448                           fi
2449
2450                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2451                         
2452 fi
2453
2454
2455           eval "$ac_cv_use_debug"
2456           if test "$no_cache" != 1; then
2457             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2458           fi
2459
2460           if test "$wxUSE_DEBUG" = yes; then
2461             echo "$ac_t""yes" 1>&6
2462           else
2463             echo "$ac_t""no" 1>&6
2464           fi
2465         
2466
2467
2468           echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2469 echo "configure:2470: checking for --enable-precomp" >&5
2470           no_cache=0
2471           # Check whether --enable-precomp or --disable-precomp was given.
2472 if test "${enable_precomp+set}" = set; then
2473   enableval="$enable_precomp"
2474   
2475                           if test "$enableval" = yes; then
2476                             ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2477                           else
2478                             ac_cv_use_precomp='wxUSE_PRECOMP=no'
2479                           fi
2480                         
2481 else
2482   
2483                           LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2484                           if test "x$LINE" != x ; then
2485                             eval "DEFAULT_$LINE"
2486                           else
2487                             no_cache=1
2488                           fi
2489
2490                           ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2491                         
2492 fi
2493
2494
2495           eval "$ac_cv_use_precomp"
2496           if test "$no_cache" != 1; then
2497             echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2498           fi
2499
2500           if test "$wxUSE_PRECOMP" = yes; then
2501             echo "$ac_t""yes" 1>&6
2502           else
2503             echo "$ac_t""no" 1>&6
2504           fi
2505         
2506
2507 if test "$wxUSE_DEBUG" = "yes"; then
2508   DEFAULT_wxUSE_DEBUG_FLAG=yes
2509   DEFAULT_wxUSE_DEBUG_INFO=yes
2510 elif test "$wxUSE_DEBUG" = "no"; then
2511   DEFAULT_wxUSE_DEBUG_FLAG=no
2512   DEFAULT_wxUSE_DEBUG_INFO=no
2513 fi
2514
2515
2516           echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2517 echo "configure:2518: checking for --enable-debug_flag" >&5
2518           no_cache=0
2519           # Check whether --enable-debug_flag or --disable-debug_flag was given.
2520 if test "${enable_debug_flag+set}" = set; then
2521   enableval="$enable_debug_flag"
2522   
2523                           if test "$enableval" = yes; then
2524                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2525                           else
2526                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2527                           fi
2528                         
2529 else
2530   
2531                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2532                           if test "x$LINE" != x ; then
2533                             eval "DEFAULT_$LINE"
2534                           else
2535                             no_cache=1
2536                           fi
2537
2538                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2539                         
2540 fi
2541
2542
2543           eval "$ac_cv_use_debug_flag"
2544           if test "$no_cache" != 1; then
2545             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2546           fi
2547
2548           if test "$wxUSE_DEBUG_FLAG" = yes; then
2549             echo "$ac_t""yes" 1>&6
2550           else
2551             echo "$ac_t""no" 1>&6
2552           fi
2553         
2554
2555           echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2556 echo "configure:2557: checking for --enable-debug_info" >&5
2557           no_cache=0
2558           # Check whether --enable-debug_info or --disable-debug_info was given.
2559 if test "${enable_debug_info+set}" = set; then
2560   enableval="$enable_debug_info"
2561   
2562                           if test "$enableval" = yes; then
2563                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2564                           else
2565                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2566                           fi
2567                         
2568 else
2569   
2570                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2571                           if test "x$LINE" != x ; then
2572                             eval "DEFAULT_$LINE"
2573                           else
2574                             no_cache=1
2575                           fi
2576
2577                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2578                         
2579 fi
2580
2581
2582           eval "$ac_cv_use_debug_info"
2583           if test "$no_cache" != 1; then
2584             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2585           fi
2586
2587           if test "$wxUSE_DEBUG_INFO" = yes; then
2588             echo "$ac_t""yes" 1>&6
2589           else
2590             echo "$ac_t""no" 1>&6
2591           fi
2592         
2593
2594           echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2595 echo "configure:2596: checking for --enable-debug_gdb" >&5
2596           no_cache=0
2597           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2598 if test "${enable_debug_gdb+set}" = set; then
2599   enableval="$enable_debug_gdb"
2600   
2601                           if test "$enableval" = yes; then
2602                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2603                           else
2604                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2605                           fi
2606                         
2607 else
2608   
2609                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2610                           if test "x$LINE" != x ; then
2611                             eval "DEFAULT_$LINE"
2612                           else
2613                             no_cache=1
2614                           fi
2615
2616                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2617                         
2618 fi
2619
2620
2621           eval "$ac_cv_use_debug_gdb"
2622           if test "$no_cache" != 1; then
2623             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2624           fi
2625
2626           if test "$wxUSE_DEBUG_GDB" = yes; then
2627             echo "$ac_t""yes" 1>&6
2628           else
2629             echo "$ac_t""no" 1>&6
2630           fi
2631         
2632
2633           echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2634 echo "configure:2635: checking for --enable-debug_cntxt" >&5
2635           no_cache=0
2636           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2637 if test "${enable_debug_cntxt+set}" = set; then
2638   enableval="$enable_debug_cntxt"
2639   
2640                           if test "$enableval" = yes; then
2641                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2642                           else
2643                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2644                           fi
2645                         
2646 else
2647   
2648                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2649                           if test "x$LINE" != x ; then
2650                             eval "DEFAULT_$LINE"
2651                           else
2652                             no_cache=1
2653                           fi
2654
2655                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2656                         
2657 fi
2658
2659
2660           eval "$ac_cv_use_debug_cntxt"
2661           if test "$no_cache" != 1; then
2662             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2663           fi
2664
2665           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2666             echo "$ac_t""yes" 1>&6
2667           else
2668             echo "$ac_t""no" 1>&6
2669           fi
2670         
2671
2672           echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2673 echo "configure:2674: checking for --enable-mem_tracing" >&5
2674           no_cache=0
2675           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2676 if test "${enable_mem_tracing+set}" = set; then
2677   enableval="$enable_mem_tracing"
2678   
2679                           if test "$enableval" = yes; then
2680                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2681                           else
2682                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2683                           fi
2684                         
2685 else
2686   
2687                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2688                           if test "x$LINE" != x ; then
2689                             eval "DEFAULT_$LINE"
2690                           else
2691                             no_cache=1
2692                           fi
2693
2694                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2695                         
2696 fi
2697
2698
2699           eval "$ac_cv_use_mem_tracing"
2700           if test "$no_cache" != 1; then
2701             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2702           fi
2703
2704           if test "$wxUSE_MEM_TRACING" = yes; then
2705             echo "$ac_t""yes" 1>&6
2706           else
2707             echo "$ac_t""no" 1>&6
2708           fi
2709         
2710
2711           echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2712 echo "configure:2713: checking for --enable-profile" >&5
2713           no_cache=0
2714           # Check whether --enable-profile or --disable-profile was given.
2715 if test "${enable_profile+set}" = set; then
2716   enableval="$enable_profile"
2717   
2718                           if test "$enableval" = yes; then
2719                             ac_cv_use_profile='wxUSE_PROFILE=yes'
2720                           else
2721                             ac_cv_use_profile='wxUSE_PROFILE=no'
2722                           fi
2723                         
2724 else
2725   
2726                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2727                           if test "x$LINE" != x ; then
2728                             eval "DEFAULT_$LINE"
2729                           else
2730                             no_cache=1
2731                           fi
2732
2733                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2734                         
2735 fi
2736
2737
2738           eval "$ac_cv_use_profile"
2739           if test "$no_cache" != 1; then
2740             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2741           fi
2742
2743           if test "$wxUSE_PROFILE" = yes; then
2744             echo "$ac_t""yes" 1>&6
2745           else
2746             echo "$ac_t""no" 1>&6
2747           fi
2748         
2749
2750           echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2751 echo "configure:2752: checking for --enable-no_rtti" >&5
2752           no_cache=0
2753           # Check whether --enable-no_rtti or --disable-no_rtti was given.
2754 if test "${enable_no_rtti+set}" = set; then
2755   enableval="$enable_no_rtti"
2756   
2757                           if test "$enableval" = yes; then
2758                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2759                           else
2760                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2761                           fi
2762                         
2763 else
2764   
2765                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2766                           if test "x$LINE" != x ; then
2767                             eval "DEFAULT_$LINE"
2768                           else
2769                             no_cache=1
2770                           fi
2771
2772                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2773                         
2774 fi
2775
2776
2777           eval "$ac_cv_use_no_rtti"
2778           if test "$no_cache" != 1; then
2779             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2780           fi
2781
2782           if test "$wxUSE_NO_RTTI" = yes; then
2783             echo "$ac_t""yes" 1>&6
2784           else
2785             echo "$ac_t""no" 1>&6
2786           fi
2787         
2788
2789           echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2790 echo "configure:2791: checking for --enable-no_exceptions" >&5
2791           no_cache=0
2792           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2793 if test "${enable_no_exceptions+set}" = set; then
2794   enableval="$enable_no_exceptions"
2795   
2796                           if test "$enableval" = yes; then
2797                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2798                           else
2799                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2800                           fi
2801                         
2802 else
2803   
2804                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2805                           if test "x$LINE" != x ; then
2806                             eval "DEFAULT_$LINE"
2807                           else
2808                             no_cache=1
2809                           fi
2810
2811                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2812                         
2813 fi
2814
2815
2816           eval "$ac_cv_use_no_exceptions"
2817           if test "$no_cache" != 1; then
2818             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2819           fi
2820
2821           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2822             echo "$ac_t""yes" 1>&6
2823           else
2824             echo "$ac_t""no" 1>&6
2825           fi
2826         
2827
2828           echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2829 echo "configure:2830: checking for --enable-permissive" >&5
2830           no_cache=0
2831           # Check whether --enable-permissive or --disable-permissive was given.
2832 if test "${enable_permissive+set}" = set; then
2833   enableval="$enable_permissive"
2834   
2835                           if test "$enableval" = yes; then
2836                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2837                           else
2838                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2839                           fi
2840                         
2841 else
2842   
2843                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2844                           if test "x$LINE" != x ; then
2845                             eval "DEFAULT_$LINE"
2846                           else
2847                             no_cache=1
2848                           fi
2849
2850                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2851                         
2852 fi
2853
2854
2855           eval "$ac_cv_use_permissive"
2856           if test "$no_cache" != 1; then
2857             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2858           fi
2859
2860           if test "$wxUSE_PERMISSIVE" = yes; then
2861             echo "$ac_t""yes" 1>&6
2862           else
2863             echo "$ac_t""no" 1>&6
2864           fi
2865         
2866
2867           echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2868 echo "configure:2869: checking for --enable-no_deps" >&5
2869           no_cache=0
2870           # Check whether --enable-no_deps or --disable-no_deps was given.
2871 if test "${enable_no_deps+set}" = set; then
2872   enableval="$enable_no_deps"
2873   
2874                           if test "$enableval" = yes; then
2875                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2876                           else
2877                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2878                           fi
2879                         
2880 else
2881   
2882                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2883                           if test "x$LINE" != x ; then
2884                             eval "DEFAULT_$LINE"
2885                           else
2886                             no_cache=1
2887                           fi
2888
2889                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2890                         
2891 fi
2892
2893
2894           eval "$ac_cv_use_no_deps"
2895           if test "$no_cache" != 1; then
2896             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2897           fi
2898
2899           if test "$wxUSE_NO_DEPS" = yes; then
2900             echo "$ac_t""yes" 1>&6
2901           else
2902             echo "$ac_t""no" 1>&6
2903           fi
2904         
2905
2906
2907           echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2908 echo "configure:2909: checking for --enable-compat20" >&5
2909           no_cache=0
2910           # Check whether --enable-compat20 or --disable-compat20 was given.
2911 if test "${enable_compat20+set}" = set; then
2912   enableval="$enable_compat20"
2913   
2914                           if test "$enableval" = yes; then
2915                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2916                           else
2917                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2918                           fi
2919                         
2920 else
2921   
2922                           LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2923                           if test "x$LINE" != x ; then
2924                             eval "DEFAULT_$LINE"
2925                           else
2926                             no_cache=1
2927                           fi
2928
2929                           ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2930                         
2931 fi
2932
2933
2934           eval "$ac_cv_use_compat20"
2935           if test "$no_cache" != 1; then
2936             echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2937           fi
2938
2939           if test "$WXWIN_COMPATIBILITY_2" = yes; then
2940             echo "$ac_t""yes" 1>&6
2941           else
2942             echo "$ac_t""no" 1>&6
2943           fi
2944         
2945
2946           echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2947 echo "configure:2948: checking for --enable-compat22" >&5
2948           no_cache=0
2949           # Check whether --enable-compat22 or --disable-compat22 was given.
2950 if test "${enable_compat22+set}" = set; then
2951   enableval="$enable_compat22"
2952   
2953                           if test "$enableval" = yes; then
2954                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2955                           else
2956                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2957                           fi
2958                         
2959 else
2960   
2961                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2962                           if test "x$LINE" != x ; then
2963                             eval "DEFAULT_$LINE"
2964                           else
2965                             no_cache=1
2966                           fi
2967
2968                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2969                         
2970 fi
2971
2972
2973           eval "$ac_cv_use_compat22"
2974           if test "$no_cache" != 1; then
2975             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2976           fi
2977
2978           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2979             echo "$ac_t""yes" 1>&6
2980           else
2981             echo "$ac_t""no" 1>&6
2982           fi
2983         
2984
2985 # Check whether --enable-rpath or --disable-rpath was given.
2986 if test "${enable_rpath+set}" = set; then
2987   enableval="$enable_rpath"
2988   wxRPATH_DIR="$enableval"
2989 fi
2990
2991
2992 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
2993    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
2994 fi
2995
2996
2997
2998
2999           echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3000 echo "configure:3001: checking for --enable-intl" >&5
3001           no_cache=0
3002           # Check whether --enable-intl or --disable-intl was given.
3003 if test "${enable_intl+set}" = set; then
3004   enableval="$enable_intl"
3005   
3006                           if test "$enableval" = yes; then
3007                             ac_cv_use_intl='wxUSE_INTL=yes'
3008                           else
3009                             ac_cv_use_intl='wxUSE_INTL=no'
3010                           fi
3011                         
3012 else
3013   
3014                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3015                           if test "x$LINE" != x ; then
3016                             eval "DEFAULT_$LINE"
3017                           else
3018                             no_cache=1
3019                           fi
3020
3021                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3022                         
3023 fi
3024
3025
3026           eval "$ac_cv_use_intl"
3027           if test "$no_cache" != 1; then
3028             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3029           fi
3030
3031           if test "$wxUSE_INTL" = yes; then
3032             echo "$ac_t""yes" 1>&6
3033           else
3034             echo "$ac_t""no" 1>&6
3035           fi
3036         
3037
3038           echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3039 echo "configure:3040: checking for --enable-config" >&5
3040           no_cache=0
3041           # Check whether --enable-config or --disable-config was given.
3042 if test "${enable_config+set}" = set; then
3043   enableval="$enable_config"
3044   
3045                           if test "$enableval" = yes; then
3046                             ac_cv_use_config='wxUSE_CONFIG=yes'
3047                           else
3048                             ac_cv_use_config='wxUSE_CONFIG=no'
3049                           fi
3050                         
3051 else
3052   
3053                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3054                           if test "x$LINE" != x ; then
3055                             eval "DEFAULT_$LINE"
3056                           else
3057                             no_cache=1
3058                           fi
3059
3060                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3061                         
3062 fi
3063
3064
3065           eval "$ac_cv_use_config"
3066           if test "$no_cache" != 1; then
3067             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3068           fi
3069
3070           if test "$wxUSE_CONFIG" = yes; then
3071             echo "$ac_t""yes" 1>&6
3072           else
3073             echo "$ac_t""no" 1>&6
3074           fi
3075         
3076
3077
3078           echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3079 echo "configure:3080: checking for --enable-protocols" >&5
3080           no_cache=0
3081           # Check whether --enable-protocols or --disable-protocols was given.
3082 if test "${enable_protocols+set}" = set; then
3083   enableval="$enable_protocols"
3084   
3085                           if test "$enableval" = yes; then
3086                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3087                           else
3088                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3089                           fi
3090                         
3091 else
3092   
3093                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3094                           if test "x$LINE" != x ; then
3095                             eval "DEFAULT_$LINE"
3096                           else
3097                             no_cache=1
3098                           fi
3099
3100                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3101                         
3102 fi
3103
3104
3105           eval "$ac_cv_use_protocols"
3106           if test "$no_cache" != 1; then
3107             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3108           fi
3109
3110           if test "$wxUSE_PROTOCOL" = yes; then
3111             echo "$ac_t""yes" 1>&6
3112           else
3113             echo "$ac_t""no" 1>&6
3114           fi
3115         
3116
3117           echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3118 echo "configure:3119: checking for --enable-ftp" >&5
3119           no_cache=0
3120           # Check whether --enable-ftp or --disable-ftp was given.
3121 if test "${enable_ftp+set}" = set; then
3122   enableval="$enable_ftp"
3123   
3124                           if test "$enableval" = yes; then
3125                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3126                           else
3127                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3128                           fi
3129                         
3130 else
3131   
3132                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3133                           if test "x$LINE" != x ; then
3134                             eval "DEFAULT_$LINE"
3135                           else
3136                             no_cache=1
3137                           fi
3138
3139                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3140                         
3141 fi
3142
3143
3144           eval "$ac_cv_use_ftp"
3145           if test "$no_cache" != 1; then
3146             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3147           fi
3148
3149           if test "$wxUSE_PROTOCOL_FTP" = yes; then
3150             echo "$ac_t""yes" 1>&6
3151           else
3152             echo "$ac_t""no" 1>&6
3153           fi
3154         
3155
3156           echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3157 echo "configure:3158: checking for --enable-http" >&5
3158           no_cache=0
3159           # Check whether --enable-http or --disable-http was given.
3160 if test "${enable_http+set}" = set; then
3161   enableval="$enable_http"
3162   
3163                           if test "$enableval" = yes; then
3164                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3165                           else
3166                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3167                           fi
3168                         
3169 else
3170   
3171                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3172                           if test "x$LINE" != x ; then
3173                             eval "DEFAULT_$LINE"
3174                           else
3175                             no_cache=1
3176                           fi
3177
3178                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3179                         
3180 fi
3181
3182
3183           eval "$ac_cv_use_http"
3184           if test "$no_cache" != 1; then
3185             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3186           fi
3187
3188           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3189             echo "$ac_t""yes" 1>&6
3190           else
3191             echo "$ac_t""no" 1>&6
3192           fi
3193         
3194
3195           echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3196 echo "configure:3197: checking for --enable-fileproto" >&5
3197           no_cache=0
3198           # Check whether --enable-fileproto or --disable-fileproto was given.
3199 if test "${enable_fileproto+set}" = set; then
3200   enableval="$enable_fileproto"
3201   
3202                           if test "$enableval" = yes; then
3203                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3204                           else
3205                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3206                           fi
3207                         
3208 else
3209   
3210                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3211                           if test "x$LINE" != x ; then
3212                             eval "DEFAULT_$LINE"
3213                           else
3214                             no_cache=1
3215                           fi
3216
3217                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3218                         
3219 fi
3220
3221
3222           eval "$ac_cv_use_fileproto"
3223           if test "$no_cache" != 1; then
3224             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3225           fi
3226
3227           if test "$wxUSE_PROTOCOL_FILE" = yes; then
3228             echo "$ac_t""yes" 1>&6
3229           else
3230             echo "$ac_t""no" 1>&6
3231           fi
3232         
3233
3234           echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3235 echo "configure:3236: checking for --enable-sockets" >&5
3236           no_cache=0
3237           # Check whether --enable-sockets or --disable-sockets was given.
3238 if test "${enable_sockets+set}" = set; then
3239   enableval="$enable_sockets"
3240   
3241                           if test "$enableval" = yes; then
3242                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3243                           else
3244                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
3245                           fi
3246                         
3247 else
3248   
3249                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3250                           if test "x$LINE" != x ; then
3251                             eval "DEFAULT_$LINE"
3252                           else
3253                             no_cache=1
3254                           fi
3255
3256                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3257                         
3258 fi
3259
3260
3261           eval "$ac_cv_use_sockets"
3262           if test "$no_cache" != 1; then
3263             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3264           fi
3265
3266           if test "$wxUSE_SOCKETS" = yes; then
3267             echo "$ac_t""yes" 1>&6
3268           else
3269             echo "$ac_t""no" 1>&6
3270           fi
3271         
3272
3273
3274           echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3275 echo "configure:3276: checking for --enable-ipc" >&5
3276           no_cache=0
3277           # Check whether --enable-ipc or --disable-ipc was given.
3278 if test "${enable_ipc+set}" = set; then
3279   enableval="$enable_ipc"
3280   
3281                           if test "$enableval" = yes; then
3282                             ac_cv_use_ipc='wxUSE_IPC=yes'
3283                           else
3284                             ac_cv_use_ipc='wxUSE_IPC=no'
3285                           fi
3286                         
3287 else
3288   
3289                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3290                           if test "x$LINE" != x ; then
3291                             eval "DEFAULT_$LINE"
3292                           else
3293                             no_cache=1
3294                           fi
3295
3296                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3297                         
3298 fi
3299
3300
3301           eval "$ac_cv_use_ipc"
3302           if test "$no_cache" != 1; then
3303             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3304           fi
3305
3306           if test "$wxUSE_IPC" = yes; then
3307             echo "$ac_t""yes" 1>&6
3308           else
3309             echo "$ac_t""no" 1>&6
3310           fi
3311         
3312
3313
3314           echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3315 echo "configure:3316: checking for --enable-cmdline" >&5
3316           no_cache=0
3317           # Check whether --enable-cmdline or --disable-cmdline was given.
3318 if test "${enable_cmdline+set}" = set; then
3319   enableval="$enable_cmdline"
3320   
3321                           if test "$enableval" = yes; then
3322                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3323                           else
3324                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3325                           fi
3326                         
3327 else
3328   
3329                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${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_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3337                         
3338 fi
3339
3340
3341           eval "$ac_cv_use_cmdline"
3342           if test "$no_cache" != 1; then
3343             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3344           fi
3345
3346           if test "$wxUSE_CMDLINE_PARSER" = yes; then
3347             echo "$ac_t""yes" 1>&6
3348           else
3349             echo "$ac_t""no" 1>&6
3350           fi
3351         
3352
3353           echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3354 echo "configure:3355: checking for --enable-datetime" >&5
3355           no_cache=0
3356           # Check whether --enable-datetime or --disable-datetime was given.
3357 if test "${enable_datetime+set}" = set; then
3358   enableval="$enable_datetime"
3359   
3360                           if test "$enableval" = yes; then
3361                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
3362                           else
3363                             ac_cv_use_datetime='wxUSE_DATETIME=no'
3364                           fi
3365                         
3366 else
3367   
3368                           LINE=`grep "wxUSE_DATETIME" ${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_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3376                         
3377 fi
3378
3379
3380           eval "$ac_cv_use_datetime"
3381           if test "$no_cache" != 1; then
3382             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3383           fi
3384
3385           if test "$wxUSE_DATETIME" = yes; then
3386             echo "$ac_t""yes" 1>&6
3387           else
3388             echo "$ac_t""no" 1>&6
3389           fi
3390         
3391
3392           echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3393 echo "configure:3394: checking for --enable-timedate" >&5
3394           no_cache=0
3395           # Check whether --enable-timedate or --disable-timedate was given.
3396 if test "${enable_timedate+set}" = set; then
3397   enableval="$enable_timedate"
3398   
3399                           if test "$enableval" = yes; then
3400                             ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3401                           else
3402                             ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3403                           fi
3404                         
3405 else
3406   
3407                           LINE=`grep "wxUSE_TIMEDATE" ${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_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3415                         
3416 fi
3417
3418
3419           eval "$ac_cv_use_timedate"
3420           if test "$no_cache" != 1; then
3421             echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3422           fi
3423
3424           if test "$wxUSE_TIMEDATE" = yes; then
3425             echo "$ac_t""yes" 1>&6
3426           else
3427             echo "$ac_t""no" 1>&6
3428           fi
3429         
3430
3431           echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3432 echo "configure:3433: checking for --enable-stopwatch" >&5
3433           no_cache=0
3434           # Check whether --enable-stopwatch or --disable-stopwatch was given.
3435 if test "${enable_stopwatch+set}" = set; then
3436   enableval="$enable_stopwatch"
3437   
3438                           if test "$enableval" = yes; then
3439                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3440                           else
3441                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3442                           fi
3443                         
3444 else
3445   
3446                           LINE=`grep "wxUSE_STOPWATCH" ${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_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3454                         
3455 fi
3456
3457
3458           eval "$ac_cv_use_stopwatch"
3459           if test "$no_cache" != 1; then
3460             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3461           fi
3462
3463           if test "$wxUSE_STOPWATCH" = yes; then
3464             echo "$ac_t""yes" 1>&6
3465           else
3466             echo "$ac_t""no" 1>&6
3467           fi
3468         
3469
3470           echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3471 echo "configure:3472: checking for --enable-dialupman" >&5
3472           no_cache=0
3473           # Check whether --enable-dialupman or --disable-dialupman was given.
3474 if test "${enable_dialupman+set}" = set; then
3475   enableval="$enable_dialupman"
3476   
3477                           if test "$enableval" = yes; then
3478                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3479                           else
3480                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3481                           fi
3482                         
3483 else
3484   
3485                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${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_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3493                         
3494 fi
3495
3496
3497           eval "$ac_cv_use_dialupman"
3498           if test "$no_cache" != 1; then
3499             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3500           fi
3501
3502           if test "$wxUSE_DIALUP_MANAGER" = yes; then
3503             echo "$ac_t""yes" 1>&6
3504           else
3505             echo "$ac_t""no" 1>&6
3506           fi
3507         
3508
3509           echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3510 echo "configure:3511: checking for --enable-apple_ieee" >&5
3511           no_cache=0
3512           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3513 if test "${enable_apple_ieee+set}" = set; then
3514   enableval="$enable_apple_ieee"
3515   
3516                           if test "$enableval" = yes; then
3517                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3518                           else
3519                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3520                           fi
3521                         
3522 else
3523   
3524                           LINE=`grep "wxUSE_APPLE_IEEE" ${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_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3532                         
3533 fi
3534
3535
3536           eval "$ac_cv_use_apple_ieee"
3537           if test "$no_cache" != 1; then
3538             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3539           fi
3540
3541           if test "$wxUSE_APPLE_IEEE" = yes; then
3542             echo "$ac_t""yes" 1>&6
3543           else
3544             echo "$ac_t""no" 1>&6
3545           fi
3546         
3547
3548           echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3549 echo "configure:3550: checking for --enable-timer" >&5
3550           no_cache=0
3551           # Check whether --enable-timer or --disable-timer was given.
3552 if test "${enable_timer+set}" = set; then
3553   enableval="$enable_timer"
3554   
3555                           if test "$enableval" = yes; then
3556                             ac_cv_use_timer='wxUSE_TIMER=yes'
3557                           else
3558                             ac_cv_use_timer='wxUSE_TIMER=no'
3559                           fi
3560                         
3561 else
3562   
3563                           LINE=`grep "wxUSE_TIMER" ${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_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3571                         
3572 fi
3573
3574
3575           eval "$ac_cv_use_timer"
3576           if test "$no_cache" != 1; then
3577             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3578           fi
3579
3580           if test "$wxUSE_TIMER" = yes; then
3581             echo "$ac_t""yes" 1>&6
3582           else
3583             echo "$ac_t""no" 1>&6
3584           fi
3585         
3586
3587           echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3588 echo "configure:3589: checking for --enable-wave" >&5
3589           no_cache=0
3590           # Check whether --enable-wave or --disable-wave was given.
3591 if test "${enable_wave+set}" = set; then
3592   enableval="$enable_wave"
3593   
3594                           if test "$enableval" = yes; then
3595                             ac_cv_use_wave='wxUSE_WAVE=yes'
3596                           else
3597                             ac_cv_use_wave='wxUSE_WAVE=no'
3598                           fi
3599                         
3600 else
3601   
3602                           LINE=`grep "wxUSE_WAVE" ${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_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3610                         
3611 fi
3612
3613
3614           eval "$ac_cv_use_wave"
3615           if test "$no_cache" != 1; then
3616             echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3617           fi
3618
3619           if test "$wxUSE_WAVE" = yes; then
3620             echo "$ac_t""yes" 1>&6
3621           else
3622             echo "$ac_t""no" 1>&6
3623           fi
3624         
3625
3626           echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3627 echo "configure:3628: checking for --enable-fraction" >&5
3628           no_cache=0
3629           # Check whether --enable-fraction or --disable-fraction was given.
3630 if test "${enable_fraction+set}" = set; then
3631   enableval="$enable_fraction"
3632   
3633                           if test "$enableval" = yes; then
3634                             ac_cv_use_fraction='wxUSE_FRACTION=yes'
3635                           else
3636                             ac_cv_use_fraction='wxUSE_FRACTION=no'
3637                           fi
3638                         
3639 else
3640   
3641                           LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3642                           if test "x$LINE" != x ; then
3643                             eval "DEFAULT_$LINE"
3644                           else
3645                             no_cache=1
3646                           fi
3647
3648                           ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3649                         
3650 fi
3651
3652
3653           eval "$ac_cv_use_fraction"
3654           if test "$no_cache" != 1; then
3655             echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3656           fi
3657
3658           if test "$wxUSE_FRACTION" = yes; then
3659             echo "$ac_t""yes" 1>&6
3660           else
3661             echo "$ac_t""no" 1>&6
3662           fi
3663         
3664
3665           echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3666 echo "configure:3667: checking for --enable-dynlib" >&5
3667           no_cache=0
3668           # Check whether --enable-dynlib or --disable-dynlib was given.
3669 if test "${enable_dynlib+set}" = set; then
3670   enableval="$enable_dynlib"
3671   
3672                           if test "$enableval" = yes; then
3673                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3674                           else
3675                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3676                           fi
3677                         
3678 else
3679   
3680                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3681                           if test "x$LINE" != x ; then
3682                             eval "DEFAULT_$LINE"
3683                           else
3684                             no_cache=1
3685                           fi
3686
3687                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3688                         
3689 fi
3690
3691
3692           eval "$ac_cv_use_dynlib"
3693           if test "$no_cache" != 1; then
3694             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3695           fi
3696
3697           if test "$wxUSE_DYNLIB_CLASS" = yes; then
3698             echo "$ac_t""yes" 1>&6
3699           else
3700             echo "$ac_t""no" 1>&6
3701           fi
3702         
3703
3704           echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3705 echo "configure:3706: checking for --enable-dynamicloader" >&5
3706           no_cache=0
3707           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3708 if test "${enable_dynamicloader+set}" = set; then
3709   enableval="$enable_dynamicloader"
3710   
3711                           if test "$enableval" = yes; then
3712                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3713                           else
3714                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3715                           fi
3716                         
3717 else
3718   
3719                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3720                           if test "x$LINE" != x ; then
3721                             eval "DEFAULT_$LINE"
3722                           else
3723                             no_cache=1
3724                           fi
3725
3726                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3727                         
3728 fi
3729
3730
3731           eval "$ac_cv_use_dynamicloader"
3732           if test "$no_cache" != 1; then
3733             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3734           fi
3735
3736           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3737             echo "$ac_t""yes" 1>&6
3738           else
3739             echo "$ac_t""no" 1>&6
3740           fi
3741         
3742
3743           echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3744 echo "configure:3745: checking for --enable-longlong" >&5
3745           no_cache=0
3746           # Check whether --enable-longlong or --disable-longlong was given.
3747 if test "${enable_longlong+set}" = set; then
3748   enableval="$enable_longlong"
3749   
3750                           if test "$enableval" = yes; then
3751                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3752                           else
3753                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
3754                           fi
3755                         
3756 else
3757   
3758                           LINE=`grep "wxUSE_LONGLONG" ${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_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3766                         
3767 fi
3768
3769
3770           eval "$ac_cv_use_longlong"
3771           if test "$no_cache" != 1; then
3772             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3773           fi
3774
3775           if test "$wxUSE_LONGLONG" = 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-geometry""... $ac_c" 1>&6
3783 echo "configure:3784: checking for --enable-geometry" >&5
3784           no_cache=0
3785           # Check whether --enable-geometry or --disable-geometry was given.
3786 if test "${enable_geometry+set}" = set; then
3787   enableval="$enable_geometry"
3788   
3789                           if test "$enableval" = yes; then
3790                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3791                           else
3792                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3793                           fi
3794                         
3795 else
3796   
3797                           LINE=`grep "wxUSE_GEOMETRY" ${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_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3805                         
3806 fi
3807
3808
3809           eval "$ac_cv_use_geometry"
3810           if test "$no_cache" != 1; then
3811             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3812           fi
3813
3814           if test "$wxUSE_GEOMETRY" = 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-log""... $ac_c" 1>&6
3822 echo "configure:3823: checking for --enable-log" >&5
3823           no_cache=0
3824           # Check whether --enable-log or --disable-log was given.
3825 if test "${enable_log+set}" = set; then
3826   enableval="$enable_log"
3827   
3828                           if test "$enableval" = yes; then
3829                             ac_cv_use_log='wxUSE_LOG=yes'
3830                           else
3831                             ac_cv_use_log='wxUSE_LOG=no'
3832                           fi
3833                         
3834 else
3835   
3836                           LINE=`grep "wxUSE_LOG" ${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_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3844                         
3845 fi
3846
3847
3848           eval "$ac_cv_use_log"
3849           if test "$no_cache" != 1; then
3850             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3851           fi
3852
3853           if test "$wxUSE_LOG" = yes; then
3854             echo "$ac_t""yes" 1>&6
3855           else
3856             echo "$ac_t""no" 1>&6
3857           fi
3858         
3859
3860           echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3861 echo "configure:3862: checking for --enable-streams" >&5
3862           no_cache=0
3863           # Check whether --enable-streams or --disable-streams was given.
3864 if test "${enable_streams+set}" = set; then
3865   enableval="$enable_streams"
3866   
3867                           if test "$enableval" = yes; then
3868                             ac_cv_use_streams='wxUSE_STREAMS=yes'
3869                           else
3870                             ac_cv_use_streams='wxUSE_STREAMS=no'
3871                           fi
3872                         
3873 else
3874   
3875                           LINE=`grep "wxUSE_STREAMS" ${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_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3883                         
3884 fi
3885
3886
3887           eval "$ac_cv_use_streams"
3888           if test "$no_cache" != 1; then
3889             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3890           fi
3891
3892           if test "$wxUSE_STREAMS" = yes; then
3893             echo "$ac_t""yes" 1>&6
3894           else
3895             echo "$ac_t""no" 1>&6
3896           fi
3897         
3898
3899           echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3900 echo "configure:3901: checking for --enable-file" >&5
3901           no_cache=0
3902           # Check whether --enable-file or --disable-file was given.
3903 if test "${enable_file+set}" = set; then
3904   enableval="$enable_file"
3905   
3906                           if test "$enableval" = yes; then
3907                             ac_cv_use_file='wxUSE_FILE=yes'
3908                           else
3909                             ac_cv_use_file='wxUSE_FILE=no'
3910                           fi
3911                         
3912 else
3913   
3914                           LINE=`grep "wxUSE_FILE" ${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_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3922                         
3923 fi
3924
3925
3926           eval "$ac_cv_use_file"
3927           if test "$no_cache" != 1; then
3928             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3929           fi
3930
3931           if test "$wxUSE_FILE" = yes; then
3932             echo "$ac_t""yes" 1>&6
3933           else
3934             echo "$ac_t""no" 1>&6
3935           fi
3936         
3937
3938           echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3939 echo "configure:3940: checking for --enable-ffile" >&5
3940           no_cache=0
3941           # Check whether --enable-ffile or --disable-ffile was given.
3942 if test "${enable_ffile+set}" = set; then
3943   enableval="$enable_ffile"
3944   
3945                           if test "$enableval" = yes; then
3946                             ac_cv_use_ffile='wxUSE_FFILE=yes'
3947                           else
3948                             ac_cv_use_ffile='wxUSE_FFILE=no'
3949                           fi
3950                         
3951 else
3952   
3953                           LINE=`grep "wxUSE_FFILE" ${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_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3961                         
3962 fi
3963
3964
3965           eval "$ac_cv_use_ffile"
3966           if test "$no_cache" != 1; then
3967             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3968           fi
3969
3970           if test "$wxUSE_FFILE" = yes; then
3971             echo "$ac_t""yes" 1>&6
3972           else
3973             echo "$ac_t""no" 1>&6
3974           fi
3975         
3976
3977           echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3978 echo "configure:3979: checking for --enable-textbuf" >&5
3979           no_cache=0
3980           # Check whether --enable-textbuf or --disable-textbuf was given.
3981 if test "${enable_textbuf+set}" = set; then
3982   enableval="$enable_textbuf"
3983   
3984                           if test "$enableval" = yes; then
3985                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3986                           else
3987                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3988                           fi
3989                         
3990 else
3991   
3992                           LINE=`grep "wxUSE_TEXTBUFFER" ${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_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4000                         
4001 fi
4002
4003
4004           eval "$ac_cv_use_textbuf"
4005           if test "$no_cache" != 1; then
4006             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4007           fi
4008
4009           if test "$wxUSE_TEXTBUFFER" = yes; then
4010             echo "$ac_t""yes" 1>&6
4011           else
4012             echo "$ac_t""no" 1>&6
4013           fi
4014         
4015
4016           echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4017 echo "configure:4018: checking for --enable-textfile" >&5
4018           no_cache=0
4019           # Check whether --enable-textfile or --disable-textfile was given.
4020 if test "${enable_textfile+set}" = set; then
4021   enableval="$enable_textfile"
4022   
4023                           if test "$enableval" = yes; then
4024                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4025                           else
4026                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4027                           fi
4028                         
4029 else
4030   
4031                           LINE=`grep "wxUSE_TEXTFILE" ${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_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4039                         
4040 fi
4041
4042
4043           eval "$ac_cv_use_textfile"
4044           if test "$no_cache" != 1; then
4045             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4046           fi
4047
4048           if test "$wxUSE_TEXTFILE" = yes; then
4049             echo "$ac_t""yes" 1>&6
4050           else
4051             echo "$ac_t""no" 1>&6
4052           fi
4053         
4054
4055           echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4056 echo "configure:4057: checking for --enable-fontmap" >&5
4057           no_cache=0
4058           # Check whether --enable-fontmap or --disable-fontmap was given.
4059 if test "${enable_fontmap+set}" = set; then
4060   enableval="$enable_fontmap"
4061   
4062                           if test "$enableval" = yes; then
4063                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4064                           else
4065                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4066                           fi
4067                         
4068 else
4069   
4070                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4071                           if test "x$LINE" != x ; then
4072                             eval "DEFAULT_$LINE"
4073                           else
4074                             no_cache=1
4075                           fi
4076
4077                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4078                         
4079 fi
4080
4081
4082           eval "$ac_cv_use_fontmap"
4083           if test "$no_cache" != 1; then
4084             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4085           fi
4086
4087           if test "$wxUSE_FONTMAP" = yes; then
4088             echo "$ac_t""yes" 1>&6
4089           else
4090             echo "$ac_t""no" 1>&6
4091           fi
4092         
4093
4094           echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4095 echo "configure:4096: checking for --enable-unicode" >&5
4096           no_cache=0
4097           # Check whether --enable-unicode or --disable-unicode was given.
4098 if test "${enable_unicode+set}" = set; then
4099   enableval="$enable_unicode"
4100   
4101                           if test "$enableval" = yes; then
4102                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
4103                           else
4104                             ac_cv_use_unicode='wxUSE_UNICODE=no'
4105                           fi
4106                         
4107 else
4108   
4109                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4110                           if test "x$LINE" != x ; then
4111                             eval "DEFAULT_$LINE"
4112                           else
4113                             no_cache=1
4114                           fi
4115
4116                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4117                         
4118 fi
4119
4120
4121           eval "$ac_cv_use_unicode"
4122           if test "$no_cache" != 1; then
4123             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4124           fi
4125
4126           if test "$wxUSE_UNICODE" = yes; then
4127             echo "$ac_t""yes" 1>&6
4128           else
4129             echo "$ac_t""no" 1>&6
4130           fi
4131         
4132
4133           echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4134 echo "configure:4135: checking for --enable-mslu" >&5
4135           no_cache=0
4136           # Check whether --enable-mslu or --disable-mslu was given.
4137 if test "${enable_mslu+set}" = set; then
4138   enableval="$enable_mslu"
4139   
4140                           if test "$enableval" = yes; then
4141                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4142                           else
4143                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4144                           fi
4145                         
4146 else
4147   
4148                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4149                           if test "x$LINE" != x ; then
4150                             eval "DEFAULT_$LINE"
4151                           else
4152                             no_cache=1
4153                           fi
4154
4155                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4156                         
4157 fi
4158
4159
4160           eval "$ac_cv_use_mslu"
4161           if test "$no_cache" != 1; then
4162             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4163           fi
4164
4165           if test "$wxUSE_UNICODE_MSLU" = yes; then
4166             echo "$ac_t""yes" 1>&6
4167           else
4168             echo "$ac_t""no" 1>&6
4169           fi
4170         
4171
4172           echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4173 echo "configure:4174: checking for --enable-wxprintfv" >&5
4174           no_cache=0
4175           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4176 if test "${enable_wxprintfv+set}" = set; then
4177   enableval="$enable_wxprintfv"
4178   
4179                           if test "$enableval" = yes; then
4180                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4181                           else
4182                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4183                           fi
4184                         
4185 else
4186   
4187                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4188                           if test "x$LINE" != x ; then
4189                             eval "DEFAULT_$LINE"
4190                           else
4191                             no_cache=1
4192                           fi
4193
4194                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4195                         
4196 fi
4197
4198
4199           eval "$ac_cv_use_wxprintfv"
4200           if test "$no_cache" != 1; then
4201             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4202           fi
4203
4204           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4205             echo "$ac_t""yes" 1>&6
4206           else
4207             echo "$ac_t""no" 1>&6
4208           fi
4209         
4210
4211           echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4212 echo "configure:4213: checking for --enable-std_iostreams" >&5
4213           no_cache=0
4214           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4215 if test "${enable_std_iostreams+set}" = set; then
4216   enableval="$enable_std_iostreams"
4217   
4218                           if test "$enableval" = yes; then
4219                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4220                           else
4221                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4222                           fi
4223                         
4224 else
4225   
4226                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4227                           if test "x$LINE" != x ; then
4228                             eval "DEFAULT_$LINE"
4229                           else
4230                             no_cache=1
4231                           fi
4232
4233                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4234                         
4235 fi
4236
4237
4238           eval "$ac_cv_use_std_iostreams"
4239           if test "$no_cache" != 1; then
4240             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4241           fi
4242
4243           if test "$wxUSE_STD_IOSTREAM" = yes; then
4244             echo "$ac_t""yes" 1>&6
4245           else
4246             echo "$ac_t""no" 1>&6
4247           fi
4248         
4249
4250           echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4251 echo "configure:4252: checking for --enable-filesystem" >&5
4252           no_cache=0
4253           # Check whether --enable-filesystem or --disable-filesystem was given.
4254 if test "${enable_filesystem+set}" = set; then
4255   enableval="$enable_filesystem"
4256   
4257                           if test "$enableval" = yes; then
4258                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4259                           else
4260                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4261                           fi
4262                         
4263 else
4264   
4265                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4266                           if test "x$LINE" != x ; then
4267                             eval "DEFAULT_$LINE"
4268                           else
4269                             no_cache=1
4270                           fi
4271
4272                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4273                         
4274 fi
4275
4276
4277           eval "$ac_cv_use_filesystem"
4278           if test "$no_cache" != 1; then
4279             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4280           fi
4281
4282           if test "$wxUSE_FILESYSTEM" = yes; then
4283             echo "$ac_t""yes" 1>&6
4284           else
4285             echo "$ac_t""no" 1>&6
4286           fi
4287         
4288
4289           echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4290 echo "configure:4291: checking for --enable-fs_inet" >&5
4291           no_cache=0
4292           # Check whether --enable-fs_inet or --disable-fs_inet was given.
4293 if test "${enable_fs_inet+set}" = set; then
4294   enableval="$enable_fs_inet"
4295   
4296                           if test "$enableval" = yes; then
4297                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4298                           else
4299                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4300                           fi
4301                         
4302 else
4303   
4304                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4305                           if test "x$LINE" != x ; then
4306                             eval "DEFAULT_$LINE"
4307                           else
4308                             no_cache=1
4309                           fi
4310
4311                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4312                         
4313 fi
4314
4315
4316           eval "$ac_cv_use_fs_inet"
4317           if test "$no_cache" != 1; then
4318             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4319           fi
4320
4321           if test "$wxUSE_FS_INET" = yes; then
4322             echo "$ac_t""yes" 1>&6
4323           else
4324             echo "$ac_t""no" 1>&6
4325           fi
4326         
4327
4328           echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4329 echo "configure:4330: checking for --enable-fs_zip" >&5
4330           no_cache=0
4331           # Check whether --enable-fs_zip or --disable-fs_zip was given.
4332 if test "${enable_fs_zip+set}" = set; then
4333   enableval="$enable_fs_zip"
4334   
4335                           if test "$enableval" = yes; then
4336                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4337                           else
4338                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4339                           fi
4340                         
4341 else
4342   
4343                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4344                           if test "x$LINE" != x ; then
4345                             eval "DEFAULT_$LINE"
4346                           else
4347                             no_cache=1
4348                           fi
4349
4350                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4351                         
4352 fi
4353
4354
4355           eval "$ac_cv_use_fs_zip"
4356           if test "$no_cache" != 1; then
4357             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4358           fi
4359
4360           if test "$wxUSE_FS_ZIP" = yes; then
4361             echo "$ac_t""yes" 1>&6
4362           else
4363             echo "$ac_t""no" 1>&6
4364           fi
4365         
4366
4367           echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4368 echo "configure:4369: checking for --enable-zipstream" >&5
4369           no_cache=0
4370           # Check whether --enable-zipstream or --disable-zipstream was given.
4371 if test "${enable_zipstream+set}" = set; then
4372   enableval="$enable_zipstream"
4373   
4374                           if test "$enableval" = yes; then
4375                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4376                           else
4377                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4378                           fi
4379                         
4380 else
4381   
4382                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4383                           if test "x$LINE" != x ; then
4384                             eval "DEFAULT_$LINE"
4385                           else
4386                             no_cache=1
4387                           fi
4388
4389                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4390                         
4391 fi
4392
4393
4394           eval "$ac_cv_use_zipstream"
4395           if test "$no_cache" != 1; then
4396             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4397           fi
4398
4399           if test "$wxUSE_ZIPSTREAM" = yes; then
4400             echo "$ac_t""yes" 1>&6
4401           else
4402             echo "$ac_t""no" 1>&6
4403           fi
4404         
4405
4406
4407           echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4408 echo "configure:4409: checking for --enable-catch_segvs" >&5
4409           no_cache=0
4410           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4411 if test "${enable_catch_segvs+set}" = set; then
4412   enableval="$enable_catch_segvs"
4413   
4414                           if test "$enableval" = yes; then
4415                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4416                           else
4417                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4418                           fi
4419                         
4420 else
4421   
4422                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4423                           if test "x$LINE" != x ; then
4424                             eval "DEFAULT_$LINE"
4425                           else
4426                             no_cache=1
4427                           fi
4428
4429                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4430                         
4431 fi
4432
4433
4434           eval "$ac_cv_use_catch_segvs"
4435           if test "$no_cache" != 1; then
4436             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4437           fi
4438
4439           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4440             echo "$ac_t""yes" 1>&6
4441           else
4442             echo "$ac_t""no" 1>&6
4443           fi
4444         
4445
4446           echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4447 echo "configure:4448: checking for --enable-snglinst" >&5
4448           no_cache=0
4449           # Check whether --enable-snglinst or --disable-snglinst was given.
4450 if test "${enable_snglinst+set}" = set; then
4451   enableval="$enable_snglinst"
4452   
4453                           if test "$enableval" = yes; then
4454                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4455                           else
4456                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4457                           fi
4458                         
4459 else
4460   
4461                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4462                           if test "x$LINE" != x ; then
4463                             eval "DEFAULT_$LINE"
4464                           else
4465                             no_cache=1
4466                           fi
4467
4468                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4469                         
4470 fi
4471
4472
4473           eval "$ac_cv_use_snglinst"
4474           if test "$no_cache" != 1; then
4475             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4476           fi
4477
4478           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4479             echo "$ac_t""yes" 1>&6
4480           else
4481             echo "$ac_t""no" 1>&6
4482           fi
4483         
4484
4485
4486           echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4487 echo "configure:4488: checking for --enable-mimetype" >&5
4488           no_cache=0
4489           # Check whether --enable-mimetype or --disable-mimetype was given.
4490 if test "${enable_mimetype+set}" = set; then
4491   enableval="$enable_mimetype"
4492   
4493                           if test "$enableval" = yes; then
4494                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4495                           else
4496                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4497                           fi
4498                         
4499 else
4500   
4501                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4502                           if test "x$LINE" != x ; then
4503                             eval "DEFAULT_$LINE"
4504                           else
4505                             no_cache=1
4506                           fi
4507
4508                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4509                         
4510 fi
4511
4512
4513           eval "$ac_cv_use_mimetype"
4514           if test "$no_cache" != 1; then
4515             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4516           fi
4517
4518           if test "$wxUSE_MIMETYPE" = yes; then
4519             echo "$ac_t""yes" 1>&6
4520           else
4521             echo "$ac_t""no" 1>&6
4522           fi
4523         
4524
4525           echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4526 echo "configure:4527: checking for --enable-system_options" >&5
4527           no_cache=0
4528           # Check whether --enable-system_options or --disable-system_options was given.
4529 if test "${enable_system_options+set}" = set; then
4530   enableval="$enable_system_options"
4531   
4532                           if test "$enableval" = yes; then
4533                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4534                           else
4535                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4536                           fi
4537                         
4538 else
4539   
4540                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4541                           if test "x$LINE" != x ; then
4542                             eval "DEFAULT_$LINE"
4543                           else
4544                             no_cache=1
4545                           fi
4546
4547                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4548                         
4549 fi
4550
4551
4552           eval "$ac_cv_use_system_options"
4553           if test "$no_cache" != 1; then
4554             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4555           fi
4556
4557           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4558             echo "$ac_t""yes" 1>&6
4559           else
4560             echo "$ac_t""no" 1>&6
4561           fi
4562         
4563
4564
4565           echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4566 echo "configure:4567: checking for --enable-url" >&5
4567           no_cache=0
4568           # Check whether --enable-url or --disable-url was given.
4569 if test "${enable_url+set}" = set; then
4570   enableval="$enable_url"
4571   
4572                           if test "$enableval" = yes; then
4573                             ac_cv_use_url='wxUSE_URL=yes'
4574                           else
4575                             ac_cv_use_url='wxUSE_URL=no'
4576                           fi
4577                         
4578 else
4579   
4580                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4581                           if test "x$LINE" != x ; then
4582                             eval "DEFAULT_$LINE"
4583                           else
4584                             no_cache=1
4585                           fi
4586
4587                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4588                         
4589 fi
4590
4591
4592           eval "$ac_cv_use_url"
4593           if test "$no_cache" != 1; then
4594             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4595           fi
4596
4597           if test "$wxUSE_URL" = yes; then
4598             echo "$ac_t""yes" 1>&6
4599           else
4600             echo "$ac_t""no" 1>&6
4601           fi
4602         
4603
4604           echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4605 echo "configure:4606: checking for --enable-protocol" >&5
4606           no_cache=0
4607           # Check whether --enable-protocol or --disable-protocol was given.
4608 if test "${enable_protocol+set}" = set; then
4609   enableval="$enable_protocol"
4610   
4611                           if test "$enableval" = yes; then
4612                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4613                           else
4614                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4615                           fi
4616                         
4617 else
4618   
4619                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4620                           if test "x$LINE" != x ; then
4621                             eval "DEFAULT_$LINE"
4622                           else
4623                             no_cache=1
4624                           fi
4625
4626                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4627                         
4628 fi
4629
4630
4631           eval "$ac_cv_use_protocol"
4632           if test "$no_cache" != 1; then
4633             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4634           fi
4635
4636           if test "$wxUSE_PROTOCOL" = yes; then
4637             echo "$ac_t""yes" 1>&6
4638           else
4639             echo "$ac_t""no" 1>&6
4640           fi
4641         
4642
4643           echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4644 echo "configure:4645: checking for --enable-protocol_http" >&5
4645           no_cache=0
4646           # Check whether --enable-protocol_http or --disable-protocol_http was given.
4647 if test "${enable_protocol_http+set}" = set; then
4648   enableval="$enable_protocol_http"
4649   
4650                           if test "$enableval" = yes; then
4651                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4652                           else
4653                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4654                           fi
4655                         
4656 else
4657   
4658                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4659                           if test "x$LINE" != x ; then
4660                             eval "DEFAULT_$LINE"
4661                           else
4662                             no_cache=1
4663                           fi
4664
4665                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4666                         
4667 fi
4668
4669
4670           eval "$ac_cv_use_protocol_http"
4671           if test "$no_cache" != 1; then
4672             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4673           fi
4674
4675           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4676             echo "$ac_t""yes" 1>&6
4677           else
4678             echo "$ac_t""no" 1>&6
4679           fi
4680         
4681
4682           echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4683 echo "configure:4684: checking for --enable-protocol_ftp" >&5
4684           no_cache=0
4685           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4686 if test "${enable_protocol_ftp+set}" = set; then
4687   enableval="$enable_protocol_ftp"
4688   
4689                           if test "$enableval" = yes; then
4690                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4691                           else
4692                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4693                           fi
4694                         
4695 else
4696   
4697                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4698                           if test "x$LINE" != x ; then
4699                             eval "DEFAULT_$LINE"
4700                           else
4701                             no_cache=1
4702                           fi
4703
4704                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4705                         
4706 fi
4707
4708
4709           eval "$ac_cv_use_protocol_ftp"
4710           if test "$no_cache" != 1; then
4711             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4712           fi
4713
4714           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4715             echo "$ac_t""yes" 1>&6
4716           else
4717             echo "$ac_t""no" 1>&6
4718           fi
4719         
4720
4721           echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4722 echo "configure:4723: checking for --enable-protocol_file" >&5
4723           no_cache=0
4724           # Check whether --enable-protocol_file or --disable-protocol_file was given.
4725 if test "${enable_protocol_file+set}" = set; then
4726   enableval="$enable_protocol_file"
4727   
4728                           if test "$enableval" = yes; then
4729                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4730                           else
4731                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4732                           fi
4733                         
4734 else
4735   
4736                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4737                           if test "x$LINE" != x ; then
4738                             eval "DEFAULT_$LINE"
4739                           else
4740                             no_cache=1
4741                           fi
4742
4743                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4744                         
4745 fi
4746
4747
4748           eval "$ac_cv_use_protocol_file"
4749           if test "$no_cache" != 1; then
4750             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4751           fi
4752
4753           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4754             echo "$ac_t""yes" 1>&6
4755           else
4756             echo "$ac_t""no" 1>&6
4757           fi
4758         
4759
4760
4761
4762
4763           echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4764 echo "configure:4765: checking for --enable-threads" >&5
4765           no_cache=0
4766           # Check whether --enable-threads or --disable-threads was given.
4767 if test "${enable_threads+set}" = set; then
4768   enableval="$enable_threads"
4769   
4770                           if test "$enableval" = yes; then
4771                             ac_cv_use_threads='wxUSE_THREADS=yes'
4772                           else
4773                             ac_cv_use_threads='wxUSE_THREADS=no'
4774                           fi
4775                         
4776 else
4777   
4778                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4779                           if test "x$LINE" != x ; then
4780                             eval "DEFAULT_$LINE"
4781                           else
4782                             no_cache=1
4783                           fi
4784
4785                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4786                         
4787 fi
4788
4789
4790           eval "$ac_cv_use_threads"
4791           if test "$no_cache" != 1; then
4792             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4793           fi
4794
4795           if test "$wxUSE_THREADS" = yes; then
4796             echo "$ac_t""yes" 1>&6
4797           else
4798             echo "$ac_t""no" 1>&6
4799           fi
4800         
4801
4802 if test "$wxUSE_GUI" = "yes"; then
4803
4804
4805
4806           echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4807 echo "configure:4808: checking for --enable-docview" >&5
4808           no_cache=0
4809           # Check whether --enable-docview or --disable-docview was given.
4810 if test "${enable_docview+set}" = set; then
4811   enableval="$enable_docview"
4812   
4813                           if test "$enableval" = yes; then
4814                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4815                           else
4816                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4817                           fi
4818                         
4819 else
4820   
4821                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4822                           if test "x$LINE" != x ; then
4823                             eval "DEFAULT_$LINE"
4824                           else
4825                             no_cache=1
4826                           fi
4827
4828                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4829                         
4830 fi
4831
4832
4833           eval "$ac_cv_use_docview"
4834           if test "$no_cache" != 1; then
4835             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4836           fi
4837
4838           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4839             echo "$ac_t""yes" 1>&6
4840           else
4841             echo "$ac_t""no" 1>&6
4842           fi
4843         
4844
4845           echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4846 echo "configure:4847: checking for --enable-help" >&5
4847           no_cache=0
4848           # Check whether --enable-help or --disable-help was given.
4849 if test "${enable_help+set}" = set; then
4850   enableval="$enable_help"
4851   
4852                           if test "$enableval" = yes; then
4853                             ac_cv_use_help='wxUSE_HELP=yes'
4854                           else
4855                             ac_cv_use_help='wxUSE_HELP=no'
4856                           fi
4857                         
4858 else
4859   
4860                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4861                           if test "x$LINE" != x ; then
4862                             eval "DEFAULT_$LINE"
4863                           else
4864                             no_cache=1
4865                           fi
4866
4867                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4868                         
4869 fi
4870
4871
4872           eval "$ac_cv_use_help"
4873           if test "$no_cache" != 1; then
4874             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4875           fi
4876
4877           if test "$wxUSE_HELP" = yes; then
4878             echo "$ac_t""yes" 1>&6
4879           else
4880             echo "$ac_t""no" 1>&6
4881           fi
4882         
4883
4884           echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4885 echo "configure:4886: checking for --enable-mshtmlhelp" >&5
4886           no_cache=0
4887           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4888 if test "${enable_mshtmlhelp+set}" = set; then
4889   enableval="$enable_mshtmlhelp"
4890   
4891                           if test "$enableval" = yes; then
4892                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4893                           else
4894                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4895                           fi
4896                         
4897 else
4898   
4899                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4900                           if test "x$LINE" != x ; then
4901                             eval "DEFAULT_$LINE"
4902                           else
4903                             no_cache=1
4904                           fi
4905
4906                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4907                         
4908 fi
4909
4910
4911           eval "$ac_cv_use_mshtmlhelp"
4912           if test "$no_cache" != 1; then
4913             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4914           fi
4915
4916           if test "$wxUSE_MS_HTML_HELP" = yes; then
4917             echo "$ac_t""yes" 1>&6
4918           else
4919             echo "$ac_t""no" 1>&6
4920           fi
4921         
4922
4923           echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4924 echo "configure:4925: checking for --enable-html" >&5
4925           no_cache=0
4926           # Check whether --enable-html or --disable-html was given.
4927 if test "${enable_html+set}" = set; then
4928   enableval="$enable_html"
4929   
4930                           if test "$enableval" = yes; then
4931                             ac_cv_use_html='wxUSE_HTML=yes'
4932                           else
4933                             ac_cv_use_html='wxUSE_HTML=no'
4934                           fi
4935                         
4936 else
4937   
4938                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4939                           if test "x$LINE" != x ; then
4940                             eval "DEFAULT_$LINE"
4941                           else
4942                             no_cache=1
4943                           fi
4944
4945                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4946                         
4947 fi
4948
4949
4950           eval "$ac_cv_use_html"
4951           if test "$no_cache" != 1; then
4952             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4953           fi
4954
4955           if test "$wxUSE_HTML" = yes; then
4956             echo "$ac_t""yes" 1>&6
4957           else
4958             echo "$ac_t""no" 1>&6
4959           fi
4960         
4961
4962           echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4963 echo "configure:4964: checking for --enable-htmlhelp" >&5
4964           no_cache=0
4965           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4966 if test "${enable_htmlhelp+set}" = set; then
4967   enableval="$enable_htmlhelp"
4968   
4969                           if test "$enableval" = yes; then
4970                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4971                           else
4972                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4973                           fi
4974                         
4975 else
4976   
4977                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4978                           if test "x$LINE" != x ; then
4979                             eval "DEFAULT_$LINE"
4980                           else
4981                             no_cache=1
4982                           fi
4983
4984                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4985                         
4986 fi
4987
4988
4989           eval "$ac_cv_use_htmlhelp"
4990           if test "$no_cache" != 1; then
4991             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4992           fi
4993
4994           if test "$wxUSE_WXHTML_HELP" = yes; then
4995             echo "$ac_t""yes" 1>&6
4996           else
4997             echo "$ac_t""no" 1>&6
4998           fi
4999         
5000
5001           echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5002 echo "configure:5003: checking for --enable-constraints" >&5
5003           no_cache=0
5004           # Check whether --enable-constraints or --disable-constraints was given.
5005 if test "${enable_constraints+set}" = set; then
5006   enableval="$enable_constraints"
5007   
5008                           if test "$enableval" = yes; then
5009                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5010                           else
5011                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5012                           fi
5013                         
5014 else
5015   
5016                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5017                           if test "x$LINE" != x ; then
5018                             eval "DEFAULT_$LINE"
5019                           else
5020                             no_cache=1
5021                           fi
5022
5023                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5024                         
5025 fi
5026
5027
5028           eval "$ac_cv_use_constraints"
5029           if test "$no_cache" != 1; then
5030             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5031           fi
5032
5033           if test "$wxUSE_CONSTRAINTS" = yes; then
5034             echo "$ac_t""yes" 1>&6
5035           else
5036             echo "$ac_t""no" 1>&6
5037           fi
5038         
5039
5040           echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5041 echo "configure:5042: checking for --enable-printarch" >&5
5042           no_cache=0
5043           # Check whether --enable-printarch or --disable-printarch was given.
5044 if test "${enable_printarch+set}" = set; then
5045   enableval="$enable_printarch"
5046   
5047                           if test "$enableval" = yes; then
5048                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5049                           else
5050                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5051                           fi
5052                         
5053 else
5054   
5055                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5056                           if test "x$LINE" != x ; then
5057                             eval "DEFAULT_$LINE"
5058                           else
5059                             no_cache=1
5060                           fi
5061
5062                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5063                         
5064 fi
5065
5066
5067           eval "$ac_cv_use_printarch"
5068           if test "$no_cache" != 1; then
5069             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5070           fi
5071
5072           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5073             echo "$ac_t""yes" 1>&6
5074           else
5075             echo "$ac_t""no" 1>&6
5076           fi
5077         
5078
5079           echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5080 echo "configure:5081: checking for --enable-mdi" >&5
5081           no_cache=0
5082           # Check whether --enable-mdi or --disable-mdi was given.
5083 if test "${enable_mdi+set}" = set; then
5084   enableval="$enable_mdi"
5085   
5086                           if test "$enableval" = yes; then
5087                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5088                           else
5089                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5090                           fi
5091                         
5092 else
5093   
5094                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5095                           if test "x$LINE" != x ; then
5096                             eval "DEFAULT_$LINE"
5097                           else
5098                             no_cache=1
5099                           fi
5100
5101                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5102                         
5103 fi
5104
5105
5106           eval "$ac_cv_use_mdi"
5107           if test "$no_cache" != 1; then
5108             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5109           fi
5110
5111           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5112             echo "$ac_t""yes" 1>&6
5113           else
5114             echo "$ac_t""no" 1>&6
5115           fi
5116         
5117
5118           echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5119 echo "configure:5120: checking for --enable-loggui" >&5
5120           no_cache=0
5121           # Check whether --enable-loggui or --disable-loggui was given.
5122 if test "${enable_loggui+set}" = set; then
5123   enableval="$enable_loggui"
5124   
5125                           if test "$enableval" = yes; then
5126                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5127                           else
5128                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
5129                           fi
5130                         
5131 else
5132   
5133                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5134                           if test "x$LINE" != x ; then
5135                             eval "DEFAULT_$LINE"
5136                           else
5137                             no_cache=1
5138                           fi
5139
5140                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5141                         
5142 fi
5143
5144
5145           eval "$ac_cv_use_loggui"
5146           if test "$no_cache" != 1; then
5147             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5148           fi
5149
5150           if test "$wxUSE_LOGGUI" = yes; then
5151             echo "$ac_t""yes" 1>&6
5152           else
5153             echo "$ac_t""no" 1>&6
5154           fi
5155         
5156
5157           echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5158 echo "configure:5159: checking for --enable-logwin" >&5
5159           no_cache=0
5160           # Check whether --enable-logwin or --disable-logwin was given.
5161 if test "${enable_logwin+set}" = set; then
5162   enableval="$enable_logwin"
5163   
5164                           if test "$enableval" = yes; then
5165                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5166                           else
5167                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5168                           fi
5169                         
5170 else
5171   
5172                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5173                           if test "x$LINE" != x ; then
5174                             eval "DEFAULT_$LINE"
5175                           else
5176                             no_cache=1
5177                           fi
5178
5179                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5180                         
5181 fi
5182
5183
5184           eval "$ac_cv_use_logwin"
5185           if test "$no_cache" != 1; then
5186             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5187           fi
5188
5189           if test "$wxUSE_LOGWINDOW" = yes; then
5190             echo "$ac_t""yes" 1>&6
5191           else
5192             echo "$ac_t""no" 1>&6
5193           fi
5194         
5195
5196           echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5197 echo "configure:5198: checking for --enable-logdialog" >&5
5198           no_cache=0
5199           # Check whether --enable-logdialog or --disable-logdialog was given.
5200 if test "${enable_logdialog+set}" = set; then
5201   enableval="$enable_logdialog"
5202   
5203                           if test "$enableval" = yes; then
5204                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5205                           else
5206                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5207                           fi
5208                         
5209 else
5210   
5211                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5212                           if test "x$LINE" != x ; then
5213                             eval "DEFAULT_$LINE"
5214                           else
5215                             no_cache=1
5216                           fi
5217
5218                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5219                         
5220 fi
5221
5222
5223           eval "$ac_cv_use_logdialog"
5224           if test "$no_cache" != 1; then
5225             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5226           fi
5227
5228           if test "$wxUSE_LOGDIALOG" = yes; then
5229             echo "$ac_t""yes" 1>&6
5230           else
5231             echo "$ac_t""no" 1>&6
5232           fi
5233         
5234
5235
5236           echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5237 echo "configure:5238: checking for --enable-postscript" >&5
5238           no_cache=0
5239           # Check whether --enable-postscript or --disable-postscript was given.
5240 if test "${enable_postscript+set}" = set; then
5241   enableval="$enable_postscript"
5242   
5243                           if test "$enableval" = yes; then
5244                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5245                           else
5246                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5247                           fi
5248                         
5249 else
5250   
5251                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5252                           if test "x$LINE" != x ; then
5253                             eval "DEFAULT_$LINE"
5254                           else
5255                             no_cache=1
5256                           fi
5257
5258                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5259                         
5260 fi
5261
5262
5263           eval "$ac_cv_use_postscript"
5264           if test "$no_cache" != 1; then
5265             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5266           fi
5267
5268           if test "$wxUSE_POSTSCRIPT" = yes; then
5269             echo "$ac_t""yes" 1>&6
5270           else
5271             echo "$ac_t""no" 1>&6
5272           fi
5273         
5274
5275
5276
5277
5278           echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5279 echo "configure:5280: checking for --enable-prologio" >&5
5280           no_cache=0
5281           # Check whether --enable-prologio or --disable-prologio was given.
5282 if test "${enable_prologio+set}" = set; then
5283   enableval="$enable_prologio"
5284   
5285                           if test "$enableval" = yes; then
5286                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5287                           else
5288                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5289                           fi
5290                         
5291 else
5292   
5293                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5294                           if test "x$LINE" != x ; then
5295                             eval "DEFAULT_$LINE"
5296                           else
5297                             no_cache=1
5298                           fi
5299
5300                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5301                         
5302 fi
5303
5304
5305           eval "$ac_cv_use_prologio"
5306           if test "$no_cache" != 1; then
5307             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5308           fi
5309
5310           if test "$wxUSE_PROLOGIO" = yes; then
5311             echo "$ac_t""yes" 1>&6
5312           else
5313             echo "$ac_t""no" 1>&6
5314           fi
5315         
5316
5317           echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5318 echo "configure:5319: checking for --enable-resources" >&5
5319           no_cache=0
5320           # Check whether --enable-resources or --disable-resources was given.
5321 if test "${enable_resources+set}" = set; then
5322   enableval="$enable_resources"
5323   
5324                           if test "$enableval" = yes; then
5325                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
5326                           else
5327                             ac_cv_use_resources='wxUSE_RESOURCES=no'
5328                           fi
5329                         
5330 else
5331   
5332                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5333                           if test "x$LINE" != x ; then
5334                             eval "DEFAULT_$LINE"
5335                           else
5336                             no_cache=1
5337                           fi
5338
5339                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5340                         
5341 fi
5342
5343
5344           eval "$ac_cv_use_resources"
5345           if test "$no_cache" != 1; then
5346             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5347           fi
5348
5349           if test "$wxUSE_RESOURCES" = yes; then
5350             echo "$ac_t""yes" 1>&6
5351           else
5352             echo "$ac_t""no" 1>&6
5353           fi
5354         
5355
5356
5357           echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5358 echo "configure:5359: checking for --enable-xresources" >&5
5359           no_cache=0
5360           # Check whether --enable-xresources or --disable-xresources was given.
5361 if test "${enable_xresources+set}" = set; then
5362   enableval="$enable_xresources"
5363   
5364                           if test "$enableval" = yes; then
5365                             ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5366                           else
5367                             ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5368                           fi
5369                         
5370 else
5371   
5372                           LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5373                           if test "x$LINE" != x ; then
5374                             eval "DEFAULT_$LINE"
5375                           else
5376                             no_cache=1
5377                           fi
5378
5379                           ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5380                         
5381 fi
5382
5383
5384           eval "$ac_cv_use_xresources"
5385           if test "$no_cache" != 1; then
5386             echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5387           fi
5388
5389           if test "$wxUSE_X_RESOURCES" = yes; then
5390             echo "$ac_t""yes" 1>&6
5391           else
5392             echo "$ac_t""no" 1>&6
5393           fi
5394         
5395
5396
5397
5398           echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5399 echo "configure:5400: checking for --enable-clipboard" >&5
5400           no_cache=0
5401           # Check whether --enable-clipboard or --disable-clipboard was given.
5402 if test "${enable_clipboard+set}" = set; then
5403   enableval="$enable_clipboard"
5404   
5405                           if test "$enableval" = yes; then
5406                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5407                           else
5408                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5409                           fi
5410                         
5411 else
5412   
5413                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5414                           if test "x$LINE" != x ; then
5415                             eval "DEFAULT_$LINE"
5416                           else
5417                             no_cache=1
5418                           fi
5419
5420                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5421                         
5422 fi
5423
5424
5425           eval "$ac_cv_use_clipboard"
5426           if test "$no_cache" != 1; then
5427             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5428           fi
5429
5430           if test "$wxUSE_CLIPBOARD" = yes; then
5431             echo "$ac_t""yes" 1>&6
5432           else
5433             echo "$ac_t""no" 1>&6
5434           fi
5435         
5436
5437           echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5438 echo "configure:5439: checking for --enable-dnd" >&5
5439           no_cache=0
5440           # Check whether --enable-dnd or --disable-dnd was given.
5441 if test "${enable_dnd+set}" = set; then
5442   enableval="$enable_dnd"
5443   
5444                           if test "$enableval" = yes; then
5445                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5446                           else
5447                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5448                           fi
5449                         
5450 else
5451   
5452                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5453                           if test "x$LINE" != x ; then
5454                             eval "DEFAULT_$LINE"
5455                           else
5456                             no_cache=1
5457                           fi
5458
5459                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5460                         
5461 fi
5462
5463
5464           eval "$ac_cv_use_dnd"
5465           if test "$no_cache" != 1; then
5466             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5467           fi
5468
5469           if test "$wxUSE_DRAG_AND_DROP" = yes; then
5470             echo "$ac_t""yes" 1>&6
5471           else
5472             echo "$ac_t""no" 1>&6
5473           fi
5474         
5475
5476           echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5477 echo "configure:5478: checking for --enable-metafile" >&5
5478           no_cache=0
5479           # Check whether --enable-metafile or --disable-metafile was given.
5480 if test "${enable_metafile+set}" = set; then
5481   enableval="$enable_metafile"
5482   
5483                           if test "$enableval" = yes; then
5484                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
5485                           else
5486                             ac_cv_use_metafile='wxUSE_METAFILE=no'
5487                           fi
5488                         
5489 else
5490   
5491                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5492                           if test "x$LINE" != x ; then
5493                             eval "DEFAULT_$LINE"
5494                           else
5495                             no_cache=1
5496                           fi
5497
5498                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5499                         
5500 fi
5501
5502
5503           eval "$ac_cv_use_metafile"
5504           if test "$no_cache" != 1; then
5505             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5506           fi
5507
5508           if test "$wxUSE_METAFILE" = yes; then
5509             echo "$ac_t""yes" 1>&6
5510           else
5511             echo "$ac_t""no" 1>&6
5512           fi
5513         
5514
5515
5516           echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5517 echo "configure:5518: checking for --enable-treelayout" >&5
5518           no_cache=0
5519           # Check whether --enable-treelayout or --disable-treelayout was given.
5520 if test "${enable_treelayout+set}" = set; then
5521   enableval="$enable_treelayout"
5522   
5523                           if test "$enableval" = yes; then
5524                             ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5525                           else
5526                             ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5527                           fi
5528                         
5529 else
5530   
5531                           LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5532                           if test "x$LINE" != x ; then
5533                             eval "DEFAULT_$LINE"
5534                           else
5535                             no_cache=1
5536                           fi
5537
5538                           ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5539                         
5540 fi
5541
5542
5543           eval "$ac_cv_use_treelayout"
5544           if test "$no_cache" != 1; then
5545             echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5546           fi
5547
5548           if test "$wxUSE_TREELAYOUT" = yes; then
5549             echo "$ac_t""yes" 1>&6
5550           else
5551             echo "$ac_t""no" 1>&6
5552           fi
5553         
5554
5555
5556
5557           echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5558 echo "configure:5559: checking for --enable-controls" >&5
5559           no_cache=0
5560           # Check whether --enable-controls or --disable-controls was given.
5561 if test "${enable_controls+set}" = set; then
5562   enableval="$enable_controls"
5563   
5564                           if test "$enableval" = yes; then
5565                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
5566                           else
5567                             ac_cv_use_controls='wxUSE_CONTROLS=no'
5568                           fi
5569                         
5570 else
5571   
5572                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5573                           if test "x$LINE" != x ; then
5574                             eval "DEFAULT_$LINE"
5575                           else
5576                             no_cache=1
5577                           fi
5578
5579                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5580                         
5581 fi
5582
5583
5584           eval "$ac_cv_use_controls"
5585           if test "$no_cache" != 1; then
5586             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5587           fi
5588
5589           if test "$wxUSE_CONTROLS" = yes; then
5590             echo "$ac_t""yes" 1>&6
5591           else
5592             echo "$ac_t""no" 1>&6
5593           fi
5594         
5595
5596 if test "$wxUSE_CONTROLS" = "yes"; then
5597   DEFAULT_wxUSE_ACCEL=yes
5598   DEFAULT_wxUSE_BMPBUTTON=yes
5599   DEFAULT_wxUSE_BUTTON=yes
5600   DEFAULT_wxUSE_CALCTRL=no
5601   DEFAULT_wxUSE_CARET=yes
5602   DEFAULT_wxUSE_COMBOBOX=yes
5603   DEFAULT_wxUSE_CHECKBOX=yes
5604   DEFAULT_wxUSE_CHECKLISTBOX=yes
5605   DEFAULT_wxUSE_CHOICE=yes
5606   DEFAULT_wxUSE_GAUGE=yes
5607   DEFAULT_wxUSE_GRID=yes
5608   DEFAULT_wxUSE_NEW_GRID=yes
5609   DEFAULT_wxUSE_IMAGLIST=yes
5610   DEFAULT_wxUSE_LISTBOX=yes
5611   DEFAULT_wxUSE_LISTCTRL=yes
5612   DEFAULT_wxUSE_NOTEBOOK=yes
5613   DEFAULT_wxUSE_PROPSHEET=yes
5614   DEFAULT_wxUSE_RADIOBOX=yes
5615   DEFAULT_wxUSE_RADIOBTN=yes
5616   DEFAULT_wxUSE_SASH=yes
5617   DEFAULT_wxUSE_SCROLLBAR=yes
5618   DEFAULT_wxUSE_SLIDER=yes
5619   DEFAULT_wxUSE_SPINBTN=yes
5620   DEFAULT_wxUSE_SPINCTRL=yes
5621   DEFAULT_wxUSE_SPLITTER=yes
5622   DEFAULT_wxUSE_STATBMP=yes
5623   DEFAULT_wxUSE_STATBOX=yes
5624   DEFAULT_wxUSE_STATLINE=yes
5625   DEFAULT_wxUSE_STATUSBAR=yes
5626   DEFAULT_wxUSE_TAB_DIALOG=yes
5627   DEFAULT_wxUSE_TOGGLEBTN=yes
5628   DEFAULT_wxUSE_TOOLBAR=yes
5629   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5630   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5631   DEFAULT_wxUSE_TOOLTIPS=yes
5632   DEFAULT_wxUSE_TREECTRL=yes
5633   DEFAULT_wxUSE_POPUPWIN=yes
5634   DEFAULT_wxUSE_TIPWINDOW=yes
5635 elif test "$wxUSE_CONTROLS" = "no"; then
5636   DEFAULT_wxUSE_ACCEL=no
5637   DEFAULT_wxUSE_BMPBUTTON=no
5638   DEFAULT_wxUSE_BUTTON=no
5639   DEFAULT_wxUSE_CALCTRL=no
5640   DEFAULT_wxUSE_CARET=no
5641   DEFAULT_wxUSE_COMBOBOX=no
5642   DEFAULT_wxUSE_CHECKBOX=no
5643   DEFAULT_wxUSE_CHECKLISTBOX=no
5644   DEFAULT_wxUSE_CHOICE=no
5645   DEFAULT_wxUSE_GAUGE=no
5646   DEFAULT_wxUSE_GRID=no
5647   DEFAULT_wxUSE_NEW_GRID=no
5648   DEFAULT_wxUSE_IMAGLIST=no
5649   DEFAULT_wxUSE_LISTBOX=no
5650   DEFAULT_wxUSE_LISTCTRL=no
5651   DEFAULT_wxUSE_NOTEBOOK=no
5652   DEFAULT_wxUSE_PROPSHEET=no
5653   DEFAULT_wxUSE_RADIOBOX=no
5654   DEFAULT_wxUSE_RADIOBTN=no
5655   DEFAULT_wxUSE_SASH=no
5656   DEFAULT_wxUSE_SCROLLBAR=no
5657   DEFAULT_wxUSE_SLIDER=no
5658   DEFAULT_wxUSE_SPINBTN=no
5659   DEFAULT_wxUSE_SPINCTRL=no
5660   DEFAULT_wxUSE_SPLITTER=no
5661   DEFAULT_wxUSE_STATBMP=no
5662   DEFAULT_wxUSE_STATBOX=no
5663   DEFAULT_wxUSE_STATLINE=no
5664   DEFAULT_wxUSE_STATUSBAR=no
5665   DEFAULT_wxUSE_TAB_DIALOG=no
5666   DEFAULT_wxUSE_TOGGLEBTN=no
5667   DEFAULT_wxUSE_TOOLBAR=no
5668   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5669   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5670   DEFAULT_wxUSE_TOOLTIPS=no
5671   DEFAULT_wxUSE_TREECTRL=no
5672   DEFAULT_wxUSE_POPUPWIN=no
5673   DEFAULT_wxUSE_TIPWINDOW=no
5674 fi
5675
5676
5677           echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5678 echo "configure:5679: checking for --enable-accel" >&5
5679           no_cache=0
5680           # Check whether --enable-accel or --disable-accel was given.
5681 if test "${enable_accel+set}" = set; then
5682   enableval="$enable_accel"
5683   
5684                           if test "$enableval" = yes; then
5685                             ac_cv_use_accel='wxUSE_ACCEL=yes'
5686                           else
5687                             ac_cv_use_accel='wxUSE_ACCEL=no'
5688                           fi
5689                         
5690 else
5691   
5692                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5693                           if test "x$LINE" != x ; then
5694                             eval "DEFAULT_$LINE"
5695                           else
5696                             no_cache=1
5697                           fi
5698
5699                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5700                         
5701 fi
5702
5703
5704           eval "$ac_cv_use_accel"
5705           if test "$no_cache" != 1; then
5706             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5707           fi
5708
5709           if test "$wxUSE_ACCEL" = yes; then
5710             echo "$ac_t""yes" 1>&6
5711           else
5712             echo "$ac_t""no" 1>&6
5713           fi
5714         
5715
5716           echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5717 echo "configure:5718: checking for --enable-button" >&5
5718           no_cache=0
5719           # Check whether --enable-button or --disable-button was given.
5720 if test "${enable_button+set}" = set; then
5721   enableval="$enable_button"
5722   
5723                           if test "$enableval" = yes; then
5724                             ac_cv_use_button='wxUSE_BUTTON=yes'
5725                           else
5726                             ac_cv_use_button='wxUSE_BUTTON=no'
5727                           fi
5728                         
5729 else
5730   
5731                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5732                           if test "x$LINE" != x ; then
5733                             eval "DEFAULT_$LINE"
5734                           else
5735                             no_cache=1
5736                           fi
5737
5738                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5739                         
5740 fi
5741
5742
5743           eval "$ac_cv_use_button"
5744           if test "$no_cache" != 1; then
5745             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5746           fi
5747
5748           if test "$wxUSE_BUTTON" = yes; then
5749             echo "$ac_t""yes" 1>&6
5750           else
5751             echo "$ac_t""no" 1>&6
5752           fi
5753         
5754
5755           echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5756 echo "configure:5757: checking for --enable-bmpbutton" >&5
5757           no_cache=0
5758           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5759 if test "${enable_bmpbutton+set}" = set; then
5760   enableval="$enable_bmpbutton"
5761   
5762                           if test "$enableval" = yes; then
5763                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5764                           else
5765                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5766                           fi
5767                         
5768 else
5769   
5770                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5771                           if test "x$LINE" != x ; then
5772                             eval "DEFAULT_$LINE"
5773                           else
5774                             no_cache=1
5775                           fi
5776
5777                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5778                         
5779 fi
5780
5781
5782           eval "$ac_cv_use_bmpbutton"
5783           if test "$no_cache" != 1; then
5784             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5785           fi
5786
5787           if test "$wxUSE_BMPBUTTON" = yes; then
5788             echo "$ac_t""yes" 1>&6
5789           else
5790             echo "$ac_t""no" 1>&6
5791           fi
5792         
5793
5794           echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5795 echo "configure:5796: checking for --enable-calendar" >&5
5796           no_cache=0
5797           # Check whether --enable-calendar or --disable-calendar was given.
5798 if test "${enable_calendar+set}" = set; then
5799   enableval="$enable_calendar"
5800   
5801                           if test "$enableval" = yes; then
5802                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5803                           else
5804                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
5805                           fi
5806                         
5807 else
5808   
5809                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5810                           if test "x$LINE" != x ; then
5811                             eval "DEFAULT_$LINE"
5812                           else
5813                             no_cache=1
5814                           fi
5815
5816                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5817                         
5818 fi
5819
5820
5821           eval "$ac_cv_use_calendar"
5822           if test "$no_cache" != 1; then
5823             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5824           fi
5825
5826           if test "$wxUSE_CALCTRL" = yes; then
5827             echo "$ac_t""yes" 1>&6
5828           else
5829             echo "$ac_t""no" 1>&6
5830           fi
5831         
5832
5833           echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5834 echo "configure:5835: checking for --enable-caret" >&5
5835           no_cache=0
5836           # Check whether --enable-caret or --disable-caret was given.
5837 if test "${enable_caret+set}" = set; then
5838   enableval="$enable_caret"
5839   
5840                           if test "$enableval" = yes; then
5841                             ac_cv_use_caret='wxUSE_CARET=yes'
5842                           else
5843                             ac_cv_use_caret='wxUSE_CARET=no'
5844                           fi
5845                         
5846 else
5847   
5848                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5849                           if test "x$LINE" != x ; then
5850                             eval "DEFAULT_$LINE"
5851                           else
5852                             no_cache=1
5853                           fi
5854
5855                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5856                         
5857 fi
5858
5859
5860           eval "$ac_cv_use_caret"
5861           if test "$no_cache" != 1; then
5862             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5863           fi
5864
5865           if test "$wxUSE_CARET" = yes; then
5866             echo "$ac_t""yes" 1>&6
5867           else
5868             echo "$ac_t""no" 1>&6
5869           fi
5870         
5871
5872           echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5873 echo "configure:5874: checking for --enable-checkbox" >&5
5874           no_cache=0
5875           # Check whether --enable-checkbox or --disable-checkbox was given.
5876 if test "${enable_checkbox+set}" = set; then
5877   enableval="$enable_checkbox"
5878   
5879                           if test "$enableval" = yes; then
5880                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5881                           else
5882                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5883                           fi
5884                         
5885 else
5886   
5887                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5888                           if test "x$LINE" != x ; then
5889                             eval "DEFAULT_$LINE"
5890                           else
5891                             no_cache=1
5892                           fi
5893
5894                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5895                         
5896 fi
5897
5898
5899           eval "$ac_cv_use_checkbox"
5900           if test "$no_cache" != 1; then
5901             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5902           fi
5903
5904           if test "$wxUSE_CHECKBOX" = yes; then
5905             echo "$ac_t""yes" 1>&6
5906           else
5907             echo "$ac_t""no" 1>&6
5908           fi
5909         
5910
5911           echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5912 echo "configure:5913: checking for --enable-checklst" >&5
5913           no_cache=0
5914           # Check whether --enable-checklst or --disable-checklst was given.
5915 if test "${enable_checklst+set}" = set; then
5916   enableval="$enable_checklst"
5917   
5918                           if test "$enableval" = yes; then
5919                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5920                           else
5921                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
5922                           fi
5923                         
5924 else
5925   
5926                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5927                           if test "x$LINE" != x ; then
5928                             eval "DEFAULT_$LINE"
5929                           else
5930                             no_cache=1
5931                           fi
5932
5933                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5934                         
5935 fi
5936
5937
5938           eval "$ac_cv_use_checklst"
5939           if test "$no_cache" != 1; then
5940             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5941           fi
5942
5943           if test "$wxUSE_CHECKLST" = yes; then
5944             echo "$ac_t""yes" 1>&6
5945           else
5946             echo "$ac_t""no" 1>&6
5947           fi
5948         
5949
5950           echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5951 echo "configure:5952: checking for --enable-choice" >&5
5952           no_cache=0
5953           # Check whether --enable-choice or --disable-choice was given.
5954 if test "${enable_choice+set}" = set; then
5955   enableval="$enable_choice"
5956   
5957                           if test "$enableval" = yes; then
5958                             ac_cv_use_choice='wxUSE_CHOICE=yes'
5959                           else
5960                             ac_cv_use_choice='wxUSE_CHOICE=no'
5961                           fi
5962                         
5963 else
5964   
5965                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5966                           if test "x$LINE" != x ; then
5967                             eval "DEFAULT_$LINE"
5968                           else
5969                             no_cache=1
5970                           fi
5971
5972                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5973                         
5974 fi
5975
5976
5977           eval "$ac_cv_use_choice"
5978           if test "$no_cache" != 1; then
5979             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5980           fi
5981
5982           if test "$wxUSE_CHOICE" = yes; then
5983             echo "$ac_t""yes" 1>&6
5984           else
5985             echo "$ac_t""no" 1>&6
5986           fi
5987         
5988
5989           echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5990 echo "configure:5991: checking for --enable-combobox" >&5
5991           no_cache=0
5992           # Check whether --enable-combobox or --disable-combobox was given.
5993 if test "${enable_combobox+set}" = set; then
5994   enableval="$enable_combobox"
5995   
5996                           if test "$enableval" = yes; then
5997                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5998                           else
5999                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6000                           fi
6001                         
6002 else
6003   
6004                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6005                           if test "x$LINE" != x ; then
6006                             eval "DEFAULT_$LINE"
6007                           else
6008                             no_cache=1
6009                           fi
6010
6011                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6012                         
6013 fi
6014
6015
6016           eval "$ac_cv_use_combobox"
6017           if test "$no_cache" != 1; then
6018             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6019           fi
6020
6021           if test "$wxUSE_COMBOBOX" = yes; then
6022             echo "$ac_t""yes" 1>&6
6023           else
6024             echo "$ac_t""no" 1>&6
6025           fi
6026         
6027
6028           echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6029 echo "configure:6030: checking for --enable-gauge" >&5
6030           no_cache=0
6031           # Check whether --enable-gauge or --disable-gauge was given.
6032 if test "${enable_gauge+set}" = set; then
6033   enableval="$enable_gauge"
6034   
6035                           if test "$enableval" = yes; then
6036                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
6037                           else
6038                             ac_cv_use_gauge='wxUSE_GAUGE=no'
6039                           fi
6040                         
6041 else
6042   
6043                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6044                           if test "x$LINE" != x ; then
6045                             eval "DEFAULT_$LINE"
6046                           else
6047                             no_cache=1
6048                           fi
6049
6050                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6051                         
6052 fi
6053
6054
6055           eval "$ac_cv_use_gauge"
6056           if test "$no_cache" != 1; then
6057             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6058           fi
6059
6060           if test "$wxUSE_GAUGE" = yes; then
6061             echo "$ac_t""yes" 1>&6
6062           else
6063             echo "$ac_t""no" 1>&6
6064           fi
6065         
6066
6067           echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6068 echo "configure:6069: checking for --enable-grid" >&5
6069           no_cache=0
6070           # Check whether --enable-grid or --disable-grid was given.
6071 if test "${enable_grid+set}" = set; then
6072   enableval="$enable_grid"
6073   
6074                           if test "$enableval" = yes; then
6075                             ac_cv_use_grid='wxUSE_GRID=yes'
6076                           else
6077                             ac_cv_use_grid='wxUSE_GRID=no'
6078                           fi
6079                         
6080 else
6081   
6082                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6083                           if test "x$LINE" != x ; then
6084                             eval "DEFAULT_$LINE"
6085                           else
6086                             no_cache=1
6087                           fi
6088
6089                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6090                         
6091 fi
6092
6093
6094           eval "$ac_cv_use_grid"
6095           if test "$no_cache" != 1; then
6096             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6097           fi
6098
6099           if test "$wxUSE_GRID" = yes; then
6100             echo "$ac_t""yes" 1>&6
6101           else
6102             echo "$ac_t""no" 1>&6
6103           fi
6104         
6105
6106           echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6107 echo "configure:6108: checking for --enable-newgrid" >&5
6108           no_cache=0
6109           # Check whether --enable-newgrid or --disable-newgrid was given.
6110 if test "${enable_newgrid+set}" = set; then
6111   enableval="$enable_newgrid"
6112   
6113                           if test "$enableval" = yes; then
6114                             ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6115                           else
6116                             ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6117                           fi
6118                         
6119 else
6120   
6121                           LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6122                           if test "x$LINE" != x ; then
6123                             eval "DEFAULT_$LINE"
6124                           else
6125                             no_cache=1
6126                           fi
6127
6128                           ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6129                         
6130 fi
6131
6132
6133           eval "$ac_cv_use_newgrid"
6134           if test "$no_cache" != 1; then
6135             echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6136           fi
6137
6138           if test "$wxUSE_NEW_GRID" = yes; then
6139             echo "$ac_t""yes" 1>&6
6140           else
6141             echo "$ac_t""no" 1>&6
6142           fi
6143         
6144
6145           echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6146 echo "configure:6147: checking for --enable-imaglist" >&5
6147           no_cache=0
6148           # Check whether --enable-imaglist or --disable-imaglist was given.
6149 if test "${enable_imaglist+set}" = set; then
6150   enableval="$enable_imaglist"
6151   
6152                           if test "$enableval" = yes; then
6153                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6154                           else
6155                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6156                           fi
6157                         
6158 else
6159   
6160                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6161                           if test "x$LINE" != x ; then
6162                             eval "DEFAULT_$LINE"
6163                           else
6164                             no_cache=1
6165                           fi
6166
6167                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6168                         
6169 fi
6170
6171
6172           eval "$ac_cv_use_imaglist"
6173           if test "$no_cache" != 1; then
6174             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6175           fi
6176
6177           if test "$wxUSE_IMAGLIST" = yes; then
6178             echo "$ac_t""yes" 1>&6
6179           else
6180             echo "$ac_t""no" 1>&6
6181           fi
6182         
6183
6184           echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6185 echo "configure:6186: checking for --enable-listbox" >&5
6186           no_cache=0
6187           # Check whether --enable-listbox or --disable-listbox was given.
6188 if test "${enable_listbox+set}" = set; then
6189   enableval="$enable_listbox"
6190   
6191                           if test "$enableval" = yes; then
6192                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6193                           else
6194                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
6195                           fi
6196                         
6197 else
6198   
6199                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6200                           if test "x$LINE" != x ; then
6201                             eval "DEFAULT_$LINE"
6202                           else
6203                             no_cache=1
6204                           fi
6205
6206                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6207                         
6208 fi
6209
6210
6211           eval "$ac_cv_use_listbox"
6212           if test "$no_cache" != 1; then
6213             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6214           fi
6215
6216           if test "$wxUSE_LISTBOX" = yes; then
6217             echo "$ac_t""yes" 1>&6
6218           else
6219             echo "$ac_t""no" 1>&6
6220           fi
6221         
6222
6223           echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6224 echo "configure:6225: checking for --enable-listctrl" >&5
6225           no_cache=0
6226           # Check whether --enable-listctrl or --disable-listctrl was given.
6227 if test "${enable_listctrl+set}" = set; then
6228   enableval="$enable_listctrl"
6229   
6230                           if test "$enableval" = yes; then
6231                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6232                           else
6233                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6234                           fi
6235                         
6236 else
6237   
6238                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6239                           if test "x$LINE" != x ; then
6240                             eval "DEFAULT_$LINE"
6241                           else
6242                             no_cache=1
6243                           fi
6244
6245                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6246                         
6247 fi
6248
6249
6250           eval "$ac_cv_use_listctrl"
6251           if test "$no_cache" != 1; then
6252             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6253           fi
6254
6255           if test "$wxUSE_LISTCTRL" = yes; then
6256             echo "$ac_t""yes" 1>&6
6257           else
6258             echo "$ac_t""no" 1>&6
6259           fi
6260         
6261
6262           echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6263 echo "configure:6264: checking for --enable-notebook" >&5
6264           no_cache=0
6265           # Check whether --enable-notebook or --disable-notebook was given.
6266 if test "${enable_notebook+set}" = set; then
6267   enableval="$enable_notebook"
6268   
6269                           if test "$enableval" = yes; then
6270                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6271                           else
6272                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6273                           fi
6274                         
6275 else
6276   
6277                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6278                           if test "x$LINE" != x ; then
6279                             eval "DEFAULT_$LINE"
6280                           else
6281                             no_cache=1
6282                           fi
6283
6284                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6285                         
6286 fi
6287
6288
6289           eval "$ac_cv_use_notebook"
6290           if test "$no_cache" != 1; then
6291             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6292           fi
6293
6294           if test "$wxUSE_NOTEBOOK" = yes; then
6295             echo "$ac_t""yes" 1>&6
6296           else
6297             echo "$ac_t""no" 1>&6
6298           fi
6299         
6300
6301           echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6302 echo "configure:6303: checking for --enable-propsheet" >&5
6303           no_cache=0
6304           # Check whether --enable-propsheet or --disable-propsheet was given.
6305 if test "${enable_propsheet+set}" = set; then
6306   enableval="$enable_propsheet"
6307   
6308                           if test "$enableval" = yes; then
6309                             ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6310                           else
6311                             ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6312                           fi
6313                         
6314 else
6315   
6316                           LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6317                           if test "x$LINE" != x ; then
6318                             eval "DEFAULT_$LINE"
6319                           else
6320                             no_cache=1
6321                           fi
6322
6323                           ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6324                         
6325 fi
6326
6327
6328           eval "$ac_cv_use_propsheet"
6329           if test "$no_cache" != 1; then
6330             echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6331           fi
6332
6333           if test "$wxUSE_PROPSHEET" = yes; then
6334             echo "$ac_t""yes" 1>&6
6335           else
6336             echo "$ac_t""no" 1>&6
6337           fi
6338         
6339
6340           echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6341 echo "configure:6342: checking for --enable-radiobox" >&5
6342           no_cache=0
6343           # Check whether --enable-radiobox or --disable-radiobox was given.
6344 if test "${enable_radiobox+set}" = set; then
6345   enableval="$enable_radiobox"
6346   
6347                           if test "$enableval" = yes; then
6348                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6349                           else
6350                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6351                           fi
6352                         
6353 else
6354   
6355                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6356                           if test "x$LINE" != x ; then
6357                             eval "DEFAULT_$LINE"
6358                           else
6359                             no_cache=1
6360                           fi
6361
6362                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6363                         
6364 fi
6365
6366
6367           eval "$ac_cv_use_radiobox"
6368           if test "$no_cache" != 1; then
6369             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6370           fi
6371
6372           if test "$wxUSE_RADIOBOX" = yes; then
6373             echo "$ac_t""yes" 1>&6
6374           else
6375             echo "$ac_t""no" 1>&6
6376           fi
6377         
6378
6379           echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6380 echo "configure:6381: checking for --enable-radiobtn" >&5
6381           no_cache=0
6382           # Check whether --enable-radiobtn or --disable-radiobtn was given.
6383 if test "${enable_radiobtn+set}" = set; then
6384   enableval="$enable_radiobtn"
6385   
6386                           if test "$enableval" = yes; then
6387                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6388                           else
6389                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6390                           fi
6391                         
6392 else
6393   
6394                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6395                           if test "x$LINE" != x ; then
6396                             eval "DEFAULT_$LINE"
6397                           else
6398                             no_cache=1
6399                           fi
6400
6401                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6402                         
6403 fi
6404
6405
6406           eval "$ac_cv_use_radiobtn"
6407           if test "$no_cache" != 1; then
6408             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6409           fi
6410
6411           if test "$wxUSE_RADIOBTN" = yes; then
6412             echo "$ac_t""yes" 1>&6
6413           else
6414             echo "$ac_t""no" 1>&6
6415           fi
6416         
6417
6418           echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6419 echo "configure:6420: checking for --enable-sash" >&5
6420           no_cache=0
6421           # Check whether --enable-sash or --disable-sash was given.
6422 if test "${enable_sash+set}" = set; then
6423   enableval="$enable_sash"
6424   
6425                           if test "$enableval" = yes; then
6426                             ac_cv_use_sash='wxUSE_SASH=yes'
6427                           else
6428                             ac_cv_use_sash='wxUSE_SASH=no'
6429                           fi
6430                         
6431 else
6432   
6433                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6434                           if test "x$LINE" != x ; then
6435                             eval "DEFAULT_$LINE"
6436                           else
6437                             no_cache=1
6438                           fi
6439
6440                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6441                         
6442 fi
6443
6444
6445           eval "$ac_cv_use_sash"
6446           if test "$no_cache" != 1; then
6447             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6448           fi
6449
6450           if test "$wxUSE_SASH" = yes; then
6451             echo "$ac_t""yes" 1>&6
6452           else
6453             echo "$ac_t""no" 1>&6
6454           fi
6455         
6456
6457           echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6458 echo "configure:6459: checking for --enable-scrollbar" >&5
6459           no_cache=0
6460           # Check whether --enable-scrollbar or --disable-scrollbar was given.
6461 if test "${enable_scrollbar+set}" = set; then
6462   enableval="$enable_scrollbar"
6463   
6464                           if test "$enableval" = yes; then
6465                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6466                           else
6467                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6468                           fi
6469                         
6470 else
6471   
6472                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6473                           if test "x$LINE" != x ; then
6474                             eval "DEFAULT_$LINE"
6475                           else
6476                             no_cache=1
6477                           fi
6478
6479                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6480                         
6481 fi
6482
6483
6484           eval "$ac_cv_use_scrollbar"
6485           if test "$no_cache" != 1; then
6486             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6487           fi
6488
6489           if test "$wxUSE_SCROLLBAR" = yes; then
6490             echo "$ac_t""yes" 1>&6
6491           else
6492             echo "$ac_t""no" 1>&6
6493           fi
6494         
6495
6496           echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6497 echo "configure:6498: checking for --enable-slider" >&5
6498           no_cache=0
6499           # Check whether --enable-slider or --disable-slider was given.
6500 if test "${enable_slider+set}" = set; then
6501   enableval="$enable_slider"
6502   
6503                           if test "$enableval" = yes; then
6504                             ac_cv_use_slider='wxUSE_SLIDER=yes'
6505                           else
6506                             ac_cv_use_slider='wxUSE_SLIDER=no'
6507                           fi
6508                         
6509 else
6510   
6511                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6512                           if test "x$LINE" != x ; then
6513                             eval "DEFAULT_$LINE"
6514                           else
6515                             no_cache=1
6516                           fi
6517
6518                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6519                         
6520 fi
6521
6522
6523           eval "$ac_cv_use_slider"
6524           if test "$no_cache" != 1; then
6525             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6526           fi
6527
6528           if test "$wxUSE_SLIDER" = yes; then
6529             echo "$ac_t""yes" 1>&6
6530           else
6531             echo "$ac_t""no" 1>&6
6532           fi
6533         
6534
6535           echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6536 echo "configure:6537: checking for --enable-spinbtn" >&5
6537           no_cache=0
6538           # Check whether --enable-spinbtn or --disable-spinbtn was given.
6539 if test "${enable_spinbtn+set}" = set; then
6540   enableval="$enable_spinbtn"
6541   
6542                           if test "$enableval" = yes; then
6543                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6544                           else
6545                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6546                           fi
6547                         
6548 else
6549   
6550                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6551                           if test "x$LINE" != x ; then
6552                             eval "DEFAULT_$LINE"
6553                           else
6554                             no_cache=1
6555                           fi
6556
6557                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6558                         
6559 fi
6560
6561
6562           eval "$ac_cv_use_spinbtn"
6563           if test "$no_cache" != 1; then
6564             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6565           fi
6566
6567           if test "$wxUSE_SPINBTN" = yes; then
6568             echo "$ac_t""yes" 1>&6
6569           else
6570             echo "$ac_t""no" 1>&6
6571           fi
6572         
6573
6574           echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6575 echo "configure:6576: checking for --enable-spinctrl" >&5
6576           no_cache=0
6577           # Check whether --enable-spinctrl or --disable-spinctrl was given.
6578 if test "${enable_spinctrl+set}" = set; then
6579   enableval="$enable_spinctrl"
6580   
6581                           if test "$enableval" = yes; then
6582                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6583                           else
6584                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6585                           fi
6586                         
6587 else
6588   
6589                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6590                           if test "x$LINE" != x ; then
6591                             eval "DEFAULT_$LINE"
6592                           else
6593                             no_cache=1
6594                           fi
6595
6596                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6597                         
6598 fi
6599
6600
6601           eval "$ac_cv_use_spinctrl"
6602           if test "$no_cache" != 1; then
6603             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6604           fi
6605
6606           if test "$wxUSE_SPINCTRL" = yes; then
6607             echo "$ac_t""yes" 1>&6
6608           else
6609             echo "$ac_t""no" 1>&6
6610           fi
6611         
6612
6613           echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6614 echo "configure:6615: checking for --enable-splitter" >&5
6615           no_cache=0
6616           # Check whether --enable-splitter or --disable-splitter was given.
6617 if test "${enable_splitter+set}" = set; then
6618   enableval="$enable_splitter"
6619   
6620                           if test "$enableval" = yes; then
6621                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6622                           else
6623                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
6624                           fi
6625                         
6626 else
6627   
6628                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6629                           if test "x$LINE" != x ; then
6630                             eval "DEFAULT_$LINE"
6631                           else
6632                             no_cache=1
6633                           fi
6634
6635                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6636                         
6637 fi
6638
6639
6640           eval "$ac_cv_use_splitter"
6641           if test "$no_cache" != 1; then
6642             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6643           fi
6644
6645           if test "$wxUSE_SPLITTER" = yes; then
6646             echo "$ac_t""yes" 1>&6
6647           else
6648             echo "$ac_t""no" 1>&6
6649           fi
6650         
6651
6652           echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6653 echo "configure:6654: checking for --enable-statbmp" >&5
6654           no_cache=0
6655           # Check whether --enable-statbmp or --disable-statbmp was given.
6656 if test "${enable_statbmp+set}" = set; then
6657   enableval="$enable_statbmp"
6658   
6659                           if test "$enableval" = yes; then
6660                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6661                           else
6662                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
6663                           fi
6664                         
6665 else
6666   
6667                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6668                           if test "x$LINE" != x ; then
6669                             eval "DEFAULT_$LINE"
6670                           else
6671                             no_cache=1
6672                           fi
6673
6674                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6675                         
6676 fi
6677
6678
6679           eval "$ac_cv_use_statbmp"
6680           if test "$no_cache" != 1; then
6681             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6682           fi
6683
6684           if test "$wxUSE_STATBMP" = yes; then
6685             echo "$ac_t""yes" 1>&6
6686           else
6687             echo "$ac_t""no" 1>&6
6688           fi
6689         
6690
6691           echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6692 echo "configure:6693: checking for --enable-statbox" >&5
6693           no_cache=0
6694           # Check whether --enable-statbox or --disable-statbox was given.
6695 if test "${enable_statbox+set}" = set; then
6696   enableval="$enable_statbox"
6697   
6698                           if test "$enableval" = yes; then
6699                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
6700                           else
6701                             ac_cv_use_statbox='wxUSE_STATBOX=no'
6702                           fi
6703                         
6704 else
6705   
6706                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6707                           if test "x$LINE" != x ; then
6708                             eval "DEFAULT_$LINE"
6709                           else
6710                             no_cache=1
6711                           fi
6712
6713                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6714                         
6715 fi
6716
6717
6718           eval "$ac_cv_use_statbox"
6719           if test "$no_cache" != 1; then
6720             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6721           fi
6722
6723           if test "$wxUSE_STATBOX" = yes; then
6724             echo "$ac_t""yes" 1>&6
6725           else
6726             echo "$ac_t""no" 1>&6
6727           fi
6728         
6729
6730           echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6731 echo "configure:6732: checking for --enable-statline" >&5
6732           no_cache=0
6733           # Check whether --enable-statline or --disable-statline was given.
6734 if test "${enable_statline+set}" = set; then
6735   enableval="$enable_statline"
6736   
6737                           if test "$enableval" = yes; then
6738                             ac_cv_use_statline='wxUSE_STATLINE=yes'
6739                           else
6740                             ac_cv_use_statline='wxUSE_STATLINE=no'
6741                           fi
6742                         
6743 else
6744   
6745                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6746                           if test "x$LINE" != x ; then
6747                             eval "DEFAULT_$LINE"
6748                           else
6749                             no_cache=1
6750                           fi
6751
6752                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6753                         
6754 fi
6755
6756
6757           eval "$ac_cv_use_statline"
6758           if test "$no_cache" != 1; then
6759             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6760           fi
6761
6762           if test "$wxUSE_STATLINE" = yes; then
6763             echo "$ac_t""yes" 1>&6
6764           else
6765             echo "$ac_t""no" 1>&6
6766           fi
6767         
6768
6769           echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6770 echo "configure:6771: checking for --enable-stattext" >&5
6771           no_cache=0
6772           # Check whether --enable-stattext or --disable-stattext was given.
6773 if test "${enable_stattext+set}" = set; then
6774   enableval="$enable_stattext"
6775   
6776                           if test "$enableval" = yes; then
6777                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6778                           else
6779                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
6780                           fi
6781                         
6782 else
6783   
6784                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6785                           if test "x$LINE" != x ; then
6786                             eval "DEFAULT_$LINE"
6787                           else
6788                             no_cache=1
6789                           fi
6790
6791                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6792                         
6793 fi
6794
6795
6796           eval "$ac_cv_use_stattext"
6797           if test "$no_cache" != 1; then
6798             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6799           fi
6800
6801           if test "$wxUSE_STATTEXT" = yes; then
6802             echo "$ac_t""yes" 1>&6
6803           else
6804             echo "$ac_t""no" 1>&6
6805           fi
6806         
6807
6808           echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6809 echo "configure:6810: checking for --enable-statusbar" >&5
6810           no_cache=0
6811           # Check whether --enable-statusbar or --disable-statusbar was given.
6812 if test "${enable_statusbar+set}" = set; then
6813   enableval="$enable_statusbar"
6814   
6815                           if test "$enableval" = yes; then
6816                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6817                           else
6818                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6819                           fi
6820                         
6821 else
6822   
6823                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6824                           if test "x$LINE" != x ; then
6825                             eval "DEFAULT_$LINE"
6826                           else
6827                             no_cache=1
6828                           fi
6829
6830                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6831                         
6832 fi
6833
6834
6835           eval "$ac_cv_use_statusbar"
6836           if test "$no_cache" != 1; then
6837             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6838           fi
6839
6840           if test "$wxUSE_STATUSBAR" = yes; then
6841             echo "$ac_t""yes" 1>&6
6842           else
6843             echo "$ac_t""no" 1>&6
6844           fi
6845         
6846
6847           echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6848 echo "configure:6849: checking for --enable-tabdialog" >&5
6849           no_cache=0
6850           # Check whether --enable-tabdialog or --disable-tabdialog was given.
6851 if test "${enable_tabdialog+set}" = set; then
6852   enableval="$enable_tabdialog"
6853   
6854                           if test "$enableval" = yes; then
6855                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6856                           else
6857                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6858                           fi
6859                         
6860 else
6861   
6862                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6863                           if test "x$LINE" != x ; then
6864                             eval "DEFAULT_$LINE"
6865                           else
6866                             no_cache=1
6867                           fi
6868
6869                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6870                         
6871 fi
6872
6873
6874           eval "$ac_cv_use_tabdialog"
6875           if test "$no_cache" != 1; then
6876             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6877           fi
6878
6879           if test "$wxUSE_TABDIALOG" = yes; then
6880             echo "$ac_t""yes" 1>&6
6881           else
6882             echo "$ac_t""no" 1>&6
6883           fi
6884         
6885
6886           echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6887 echo "configure:6888: checking for --enable-textctrl" >&5
6888           no_cache=0
6889           # Check whether --enable-textctrl or --disable-textctrl was given.
6890 if test "${enable_textctrl+set}" = set; then
6891   enableval="$enable_textctrl"
6892   
6893                           if test "$enableval" = yes; then
6894                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6895                           else
6896                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6897                           fi
6898                         
6899 else
6900   
6901                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6902                           if test "x$LINE" != x ; then
6903                             eval "DEFAULT_$LINE"
6904                           else
6905                             no_cache=1
6906                           fi
6907
6908                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6909                         
6910 fi
6911
6912
6913           eval "$ac_cv_use_textctrl"
6914           if test "$no_cache" != 1; then
6915             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6916           fi
6917
6918           if test "$wxUSE_TEXTCTRL" = yes; then
6919             echo "$ac_t""yes" 1>&6
6920           else
6921             echo "$ac_t""no" 1>&6
6922           fi
6923         
6924
6925           echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6926 echo "configure:6927: checking for --enable-togglebtn" >&5
6927           no_cache=0
6928           # Check whether --enable-togglebtn or --disable-togglebtn was given.
6929 if test "${enable_togglebtn+set}" = set; then
6930   enableval="$enable_togglebtn"
6931   
6932                           if test "$enableval" = yes; then
6933                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6934                           else
6935                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6936                           fi
6937                         
6938 else
6939   
6940                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6941                           if test "x$LINE" != x ; then
6942                             eval "DEFAULT_$LINE"
6943                           else
6944                             no_cache=1
6945                           fi
6946
6947                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6948                         
6949 fi
6950
6951
6952           eval "$ac_cv_use_togglebtn"
6953           if test "$no_cache" != 1; then
6954             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6955           fi
6956
6957           if test "$wxUSE_TOGGLEBTN" = yes; then
6958             echo "$ac_t""yes" 1>&6
6959           else
6960             echo "$ac_t""no" 1>&6
6961           fi
6962         
6963
6964           echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6965 echo "configure:6966: checking for --enable-toolbar" >&5
6966           no_cache=0
6967           # Check whether --enable-toolbar or --disable-toolbar was given.
6968 if test "${enable_toolbar+set}" = set; then
6969   enableval="$enable_toolbar"
6970   
6971                           if test "$enableval" = yes; then
6972                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6973                           else
6974                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6975                           fi
6976                         
6977 else
6978   
6979                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6980                           if test "x$LINE" != x ; then
6981                             eval "DEFAULT_$LINE"
6982                           else
6983                             no_cache=1
6984                           fi
6985
6986                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6987                         
6988 fi
6989
6990
6991           eval "$ac_cv_use_toolbar"
6992           if test "$no_cache" != 1; then
6993             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6994           fi
6995
6996           if test "$wxUSE_TOOLBAR" = yes; then
6997             echo "$ac_t""yes" 1>&6
6998           else
6999             echo "$ac_t""no" 1>&6
7000           fi
7001         
7002
7003           echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7004 echo "configure:7005: checking for --enable-tbarnative" >&5
7005           no_cache=0
7006           # Check whether --enable-tbarnative or --disable-tbarnative was given.
7007 if test "${enable_tbarnative+set}" = set; then
7008   enableval="$enable_tbarnative"
7009   
7010                           if test "$enableval" = yes; then
7011                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7012                           else
7013                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7014                           fi
7015                         
7016 else
7017   
7018                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7019                           if test "x$LINE" != x ; then
7020                             eval "DEFAULT_$LINE"
7021                           else
7022                             no_cache=1
7023                           fi
7024
7025                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7026                         
7027 fi
7028
7029
7030           eval "$ac_cv_use_tbarnative"
7031           if test "$no_cache" != 1; then
7032             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7033           fi
7034
7035           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7036             echo "$ac_t""yes" 1>&6
7037           else
7038             echo "$ac_t""no" 1>&6
7039           fi
7040         
7041
7042           echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7043 echo "configure:7044: checking for --enable-tbarsmpl" >&5
7044           no_cache=0
7045           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7046 if test "${enable_tbarsmpl+set}" = set; then
7047   enableval="$enable_tbarsmpl"
7048   
7049                           if test "$enableval" = yes; then
7050                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7051                           else
7052                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7053                           fi
7054                         
7055 else
7056   
7057                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7058                           if test "x$LINE" != x ; then
7059                             eval "DEFAULT_$LINE"
7060                           else
7061                             no_cache=1
7062                           fi
7063
7064                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7065                         
7066 fi
7067
7068
7069           eval "$ac_cv_use_tbarsmpl"
7070           if test "$no_cache" != 1; then
7071             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7072           fi
7073
7074           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7075             echo "$ac_t""yes" 1>&6
7076           else
7077             echo "$ac_t""no" 1>&6
7078           fi
7079         
7080
7081           echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7082 echo "configure:7083: checking for --enable-treectrl" >&5
7083           no_cache=0
7084           # Check whether --enable-treectrl or --disable-treectrl was given.
7085 if test "${enable_treectrl+set}" = set; then
7086   enableval="$enable_treectrl"
7087   
7088                           if test "$enableval" = yes; then
7089                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7090                           else
7091                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7092                           fi
7093                         
7094 else
7095   
7096                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7097                           if test "x$LINE" != x ; then
7098                             eval "DEFAULT_$LINE"
7099                           else
7100                             no_cache=1
7101                           fi
7102
7103                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7104                         
7105 fi
7106
7107
7108           eval "$ac_cv_use_treectrl"
7109           if test "$no_cache" != 1; then
7110             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7111           fi
7112
7113           if test "$wxUSE_TREECTRL" = yes; then
7114             echo "$ac_t""yes" 1>&6
7115           else
7116             echo "$ac_t""no" 1>&6
7117           fi
7118         
7119
7120           echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7121 echo "configure:7122: checking for --enable-tipwindow" >&5
7122           no_cache=0
7123           # Check whether --enable-tipwindow or --disable-tipwindow was given.
7124 if test "${enable_tipwindow+set}" = set; then
7125   enableval="$enable_tipwindow"
7126   
7127                           if test "$enableval" = yes; then
7128                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7129                           else
7130                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7131                           fi
7132                         
7133 else
7134   
7135                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7136                           if test "x$LINE" != x ; then
7137                             eval "DEFAULT_$LINE"
7138                           else
7139                             no_cache=1
7140                           fi
7141
7142                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7143                         
7144 fi
7145
7146
7147           eval "$ac_cv_use_tipwindow"
7148           if test "$no_cache" != 1; then
7149             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7150           fi
7151
7152           if test "$wxUSE_TIPWINDOW" = yes; then
7153             echo "$ac_t""yes" 1>&6
7154           else
7155             echo "$ac_t""no" 1>&6
7156           fi
7157         
7158
7159           echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7160 echo "configure:7161: checking for --enable-popupwin" >&5
7161           no_cache=0
7162           # Check whether --enable-popupwin or --disable-popupwin was given.
7163 if test "${enable_popupwin+set}" = set; then
7164   enableval="$enable_popupwin"
7165   
7166                           if test "$enableval" = yes; then
7167                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7168                           else
7169                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7170                           fi
7171                         
7172 else
7173   
7174                           LINE=`grep "wxUSE_POPUPWIN" ${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_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7182                         
7183 fi
7184
7185
7186           eval "$ac_cv_use_popupwin"
7187           if test "$no_cache" != 1; then
7188             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7189           fi
7190
7191           if test "$wxUSE_POPUPWIN" = yes; then
7192             echo "$ac_t""yes" 1>&6
7193           else
7194             echo "$ac_t""no" 1>&6
7195           fi
7196         
7197
7198
7199
7200           echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7201 echo "configure:7202: checking for --enable-commondlg" >&5
7202           no_cache=0
7203           # Check whether --enable-commondlg or --disable-commondlg was given.
7204 if test "${enable_commondlg+set}" = set; then
7205   enableval="$enable_commondlg"
7206   
7207                           if test "$enableval" = yes; then
7208                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7209                           else
7210                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7211                           fi
7212                         
7213 else
7214   
7215                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7216                           if test "x$LINE" != x ; then
7217                             eval "DEFAULT_$LINE"
7218                           else
7219                             no_cache=1
7220                           fi
7221
7222                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7223                         
7224 fi
7225
7226
7227           eval "$ac_cv_use_commondlg"
7228           if test "$no_cache" != 1; then
7229             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7230           fi
7231
7232           if test "$wxUSE_COMMONDLGS" = yes; then
7233             echo "$ac_t""yes" 1>&6
7234           else
7235             echo "$ac_t""no" 1>&6
7236           fi
7237         
7238
7239           echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7240 echo "configure:7241: checking for --enable-choicedlg" >&5
7241           no_cache=0
7242           # Check whether --enable-choicedlg or --disable-choicedlg was given.
7243 if test "${enable_choicedlg+set}" = set; then
7244   enableval="$enable_choicedlg"
7245   
7246                           if test "$enableval" = yes; then
7247                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7248                           else
7249                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7250                           fi
7251                         
7252 else
7253   
7254                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7255                           if test "x$LINE" != x ; then
7256                             eval "DEFAULT_$LINE"
7257                           else
7258                             no_cache=1
7259                           fi
7260
7261                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7262                         
7263 fi
7264
7265
7266           eval "$ac_cv_use_choicedlg"
7267           if test "$no_cache" != 1; then
7268             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7269           fi
7270
7271           if test "$wxUSE_CHOICEDLG" = yes; then
7272             echo "$ac_t""yes" 1>&6
7273           else
7274             echo "$ac_t""no" 1>&6
7275           fi
7276         
7277
7278           echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7279 echo "configure:7280: checking for --enable-coldlg" >&5
7280           no_cache=0
7281           # Check whether --enable-coldlg or --disable-coldlg was given.
7282 if test "${enable_coldlg+set}" = set; then
7283   enableval="$enable_coldlg"
7284   
7285                           if test "$enableval" = yes; then
7286                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7287                           else
7288                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7289                           fi
7290                         
7291 else
7292   
7293                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7294                           if test "x$LINE" != x ; then
7295                             eval "DEFAULT_$LINE"
7296                           else
7297                             no_cache=1
7298                           fi
7299
7300                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7301                         
7302 fi
7303
7304
7305           eval "$ac_cv_use_coldlg"
7306           if test "$no_cache" != 1; then
7307             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7308           fi
7309
7310           if test "$wxUSE_COLOURDLG" = yes; then
7311             echo "$ac_t""yes" 1>&6
7312           else
7313             echo "$ac_t""no" 1>&6
7314           fi
7315         
7316
7317           echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7318 echo "configure:7319: checking for --enable-filedlg" >&5
7319           no_cache=0
7320           # Check whether --enable-filedlg or --disable-filedlg was given.
7321 if test "${enable_filedlg+set}" = set; then
7322   enableval="$enable_filedlg"
7323   
7324                           if test "$enableval" = yes; then
7325                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7326                           else
7327                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7328                           fi
7329                         
7330 else
7331   
7332                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7333                           if test "x$LINE" != x ; then
7334                             eval "DEFAULT_$LINE"
7335                           else
7336                             no_cache=1
7337                           fi
7338
7339                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7340                         
7341 fi
7342
7343
7344           eval "$ac_cv_use_filedlg"
7345           if test "$no_cache" != 1; then
7346             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7347           fi
7348
7349           if test "$wxUSE_FILEDLG" = yes; then
7350             echo "$ac_t""yes" 1>&6
7351           else
7352             echo "$ac_t""no" 1>&6
7353           fi
7354         
7355
7356           echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7357 echo "configure:7358: checking for --enable-finddlg" >&5
7358           no_cache=0
7359           # Check whether --enable-finddlg or --disable-finddlg was given.
7360 if test "${enable_finddlg+set}" = set; then
7361   enableval="$enable_finddlg"
7362   
7363                           if test "$enableval" = yes; then
7364                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7365                           else
7366                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7367                           fi
7368                         
7369 else
7370   
7371                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7372                           if test "x$LINE" != x ; then
7373                             eval "DEFAULT_$LINE"
7374                           else
7375                             no_cache=1
7376                           fi
7377
7378                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7379                         
7380 fi
7381
7382
7383           eval "$ac_cv_use_finddlg"
7384           if test "$no_cache" != 1; then
7385             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7386           fi
7387
7388           if test "$wxUSE_FINDREPLDLG" = yes; then
7389             echo "$ac_t""yes" 1>&6
7390           else
7391             echo "$ac_t""no" 1>&6
7392           fi
7393         
7394
7395           echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7396 echo "configure:7397: checking for --enable-fontdlg" >&5
7397           no_cache=0
7398           # Check whether --enable-fontdlg or --disable-fontdlg was given.
7399 if test "${enable_fontdlg+set}" = set; then
7400   enableval="$enable_fontdlg"
7401   
7402                           if test "$enableval" = yes; then
7403                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7404                           else
7405                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7406                           fi
7407                         
7408 else
7409   
7410                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7411                           if test "x$LINE" != x ; then
7412                             eval "DEFAULT_$LINE"
7413                           else
7414                             no_cache=1
7415                           fi
7416
7417                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7418                         
7419 fi
7420
7421
7422           eval "$ac_cv_use_fontdlg"
7423           if test "$no_cache" != 1; then
7424             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7425           fi
7426
7427           if test "$wxUSE_FONTDLG" = yes; then
7428             echo "$ac_t""yes" 1>&6
7429           else
7430             echo "$ac_t""no" 1>&6
7431           fi
7432         
7433
7434           echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7435 echo "configure:7436: checking for --enable-dirdlg" >&5
7436           no_cache=0
7437           # Check whether --enable-dirdlg or --disable-dirdlg was given.
7438 if test "${enable_dirdlg+set}" = set; then
7439   enableval="$enable_dirdlg"
7440   
7441                           if test "$enableval" = yes; then
7442                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7443                           else
7444                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7445                           fi
7446                         
7447 else
7448   
7449                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7450                           if test "x$LINE" != x ; then
7451                             eval "DEFAULT_$LINE"
7452                           else
7453                             no_cache=1
7454                           fi
7455
7456                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7457                         
7458 fi
7459
7460
7461           eval "$ac_cv_use_dirdlg"
7462           if test "$no_cache" != 1; then
7463             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7464           fi
7465
7466           if test "$wxUSE_DIRDLG" = yes; then
7467             echo "$ac_t""yes" 1>&6
7468           else
7469             echo "$ac_t""no" 1>&6
7470           fi
7471         
7472
7473           echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7474 echo "configure:7475: checking for --enable-msgdlg" >&5
7475           no_cache=0
7476           # Check whether --enable-msgdlg or --disable-msgdlg was given.
7477 if test "${enable_msgdlg+set}" = set; then
7478   enableval="$enable_msgdlg"
7479   
7480                           if test "$enableval" = yes; then
7481                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7482                           else
7483                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7484                           fi
7485                         
7486 else
7487   
7488                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7489                           if test "x$LINE" != x ; then
7490                             eval "DEFAULT_$LINE"
7491                           else
7492                             no_cache=1
7493                           fi
7494
7495                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7496                         
7497 fi
7498
7499
7500           eval "$ac_cv_use_msgdlg"
7501           if test "$no_cache" != 1; then
7502             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7503           fi
7504
7505           if test "$wxUSE_MSGDLG" = yes; then
7506             echo "$ac_t""yes" 1>&6
7507           else
7508             echo "$ac_t""no" 1>&6
7509           fi
7510         
7511
7512           echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7513 echo "configure:7514: checking for --enable-numberdlg" >&5
7514           no_cache=0
7515           # Check whether --enable-numberdlg or --disable-numberdlg was given.
7516 if test "${enable_numberdlg+set}" = set; then
7517   enableval="$enable_numberdlg"
7518   
7519                           if test "$enableval" = yes; then
7520                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7521                           else
7522                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7523                           fi
7524                         
7525 else
7526   
7527                           LINE=`grep "wxUSE_NUMBERDLG" ${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_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7535                         
7536 fi
7537
7538
7539           eval "$ac_cv_use_numberdlg"
7540           if test "$no_cache" != 1; then
7541             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7542           fi
7543
7544           if test "$wxUSE_NUMBERDLG" = yes; then
7545             echo "$ac_t""yes" 1>&6
7546           else
7547             echo "$ac_t""no" 1>&6
7548           fi
7549         
7550
7551           echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7552 echo "configure:7553: checking for --enable-splash" >&5
7553           no_cache=0
7554           # Check whether --enable-splash or --disable-splash was given.
7555 if test "${enable_splash+set}" = set; then
7556   enableval="$enable_splash"
7557   
7558                           if test "$enableval" = yes; then
7559                             ac_cv_use_splash='wxUSE_SPLASH=yes'
7560                           else
7561                             ac_cv_use_splash='wxUSE_SPLASH=no'
7562                           fi
7563                         
7564 else
7565   
7566                           LINE=`grep "wxUSE_SPLASH" ${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_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7574                         
7575 fi
7576
7577
7578           eval "$ac_cv_use_splash"
7579           if test "$no_cache" != 1; then
7580             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7581           fi
7582
7583           if test "$wxUSE_SPLASH" = yes; then
7584             echo "$ac_t""yes" 1>&6
7585           else
7586             echo "$ac_t""no" 1>&6
7587           fi
7588         
7589
7590           echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7591 echo "configure:7592: checking for --enable-textdlg" >&5
7592           no_cache=0
7593           # Check whether --enable-textdlg or --disable-textdlg was given.
7594 if test "${enable_textdlg+set}" = set; then
7595   enableval="$enable_textdlg"
7596   
7597                           if test "$enableval" = yes; then
7598                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7599                           else
7600                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7601                           fi
7602                         
7603 else
7604   
7605                           LINE=`grep "wxUSE_TEXTDLG" ${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_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7613                         
7614 fi
7615
7616
7617           eval "$ac_cv_use_textdlg"
7618           if test "$no_cache" != 1; then
7619             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7620           fi
7621
7622           if test "$wxUSE_TEXTDLG" = yes; then
7623             echo "$ac_t""yes" 1>&6
7624           else
7625             echo "$ac_t""no" 1>&6
7626           fi
7627         
7628
7629           echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7630 echo "configure:7631: checking for --enable-tipdlg" >&5
7631           no_cache=0
7632           # Check whether --enable-tipdlg or --disable-tipdlg was given.
7633 if test "${enable_tipdlg+set}" = set; then
7634   enableval="$enable_tipdlg"
7635   
7636                           if test "$enableval" = yes; then
7637                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7638                           else
7639                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7640                           fi
7641                         
7642 else
7643   
7644                           LINE=`grep "wxUSE_STARTUP_TIPS" ${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_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7652                         
7653 fi
7654
7655
7656           eval "$ac_cv_use_tipdlg"
7657           if test "$no_cache" != 1; then
7658             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7659           fi
7660
7661           if test "$wxUSE_STARTUP_TIPS" = yes; then
7662             echo "$ac_t""yes" 1>&6
7663           else
7664             echo "$ac_t""no" 1>&6
7665           fi
7666         
7667
7668           echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7669 echo "configure:7670: checking for --enable-progressdlg" >&5
7670           no_cache=0
7671           # Check whether --enable-progressdlg or --disable-progressdlg was given.
7672 if test "${enable_progressdlg+set}" = set; then
7673   enableval="$enable_progressdlg"
7674   
7675                           if test "$enableval" = yes; then
7676                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7677                           else
7678                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7679                           fi
7680                         
7681 else
7682   
7683                           LINE=`grep "wxUSE_PROGRESSDLG" ${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_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7691                         
7692 fi
7693
7694
7695           eval "$ac_cv_use_progressdlg"
7696           if test "$no_cache" != 1; then
7697             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7698           fi
7699
7700           if test "$wxUSE_PROGRESSDLG" = yes; then
7701             echo "$ac_t""yes" 1>&6
7702           else
7703             echo "$ac_t""no" 1>&6
7704           fi
7705         
7706
7707           echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7708 echo "configure:7709: checking for --enable-wizarddlg" >&5
7709           no_cache=0
7710           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7711 if test "${enable_wizarddlg+set}" = set; then
7712   enableval="$enable_wizarddlg"
7713   
7714                           if test "$enableval" = yes; then
7715                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7716                           else
7717                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7718                           fi
7719                         
7720 else
7721   
7722                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7723                           if test "x$LINE" != x ; then
7724                             eval "DEFAULT_$LINE"
7725                           else
7726                             no_cache=1
7727                           fi
7728
7729                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7730                         
7731 fi
7732
7733
7734           eval "$ac_cv_use_wizarddlg"
7735           if test "$no_cache" != 1; then
7736             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7737           fi
7738
7739           if test "$wxUSE_WIZARDDLG" = yes; then
7740             echo "$ac_t""yes" 1>&6
7741           else
7742             echo "$ac_t""no" 1>&6
7743           fi
7744         
7745
7746
7747
7748           echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7749 echo "configure:7750: checking for --enable-menus" >&5
7750           no_cache=0
7751           # Check whether --enable-menus or --disable-menus was given.
7752 if test "${enable_menus+set}" = set; then
7753   enableval="$enable_menus"
7754   
7755                           if test "$enableval" = yes; then
7756                             ac_cv_use_menus='wxUSE_MENUS=yes'
7757                           else
7758                             ac_cv_use_menus='wxUSE_MENUS=no'
7759                           fi
7760                         
7761 else
7762   
7763                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7764                           if test "x$LINE" != x ; then
7765                             eval "DEFAULT_$LINE"
7766                           else
7767                             no_cache=1
7768                           fi
7769
7770                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7771                         
7772 fi
7773
7774
7775           eval "$ac_cv_use_menus"
7776           if test "$no_cache" != 1; then
7777             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7778           fi
7779
7780           if test "$wxUSE_MENUS" = yes; then
7781             echo "$ac_t""yes" 1>&6
7782           else
7783             echo "$ac_t""no" 1>&6
7784           fi
7785         
7786
7787           echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7788 echo "configure:7789: checking for --enable-miniframe" >&5
7789           no_cache=0
7790           # Check whether --enable-miniframe or --disable-miniframe was given.
7791 if test "${enable_miniframe+set}" = set; then
7792   enableval="$enable_miniframe"
7793   
7794                           if test "$enableval" = yes; then
7795                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7796                           else
7797                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7798                           fi
7799                         
7800 else
7801   
7802                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7803                           if test "x$LINE" != x ; then
7804                             eval "DEFAULT_$LINE"
7805                           else
7806                             no_cache=1
7807                           fi
7808
7809                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7810                         
7811 fi
7812
7813
7814           eval "$ac_cv_use_miniframe"
7815           if test "$no_cache" != 1; then
7816             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7817           fi
7818
7819           if test "$wxUSE_MINIFRAME" = yes; then
7820             echo "$ac_t""yes" 1>&6
7821           else
7822             echo "$ac_t""no" 1>&6
7823           fi
7824         
7825
7826           echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7827 echo "configure:7828: checking for --enable-tooltips" >&5
7828           no_cache=0
7829           # Check whether --enable-tooltips or --disable-tooltips was given.
7830 if test "${enable_tooltips+set}" = set; then
7831   enableval="$enable_tooltips"
7832   
7833                           if test "$enableval" = yes; then
7834                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7835                           else
7836                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7837                           fi
7838                         
7839 else
7840   
7841                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7842                           if test "x$LINE" != x ; then
7843                             eval "DEFAULT_$LINE"
7844                           else
7845                             no_cache=1
7846                           fi
7847
7848                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7849                         
7850 fi
7851
7852
7853           eval "$ac_cv_use_tooltips"
7854           if test "$no_cache" != 1; then
7855             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7856           fi
7857
7858           if test "$wxUSE_TOOLTIPS" = yes; then
7859             echo "$ac_t""yes" 1>&6
7860           else
7861             echo "$ac_t""no" 1>&6
7862           fi
7863         
7864
7865           echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7866 echo "configure:7867: checking for --enable-splines" >&5
7867           no_cache=0
7868           # Check whether --enable-splines or --disable-splines was given.
7869 if test "${enable_splines+set}" = set; then
7870   enableval="$enable_splines"
7871   
7872                           if test "$enableval" = yes; then
7873                             ac_cv_use_splines='wxUSE_SPLINES=yes'
7874                           else
7875                             ac_cv_use_splines='wxUSE_SPLINES=no'
7876                           fi
7877                         
7878 else
7879   
7880                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7881                           if test "x$LINE" != x ; then
7882                             eval "DEFAULT_$LINE"
7883                           else
7884                             no_cache=1
7885                           fi
7886
7887                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7888                         
7889 fi
7890
7891
7892           eval "$ac_cv_use_splines"
7893           if test "$no_cache" != 1; then
7894             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7895           fi
7896
7897           if test "$wxUSE_SPLINES" = yes; then
7898             echo "$ac_t""yes" 1>&6
7899           else
7900             echo "$ac_t""no" 1>&6
7901           fi
7902         
7903
7904           echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7905 echo "configure:7906: checking for --enable-validators" >&5
7906           no_cache=0
7907           # Check whether --enable-validators or --disable-validators was given.
7908 if test "${enable_validators+set}" = set; then
7909   enableval="$enable_validators"
7910   
7911                           if test "$enableval" = yes; then
7912                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7913                           else
7914                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
7915                           fi
7916                         
7917 else
7918   
7919                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7920                           if test "x$LINE" != x ; then
7921                             eval "DEFAULT_$LINE"
7922                           else
7923                             no_cache=1
7924                           fi
7925
7926                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7927                         
7928 fi
7929
7930
7931           eval "$ac_cv_use_validators"
7932           if test "$no_cache" != 1; then
7933             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7934           fi
7935
7936           if test "$wxUSE_VALIDATORS" = yes; then
7937             echo "$ac_t""yes" 1>&6
7938           else
7939             echo "$ac_t""no" 1>&6
7940           fi
7941         
7942
7943           echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7944 echo "configure:7945: checking for --enable-busyinfo" >&5
7945           no_cache=0
7946           # Check whether --enable-busyinfo or --disable-busyinfo was given.
7947 if test "${enable_busyinfo+set}" = set; then
7948   enableval="$enable_busyinfo"
7949   
7950                           if test "$enableval" = yes; then
7951                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7952                           else
7953                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7954                           fi
7955                         
7956 else
7957   
7958                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7959                           if test "x$LINE" != x ; then
7960                             eval "DEFAULT_$LINE"
7961                           else
7962                             no_cache=1
7963                           fi
7964
7965                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7966                         
7967 fi
7968
7969
7970           eval "$ac_cv_use_busyinfo"
7971           if test "$no_cache" != 1; then
7972             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7973           fi
7974
7975           if test "$wxUSE_BUSYINFO" = yes; then
7976             echo "$ac_t""yes" 1>&6
7977           else
7978             echo "$ac_t""no" 1>&6
7979           fi
7980         
7981
7982           echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7983 echo "configure:7984: checking for --enable-joystick" >&5
7984           no_cache=0
7985           # Check whether --enable-joystick or --disable-joystick was given.
7986 if test "${enable_joystick+set}" = set; then
7987   enableval="$enable_joystick"
7988   
7989                           if test "$enableval" = yes; then
7990                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7991                           else
7992                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7993                           fi
7994                         
7995 else
7996   
7997                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7998                           if test "x$LINE" != x ; then
7999                             eval "DEFAULT_$LINE"
8000                           else
8001                             no_cache=1
8002                           fi
8003
8004                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8005                         
8006 fi
8007
8008
8009           eval "$ac_cv_use_joystick"
8010           if test "$no_cache" != 1; then
8011             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8012           fi
8013
8014           if test "$wxUSE_JOYSTICK" = yes; then
8015             echo "$ac_t""yes" 1>&6
8016           else
8017             echo "$ac_t""no" 1>&6
8018           fi
8019         
8020
8021           echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8022 echo "configure:8023: checking for --enable-metafile" >&5
8023           no_cache=0
8024           # Check whether --enable-metafile or --disable-metafile was given.
8025 if test "${enable_metafile+set}" = set; then
8026   enableval="$enable_metafile"
8027   
8028                           if test "$enableval" = yes; then
8029                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
8030                           else
8031                             ac_cv_use_metafile='wxUSE_METAFILE=no'
8032                           fi
8033                         
8034 else
8035   
8036                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8037                           if test "x$LINE" != x ; then
8038                             eval "DEFAULT_$LINE"
8039                           else
8040                             no_cache=1
8041                           fi
8042
8043                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8044                         
8045 fi
8046
8047
8048           eval "$ac_cv_use_metafile"
8049           if test "$no_cache" != 1; then
8050             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8051           fi
8052
8053           if test "$wxUSE_METAFILE" = yes; then
8054             echo "$ac_t""yes" 1>&6
8055           else
8056             echo "$ac_t""no" 1>&6
8057           fi
8058         
8059
8060           echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8061 echo "configure:8062: checking for --enable-dragimage" >&5
8062           no_cache=0
8063           # Check whether --enable-dragimage or --disable-dragimage was given.
8064 if test "${enable_dragimage+set}" = set; then
8065   enableval="$enable_dragimage"
8066   
8067                           if test "$enableval" = yes; then
8068                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8069                           else
8070                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8071                           fi
8072                         
8073 else
8074   
8075                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8076                           if test "x$LINE" != x ; then
8077                             eval "DEFAULT_$LINE"
8078                           else
8079                             no_cache=1
8080                           fi
8081
8082                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8083                         
8084 fi
8085
8086
8087           eval "$ac_cv_use_dragimage"
8088           if test "$no_cache" != 1; then
8089             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8090           fi
8091
8092           if test "$wxUSE_DRAGIMAGE" = yes; then
8093             echo "$ac_t""yes" 1>&6
8094           else
8095             echo "$ac_t""no" 1>&6
8096           fi
8097         
8098
8099
8100
8101           echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8102 echo "configure:8103: checking for --enable-palette" >&5
8103           no_cache=0
8104           # Check whether --enable-palette or --disable-palette was given.
8105 if test "${enable_palette+set}" = set; then
8106   enableval="$enable_palette"
8107   
8108                           if test "$enableval" = yes; then
8109                             ac_cv_use_palette='wxUSE_PALETTE=yes'
8110                           else
8111                             ac_cv_use_palette='wxUSE_PALETTE=no'
8112                           fi
8113                         
8114 else
8115   
8116                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8117                           if test "x$LINE" != x ; then
8118                             eval "DEFAULT_$LINE"
8119                           else
8120                             no_cache=1
8121                           fi
8122
8123                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8124                         
8125 fi
8126
8127
8128           eval "$ac_cv_use_palette"
8129           if test "$no_cache" != 1; then
8130             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8131           fi
8132
8133           if test "$wxUSE_PALETTE" = yes; then
8134             echo "$ac_t""yes" 1>&6
8135           else
8136             echo "$ac_t""no" 1>&6
8137           fi
8138         
8139
8140           echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8141 echo "configure:8142: checking for --enable-image" >&5
8142           no_cache=0
8143           # Check whether --enable-image or --disable-image was given.
8144 if test "${enable_image+set}" = set; then
8145   enableval="$enable_image"
8146   
8147                           if test "$enableval" = yes; then
8148                             ac_cv_use_image='wxUSE_IMAGE=yes'
8149                           else
8150                             ac_cv_use_image='wxUSE_IMAGE=no'
8151                           fi
8152                         
8153 else
8154   
8155                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8156                           if test "x$LINE" != x ; then
8157                             eval "DEFAULT_$LINE"
8158                           else
8159                             no_cache=1
8160                           fi
8161
8162                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8163                         
8164 fi
8165
8166
8167           eval "$ac_cv_use_image"
8168           if test "$no_cache" != 1; then
8169             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8170           fi
8171
8172           if test "$wxUSE_IMAGE" = yes; then
8173             echo "$ac_t""yes" 1>&6
8174           else
8175             echo "$ac_t""no" 1>&6
8176           fi
8177         
8178
8179           echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8180 echo "configure:8181: checking for --enable-gif" >&5
8181           no_cache=0
8182           # Check whether --enable-gif or --disable-gif was given.
8183 if test "${enable_gif+set}" = set; then
8184   enableval="$enable_gif"
8185   
8186                           if test "$enableval" = yes; then
8187                             ac_cv_use_gif='wxUSE_GIF=yes'
8188                           else
8189                             ac_cv_use_gif='wxUSE_GIF=no'
8190                           fi
8191                         
8192 else
8193   
8194                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8195                           if test "x$LINE" != x ; then
8196                             eval "DEFAULT_$LINE"
8197                           else
8198                             no_cache=1
8199                           fi
8200
8201                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8202                         
8203 fi
8204
8205
8206           eval "$ac_cv_use_gif"
8207           if test "$no_cache" != 1; then
8208             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8209           fi
8210
8211           if test "$wxUSE_GIF" = yes; then
8212             echo "$ac_t""yes" 1>&6
8213           else
8214             echo "$ac_t""no" 1>&6
8215           fi
8216         
8217
8218           echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8219 echo "configure:8220: checking for --enable-pcx" >&5
8220           no_cache=0
8221           # Check whether --enable-pcx or --disable-pcx was given.
8222 if test "${enable_pcx+set}" = set; then
8223   enableval="$enable_pcx"
8224   
8225                           if test "$enableval" = yes; then
8226                             ac_cv_use_pcx='wxUSE_PCX=yes'
8227                           else
8228                             ac_cv_use_pcx='wxUSE_PCX=no'
8229                           fi
8230                         
8231 else
8232   
8233                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8234                           if test "x$LINE" != x ; then
8235                             eval "DEFAULT_$LINE"
8236                           else
8237                             no_cache=1
8238                           fi
8239
8240                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8241                         
8242 fi
8243
8244
8245           eval "$ac_cv_use_pcx"
8246           if test "$no_cache" != 1; then
8247             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8248           fi
8249
8250           if test "$wxUSE_PCX" = yes; then
8251             echo "$ac_t""yes" 1>&6
8252           else
8253             echo "$ac_t""no" 1>&6
8254           fi
8255         
8256
8257           echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8258 echo "configure:8259: checking for --enable-iff" >&5
8259           no_cache=0
8260           # Check whether --enable-iff or --disable-iff was given.
8261 if test "${enable_iff+set}" = set; then
8262   enableval="$enable_iff"
8263   
8264                           if test "$enableval" = yes; then
8265                             ac_cv_use_iff='wxUSE_IFF=yes'
8266                           else
8267                             ac_cv_use_iff='wxUSE_IFF=no'
8268                           fi
8269                         
8270 else
8271   
8272                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8273                           if test "x$LINE" != x ; then
8274                             eval "DEFAULT_$LINE"
8275                           else
8276                             no_cache=1
8277                           fi
8278
8279                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8280                         
8281 fi
8282
8283
8284           eval "$ac_cv_use_iff"
8285           if test "$no_cache" != 1; then
8286             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8287           fi
8288
8289           if test "$wxUSE_IFF" = yes; then
8290             echo "$ac_t""yes" 1>&6
8291           else
8292             echo "$ac_t""no" 1>&6
8293           fi
8294         
8295
8296           echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8297 echo "configure:8298: checking for --enable-pnm" >&5
8298           no_cache=0
8299           # Check whether --enable-pnm or --disable-pnm was given.
8300 if test "${enable_pnm+set}" = set; then
8301   enableval="$enable_pnm"
8302   
8303                           if test "$enableval" = yes; then
8304                             ac_cv_use_pnm='wxUSE_PNM=yes'
8305                           else
8306                             ac_cv_use_pnm='wxUSE_PNM=no'
8307                           fi
8308                         
8309 else
8310   
8311                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8312                           if test "x$LINE" != x ; then
8313                             eval "DEFAULT_$LINE"
8314                           else
8315                             no_cache=1
8316                           fi
8317
8318                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8319                         
8320 fi
8321
8322
8323           eval "$ac_cv_use_pnm"
8324           if test "$no_cache" != 1; then
8325             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8326           fi
8327
8328           if test "$wxUSE_PNM" = yes; then
8329             echo "$ac_t""yes" 1>&6
8330           else
8331             echo "$ac_t""no" 1>&6
8332           fi
8333         
8334
8335           echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8336 echo "configure:8337: checking for --enable-xpm" >&5
8337           no_cache=0
8338           # Check whether --enable-xpm or --disable-xpm was given.
8339 if test "${enable_xpm+set}" = set; then
8340   enableval="$enable_xpm"
8341   
8342                           if test "$enableval" = yes; then
8343                             ac_cv_use_xpm='wxUSE_XPM=yes'
8344                           else
8345                             ac_cv_use_xpm='wxUSE_XPM=no'
8346                           fi
8347                         
8348 else
8349   
8350                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8351                           if test "x$LINE" != x ; then
8352                             eval "DEFAULT_$LINE"
8353                           else
8354                             no_cache=1
8355                           fi
8356
8357                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8358                         
8359 fi
8360
8361
8362           eval "$ac_cv_use_xpm"
8363           if test "$no_cache" != 1; then
8364             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8365           fi
8366
8367           if test "$wxUSE_XPM" = yes; then
8368             echo "$ac_t""yes" 1>&6
8369           else
8370             echo "$ac_t""no" 1>&6
8371           fi
8372         
8373
8374           echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8375 echo "configure:8376: checking for --enable-ico_cur" >&5
8376           no_cache=0
8377           # Check whether --enable-ico_cur or --disable-ico_cur was given.
8378 if test "${enable_ico_cur+set}" = set; then
8379   enableval="$enable_ico_cur"
8380   
8381                           if test "$enableval" = yes; then
8382                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8383                           else
8384                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8385                           fi
8386                         
8387 else
8388   
8389                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8390                           if test "x$LINE" != x ; then
8391                             eval "DEFAULT_$LINE"
8392                           else
8393                             no_cache=1
8394                           fi
8395
8396                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8397                         
8398 fi
8399
8400
8401           eval "$ac_cv_use_ico_cur"
8402           if test "$no_cache" != 1; then
8403             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8404           fi
8405
8406           if test "$wxUSE_ICO_CUR" = yes; then
8407             echo "$ac_t""yes" 1>&6
8408           else
8409             echo "$ac_t""no" 1>&6
8410           fi
8411         
8412
8413 fi
8414
8415 case "${host}" in
8416   *-pc-os2_emx | *-pc-os2-emx )
8417         LEX_STEM="lexyy"
8418   ;;
8419   *)
8420     PATH_IFS=':'
8421     LEX_STEM="lex.yy"
8422   ;;
8423 esac
8424
8425
8426
8427           echo "saving argument cache $wx_arg_cache_file"
8428           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8429         
8430
8431
8432 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8433 echo "configure:8434: checking for toolkit" >&5
8434
8435 if test "$wxUSE_GUI" = "yes"; then
8436
8437     if test "$USE_BEOS" = 1; then
8438         { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8439     fi
8440
8441     if test "$TOOLKIT_GIVEN" = 1; then
8442             for toolkit in `echo $ALL_TOOLKITS`; do
8443         var=wxUSE_$toolkit
8444         eval "value=\$${var}"
8445         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8446       done
8447     else
8448             for toolkit in `echo $ALL_TOOLKITS`; do
8449         if test "$has_toolkit_in_cache" != 1; then
8450           var=DEFAULT_DEFAULT_wxUSE_$toolkit
8451         else
8452           var=DEFAULT_wxUSE_$toolkit
8453         fi
8454         eval "wxUSE_$toolkit=\$${var}"
8455       done
8456     fi
8457
8458             NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0}  \
8459                   + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8460
8461         case "${host}" in
8462       *-pc-os2_emx | *-pc-os2-emx )
8463         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8464     esac
8465
8466     case "$NUM_TOOLKITS" in
8467       1)
8468       ;;
8469       0)
8470         { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8471       ;;
8472       *)
8473         { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8474     esac
8475
8476         for toolkit in `echo $ALL_TOOLKITS`; do
8477       var=wxUSE_$toolkit
8478       eval "value=\$${var}"
8479       if test "x$value" != x; then
8480         cache_var=CACHE_$toolkit
8481         eval "cache=\$${cache_var}"
8482         if test "$cache" = 1; then
8483           echo "$var=$value" >> ${wx_arg_cache_file}
8484         fi
8485         if test "$value" = 1; then
8486           toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8487           echo "$ac_t""$toolkit_echo" 1>&6
8488         fi
8489       fi
8490     done
8491 else
8492     echo "$ac_t""base ($host_alias hosted) only" 1>&6
8493 fi
8494
8495
8496 wants_win32=0
8497 doesnt_want_win32=0
8498 case "${host}" in
8499   *-*-cygwin*)
8500       if test "$wxUSE_MSW" = 1 ; then
8501         wants_win32=1
8502       else
8503         doesnt_want_win32=1
8504       fi
8505   ;;
8506   *-*-mingw*)
8507       wants_win32=1
8508   ;;
8509 esac
8510
8511 if test "$wants_win32" = 1 ; then
8512     USE_UNIX=0
8513     USE_WIN32=1
8514     cat >> confdefs.h <<\EOF
8515 #define __WIN32__ 1
8516 EOF
8517
8518     cat >> confdefs.h <<\EOF
8519 #define __WIN95__ 1
8520 EOF
8521
8522     cat >> confdefs.h <<\EOF
8523 #define __WINDOWS__ 1
8524 EOF
8525
8526     cat >> confdefs.h <<\EOF
8527 #define __GNUWIN32__ 1
8528 EOF
8529
8530     cat >> confdefs.h <<\EOF
8531 #define STRICT 1
8532 EOF
8533
8534     cat >> confdefs.h <<\EOF
8535 #define WINVER 0x0400
8536 EOF
8537
8538 fi
8539 if test "$doesnt_want_win32" = 1 ; then
8540     USE_UNIX=1
8541     USE_WIN32=0
8542 fi
8543
8544 if test "$USE_UNIX" = 1 ; then
8545     wxUSE_UNIX=yes
8546     cat >> confdefs.h <<\EOF
8547 #define __UNIX__ 1
8548 EOF
8549
8550 fi
8551
8552
8553 cat > confcache <<\EOF
8554 # This file is a shell script that caches the results of configure
8555 # tests run on this system so they can be shared between configure
8556 # scripts and configure runs.  It is not useful on other systems.
8557 # If it contains results you don't want to keep, you may remove or edit it.
8558 #
8559 # By default, configure uses ./config.cache as the cache file,
8560 # creating it if it does not exist already.  You can give configure
8561 # the --cache-file=FILE option to use a different cache file; that is
8562 # what configure does when it calls configure scripts in
8563 # subdirectories, so they share the cache.
8564 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8565 # config.status only pays attention to the cache file if you give it the
8566 # --recheck option to rerun configure.
8567 #
8568 EOF
8569 # The following way of writing the cache mishandles newlines in values,
8570 # but we know of no workaround that is simple, portable, and efficient.
8571 # So, don't put newlines in cache variables' values.
8572 # Ultrix sh set writes to stderr and can't be redirected directly,
8573 # and sets the high bit in the cache file unless we assign to the vars.
8574 (set) 2>&1 |
8575   case `(ac_space=' '; set) 2>&1` in
8576   *ac_space=\ *)
8577     # `set' does not quote correctly, so add quotes (double-quote substitution
8578     # turns \\\\ into \\, and sed turns \\ into \).
8579     sed -n \
8580       -e "s/'/'\\\\''/g" \
8581       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8582     ;;
8583   *)
8584     # `set' quotes correctly as required by POSIX, so do not add quotes.
8585     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8586     ;;
8587   esac >> confcache
8588 if cmp -s $cache_file confcache; then
8589   :
8590 else
8591   if test -w $cache_file; then
8592     echo "updating cache $cache_file"
8593     cat confcache > $cache_file
8594   else
8595     echo "not updating unwritable cache $cache_file"
8596   fi
8597 fi
8598 rm -f confcache
8599
8600
8601 if test "$build" != "$host" ; then
8602     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8603         CC=$host_alias-gcc
8604         CXX=$host_alias-c++
8605         AR=$host_alias-ar
8606         RANLIB=$host_alias-ranlib
8607         DLLTOOL=$host_alias-dlltool
8608         RESCOMP=$host_alias-windres
8609         LD=$host_alias-ld
8610         NM=$host_alias-nm
8611         STRIP=$host_alias-strip
8612     else
8613         { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8614     fi
8615 fi
8616
8617 CFLAGS=${CFLAGS:=}
8618 # Extract the first word of "gcc", so it can be a program name with args.
8619 set dummy gcc; ac_word=$2
8620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8621 echo "configure:8622: checking for $ac_word" >&5
8622 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8623   echo $ac_n "(cached) $ac_c" 1>&6
8624 else
8625   if test -n "$CC"; then
8626   ac_cv_prog_CC="$CC" # Let the user override the test.
8627 else
8628   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8629   for ac_dir in $PATH; do
8630     test -z "$ac_dir" && ac_dir=.
8631     if test -f $ac_dir/$ac_word; then
8632       ac_cv_prog_CC="gcc"
8633       break
8634     fi
8635   done
8636   IFS="$ac_save_ifs"
8637 fi
8638 fi
8639 CC="$ac_cv_prog_CC"
8640 if test -n "$CC"; then
8641   echo "$ac_t""$CC" 1>&6
8642 else
8643   echo "$ac_t""no" 1>&6
8644 fi
8645
8646 if test -z "$CC"; then
8647   # Extract the first word of "cc", so it can be a program name with args.
8648 set dummy cc; ac_word=$2
8649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8650 echo "configure:8651: checking for $ac_word" >&5
8651 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8652   echo $ac_n "(cached) $ac_c" 1>&6
8653 else
8654   if test -n "$CC"; then
8655   ac_cv_prog_CC="$CC" # Let the user override the test.
8656 else
8657   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8658   ac_prog_rejected=no
8659   for ac_dir in $PATH; do
8660     test -z "$ac_dir" && ac_dir=.
8661     if test -f $ac_dir/$ac_word; then
8662       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8663         ac_prog_rejected=yes
8664         continue
8665       fi
8666       ac_cv_prog_CC="cc"
8667       break
8668     fi
8669   done
8670   IFS="$ac_save_ifs"
8671 if test $ac_prog_rejected = yes; then
8672   # We found a bogon in the path, so make sure we never use it.
8673   set dummy $ac_cv_prog_CC
8674   shift
8675   if test $# -gt 0; then
8676     # We chose a different compiler from the bogus one.
8677     # However, it has the same basename, so the bogon will be chosen
8678     # first if we set CC to just the basename; use the full file name.
8679     shift
8680     set dummy "$ac_dir/$ac_word" "$@"
8681     shift
8682     ac_cv_prog_CC="$@"
8683   fi
8684 fi
8685 fi
8686 fi
8687 CC="$ac_cv_prog_CC"
8688 if test -n "$CC"; then
8689   echo "$ac_t""$CC" 1>&6
8690 else
8691   echo "$ac_t""no" 1>&6
8692 fi
8693
8694   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8695 fi
8696
8697 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8698 echo "configure:8699: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8699
8700 ac_ext=c
8701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8702 ac_cpp='$CPP $CPPFLAGS'
8703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8704 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8705 cross_compiling=$ac_cv_prog_cc_cross
8706
8707 cat > conftest.$ac_ext <<EOF
8708 #line 8709 "configure"
8709 #include "confdefs.h"
8710 main(){return(0);}
8711 EOF
8712 if { (eval echo configure:8713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8713   ac_cv_prog_cc_works=yes
8714   # If we can't run a trivial program, we are probably using a cross compiler.
8715   if (./conftest; exit) 2>/dev/null; then
8716     ac_cv_prog_cc_cross=no
8717   else
8718     ac_cv_prog_cc_cross=yes
8719   fi
8720 else
8721   echo "configure: failed program was:" >&5
8722   cat conftest.$ac_ext >&5
8723   ac_cv_prog_cc_works=no
8724 fi
8725 rm -fr conftest*
8726
8727 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8728 if test $ac_cv_prog_cc_works = no; then
8729   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8730 fi
8731 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8732 echo "configure:8733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8733 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8734 cross_compiling=$ac_cv_prog_cc_cross
8735
8736 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8737 echo "configure:8738: checking whether we are using GNU C" >&5
8738 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8739   echo $ac_n "(cached) $ac_c" 1>&6
8740 else
8741   cat > conftest.c <<EOF
8742 #ifdef __GNUC__
8743   yes;
8744 #endif
8745 EOF
8746 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8747   ac_cv_prog_gcc=yes
8748 else
8749   ac_cv_prog_gcc=no
8750 fi
8751 fi
8752
8753 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8754
8755 if test $ac_cv_prog_gcc = yes; then
8756   GCC=yes
8757   ac_test_CFLAGS="${CFLAGS+set}"
8758   ac_save_CFLAGS="$CFLAGS"
8759   CFLAGS=
8760   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8761 echo "configure:8762: checking whether ${CC-cc} accepts -g" >&5
8762 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8763   echo $ac_n "(cached) $ac_c" 1>&6
8764 else
8765   echo 'void f(){}' > conftest.c
8766 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8767   ac_cv_prog_cc_g=yes
8768 else
8769   ac_cv_prog_cc_g=no
8770 fi
8771 rm -f conftest*
8772
8773 fi
8774
8775 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8776   if test "$ac_test_CFLAGS" = set; then
8777     CFLAGS="$ac_save_CFLAGS"
8778   elif test $ac_cv_prog_cc_g = yes; then
8779     CFLAGS="-g -O2"
8780   else
8781     CFLAGS="-O2"
8782   fi
8783 else
8784   GCC=
8785   test "${CFLAGS+set}" = set || CFLAGS="-g"
8786 fi
8787
8788
8789 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8790 echo "configure:8791: checking how to run the C preprocessor" >&5
8791 # On Suns, sometimes $CPP names a directory.
8792 if test -n "$CPP" && test -d "$CPP"; then
8793   CPP=
8794 fi
8795 if test -z "$CPP"; then
8796 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8797   echo $ac_n "(cached) $ac_c" 1>&6
8798 else
8799     # This must be in double quotes, not single quotes, because CPP may get
8800   # substituted into the Makefile and "${CC-cc}" will confuse make.
8801   CPP="${CC-cc} -E"
8802   # On the NeXT, cc -E runs the code through the compiler's parser,
8803   # not just through cpp.
8804   cat > conftest.$ac_ext <<EOF
8805 #line 8806 "configure"
8806 #include "confdefs.h"
8807 #include <assert.h>
8808 Syntax Error
8809 EOF
8810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8811 { (eval echo configure:8812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8812 ac_err=`grep -v '^ *+' conftest.out`
8813 if test -z "$ac_err"; then
8814   :
8815 else
8816   echo "$ac_err" >&5
8817   echo "configure: failed program was:" >&5
8818   cat conftest.$ac_ext >&5
8819   rm -rf conftest*
8820   CPP="${CC-cc} -E -traditional-cpp"
8821   cat > conftest.$ac_ext <<EOF
8822 #line 8823 "configure"
8823 #include "confdefs.h"
8824 #include <assert.h>
8825 Syntax Error
8826 EOF
8827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8828 { (eval echo configure:8829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8829 ac_err=`grep -v '^ *+' conftest.out`
8830 if test -z "$ac_err"; then
8831   :
8832 else
8833   echo "$ac_err" >&5
8834   echo "configure: failed program was:" >&5
8835   cat conftest.$ac_ext >&5
8836   rm -rf conftest*
8837   CPP=/lib/cpp
8838 fi
8839 rm -f conftest*
8840 fi
8841 rm -f conftest*
8842   ac_cv_prog_CPP="$CPP"
8843 fi
8844   CPP="$ac_cv_prog_CPP"
8845 else
8846   ac_cv_prog_CPP="$CPP"
8847 fi
8848 echo "$ac_t""$CPP" 1>&6
8849
8850 if test $ac_cv_prog_gcc = yes; then
8851     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8852 echo "configure:8853: checking whether ${CC-cc} needs -traditional" >&5
8853 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8854   echo $ac_n "(cached) $ac_c" 1>&6
8855 else
8856     ac_pattern="Autoconf.*'x'"
8857   cat > conftest.$ac_ext <<EOF
8858 #line 8859 "configure"
8859 #include "confdefs.h"
8860 #include <sgtty.h>
8861 Autoconf TIOCGETP
8862 EOF
8863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8864   egrep "$ac_pattern" >/dev/null 2>&1; then
8865   rm -rf conftest*
8866   ac_cv_prog_gcc_traditional=yes
8867 else
8868   rm -rf conftest*
8869   ac_cv_prog_gcc_traditional=no
8870 fi
8871 rm -f conftest*
8872
8873
8874   if test $ac_cv_prog_gcc_traditional = no; then
8875     cat > conftest.$ac_ext <<EOF
8876 #line 8877 "configure"
8877 #include "confdefs.h"
8878 #include <termio.h>
8879 Autoconf TCGETA
8880 EOF
8881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8882   egrep "$ac_pattern" >/dev/null 2>&1; then
8883   rm -rf conftest*
8884   ac_cv_prog_gcc_traditional=yes
8885 fi
8886 rm -f conftest*
8887
8888   fi
8889 fi
8890
8891 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8892   if test $ac_cv_prog_gcc_traditional = yes; then
8893     CC="$CC -traditional"
8894   fi
8895 fi
8896
8897
8898
8899 ac_ext=C
8900 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8901 ac_cpp='$CXXCPP $CPPFLAGS'
8902 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8903 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8904 cross_compiling=$ac_cv_prog_cxx_cross
8905
8906
8907 CXXFLAGS=${CXXFLAGS:=}
8908 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
8909 do
8910 # Extract the first word of "$ac_prog", so it can be a program name with args.
8911 set dummy $ac_prog; ac_word=$2
8912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8913 echo "configure:8914: checking for $ac_word" >&5
8914 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8915   echo $ac_n "(cached) $ac_c" 1>&6
8916 else
8917   if test -n "$CXX"; then
8918   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8919 else
8920   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8921   for ac_dir in $PATH; do
8922     test -z "$ac_dir" && ac_dir=.
8923     if test -f $ac_dir/$ac_word; then
8924       ac_cv_prog_CXX="$ac_prog"
8925       break
8926     fi
8927   done
8928   IFS="$ac_save_ifs"
8929 fi
8930 fi
8931 CXX="$ac_cv_prog_CXX"
8932 if test -n "$CXX"; then
8933   echo "$ac_t""$CXX" 1>&6
8934 else
8935   echo "$ac_t""no" 1>&6
8936 fi
8937
8938 test -n "$CXX" && break
8939 done
8940 test -n "$CXX" || CXX="gcc"
8941
8942
8943 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8944 echo "configure:8945: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8945
8946 ac_ext=C
8947 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8948 ac_cpp='$CXXCPP $CPPFLAGS'
8949 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8950 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8951 cross_compiling=$ac_cv_prog_cxx_cross
8952
8953 cat > conftest.$ac_ext <<EOF
8954 #line 8955 "configure"
8955 #include "confdefs.h"
8956 main(){return(0);}
8957 EOF
8958 if { (eval echo configure:8959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8959   ac_cv_prog_cxx_works=yes
8960   # If we can't run a trivial program, we are probably using a cross compiler.
8961   if (./conftest; exit) 2>/dev/null; then
8962     ac_cv_prog_cxx_cross=no
8963   else
8964     ac_cv_prog_cxx_cross=yes
8965   fi
8966 else
8967   echo "configure: failed program was:" >&5
8968   cat conftest.$ac_ext >&5
8969   ac_cv_prog_cxx_works=no
8970 fi
8971 rm -fr conftest*
8972
8973 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8974 if test $ac_cv_prog_cxx_works = no; then
8975   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8976 fi
8977 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8978 echo "configure:8979: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8979 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8980 cross_compiling=$ac_cv_prog_cxx_cross
8981
8982 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8983 echo "configure:8984: checking whether we are using GNU C++" >&5
8984 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8985   echo $ac_n "(cached) $ac_c" 1>&6
8986 else
8987   cat > conftest.C <<EOF
8988 #ifdef __GNUC__
8989   yes;
8990 #endif
8991 EOF
8992 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8993   ac_cv_prog_gxx=yes
8994 else
8995   ac_cv_prog_gxx=no
8996 fi
8997 fi
8998
8999 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9000
9001 if test $ac_cv_prog_gxx = yes; then
9002   GXX=yes
9003   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9004   ac_save_CXXFLAGS="$CXXFLAGS"
9005   CXXFLAGS=
9006   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9007 echo "configure:9008: checking whether ${CXX-g++} accepts -g" >&5
9008 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9009   echo $ac_n "(cached) $ac_c" 1>&6
9010 else
9011   echo 'void f(){}' > conftest.cc
9012 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9013   ac_cv_prog_cxx_g=yes
9014 else
9015   ac_cv_prog_cxx_g=no
9016 fi
9017 rm -f conftest*
9018
9019 fi
9020
9021 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9022   if test "$ac_test_CXXFLAGS" = set; then
9023     CXXFLAGS="$ac_save_CXXFLAGS"
9024   elif test $ac_cv_prog_cxx_g = yes; then
9025     CXXFLAGS="-g -O2"
9026   else
9027     CXXFLAGS="-O2"
9028   fi
9029 else
9030   GXX=
9031   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
9032 fi
9033
9034
9035 ac_ext=c
9036 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9037 ac_cpp='$CPP $CPPFLAGS'
9038 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9039 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9040 cross_compiling=$ac_cv_prog_cc_cross
9041
9042
9043 # Extract the first word of "ranlib", so it can be a program name with args.
9044 set dummy ranlib; ac_word=$2
9045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9046 echo "configure:9047: checking for $ac_word" >&5
9047 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9048   echo $ac_n "(cached) $ac_c" 1>&6
9049 else
9050   if test -n "$RANLIB"; then
9051   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9052 else
9053   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9054   for ac_dir in $PATH; do
9055     test -z "$ac_dir" && ac_dir=.
9056     if test -f $ac_dir/$ac_word; then
9057       ac_cv_prog_RANLIB="ranlib"
9058       break
9059     fi
9060   done
9061   IFS="$ac_save_ifs"
9062   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9063 fi
9064 fi
9065 RANLIB="$ac_cv_prog_RANLIB"
9066 if test -n "$RANLIB"; then
9067   echo "$ac_t""$RANLIB" 1>&6
9068 else
9069   echo "$ac_t""no" 1>&6
9070 fi
9071
9072
9073 # Extract the first word of "ar", so it can be a program name with args.
9074 set dummy ar; ac_word=$2
9075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9076 echo "configure:9077: checking for $ac_word" >&5
9077 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9078   echo $ac_n "(cached) $ac_c" 1>&6
9079 else
9080   if test -n "$AR"; then
9081   ac_cv_prog_AR="$AR" # Let the user override the test.
9082 else
9083   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9084   for ac_dir in $PATH; do
9085     test -z "$ac_dir" && ac_dir=.
9086     if test -f $ac_dir/$ac_word; then
9087       ac_cv_prog_AR="ar"
9088       break
9089     fi
9090   done
9091   IFS="$ac_save_ifs"
9092   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9093 fi
9094 fi
9095 AR="$ac_cv_prog_AR"
9096 if test -n "$AR"; then
9097   echo "$ac_t""$AR" 1>&6
9098 else
9099   echo "$ac_t""no" 1>&6
9100 fi
9101
9102
9103 # Find a good install program.  We prefer a C program (faster),
9104 # so one script is as good as another.  But avoid the broken or
9105 # incompatible versions:
9106 # SysV /etc/install, /usr/sbin/install
9107 # SunOS /usr/etc/install
9108 # IRIX /sbin/install
9109 # AIX /bin/install
9110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9112 # ./install, which can be erroneously created by make from ./install.sh.
9113 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9114 echo "configure:9115: checking for a BSD compatible install" >&5
9115 if test -z "$INSTALL"; then
9116 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9117   echo $ac_n "(cached) $ac_c" 1>&6
9118 else
9119     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
9120   for ac_dir in $PATH; do
9121     # Account for people who put trailing slashes in PATH elements.
9122     case "$ac_dir/" in
9123     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9124     *)
9125       # OSF1 and SCO ODT 3.0 have their own names for install.
9126       for ac_prog in ginstall installbsd scoinst install; do
9127         if test -f $ac_dir/$ac_prog; then
9128           if test $ac_prog = install &&
9129             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9130             # AIX install.  It has an incompatible calling convention.
9131             # OSF/1 installbsd also uses dspmsg, but is usable.
9132             :
9133           else
9134             ac_cv_path_install="$ac_dir/$ac_prog -c"
9135             break 2
9136           fi
9137         fi
9138       done
9139       ;;
9140     esac
9141   done
9142   IFS="$ac_save_IFS"
9143
9144 fi
9145   if test "${ac_cv_path_install+set}" = set; then
9146     INSTALL="$ac_cv_path_install"
9147   else
9148     # As a last resort, use the slow shell script.  We don't cache a
9149     # path for INSTALL within a source directory, because that will
9150     # break other packages using the cache if that directory is
9151     # removed, or if the path is relative.
9152     INSTALL="$ac_install_sh"
9153   fi
9154 fi
9155 echo "$ac_t""$INSTALL" 1>&6
9156
9157 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9158 # It thinks the first close brace ends the variable substitution.
9159 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9160
9161 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9162
9163
9164 case ${INSTALL} in
9165   /* ) # Absolute
9166      ;;
9167   *)
9168      INSTALL=`pwd`/${INSTALL} ;;
9169 esac
9170
9171
9172 case "${host}" in
9173
9174                 powerpc-*-darwin* )
9175         INSTALL_PROGRAM="cp -fp"
9176         INSTALL_DATA="cp -fp"
9177         ;;
9178     *)
9179         ;;
9180 esac
9181
9182 # Extract the first word of "strip", so it can be a program name with args.
9183 set dummy strip; ac_word=$2
9184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9185 echo "configure:9186: checking for $ac_word" >&5
9186 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9187   echo $ac_n "(cached) $ac_c" 1>&6
9188 else
9189   if test -n "$STRIP"; then
9190   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9191 else
9192   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9193   for ac_dir in $PATH; do
9194     test -z "$ac_dir" && ac_dir=.
9195     if test -f $ac_dir/$ac_word; then
9196       ac_cv_prog_STRIP="strip"
9197       break
9198     fi
9199   done
9200   IFS="$ac_save_ifs"
9201   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9202 fi
9203 fi
9204 STRIP="$ac_cv_prog_STRIP"
9205 if test -n "$STRIP"; then
9206   echo "$ac_t""$STRIP" 1>&6
9207 else
9208   echo "$ac_t""no" 1>&6
9209 fi
9210
9211
9212 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9213 echo "configure:9214: checking if make is GNU make" >&5
9214 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9215   echo $ac_n "(cached) $ac_c" 1>&6
9216 else
9217   
9218     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9219             egrep -s GNU > /dev/null); then
9220         wx_cv_prog_makeisgnu="yes"
9221     else
9222         wx_cv_prog_makeisgnu="no"
9223     fi
9224
9225 fi
9226
9227 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9228
9229 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9230     IF_GNU_MAKE=""
9231 else
9232     IF_GNU_MAKE="#"
9233 fi
9234
9235
9236
9237 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9238 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9239 echo "configure:9240: checking if make supports VPATH" >&5
9240 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9241   echo $ac_n "(cached) $ac_c" 1>&6
9242 else
9243   
9244 cat - << EOF > confMake
9245 check : file
9246         cp \$? \$@
9247         cp \$? final_file
9248 EOF
9249
9250 if test ! -d sub ; then
9251   mkdir sub
9252 fi
9253 echo dummy > sub/file
9254 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9255 RESULT=$?
9256 rm -f sub/file check final_file confMake
9257 rmdir sub
9258 if test "$RESULT" = 0; then
9259   wx_cv_prog_makevpath="yes"
9260 else
9261   wx_cv_prog_makevpath="no"
9262 fi
9263
9264 fi
9265
9266 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9267
9268 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9269 { echo "configure: error: 
9270 You need a make-utility that is able to use the variable
9271 VPATH correctly.
9272 If your version of make does not support VPATH correctly,
9273 please install GNU-make (possibly as gmake), and start
9274 configure with the following command:
9275 export MAKE=gmake; ./configure  for sh-type shells
9276 setenv MAKE gmake; ./configure  for csh-type shells
9277 Also please do remember to use gmake in this case every time
9278 you are trying to compile.
9279 " 1>&2; exit 1; }
9280 fi fi 
9281 for ac_prog in 'bison -y' byacc
9282 do
9283 # Extract the first word of "$ac_prog", so it can be a program name with args.
9284 set dummy $ac_prog; ac_word=$2
9285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9286 echo "configure:9287: checking for $ac_word" >&5
9287 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9288   echo $ac_n "(cached) $ac_c" 1>&6
9289 else
9290   if test -n "$YACC"; then
9291   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9292 else
9293   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9294   for ac_dir in $PATH; do
9295     test -z "$ac_dir" && ac_dir=.
9296     if test -f $ac_dir/$ac_word; then
9297       ac_cv_prog_YACC="$ac_prog"
9298       break
9299     fi
9300   done
9301   IFS="$ac_save_ifs"
9302 fi
9303 fi
9304 YACC="$ac_cv_prog_YACC"
9305 if test -n "$YACC"; then
9306   echo "$ac_t""$YACC" 1>&6
9307 else
9308   echo "$ac_t""no" 1>&6
9309 fi
9310
9311 test -n "$YACC" && break
9312 done
9313 test -n "$YACC" || YACC="yacc"
9314
9315
9316 # Extract the first word of "flex", so it can be a program name with args.
9317 set dummy flex; ac_word=$2
9318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9319 echo "configure:9320: checking for $ac_word" >&5
9320 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9321   echo $ac_n "(cached) $ac_c" 1>&6
9322 else
9323   if test -n "$LEX"; then
9324   ac_cv_prog_LEX="$LEX" # Let the user override the test.
9325 else
9326   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9327   for ac_dir in $PATH; do
9328     test -z "$ac_dir" && ac_dir=.
9329     if test -f $ac_dir/$ac_word; then
9330       ac_cv_prog_LEX="flex"
9331       break
9332     fi
9333   done
9334   IFS="$ac_save_ifs"
9335   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9336 fi
9337 fi
9338 LEX="$ac_cv_prog_LEX"
9339 if test -n "$LEX"; then
9340   echo "$ac_t""$LEX" 1>&6
9341 else
9342   echo "$ac_t""no" 1>&6
9343 fi
9344
9345 if test -z "$LEXLIB"
9346 then
9347   case "$LEX" in
9348   flex*) ac_lib=fl ;;
9349   *) ac_lib=l ;;
9350   esac
9351   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9352 echo "configure:9353: checking for yywrap in -l$ac_lib" >&5
9353 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9355   echo $ac_n "(cached) $ac_c" 1>&6
9356 else
9357   ac_save_LIBS="$LIBS"
9358 LIBS="-l$ac_lib  $LIBS"
9359 cat > conftest.$ac_ext <<EOF
9360 #line 9361 "configure"
9361 #include "confdefs.h"
9362 /* Override any gcc2 internal prototype to avoid an error.  */
9363 /* We use char because int might match the return type of a gcc2
9364     builtin and then its argument prototype would still apply.  */
9365 char yywrap();
9366
9367 int main() {
9368 yywrap()
9369 ; return 0; }
9370 EOF
9371 if { (eval echo configure:9372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9372   rm -rf conftest*
9373   eval "ac_cv_lib_$ac_lib_var=yes"
9374 else
9375   echo "configure: failed program was:" >&5
9376   cat conftest.$ac_ext >&5
9377   rm -rf conftest*
9378   eval "ac_cv_lib_$ac_lib_var=no"
9379 fi
9380 rm -f conftest*
9381 LIBS="$ac_save_LIBS"
9382
9383 fi
9384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9385   echo "$ac_t""yes" 1>&6
9386   LEXLIB="-l$ac_lib"
9387 else
9388   echo "$ac_t""no" 1>&6
9389 fi
9390
9391 fi
9392
9393
9394 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9395 echo "configure:9396: checking whether ln -s works" >&5
9396 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9397   echo $ac_n "(cached) $ac_c" 1>&6
9398 else
9399   rm -f conftestdata
9400 if ln -s X conftestdata 2>/dev/null
9401 then
9402   rm -f conftestdata
9403   ac_cv_prog_LN_S="ln -s"
9404 else
9405   ac_cv_prog_LN_S=ln
9406 fi
9407 fi
9408 LN_S="$ac_cv_prog_LN_S"
9409 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9410   echo "$ac_t""yes" 1>&6
9411 else
9412   echo "$ac_t""no" 1>&6
9413 fi
9414
9415
9416
9417 if test "$wxUSE_MAC" != 1; then
9418     for ac_hdr in strings.h
9419 do
9420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9422 echo "configure:9423: checking for $ac_hdr" >&5
9423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9424   echo $ac_n "(cached) $ac_c" 1>&6
9425 else
9426   cat > conftest.$ac_ext <<EOF
9427 #line 9428 "configure"
9428 #include "confdefs.h"
9429 #include <$ac_hdr>
9430 EOF
9431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9432 { (eval echo configure:9433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9433 ac_err=`grep -v '^ *+' conftest.out`
9434 if test -z "$ac_err"; then
9435   rm -rf conftest*
9436   eval "ac_cv_header_$ac_safe=yes"
9437 else
9438   echo "$ac_err" >&5
9439   echo "configure: failed program was:" >&5
9440   cat conftest.$ac_ext >&5
9441   rm -rf conftest*
9442   eval "ac_cv_header_$ac_safe=no"
9443 fi
9444 rm -f conftest*
9445 fi
9446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9447   echo "$ac_t""yes" 1>&6
9448     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9449   cat >> confdefs.h <<EOF
9450 #define $ac_tr_hdr 1
9451 EOF
9452  
9453 else
9454   echo "$ac_t""no" 1>&6
9455 fi
9456 done
9457
9458 fi
9459
9460 for ac_hdr in stdlib.h
9461 do
9462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9464 echo "configure:9465: checking for $ac_hdr" >&5
9465 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9466   echo $ac_n "(cached) $ac_c" 1>&6
9467 else
9468   cat > conftest.$ac_ext <<EOF
9469 #line 9470 "configure"
9470 #include "confdefs.h"
9471 #include <$ac_hdr>
9472 EOF
9473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9474 { (eval echo configure:9475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9475 ac_err=`grep -v '^ *+' conftest.out`
9476 if test -z "$ac_err"; then
9477   rm -rf conftest*
9478   eval "ac_cv_header_$ac_safe=yes"
9479 else
9480   echo "$ac_err" >&5
9481   echo "configure: failed program was:" >&5
9482   cat conftest.$ac_ext >&5
9483   rm -rf conftest*
9484   eval "ac_cv_header_$ac_safe=no"
9485 fi
9486 rm -f conftest*
9487 fi
9488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9489   echo "$ac_t""yes" 1>&6
9490     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9491   cat >> confdefs.h <<EOF
9492 #define $ac_tr_hdr 1
9493 EOF
9494  
9495 else
9496   echo "$ac_t""no" 1>&6
9497 fi
9498 done
9499
9500 for ac_hdr in malloc.h
9501 do
9502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9504 echo "configure:9505: checking for $ac_hdr" >&5
9505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9506   echo $ac_n "(cached) $ac_c" 1>&6
9507 else
9508   cat > conftest.$ac_ext <<EOF
9509 #line 9510 "configure"
9510 #include "confdefs.h"
9511 #include <$ac_hdr>
9512 EOF
9513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9514 { (eval echo configure:9515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9515 ac_err=`grep -v '^ *+' conftest.out`
9516 if test -z "$ac_err"; then
9517   rm -rf conftest*
9518   eval "ac_cv_header_$ac_safe=yes"
9519 else
9520   echo "$ac_err" >&5
9521   echo "configure: failed program was:" >&5
9522   cat conftest.$ac_ext >&5
9523   rm -rf conftest*
9524   eval "ac_cv_header_$ac_safe=no"
9525 fi
9526 rm -f conftest*
9527 fi
9528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9529   echo "$ac_t""yes" 1>&6
9530     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9531   cat >> confdefs.h <<EOF
9532 #define $ac_tr_hdr 1
9533 EOF
9534  
9535 else
9536   echo "$ac_t""no" 1>&6
9537 fi
9538 done
9539
9540 for ac_hdr in unistd.h
9541 do
9542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9544 echo "configure:9545: checking for $ac_hdr" >&5
9545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9546   echo $ac_n "(cached) $ac_c" 1>&6
9547 else
9548   cat > conftest.$ac_ext <<EOF
9549 #line 9550 "configure"
9550 #include "confdefs.h"
9551 #include <$ac_hdr>
9552 EOF
9553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9554 { (eval echo configure:9555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9555 ac_err=`grep -v '^ *+' conftest.out`
9556 if test -z "$ac_err"; then
9557   rm -rf conftest*
9558   eval "ac_cv_header_$ac_safe=yes"
9559 else
9560   echo "$ac_err" >&5
9561   echo "configure: failed program was:" >&5
9562   cat conftest.$ac_ext >&5
9563   rm -rf conftest*
9564   eval "ac_cv_header_$ac_safe=no"
9565 fi
9566 rm -f conftest*
9567 fi
9568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9569   echo "$ac_t""yes" 1>&6
9570     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9571   cat >> confdefs.h <<EOF
9572 #define $ac_tr_hdr 1
9573 EOF
9574  
9575 else
9576   echo "$ac_t""no" 1>&6
9577 fi
9578 done
9579
9580 for ac_hdr in wchar.h
9581 do
9582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9584 echo "configure:9585: checking for $ac_hdr" >&5
9585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9586   echo $ac_n "(cached) $ac_c" 1>&6
9587 else
9588   cat > conftest.$ac_ext <<EOF
9589 #line 9590 "configure"
9590 #include "confdefs.h"
9591 #include <$ac_hdr>
9592 EOF
9593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9594 { (eval echo configure:9595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9595 ac_err=`grep -v '^ *+' conftest.out`
9596 if test -z "$ac_err"; then
9597   rm -rf conftest*
9598   eval "ac_cv_header_$ac_safe=yes"
9599 else
9600   echo "$ac_err" >&5
9601   echo "configure: failed program was:" >&5
9602   cat conftest.$ac_ext >&5
9603   rm -rf conftest*
9604   eval "ac_cv_header_$ac_safe=no"
9605 fi
9606 rm -f conftest*
9607 fi
9608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9609   echo "$ac_t""yes" 1>&6
9610     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9611   cat >> confdefs.h <<EOF
9612 #define $ac_tr_hdr 1
9613 EOF
9614  
9615 else
9616   echo "$ac_t""no" 1>&6
9617 fi
9618 done
9619
9620
9621 if test "$ac_cv_header_wchar_h" != "yes"; then
9622         for ac_hdr in wcstr.h
9623 do
9624 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9625 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9626 echo "configure:9627: checking for $ac_hdr" >&5
9627 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9628   echo $ac_n "(cached) $ac_c" 1>&6
9629 else
9630   cat > conftest.$ac_ext <<EOF
9631 #line 9632 "configure"
9632 #include "confdefs.h"
9633 #include <$ac_hdr>
9634 EOF
9635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9636 { (eval echo configure:9637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9637 ac_err=`grep -v '^ *+' conftest.out`
9638 if test -z "$ac_err"; then
9639   rm -rf conftest*
9640   eval "ac_cv_header_$ac_safe=yes"
9641 else
9642   echo "$ac_err" >&5
9643   echo "configure: failed program was:" >&5
9644   cat conftest.$ac_ext >&5
9645   rm -rf conftest*
9646   eval "ac_cv_header_$ac_safe=no"
9647 fi
9648 rm -f conftest*
9649 fi
9650 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9651   echo "$ac_t""yes" 1>&6
9652     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9653   cat >> confdefs.h <<EOF
9654 #define $ac_tr_hdr 1
9655 EOF
9656  
9657 else
9658   echo "$ac_t""no" 1>&6
9659 fi
9660 done
9661
9662 fi
9663
9664
9665 for ac_hdr in fnmatch.h
9666 do
9667 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9669 echo "configure:9670: checking for $ac_hdr" >&5
9670 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9671   echo $ac_n "(cached) $ac_c" 1>&6
9672 else
9673   cat > conftest.$ac_ext <<EOF
9674 #line 9675 "configure"
9675 #include "confdefs.h"
9676 #include <$ac_hdr>
9677 EOF
9678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9679 { (eval echo configure:9680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9680 ac_err=`grep -v '^ *+' conftest.out`
9681 if test -z "$ac_err"; then
9682   rm -rf conftest*
9683   eval "ac_cv_header_$ac_safe=yes"
9684 else
9685   echo "$ac_err" >&5
9686   echo "configure: failed program was:" >&5
9687   cat conftest.$ac_ext >&5
9688   rm -rf conftest*
9689   eval "ac_cv_header_$ac_safe=no"
9690 fi
9691 rm -f conftest*
9692 fi
9693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9694   echo "$ac_t""yes" 1>&6
9695     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9696   cat >> confdefs.h <<EOF
9697 #define $ac_tr_hdr 1
9698 EOF
9699  
9700 else
9701   echo "$ac_t""no" 1>&6
9702 fi
9703 done
9704
9705
9706 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9707     for ac_func in fnmatch
9708 do
9709 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9710 echo "configure:9711: checking for $ac_func" >&5
9711 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9712   echo $ac_n "(cached) $ac_c" 1>&6
9713 else
9714   cat > conftest.$ac_ext <<EOF
9715 #line 9716 "configure"
9716 #include "confdefs.h"
9717 /* System header to define __stub macros and hopefully few prototypes,
9718     which can conflict with char $ac_func(); below.  */
9719 #include <assert.h>
9720 /* Override any gcc2 internal prototype to avoid an error.  */
9721 /* We use char because int might match the return type of a gcc2
9722     builtin and then its argument prototype would still apply.  */
9723 char $ac_func();
9724
9725 int main() {
9726
9727 /* The GNU C library defines this for functions which it implements
9728     to always fail with ENOSYS.  Some functions are actually named
9729     something starting with __ and the normal name is an alias.  */
9730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9731 choke me
9732 #else
9733 $ac_func();
9734 #endif
9735
9736 ; return 0; }
9737 EOF
9738 if { (eval echo configure:9739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9739   rm -rf conftest*
9740   eval "ac_cv_func_$ac_func=yes"
9741 else
9742   echo "configure: failed program was:" >&5
9743   cat conftest.$ac_ext >&5
9744   rm -rf conftest*
9745   eval "ac_cv_func_$ac_func=no"
9746 fi
9747 rm -f conftest*
9748 fi
9749
9750 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9751   echo "$ac_t""yes" 1>&6
9752     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9753   cat >> confdefs.h <<EOF
9754 #define $ac_tr_func 1
9755 EOF
9756  
9757 else
9758   echo "$ac_t""no" 1>&6
9759 fi
9760 done
9761
9762 fi
9763
9764 for ac_hdr in langinfo.h
9765 do
9766 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9767 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9768 echo "configure:9769: checking for $ac_hdr" >&5
9769 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9770   echo $ac_n "(cached) $ac_c" 1>&6
9771 else
9772   cat > conftest.$ac_ext <<EOF
9773 #line 9774 "configure"
9774 #include "confdefs.h"
9775 #include <$ac_hdr>
9776 EOF
9777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9778 { (eval echo configure:9779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9779 ac_err=`grep -v '^ *+' conftest.out`
9780 if test -z "$ac_err"; then
9781   rm -rf conftest*
9782   eval "ac_cv_header_$ac_safe=yes"
9783 else
9784   echo "$ac_err" >&5
9785   echo "configure: failed program was:" >&5
9786   cat conftest.$ac_ext >&5
9787   rm -rf conftest*
9788   eval "ac_cv_header_$ac_safe=no"
9789 fi
9790 rm -f conftest*
9791 fi
9792 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9793   echo "$ac_t""yes" 1>&6
9794     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9795   cat >> confdefs.h <<EOF
9796 #define $ac_tr_hdr 1
9797 EOF
9798  
9799 else
9800   echo "$ac_t""no" 1>&6
9801 fi
9802 done
9803
9804
9805 if test "$wxUSE_GUI" = "yes"; then
9806     if test "$wxUSE_UNIX" = "yes"; then
9807                 for ac_hdr in X11/XKBlib.h
9808 do
9809 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9811 echo "configure:9812: checking for $ac_hdr" >&5
9812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9813   echo $ac_n "(cached) $ac_c" 1>&6
9814 else
9815   cat > conftest.$ac_ext <<EOF
9816 #line 9817 "configure"
9817 #include "confdefs.h"
9818 #include <$ac_hdr>
9819 EOF
9820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9821 { (eval echo configure:9822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9822 ac_err=`grep -v '^ *+' conftest.out`
9823 if test -z "$ac_err"; then
9824   rm -rf conftest*
9825   eval "ac_cv_header_$ac_safe=yes"
9826 else
9827   echo "$ac_err" >&5
9828   echo "configure: failed program was:" >&5
9829   cat conftest.$ac_ext >&5
9830   rm -rf conftest*
9831   eval "ac_cv_header_$ac_safe=no"
9832 fi
9833 rm -f conftest*
9834 fi
9835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9836   echo "$ac_t""yes" 1>&6
9837     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9838   cat >> confdefs.h <<EOF
9839 #define $ac_tr_hdr 1
9840 EOF
9841  
9842 else
9843   echo "$ac_t""no" 1>&6
9844 fi
9845 done
9846
9847     fi
9848 fi
9849
9850
9851 echo $ac_n "checking for working const""... $ac_c" 1>&6
9852 echo "configure:9853: checking for working const" >&5
9853 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9854   echo $ac_n "(cached) $ac_c" 1>&6
9855 else
9856   cat > conftest.$ac_ext <<EOF
9857 #line 9858 "configure"
9858 #include "confdefs.h"
9859
9860 int main() {
9861
9862 /* Ultrix mips cc rejects this.  */
9863 typedef int charset[2]; const charset x;
9864 /* SunOS 4.1.1 cc rejects this.  */
9865 char const *const *ccp;
9866 char **p;
9867 /* NEC SVR4.0.2 mips cc rejects this.  */
9868 struct point {int x, y;};
9869 static struct point const zero = {0,0};
9870 /* AIX XL C 1.02.0.0 rejects this.
9871    It does not let you subtract one const X* pointer from another in an arm
9872    of an if-expression whose if-part is not a constant expression */
9873 const char *g = "string";
9874 ccp = &g + (g ? g-g : 0);
9875 /* HPUX 7.0 cc rejects these. */
9876 ++ccp;
9877 p = (char**) ccp;
9878 ccp = (char const *const *) p;
9879 { /* SCO 3.2v4 cc rejects this.  */
9880   char *t;
9881   char const *s = 0 ? (char *) 0 : (char const *) 0;
9882
9883   *t++ = 0;
9884 }
9885 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9886   int x[] = {25, 17};
9887   const int *foo = &x[0];
9888   ++foo;
9889 }
9890 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9891   typedef const int *iptr;
9892   iptr p = 0;
9893   ++p;
9894 }
9895 { /* AIX XL C 1.02.0.0 rejects this saying
9896      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9897   struct s { int j; const int *ap[3]; };
9898   struct s *b; b->j = 5;
9899 }
9900 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9901   const int foo = 10;
9902 }
9903
9904 ; return 0; }
9905 EOF
9906 if { (eval echo configure:9907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9907   rm -rf conftest*
9908   ac_cv_c_const=yes
9909 else
9910   echo "configure: failed program was:" >&5
9911   cat conftest.$ac_ext >&5
9912   rm -rf conftest*
9913   ac_cv_c_const=no
9914 fi
9915 rm -f conftest*
9916 fi
9917
9918 echo "$ac_t""$ac_cv_c_const" 1>&6
9919 if test $ac_cv_c_const = no; then
9920   cat >> confdefs.h <<\EOF
9921 #define const 
9922 EOF
9923
9924 fi
9925
9926 echo $ac_n "checking for inline""... $ac_c" 1>&6
9927 echo "configure:9928: checking for inline" >&5
9928 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9929   echo $ac_n "(cached) $ac_c" 1>&6
9930 else
9931   ac_cv_c_inline=no
9932 for ac_kw in inline __inline__ __inline; do
9933   cat > conftest.$ac_ext <<EOF
9934 #line 9935 "configure"
9935 #include "confdefs.h"
9936
9937 int main() {
9938 } $ac_kw foo() {
9939 ; return 0; }
9940 EOF
9941 if { (eval echo configure:9942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9942   rm -rf conftest*
9943   ac_cv_c_inline=$ac_kw; break
9944 else
9945   echo "configure: failed program was:" >&5
9946   cat conftest.$ac_ext >&5
9947 fi
9948 rm -f conftest*
9949 done
9950
9951 fi
9952
9953 echo "$ac_t""$ac_cv_c_inline" 1>&6
9954 case "$ac_cv_c_inline" in
9955   inline | yes) ;;
9956   no) cat >> confdefs.h <<\EOF
9957 #define inline 
9958 EOF
9959  ;;
9960   *)  cat >> confdefs.h <<EOF
9961 #define inline $ac_cv_c_inline
9962 EOF
9963  ;;
9964 esac
9965
9966
9967 echo $ac_n "checking size of char""... $ac_c" 1>&6
9968 echo "configure:9969: checking size of char" >&5
9969 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9970   echo $ac_n "(cached) $ac_c" 1>&6
9971 else
9972   if test "$cross_compiling" = yes; then
9973   ac_cv_sizeof_char=1
9974 else
9975   cat > conftest.$ac_ext <<EOF
9976 #line 9977 "configure"
9977 #include "confdefs.h"
9978 #include <stdio.h>
9979 main()
9980 {
9981   FILE *f=fopen("conftestval", "w");
9982   if (!f) exit(1);
9983   fprintf(f, "%d\n", sizeof(char));
9984   exit(0);
9985 }
9986 EOF
9987 if { (eval echo configure:9988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9988 then
9989   ac_cv_sizeof_char=`cat conftestval`
9990 else
9991   echo "configure: failed program was:" >&5
9992   cat conftest.$ac_ext >&5
9993   rm -fr conftest*
9994   ac_cv_sizeof_char=0
9995 fi
9996 rm -fr conftest*
9997 fi
9998
9999 fi
10000 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10001 cat >> confdefs.h <<EOF
10002 #define SIZEOF_CHAR $ac_cv_sizeof_char
10003 EOF
10004
10005
10006 echo $ac_n "checking size of short""... $ac_c" 1>&6
10007 echo "configure:10008: checking size of short" >&5
10008 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10009   echo $ac_n "(cached) $ac_c" 1>&6
10010 else
10011   if test "$cross_compiling" = yes; then
10012   ac_cv_sizeof_short=2
10013 else
10014   cat > conftest.$ac_ext <<EOF
10015 #line 10016 "configure"
10016 #include "confdefs.h"
10017 #include <stdio.h>
10018 main()
10019 {
10020   FILE *f=fopen("conftestval", "w");
10021   if (!f) exit(1);
10022   fprintf(f, "%d\n", sizeof(short));
10023   exit(0);
10024 }
10025 EOF
10026 if { (eval echo configure:10027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
10027 then
10028   ac_cv_sizeof_short=`cat conftestval`
10029 else
10030   echo "configure: failed program was:" >&5
10031   cat conftest.$ac_ext >&5
10032   rm -fr conftest*
10033   ac_cv_sizeof_short=0
10034 fi
10035 rm -fr conftest*
10036 fi
10037
10038 fi
10039 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10040 cat >> confdefs.h <<EOF
10041 #define SIZEOF_SHORT $ac_cv_sizeof_short
10042 EOF
10043
10044
10045 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10046 echo "configure:10047: checking size of void *" >&5
10047 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10048   echo $ac_n "(cached) $ac_c" 1>&6
10049 else
10050   if test "$cross_compiling" = yes; then
10051   ac_cv_sizeof_void_p=4
10052 else
10053   cat > conftest.$ac_ext <<EOF
10054 #line 10055 "configure"
10055 #include "confdefs.h"
10056 #include <stdio.h>
10057 main()
10058 {
10059   FILE *f=fopen("conftestval", "w");
10060   if (!f) exit(1);
10061   fprintf(f, "%d\n", sizeof(void *));
10062   exit(0);
10063 }
10064 EOF
10065 if { (eval echo configure:10066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
10066 then
10067   ac_cv_sizeof_void_p=`cat conftestval`
10068 else
10069   echo "configure: failed program was:" >&5
10070   cat conftest.$ac_ext >&5
10071   rm -fr conftest*
10072   ac_cv_sizeof_void_p=0
10073 fi
10074 rm -fr conftest*
10075 fi
10076
10077 fi
10078 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10079 cat >> confdefs.h <<EOF
10080 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10081 EOF
10082
10083
10084 echo $ac_n "checking size of int""... $ac_c" 1>&6
10085 echo "configure:10086: checking size of int" >&5
10086 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10087   echo $ac_n "(cached) $ac_c" 1>&6
10088 else
10089   if test "$cross_compiling" = yes; then
10090   ac_cv_sizeof_int=4
10091 else
10092   cat > conftest.$ac_ext <<EOF
10093 #line 10094 "configure"
10094 #include "confdefs.h"
10095 #include <stdio.h>
10096 main()
10097 {
10098   FILE *f=fopen("conftestval", "w");
10099   if (!f) exit(1);
10100   fprintf(f, "%d\n", sizeof(int));
10101   exit(0);
10102 }
10103 EOF
10104 if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
10105 then
10106   ac_cv_sizeof_int=`cat conftestval`
10107 else
10108   echo "configure: failed program was:" >&5
10109   cat conftest.$ac_ext >&5
10110   rm -fr conftest*
10111   ac_cv_sizeof_int=0
10112 fi
10113 rm -fr conftest*
10114 fi
10115
10116 fi
10117 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10118 cat >> confdefs.h <<EOF
10119 #define SIZEOF_INT $ac_cv_sizeof_int
10120 EOF
10121
10122
10123 echo $ac_n "checking size of long""... $ac_c" 1>&6
10124 echo "configure:10125: checking size of long" >&5
10125 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10126   echo $ac_n "(cached) $ac_c" 1>&6
10127 else
10128   if test "$cross_compiling" = yes; then
10129   ac_cv_sizeof_long=4
10130 else
10131   cat > conftest.$ac_ext <<EOF
10132 #line 10133 "configure"
10133 #include "confdefs.h"
10134 #include <stdio.h>
10135 main()
10136 {
10137   FILE *f=fopen("conftestval", "w");
10138   if (!f) exit(1);
10139   fprintf(f, "%d\n", sizeof(long));
10140   exit(0);
10141 }
10142 EOF
10143 if { (eval echo configure:10144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
10144 then
10145   ac_cv_sizeof_long=`cat conftestval`
10146 else
10147   echo "configure: failed program was:" >&5
10148   cat conftest.$ac_ext >&5
10149   rm -fr conftest*
10150   ac_cv_sizeof_long=0
10151 fi
10152 rm -fr conftest*
10153 fi
10154
10155 fi
10156 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10157 cat >> confdefs.h <<EOF
10158 #define SIZEOF_LONG $ac_cv_sizeof_long
10159 EOF
10160
10161
10162
10163 case "${host}" in
10164     arm-*-linux* )
10165         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10166 echo "configure:10167: checking size of long long" >&5
10167 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10168   echo $ac_n "(cached) $ac_c" 1>&6
10169 else
10170   if test "$cross_compiling" = yes; then
10171   ac_cv_sizeof_long_long=8
10172 else
10173   cat > conftest.$ac_ext <<EOF
10174 #line 10175 "configure"
10175 #include "confdefs.h"
10176 #include <stdio.h>
10177 main()
10178 {
10179   FILE *f=fopen("conftestval", "w");
10180   if (!f) exit(1);
10181   fprintf(f, "%d\n", sizeof(long long));
10182   exit(0);
10183 }
10184 EOF
10185 if { (eval echo configure:10186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
10186 then
10187   ac_cv_sizeof_long_long=`cat conftestval`
10188 else
10189   echo "configure: failed program was:" >&5
10190   cat conftest.$ac_ext >&5
10191   rm -fr conftest*
10192   ac_cv_sizeof_long_long=0
10193 fi
10194 rm -fr conftest*
10195 fi
10196
10197 fi
10198 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10199 cat >> confdefs.h <<EOF
10200 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10201 EOF
10202
10203
10204     ;;
10205     * )
10206         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10207 echo "configure:10208: checking size of long long" >&5
10208 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10209   echo $ac_n "(cached) $ac_c" 1>&6
10210 else
10211   if test "$cross_compiling" = yes; then
10212   ac_cv_sizeof_long_long=0
10213 else
10214   cat > conftest.$ac_ext <<EOF
10215 #line 10216 "configure"
10216 #include "confdefs.h"
10217 #include <stdio.h>
10218 main()
10219 {
10220   FILE *f=fopen("conftestval", "w");
10221   if (!f) exit(1);
10222   fprintf(f, "%d\n", sizeof(long long));
10223   exit(0);
10224 }
10225 EOF
10226 if { (eval echo configure:10227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
10227 then
10228   ac_cv_sizeof_long_long=`cat conftestval`
10229 else
10230   echo "configure: failed program was:" >&5
10231   cat conftest.$ac_ext >&5
10232   rm -fr conftest*
10233   ac_cv_sizeof_long_long=0
10234 fi
10235 rm -fr conftest*
10236 fi
10237
10238 fi
10239 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10240 cat >> confdefs.h <<EOF
10241 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10242 EOF
10243
10244
10245 esac
10246
10247 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10248 echo "configure:10249: checking size of wchar_t" >&5
10249 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10250   echo $ac_n "(cached) $ac_c" 1>&6
10251 else
10252   
10253     if test "$cross_compiling" = yes; then
10254   wx_cv_sizeof_wchar_t=4
10255     
10256 else
10257   cat > conftest.$ac_ext <<EOF
10258 #line 10259 "configure"
10259 #include "confdefs.h"
10260
10261             #ifdef HAVE_WCHAR_H
10262             #  ifdef __CYGWIN__
10263             #    include <stddef.h>
10264             #  endif
10265             #  include <wchar.h>
10266             #endif
10267             #ifdef HAVE_STDLIB_H
10268             #  include <stdlib.h>
10269             #endif
10270             #include <stdio.h>
10271             int main()
10272             {
10273                 FILE *f=fopen("conftestval", "w");
10274                 if (!f) exit(1);
10275                 fprintf(f, "%i", sizeof(wchar_t));
10276                 exit(0);
10277             }
10278         
10279 EOF
10280 if { (eval echo configure:10281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
10281 then
10282   wx_cv_sizeof_wchar_t=`cat conftestval`
10283 else
10284   echo "configure: failed program was:" >&5
10285   cat conftest.$ac_ext >&5
10286   rm -fr conftest*
10287   wx_cv_sizeof_wchar_t=0
10288 fi
10289 rm -fr conftest*
10290 fi
10291
10292
10293 fi
10294
10295 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10296
10297 cat >> confdefs.h <<EOF
10298 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10299 EOF
10300
10301
10302 # Check whether --enable-largefile or --disable-largefile was given.
10303 if test "${enable_largefile+set}" = set; then
10304   enableval="$enable_largefile"
10305   :
10306 fi
10307
10308 if test "$enable_largefile" != no; then
10309             wx_largefile=no
10310     
10311     echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10312 echo "configure:10313: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10313 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10314   echo $ac_n "(cached) $ac_c" 1>&6
10315 else
10316   
10317           cat > conftest.$ac_ext <<EOF
10318 #line 10319 "configure"
10319 #include "confdefs.h"
10320 #define _FILE_OFFSET_BITS 64
10321                           #include <sys/types.h>
10322 int main() {
10323 typedef struct {
10324     unsigned int field: sizeof(off_t) == 8;
10325 } wxlf;
10326
10327 ; return 0; }
10328 EOF
10329 if { (eval echo configure:10330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10330   rm -rf conftest*
10331   ac_cv_sys_file_offset_bits=64
10332 else
10333   echo "configure: failed program was:" >&5
10334   cat conftest.$ac_ext >&5
10335   rm -rf conftest*
10336   ac_cv_sys_file_offset_bits=no
10337 fi
10338 rm -f conftest*
10339         
10340     
10341 fi
10342
10343 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10344
10345     if test "$ac_cv_sys_file_offset_bits" != no; then
10346         wx_largefile=yes
10347         cat >> confdefs.h <<EOF
10348 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10349 EOF
10350
10351     fi
10352
10353     if test "x$wx_largefile" != "xyes"; then
10354         
10355     echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10356 echo "configure:10357: checking for _LARGE_FILES value needed for large files" >&5
10357 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10358   echo $ac_n "(cached) $ac_c" 1>&6
10359 else
10360   
10361           cat > conftest.$ac_ext <<EOF
10362 #line 10363 "configure"
10363 #include "confdefs.h"
10364 #define _LARGE_FILES 1
10365                           #include <sys/types.h>
10366 int main() {
10367 typedef struct {
10368     unsigned int field: sizeof(off_t) == 8;
10369 } wxlf;
10370
10371 ; return 0; }
10372 EOF
10373 if { (eval echo configure:10374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10374   rm -rf conftest*
10375   ac_cv_sys_large_files=1
10376 else
10377   echo "configure: failed program was:" >&5
10378   cat conftest.$ac_ext >&5
10379   rm -rf conftest*
10380   ac_cv_sys_large_files=no
10381 fi
10382 rm -f conftest*
10383         
10384     
10385 fi
10386
10387 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10388
10389     if test "$ac_cv_sys_large_files" != no; then
10390         wx_largefile=yes
10391         cat >> confdefs.h <<EOF
10392 #define _LARGE_FILES $ac_cv_sys_large_files
10393 EOF
10394
10395     fi
10396
10397     fi
10398
10399     echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10400 echo "configure:10401: checking if large file support is available" >&5
10401     if test "x$wx_largefile" = "xyes"; then
10402         cat >> confdefs.h <<\EOF
10403 #define HAVE_LARGEFILE_SUPPORT 1
10404 EOF
10405
10406     fi
10407     echo "$ac_t""$wx_largefile" 1>&6
10408 fi
10409
10410
10411 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10412 echo "configure:10413: checking whether byte ordering is bigendian" >&5
10413 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10414   echo $ac_n "(cached) $ac_c" 1>&6
10415 else
10416   ac_cv_c_bigendian=unknown
10417 # See if sys/param.h defines the BYTE_ORDER macro.
10418 cat > conftest.$ac_ext <<EOF
10419 #line 10420 "configure"
10420 #include "confdefs.h"
10421 #include <sys/types.h>
10422 #include <sys/param.h>
10423 int main() {
10424
10425 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10426  bogus endian macros
10427 #endif
10428 ; return 0; }
10429 EOF
10430 if { (eval echo configure:10431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10431   rm -rf conftest*
10432   # It does; now see whether it defined to BIG_ENDIAN or not.
10433 cat > conftest.$ac_ext <<EOF
10434 #line 10435 "configure"
10435 #include "confdefs.h"
10436 #include <sys/types.h>
10437 #include <sys/param.h>
10438 int main() {
10439
10440 #if BYTE_ORDER != BIG_ENDIAN
10441  not big endian
10442 #endif
10443 ; return 0; }
10444 EOF
10445 if { (eval echo configure:10446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10446   rm -rf conftest*
10447   ac_cv_c_bigendian=yes
10448 else
10449   echo "configure: failed program was:" >&5
10450   cat conftest.$ac_ext >&5
10451   rm -rf conftest*
10452   ac_cv_c_bigendian=no
10453 fi
10454 rm -f conftest*
10455 else
10456   echo "configure: failed program was:" >&5
10457   cat conftest.$ac_ext >&5
10458 fi
10459 rm -f conftest*
10460 if test $ac_cv_c_bigendian = unknown; then
10461 if test "$cross_compiling" = yes; then
10462   ac_cv_c_bigendian=unknown
10463 else
10464   cat > conftest.$ac_ext <<EOF
10465 #line 10466 "configure"
10466 #include "confdefs.h"
10467 main () {
10468   /* Are we little or big endian?  From Harbison&Steele.  */
10469   union
10470   {
10471     long l;
10472     char c[sizeof (long)];
10473   } u;
10474   u.l = 1;
10475   exit (u.c[sizeof (long) - 1] == 1);
10476 }
10477 EOF
10478 if { (eval echo configure:10479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
10479 then
10480   ac_cv_c_bigendian=no
10481 else
10482   echo "configure: failed program was:" >&5
10483   cat conftest.$ac_ext >&5
10484   rm -fr conftest*
10485   ac_cv_c_bigendian=yes
10486 fi
10487 rm -fr conftest*
10488 fi
10489
10490 fi
10491 fi
10492
10493 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10494 if test $ac_cv_c_bigendian = unknown; then
10495   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
10496 fi
10497 if test $ac_cv_c_bigendian = yes; then
10498   cat >> confdefs.h <<\EOF
10499 #define WORDS_BIGENDIAN 1
10500 EOF
10501
10502 fi
10503
10504
10505 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10506 echo "configure:10507: checking how to run the C++ preprocessor" >&5
10507 if test -z "$CXXCPP"; then
10508 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10509   echo $ac_n "(cached) $ac_c" 1>&6
10510 else
10511   ac_ext=C
10512 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10513 ac_cpp='$CXXCPP $CPPFLAGS'
10514 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10515 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10516 cross_compiling=$ac_cv_prog_cxx_cross
10517   CXXCPP="${CXX-g++} -E"
10518   cat > conftest.$ac_ext <<EOF
10519 #line 10520 "configure"
10520 #include "confdefs.h"
10521 #include <stdlib.h>
10522 EOF
10523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10524 { (eval echo configure:10525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10525 ac_err=`grep -v '^ *+' conftest.out`
10526 if test -z "$ac_err"; then
10527   :
10528 else
10529   echo "$ac_err" >&5
10530   echo "configure: failed program was:" >&5
10531   cat conftest.$ac_ext >&5
10532   rm -rf conftest*
10533   CXXCPP=/lib/cpp
10534 fi
10535 rm -f conftest*
10536   ac_cv_prog_CXXCPP="$CXXCPP"
10537 fi
10538 fi
10539 CXXCPP="$ac_cv_prog_CXXCPP"
10540 echo "$ac_t""$CXXCPP" 1>&6
10541
10542
10543   if test "$cross_compiling" = "yes"; then
10544     cat >> confdefs.h <<\EOF
10545 #define wxUSE_IOSTREAMH 1
10546 EOF
10547
10548   else
10549     
10550     ac_ext=C
10551 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10552 ac_cpp='$CXXCPP $CPPFLAGS'
10553 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10554 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10555 cross_compiling=$ac_cv_prog_cxx_cross
10556
10557
10558     for ac_hdr in iostream
10559 do
10560 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10561 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10562 echo "configure:10563: checking for $ac_hdr" >&5
10563 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10564   echo $ac_n "(cached) $ac_c" 1>&6
10565 else
10566   cat > conftest.$ac_ext <<EOF
10567 #line 10568 "configure"
10568 #include "confdefs.h"
10569 #include <$ac_hdr>
10570 EOF
10571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10572 { (eval echo configure:10573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10573 ac_err=`grep -v '^ *+' conftest.out`
10574 if test -z "$ac_err"; then
10575   rm -rf conftest*
10576   eval "ac_cv_header_$ac_safe=yes"
10577 else
10578   echo "$ac_err" >&5
10579   echo "configure: failed program was:" >&5
10580   cat conftest.$ac_ext >&5
10581   rm -rf conftest*
10582   eval "ac_cv_header_$ac_safe=no"
10583 fi
10584 rm -f conftest*
10585 fi
10586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10587   echo "$ac_t""yes" 1>&6
10588     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10589   cat >> confdefs.h <<EOF
10590 #define $ac_tr_hdr 1
10591 EOF
10592  
10593 else
10594   echo "$ac_t""no" 1>&6
10595 fi
10596 done
10597
10598
10599     if test "$ac_cv_header_iostream" = "yes" ; then
10600       :
10601     else
10602       cat >> confdefs.h <<\EOF
10603 #define wxUSE_IOSTREAMH 1
10604 EOF
10605
10606     fi
10607
10608     ac_ext=c
10609 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10610 ac_cpp='$CPP $CPPFLAGS'
10611 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10612 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10613 cross_compiling=$ac_cv_prog_cc_cross
10614
10615   fi
10616
10617
10618
10619   echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10620 echo "configure:10621: checking if C++ compiler supports bool" >&5
10621 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10622   echo $ac_n "(cached) $ac_c" 1>&6
10623 else
10624   
10625     
10626     ac_ext=C
10627 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10628 ac_cpp='$CXXCPP $CPPFLAGS'
10629 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10630 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10631 cross_compiling=$ac_cv_prog_cxx_cross
10632
10633
10634     cat > conftest.$ac_ext <<EOF
10635 #line 10636 "configure"
10636 #include "confdefs.h"
10637
10638       
10639 int main() {
10640
10641         bool b = true;
10642
10643         return 0;
10644       
10645 ; return 0; }
10646 EOF
10647 if { (eval echo configure:10648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10648   rm -rf conftest*
10649   
10650         wx_cv_cpp_bool=yes
10651       
10652 else
10653   echo "configure: failed program was:" >&5
10654   cat conftest.$ac_ext >&5
10655   rm -rf conftest*
10656   
10657         wx_cv_cpp_bool=no
10658       
10659     
10660 fi
10661 rm -f conftest*
10662
10663     ac_ext=c
10664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10665 ac_cpp='$CPP $CPPFLAGS'
10666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10667 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10668 cross_compiling=$ac_cv_prog_cc_cross
10669
10670   
10671 fi
10672
10673 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10674
10675   if test "$wx_cv_cpp_bool" = "yes"; then
10676     cat >> confdefs.h <<\EOF
10677 #define HAVE_BOOL 1
10678 EOF
10679
10680   fi
10681
10682
10683
10684   echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
10685 echo "configure:10686: checking if C++ compiler supports the explicit keyword" >&5
10686 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10687   echo $ac_n "(cached) $ac_c" 1>&6
10688 else
10689   
10690     
10691     ac_ext=C
10692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10693 ac_cpp='$CXXCPP $CPPFLAGS'
10694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10695 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10696 cross_compiling=$ac_cv_prog_cxx_cross
10697
10698
10699             cat > conftest.$ac_ext <<EOF
10700 #line 10701 "configure"
10701 #include "confdefs.h"
10702
10703         class Foo { public: explicit Foo(int) {} };
10704       
10705 int main() {
10706
10707         return 0;
10708       
10709 ; return 0; }
10710 EOF
10711 if { (eval echo configure:10712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10712   rm -rf conftest*
10713   
10714         cat > conftest.$ac_ext <<EOF
10715 #line 10716 "configure"
10716 #include "confdefs.h"
10717
10718                 class Foo { public: explicit Foo(int) {} };
10719                 static void TakeFoo(const Foo& foo) { }
10720             
10721 int main() {
10722
10723                 TakeFoo(17);
10724                 return 0;
10725             
10726 ; return 0; }
10727 EOF
10728 if { (eval echo configure:10729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10729   rm -rf conftest*
10730   wx_cv_explicit=no
10731 else
10732   echo "configure: failed program was:" >&5
10733   cat conftest.$ac_ext >&5
10734   rm -rf conftest*
10735   wx_cv_explicit=yes
10736         
10737 fi
10738 rm -f conftest*
10739       
10740 else
10741   echo "configure: failed program was:" >&5
10742   cat conftest.$ac_ext >&5
10743   rm -rf conftest*
10744   wx_cv_explicit=no
10745     
10746 fi
10747 rm -f conftest*
10748
10749     ac_ext=c
10750 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10751 ac_cpp='$CPP $CPPFLAGS'
10752 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10753 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10754 cross_compiling=$ac_cv_prog_cc_cross
10755
10756   
10757 fi
10758
10759 echo "$ac_t""$wx_cv_explicit" 1>&6
10760
10761   if test "$wx_cv_explicit" = "yes"; then
10762     cat >> confdefs.h <<\EOF
10763 #define HAVE_EXPLICIT 1
10764 EOF
10765
10766   fi
10767
10768
10769
10770 SEARCH_INCLUDE="\
10771     /usr/local/include        \
10772                               \
10773     /usr/Motif-1.2/include    \
10774     /usr/Motif-2.1/include    \
10775                               \
10776     /usr/include/Motif1.2     \
10777     /opt/xpm/include/X11      \
10778     /opt/GBxpm/include/       \
10779     /opt/GBxpm/X11/include/   \
10780                               \
10781     /usr/Motif1.2/include     \
10782     /usr/dt/include           \
10783     /usr/openwin/include      \
10784                               \
10785     /usr/include/Xm           \
10786                               \
10787     /usr/X11R6/include        \
10788     /usr/X11R6.4/include      \
10789     /usr/X11R5/include        \
10790     /usr/X11R4/include        \
10791                               \
10792     /usr/include/X11R6        \
10793     /usr/include/X11R5        \
10794     /usr/include/X11R4        \
10795                               \
10796     /usr/local/X11R6/include  \
10797     /usr/local/X11R5/include  \
10798     /usr/local/X11R4/include  \
10799                               \
10800     /usr/local/include/X11R6  \
10801     /usr/local/include/X11R5  \
10802     /usr/local/include/X11R4  \
10803                               \
10804     /usr/X11/include          \
10805     /usr/include/X11          \
10806     /usr/local/X11/include    \
10807     /usr/local/include/X11    \
10808                               \
10809     /usr/X386/include         \
10810     /usr/x386/include         \
10811     /usr/XFree86/include/X11  \
10812                               \
10813     X:/XFree86/include        \
10814     X:/XFree86/include/X11    \
10815                               \
10816     /usr/include/gtk          \
10817     /usr/local/include/gtk    \
10818     /usr/include/glib         \
10819     /usr/local/include/glib   \
10820                               \
10821     /usr/include/qt           \
10822     /usr/local/include/qt     \
10823                               \
10824     /usr/include/windows      \
10825     /usr/include/wine         \
10826     /usr/local/include/wine   \
10827                               \
10828     /usr/unsupported/include  \
10829     /usr/athena/include       \
10830     /usr/local/x11r5/include  \
10831     /usr/lpp/Xamples/include  \
10832                               \
10833     /usr/openwin/share/include \
10834                                \
10835     /usr/include"
10836
10837 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
10838
10839
10840 cat > confcache <<\EOF
10841 # This file is a shell script that caches the results of configure
10842 # tests run on this system so they can be shared between configure
10843 # scripts and configure runs.  It is not useful on other systems.
10844 # If it contains results you don't want to keep, you may remove or edit it.
10845 #
10846 # By default, configure uses ./config.cache as the cache file,
10847 # creating it if it does not exist already.  You can give configure
10848 # the --cache-file=FILE option to use a different cache file; that is
10849 # what configure does when it calls configure scripts in
10850 # subdirectories, so they share the cache.
10851 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10852 # config.status only pays attention to the cache file if you give it the
10853 # --recheck option to rerun configure.
10854 #
10855 EOF
10856 # The following way of writing the cache mishandles newlines in values,
10857 # but we know of no workaround that is simple, portable, and efficient.
10858 # So, don't put newlines in cache variables' values.
10859 # Ultrix sh set writes to stderr and can't be redirected directly,
10860 # and sets the high bit in the cache file unless we assign to the vars.
10861 (set) 2>&1 |
10862   case `(ac_space=' '; set) 2>&1` in
10863   *ac_space=\ *)
10864     # `set' does not quote correctly, so add quotes (double-quote substitution
10865     # turns \\\\ into \\, and sed turns \\ into \).
10866     sed -n \
10867       -e "s/'/'\\\\''/g" \
10868       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10869     ;;
10870   *)
10871     # `set' quotes correctly as required by POSIX, so do not add quotes.
10872     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10873     ;;
10874   esac >> confcache
10875 if cmp -s $cache_file confcache; then
10876   :
10877 else
10878   if test -w $cache_file; then
10879     echo "updating cache $cache_file"
10880     cat confcache > $cache_file
10881   else
10882     echo "not updating unwritable cache $cache_file"
10883   fi
10884 fi
10885 rm -f confcache
10886
10887
10888 if test "$USE_LINUX" = 1; then
10889     echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
10890 echo "configure:10891: checking for glibc 2.1 or later" >&5
10891 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
10892   echo $ac_n "(cached) $ac_c" 1>&6
10893 else
10894   
10895         cat > conftest.$ac_ext <<EOF
10896 #line 10897 "configure"
10897 #include "confdefs.h"
10898 #include <features.h>
10899 int main() {
10900
10901                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
10902                     #error not glibc2.1
10903                 #endif
10904             
10905 ; return 0; }
10906 EOF
10907 if { (eval echo configure:10908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10908   rm -rf conftest*
10909   
10910                 wx_cv_lib_glibc21=yes
10911             
10912 else
10913   echo "configure: failed program was:" >&5
10914   cat conftest.$ac_ext >&5
10915   rm -rf conftest*
10916   
10917                 wx_cv_lib_glibc21=no
10918             
10919         
10920 fi
10921 rm -f conftest*
10922     
10923 fi
10924
10925 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
10926     if test "$wx_cv_lib_glibc21" = "yes"; then
10927         cat >> confdefs.h <<\EOF
10928 #define wxHAVE_GLIBC2 1
10929 EOF
10930
10931     fi
10932 fi
10933
10934 if test "x$wx_cv_lib_glibc21" = "xyes"; then
10935     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
10936         cat >> confdefs.h <<\EOF
10937 #define _GNU_SOURCE 1
10938 EOF
10939
10940     fi
10941 fi
10942
10943
10944
10945 REGEX_INCLUDE=
10946 if test "$wxUSE_REGEX" != "no"; then
10947     cat >> confdefs.h <<\EOF
10948 #define wxUSE_REGEX 1
10949 EOF
10950
10951
10952     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
10953                         ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
10954 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
10955 echo "configure:10956: checking for regex.h" >&5
10956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10957   echo $ac_n "(cached) $ac_c" 1>&6
10958 else
10959   cat > conftest.$ac_ext <<EOF
10960 #line 10961 "configure"
10961 #include "confdefs.h"
10962 #include <regex.h>
10963 EOF
10964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10965 { (eval echo configure:10966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10966 ac_err=`grep -v '^ *+' conftest.out`
10967 if test -z "$ac_err"; then
10968   rm -rf conftest*
10969   eval "ac_cv_header_$ac_safe=yes"
10970 else
10971   echo "$ac_err" >&5
10972   echo "configure: failed program was:" >&5
10973   cat conftest.$ac_ext >&5
10974   rm -rf conftest*
10975   eval "ac_cv_header_$ac_safe=no"
10976 fi
10977 rm -f conftest*
10978 fi
10979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10980   echo "$ac_t""yes" 1>&6
10981   for ac_func in regcomp
10982 do
10983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10984 echo "configure:10985: checking for $ac_func" >&5
10985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10986   echo $ac_n "(cached) $ac_c" 1>&6
10987 else
10988   cat > conftest.$ac_ext <<EOF
10989 #line 10990 "configure"
10990 #include "confdefs.h"
10991 /* System header to define __stub macros and hopefully few prototypes,
10992     which can conflict with char $ac_func(); below.  */
10993 #include <assert.h>
10994 /* Override any gcc2 internal prototype to avoid an error.  */
10995 /* We use char because int might match the return type of a gcc2
10996     builtin and then its argument prototype would still apply.  */
10997 char $ac_func();
10998
10999 int main() {
11000
11001 /* The GNU C library defines this for functions which it implements
11002     to always fail with ENOSYS.  Some functions are actually named
11003     something starting with __ and the normal name is an alias.  */
11004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11005 choke me
11006 #else
11007 $ac_func();
11008 #endif
11009
11010 ; return 0; }
11011 EOF
11012 if { (eval echo configure:11013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11013   rm -rf conftest*
11014   eval "ac_cv_func_$ac_func=yes"
11015 else
11016   echo "configure: failed program was:" >&5
11017   cat conftest.$ac_ext >&5
11018   rm -rf conftest*
11019   eval "ac_cv_func_$ac_func=no"
11020 fi
11021 rm -f conftest*
11022 fi
11023
11024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11025   echo "$ac_t""yes" 1>&6
11026     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11027   cat >> confdefs.h <<EOF
11028 #define $ac_tr_func 1
11029 EOF
11030  
11031 else
11032   echo "$ac_t""no" 1>&6
11033 fi
11034 done
11035
11036 else
11037   echo "$ac_t""no" 1>&6
11038 fi
11039
11040
11041         if test "x$ac_cv_func_regcomp" != "xyes"; then
11042             if test "$wxUSE_REGEX" = "sys" ; then
11043                 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11044             else
11045                 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11046                 wxUSE_REGEX=builtin
11047             fi
11048         else
11049                         wxUSE_REGEX=sys
11050         fi
11051     fi
11052
11053     if test "$wxUSE_REGEX" = "builtin" ; then
11054         REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11055     fi
11056 fi
11057
11058
11059 ZLIB_INCLUDE=
11060 ZLIB_LINK=
11061 if test "$wxUSE_ZLIB" != "no" ; then
11062     cat >> confdefs.h <<\EOF
11063 #define wxUSE_ZLIB 1
11064 EOF
11065
11066
11067     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11068         ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11069 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11070 echo "configure:11071: checking for zlib.h" >&5
11071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11072   echo $ac_n "(cached) $ac_c" 1>&6
11073 else
11074   cat > conftest.$ac_ext <<EOF
11075 #line 11076 "configure"
11076 #include "confdefs.h"
11077 #include <zlib.h>
11078 EOF
11079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11080 { (eval echo configure:11081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11081 ac_err=`grep -v '^ *+' conftest.out`
11082 if test -z "$ac_err"; then
11083   rm -rf conftest*
11084   eval "ac_cv_header_$ac_safe=yes"
11085 else
11086   echo "$ac_err" >&5
11087   echo "configure: failed program was:" >&5
11088   cat conftest.$ac_ext >&5
11089   rm -rf conftest*
11090   eval "ac_cv_header_$ac_safe=no"
11091 fi
11092 rm -f conftest*
11093 fi
11094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11095   echo "$ac_t""yes" 1>&6
11096   echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11097 echo "configure:11098: checking for deflate in -lz" >&5
11098 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11100   echo $ac_n "(cached) $ac_c" 1>&6
11101 else
11102   ac_save_LIBS="$LIBS"
11103 LIBS="-lz  $LIBS"
11104 cat > conftest.$ac_ext <<EOF
11105 #line 11106 "configure"
11106 #include "confdefs.h"
11107 /* Override any gcc2 internal prototype to avoid an error.  */
11108 /* We use char because int might match the return type of a gcc2
11109     builtin and then its argument prototype would still apply.  */
11110 char deflate();
11111
11112 int main() {
11113 deflate()
11114 ; return 0; }
11115 EOF
11116 if { (eval echo configure:11117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11117   rm -rf conftest*
11118   eval "ac_cv_lib_$ac_lib_var=yes"
11119 else
11120   echo "configure: failed program was:" >&5
11121   cat conftest.$ac_ext >&5
11122   rm -rf conftest*
11123   eval "ac_cv_lib_$ac_lib_var=no"
11124 fi
11125 rm -f conftest*
11126 LIBS="$ac_save_LIBS"
11127
11128 fi
11129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11130   echo "$ac_t""yes" 1>&6
11131   ZLIB_LINK=" -lz"
11132 else
11133   echo "$ac_t""no" 1>&6
11134 fi
11135
11136 else
11137   echo "$ac_t""no" 1>&6
11138 fi
11139
11140
11141         if test "x$ZLIB_LINK" = "x" ; then
11142             if test "$wxUSE_ZLIB" = "sys" ; then
11143                 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11144             else
11145                 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11146                 wxUSE_ZLIB=builtin
11147             fi
11148         else
11149                         wxUSE_ZLIB=sys
11150         fi
11151     fi
11152
11153     if test "$wxUSE_ZLIB" = "builtin" ; then
11154         ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11155     fi
11156 fi
11157
11158
11159 PNG_INCLUDE=
11160 PNG_LINK=
11161 if test "$wxUSE_LIBPNG" != "no" ; then
11162     cat >> confdefs.h <<\EOF
11163 #define wxUSE_LIBPNG 1
11164 EOF
11165
11166
11167     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11168         echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11169         wxUSE_LIBPNG=sys
11170     fi
11171
11172                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11173         echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11174         wxUSE_LIBPNG=builtin
11175     fi
11176
11177     if test "$wxUSE_MGL" != 1 ; then
11178                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11179             ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11180 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11181 echo "configure:11182: checking for png.h" >&5
11182 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11183   echo $ac_n "(cached) $ac_c" 1>&6
11184 else
11185   cat > conftest.$ac_ext <<EOF
11186 #line 11187 "configure"
11187 #include "confdefs.h"
11188 #include <png.h>
11189 EOF
11190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11191 { (eval echo configure:11192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11192 ac_err=`grep -v '^ *+' conftest.out`
11193 if test -z "$ac_err"; then
11194   rm -rf conftest*
11195   eval "ac_cv_header_$ac_safe=yes"
11196 else
11197   echo "$ac_err" >&5
11198   echo "configure: failed program was:" >&5
11199   cat conftest.$ac_ext >&5
11200   rm -rf conftest*
11201   eval "ac_cv_header_$ac_safe=no"
11202 fi
11203 rm -f conftest*
11204 fi
11205 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11206   echo "$ac_t""yes" 1>&6
11207   echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11208 echo "configure:11209: checking for png_check_sig in -lpng" >&5
11209 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11211   echo $ac_n "(cached) $ac_c" 1>&6
11212 else
11213   ac_save_LIBS="$LIBS"
11214 LIBS="-lpng -lz -lm $LIBS"
11215 cat > conftest.$ac_ext <<EOF
11216 #line 11217 "configure"
11217 #include "confdefs.h"
11218 /* Override any gcc2 internal prototype to avoid an error.  */
11219 /* We use char because int might match the return type of a gcc2
11220     builtin and then its argument prototype would still apply.  */
11221 char png_check_sig();
11222
11223 int main() {
11224 png_check_sig()
11225 ; return 0; }
11226 EOF
11227 if { (eval echo configure:11228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11228   rm -rf conftest*
11229   eval "ac_cv_lib_$ac_lib_var=yes"
11230 else
11231   echo "configure: failed program was:" >&5
11232   cat conftest.$ac_ext >&5
11233   rm -rf conftest*
11234   eval "ac_cv_lib_$ac_lib_var=no"
11235 fi
11236 rm -f conftest*
11237 LIBS="$ac_save_LIBS"
11238
11239 fi
11240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11241   echo "$ac_t""yes" 1>&6
11242   PNG_LINK=" -lpng"
11243 else
11244   echo "$ac_t""no" 1>&6
11245 fi
11246
11247                            
11248 else
11249   echo "$ac_t""no" 1>&6
11250 fi
11251
11252
11253             if test "x$PNG_LINK" = "x" ; then
11254                 if test "$wxUSE_LIBPNG" = "sys" ; then
11255                     { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11256                 else
11257                     echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11258                     wxUSE_LIBPNG=builtin
11259                 fi
11260             else
11261                                 wxUSE_LIBPNG=yes
11262             fi
11263         fi
11264     fi
11265
11266     if test "$wxUSE_LIBPNG" = "builtin" ; then
11267         PNG_INCLUDE="-I\${top_srcdir}/src/png"
11268     fi
11269
11270     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11271 fi
11272
11273
11274 JPEG_INCLUDE=
11275 JPEG_LINK=
11276 if test "$wxUSE_LIBJPEG" != "no" ; then
11277     cat >> confdefs.h <<\EOF
11278 #define wxUSE_LIBJPEG 1
11279 EOF
11280
11281
11282     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11283         echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11284         wxUSE_LIBJPEG=sys
11285     fi
11286
11287     if test "$wxUSE_MGL" != 1 ; then
11288                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11289                                                 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11290 echo "configure:11291: checking for jpeglib.h" >&5
11291             if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11292   echo $ac_n "(cached) $ac_c" 1>&6
11293 else
11294   cat > conftest.$ac_ext <<EOF
11295 #line 11296 "configure"
11296 #include "confdefs.h"
11297
11298                         #undef HAVE_STDLIB_H
11299                         #include <stdio.h>
11300                         #include <jpeglib.h>
11301                     
11302 int main() {
11303
11304                     
11305 ; return 0; }
11306 EOF
11307 if { (eval echo configure:11308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11308   rm -rf conftest*
11309   ac_cv_header_jpeglib_h=yes
11310 else
11311   echo "configure: failed program was:" >&5
11312   cat conftest.$ac_ext >&5
11313   rm -rf conftest*
11314   ac_cv_header_jpeglib_h=no
11315                 
11316 fi
11317 rm -f conftest*
11318             
11319 fi
11320
11321             echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11322
11323             if test "$ac_cv_header_jpeglib_h" = "yes"; then
11324                 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11325 echo "configure:11326: checking for jpeg_read_header in -ljpeg" >&5
11326 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11328   echo $ac_n "(cached) $ac_c" 1>&6
11329 else
11330   ac_save_LIBS="$LIBS"
11331 LIBS="-ljpeg  $LIBS"
11332 cat > conftest.$ac_ext <<EOF
11333 #line 11334 "configure"
11334 #include "confdefs.h"
11335 /* Override any gcc2 internal prototype to avoid an error.  */
11336 /* We use char because int might match the return type of a gcc2
11337     builtin and then its argument prototype would still apply.  */
11338 char jpeg_read_header();
11339
11340 int main() {
11341 jpeg_read_header()
11342 ; return 0; }
11343 EOF
11344 if { (eval echo configure:11345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11345   rm -rf conftest*
11346   eval "ac_cv_lib_$ac_lib_var=yes"
11347 else
11348   echo "configure: failed program was:" >&5
11349   cat conftest.$ac_ext >&5
11350   rm -rf conftest*
11351   eval "ac_cv_lib_$ac_lib_var=no"
11352 fi
11353 rm -f conftest*
11354 LIBS="$ac_save_LIBS"
11355
11356 fi
11357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11358   echo "$ac_t""yes" 1>&6
11359   JPEG_LINK=" -ljpeg"
11360 else
11361   echo "$ac_t""no" 1>&6
11362 fi
11363
11364             fi
11365
11366             if test "x$JPEG_LINK" = "x" ; then
11367                 if test "$wxUSE_LIBJPEG" = "sys" ; then
11368                     { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11369                 else
11370                     echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11371                     wxUSE_LIBJPEG=builtin
11372                 fi
11373             else
11374                                 wxUSE_LIBJPEG=sys
11375             fi
11376         fi
11377     fi
11378
11379     if test "$wxUSE_LIBJPEG" = "builtin" ; then
11380         JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11381     fi
11382 fi
11383
11384
11385 TIFF_INCLUDE=
11386 TIFF_LINK=
11387 if test "$wxUSE_LIBTIFF" != "no" ; then
11388     cat >> confdefs.h <<\EOF
11389 #define wxUSE_LIBTIFF 1
11390 EOF
11391
11392
11393     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11394         ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11395 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
11396 echo "configure:11397: checking for tiffio.h" >&5
11397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11398   echo $ac_n "(cached) $ac_c" 1>&6
11399 else
11400   cat > conftest.$ac_ext <<EOF
11401 #line 11402 "configure"
11402 #include "confdefs.h"
11403 #include <tiffio.h>
11404 EOF
11405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11406 { (eval echo configure:11407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11407 ac_err=`grep -v '^ *+' conftest.out`
11408 if test -z "$ac_err"; then
11409   rm -rf conftest*
11410   eval "ac_cv_header_$ac_safe=yes"
11411 else
11412   echo "$ac_err" >&5
11413   echo "configure: failed program was:" >&5
11414   cat conftest.$ac_ext >&5
11415   rm -rf conftest*
11416   eval "ac_cv_header_$ac_safe=no"
11417 fi
11418 rm -f conftest*
11419 fi
11420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11421   echo "$ac_t""yes" 1>&6
11422   echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
11423 echo "configure:11424: checking for TIFFError in -ltiff" >&5
11424 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11426   echo $ac_n "(cached) $ac_c" 1>&6
11427 else
11428   ac_save_LIBS="$LIBS"
11429 LIBS="-ltiff -lm $LIBS"
11430 cat > conftest.$ac_ext <<EOF
11431 #line 11432 "configure"
11432 #include "confdefs.h"
11433 /* Override any gcc2 internal prototype to avoid an error.  */
11434 /* We use char because int might match the return type of a gcc2
11435     builtin and then its argument prototype would still apply.  */
11436 char TIFFError();
11437
11438 int main() {
11439 TIFFError()
11440 ; return 0; }
11441 EOF
11442 if { (eval echo configure:11443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11443   rm -rf conftest*
11444   eval "ac_cv_lib_$ac_lib_var=yes"
11445 else
11446   echo "configure: failed program was:" >&5
11447   cat conftest.$ac_ext >&5
11448   rm -rf conftest*
11449   eval "ac_cv_lib_$ac_lib_var=no"
11450 fi
11451 rm -f conftest*
11452 LIBS="$ac_save_LIBS"
11453
11454 fi
11455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11456   echo "$ac_t""yes" 1>&6
11457   TIFF_LINK=" -ltiff"
11458 else
11459   echo "$ac_t""no" 1>&6
11460 fi
11461
11462                        
11463 else
11464   echo "$ac_t""no" 1>&6
11465 fi
11466
11467
11468         if test "x$TIFF_LINK" = "x" ; then
11469             if test "$wxUSE_LIBTIFF" = "sys" ; then
11470                 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
11471             else
11472                 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11473                 wxUSE_LIBTIFF=builtin
11474             fi
11475         else
11476                         wxUSE_LIBTIFF=sys
11477         fi
11478     fi
11479
11480     if test "$wxUSE_LIBTIFF" = "builtin" ; then
11481         TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11482     fi
11483 fi
11484
11485
11486 AFMINSTALL=
11487
11488 TOOLKIT=
11489 TOOLKIT_INCLUDE=
11490 WIDGET_SET=
11491
11492 if test "$USE_WIN32" = 1 ; then
11493     for ac_hdr in w32api.h
11494 do
11495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11497 echo "configure:11498: checking for $ac_hdr" >&5
11498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11499   echo $ac_n "(cached) $ac_c" 1>&6
11500 else
11501   cat > conftest.$ac_ext <<EOF
11502 #line 11503 "configure"
11503 #include "confdefs.h"
11504 #include <$ac_hdr>
11505 EOF
11506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11507 { (eval echo configure:11508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11508 ac_err=`grep -v '^ *+' conftest.out`
11509 if test -z "$ac_err"; then
11510   rm -rf conftest*
11511   eval "ac_cv_header_$ac_safe=yes"
11512 else
11513   echo "$ac_err" >&5
11514   echo "configure: failed program was:" >&5
11515   cat conftest.$ac_ext >&5
11516   rm -rf conftest*
11517   eval "ac_cv_header_$ac_safe=no"
11518 fi
11519 rm -f conftest*
11520 fi
11521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11522   echo "$ac_t""yes" 1>&6
11523     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11524   cat >> confdefs.h <<EOF
11525 #define $ac_tr_hdr 1
11526 EOF
11527  
11528 else
11529   echo "$ac_t""no" 1>&6
11530 fi
11531 done
11532
11533     ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11534 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11535 echo "configure:11536: checking for windows.h" >&5
11536 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11537   echo $ac_n "(cached) $ac_c" 1>&6
11538 else
11539   cat > conftest.$ac_ext <<EOF
11540 #line 11541 "configure"
11541 #include "confdefs.h"
11542 #include <windows.h>
11543 EOF
11544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11545 { (eval echo configure:11546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11546 ac_err=`grep -v '^ *+' conftest.out`
11547 if test -z "$ac_err"; then
11548   rm -rf conftest*
11549   eval "ac_cv_header_$ac_safe=yes"
11550 else
11551   echo "$ac_err" >&5
11552   echo "configure: failed program was:" >&5
11553   cat conftest.$ac_ext >&5
11554   rm -rf conftest*
11555   eval "ac_cv_header_$ac_safe=no"
11556 fi
11557 rm -f conftest*
11558 fi
11559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11560   echo "$ac_t""yes" 1>&6
11561   :
11562 else
11563   echo "$ac_t""no" 1>&6
11564
11565         { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11566     
11567 fi
11568
11569
11570         echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
11571 echo "configure:11572: checking if w32api has good enough MSIE support" >&5
11572 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11573   echo $ac_n "(cached) $ac_c" 1>&6
11574 else
11575   
11576       cat > conftest.$ac_ext <<EOF
11577 #line 11578 "configure"
11578 #include "confdefs.h"
11579 #include <w32api.h>
11580 int main() {
11581
11582                        #define wxCHECK_W32API_VERSION( major, minor ) \
11583                        ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11584                        && ( ( __W32API_MAJOR_VERSION > (major) ) \
11585                        || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11586
11587                        #if !wxCHECK_W32API_VERSION(1,1)
11588                        #error You need w32api 1.1 or newer
11589                        #endif
11590                      
11591 ; return 0; }
11592 EOF
11593 if { (eval echo configure:11594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11594   rm -rf conftest*
11595   
11596                         wx_cv_w32api_win32_ie=yes
11597                      
11598 else
11599   echo "configure: failed program was:" >&5
11600   cat conftest.$ac_ext >&5
11601   rm -rf conftest*
11602   
11603                         wx_cv_w32api_win32_ie=no
11604                      
11605 fi
11606 rm -f conftest*
11607     
11608 fi
11609
11610 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11611     if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11612         CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11613     fi
11614
11615             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11616
11617     case "${host}" in
11618         *-*-cygwin* )
11619                         LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11620             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11621     esac
11622
11623         if test "$wxUSE_ODBC" = "yes" ; then
11624         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11625     fi
11626
11627     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11628     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
11629 fi
11630
11631 if test "$wxUSE_GUI" = "yes"; then
11632     USE_GUI=1
11633
11634     GUI_TK_LIBRARY=
11635
11636     WXGTK12=
11637     WXGTK127=
11638     WXGTK20=
11639
11640     if test "$wxUSE_MSW" = 1 ; then
11641         TOOLKIT=MSW
11642         GUIDIST=MSW_DIST
11643
11644                                 case "${host}" in
11645             *-*-mingw32* )
11646                 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11647         esac
11648     fi
11649
11650     if test "$wxUSE_GTK" = 1; then
11651         echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
11652 echo "configure:11653: checking for GTK+ version" >&5
11653
11654         gtk_version_cached=1
11655         if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
11656   echo $ac_n "(cached) $ac_c" 1>&6
11657 else
11658   
11659                                                 gtk_version_cached=0
11660                 echo "$ac_t""" 1>&6
11661
11662                                                 GTK_MODULES=
11663                 if test "$wxUSE_THREADS" = "yes"; then
11664                     GTK_MODULES=gthread
11665                 fi
11666
11667                 wx_cv_lib_gtk=
11668                 if test "x$wxUSE_GTK2" = "xyes"; then
11669                     # Check whether --enable-gtktest or --disable-gtktest was given.
11670 if test "${enable_gtktest+set}" = set; then
11671   enableval="$enable_gtktest"
11672   :
11673 else
11674   enable_gtktest=yes
11675 fi
11676
11677
11678   pkg_config_args=gtk+-2.0
11679   for module in . $GTK_MODULES
11680   do
11681       case "$module" in
11682          gthread) 
11683              pkg_config_args="$pkg_config_args gthread-2.0"
11684          ;;
11685       esac
11686   done
11687
11688   no_gtk=""
11689
11690   # Extract the first word of "pkg-config", so it can be a program name with args.
11691 set dummy pkg-config; ac_word=$2
11692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11693 echo "configure:11694: checking for $ac_word" >&5
11694 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11695   echo $ac_n "(cached) $ac_c" 1>&6
11696 else
11697   case "$PKG_CONFIG" in
11698   /*)
11699   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11700   ;;
11701   *)
11702   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11703   for ac_dir in $PATH; do
11704     test -z "$ac_dir" && ac_dir=.
11705     if test -f $ac_dir/$ac_word; then
11706       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11707       break
11708     fi
11709   done
11710   IFS="$ac_save_ifs"
11711   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11712   ;;
11713 esac
11714 fi
11715 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11716 if test -n "$PKG_CONFIG"; then
11717   echo "$ac_t""$PKG_CONFIG" 1>&6
11718 else
11719   echo "$ac_t""no" 1>&6
11720 fi
11721
11722
11723   if test x$PKG_CONFIG != xno ; then
11724     if pkg-config --atleast-pkgconfig-version 0.7 ; then
11725       :
11726     else
11727       echo *** pkg-config too old; version 0.7 or better required.
11728       no_gtk=yes
11729       PKG_CONFIG=no
11730     fi
11731   else
11732     no_gtk=yes
11733   fi
11734
11735   min_gtk_version=2.0.0
11736   echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
11737 echo "configure:11738: checking for GTK+ - version >= $min_gtk_version" >&5
11738
11739   if test x$PKG_CONFIG != xno ; then
11740     ## don't try to run the test against uninstalled libtool libs
11741     if $PKG_CONFIG --uninstalled $pkg_config_args; then
11742           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11743           enable_gtktest=no
11744     fi
11745
11746     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11747           :
11748     else
11749           no_gtk=yes
11750     fi
11751   fi
11752
11753   if test x"$no_gtk" = x ; then
11754     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11755     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11756     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11757            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11758     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11759            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11760     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11761            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11762     if test "x$enable_gtktest" = "xyes" ; then
11763       ac_save_CFLAGS="$CFLAGS"
11764       ac_save_LIBS="$LIBS"
11765       CFLAGS="$CFLAGS $GTK_CFLAGS"
11766       LIBS="$GTK_LIBS $LIBS"
11767       rm -f conf.gtktest
11768       if test "$cross_compiling" = yes; then
11769   echo $ac_n "cross compiling; assumed OK... $ac_c"
11770 else
11771   cat > conftest.$ac_ext <<EOF
11772 #line 11773 "configure"
11773 #include "confdefs.h"
11774
11775 #include <gtk/gtk.h>
11776 #include <stdio.h>
11777 #include <stdlib.h>
11778
11779 int 
11780 main ()
11781 {
11782   int major, minor, micro;
11783   char *tmp_version;
11784
11785   system ("touch conf.gtktest");
11786
11787   /* HP/UX 9 (%@#!) writes to sscanf strings */
11788   tmp_version = g_strdup("$min_gtk_version");
11789   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11790      printf("%s, bad version string\n", "$min_gtk_version");
11791      exit(1);
11792    }
11793
11794   if ((gtk_major_version != $gtk_config_major_version) ||
11795       (gtk_minor_version != $gtk_config_minor_version) ||
11796       (gtk_micro_version != $gtk_config_micro_version))
11797     {
11798       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
11799              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11800              gtk_major_version, gtk_minor_version, gtk_micro_version);
11801       printf ("*** was found! If pkg-config was correct, then it is best\n");
11802       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11803       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11804       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11805       printf("*** required on your system.\n");
11806       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11807       printf("*** to point to the correct configuration files\n");
11808     } 
11809   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11810            (gtk_minor_version != GTK_MINOR_VERSION) ||
11811            (gtk_micro_version != GTK_MICRO_VERSION))
11812     {
11813       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11814              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11815       printf("*** library (version %d.%d.%d)\n",
11816              gtk_major_version, gtk_minor_version, gtk_micro_version);
11817     }
11818   else
11819     {
11820       if ((gtk_major_version > major) ||
11821         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11822         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11823       {
11824         return 0;
11825        }
11826      else
11827       {
11828         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11829                gtk_major_version, gtk_minor_version, gtk_micro_version);
11830         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11831                major, minor, micro);
11832         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11833         printf("***\n");
11834         printf("*** If you have already installed a sufficiently new version, this error\n");
11835         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11836         printf("*** being found. The easiest way to fix this is to remove the old version\n");
11837         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11838         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11839         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11840         printf("*** so that the correct libraries are found at run-time))\n");
11841       }
11842     }
11843   return 1;
11844 }
11845
11846 EOF
11847 if { (eval echo configure:11848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
11848 then
11849   :
11850 else
11851   echo "configure: failed program was:" >&5
11852   cat conftest.$ac_ext >&5
11853   rm -fr conftest*
11854   no_gtk=yes
11855 fi
11856 rm -fr conftest*
11857 fi
11858
11859        CFLAGS="$ac_save_CFLAGS"
11860        LIBS="$ac_save_LIBS"
11861      fi
11862   fi
11863   if test "x$no_gtk" = x ; then
11864      echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
11865      wx_cv_lib_gtk=2.0     
11866   else
11867      echo "$ac_t""no" 1>&6
11868      if test "$PKG_CONFIG" = "no" ; then
11869        echo "*** A new enough version of pkg-config was not found."
11870        echo "*** See http://pkgconfig.sourceforge.net"
11871      else
11872        if test -f conf.gtktest ; then
11873         :
11874        else
11875           echo "*** Could not run GTK+ test program, checking why..."
11876           ac_save_CFLAGS="$CFLAGS"
11877           ac_save_LIBS="$LIBS"
11878           CFLAGS="$CFLAGS $GTK_CFLAGS"
11879           LIBS="$LIBS $GTK_LIBS"
11880           cat > conftest.$ac_ext <<EOF
11881 #line 11882 "configure"
11882 #include "confdefs.h"
11883
11884 #include <gtk/gtk.h>
11885 #include <stdio.h>
11886
11887 int main() {
11888  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
11889 ; return 0; }
11890 EOF
11891 if { (eval echo configure:11892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11892   rm -rf conftest*
11893    echo "*** The test program compiled, but did not run. This usually means"
11894           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
11895           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
11896           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11897           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
11898           echo "*** is required on your system"
11899           echo "***"
11900           echo "*** If you have an old version installed, it is best to remove it, although"
11901           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 
11902 else
11903   echo "configure: failed program was:" >&5
11904   cat conftest.$ac_ext >&5
11905   rm -rf conftest*
11906    echo "*** The test program failed to compile or link. See the file config.log for the"
11907           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
11908 fi
11909 rm -f conftest*
11910           CFLAGS="$ac_save_CFLAGS"
11911           LIBS="$ac_save_LIBS"
11912        fi
11913      fi
11914      GTK_CFLAGS=""
11915      GTK_LIBS=""
11916      :
11917   fi
11918   
11919   
11920   rm -f conf.gtktest
11921
11922
11923                     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
11924                         
11925   succeeded=no
11926
11927   if test -z "$PKG_CONFIG"; then
11928     # Extract the first word of "pkg-config", so it can be a program name with args.
11929 set dummy pkg-config; ac_word=$2
11930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11931 echo "configure:11932: checking for $ac_word" >&5
11932 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11933   echo $ac_n "(cached) $ac_c" 1>&6
11934 else
11935   case "$PKG_CONFIG" in
11936   /*)
11937   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11938   ;;
11939   *)
11940   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11941   for ac_dir in $PATH; do
11942     test -z "$ac_dir" && ac_dir=.
11943     if test -f $ac_dir/$ac_word; then
11944       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11945       break
11946     fi
11947   done
11948   IFS="$ac_save_ifs"
11949   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11950   ;;
11951 esac
11952 fi
11953 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11954 if test -n "$PKG_CONFIG"; then
11955   echo "$ac_t""$PKG_CONFIG" 1>&6
11956 else
11957   echo "$ac_t""no" 1>&6
11958 fi
11959
11960   fi
11961
11962   if test "$PKG_CONFIG" = "no" ; then
11963      echo "*** The pkg-config script could not be found. Make sure it is"
11964      echo "*** in your path, or set the PKG_CONFIG environment variable"
11965      echo "*** to the full path to pkg-config."
11966      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11967   else
11968      PKG_CONFIG_MIN_VERSION=0.9.0
11969      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11970         echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
11971 echo "configure:11972: checking for pangoft2" >&5
11972
11973         if $PKG_CONFIG --exists "pangoft2" ; then
11974             echo "$ac_t""yes" 1>&6
11975             succeeded=yes
11976
11977             echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
11978 echo "configure:11979: checking PANGOFT2_CFLAGS" >&5
11979             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
11980             echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
11981
11982             echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
11983 echo "configure:11984: checking PANGOFT2_LIBS" >&5
11984             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
11985             echo "$ac_t""$PANGOFT2_LIBS" 1>&6
11986         else
11987             PANGOFT2_CFLAGS=""
11988             PANGOFT2_LIBS=""
11989             ## If we have a custom action on failure, don't print errors, but 
11990             ## do set a variable so people can do so.
11991             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
11992             
11993         fi
11994
11995         
11996         
11997      else
11998         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11999         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12000      fi
12001   fi
12002
12003   if test $succeeded = yes; then
12004      
12005                                 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
12006                                 LIBS="$LIBS $PANGOFT2_LIBS"
12007                             
12008   else
12009      
12010                                 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
12011                                 wxUSE_PRINTING_ARCHITECTURE="no"
12012                             
12013                         
12014   fi
12015
12016                     fi
12017                 fi
12018
12019                 if test -z "$wx_cv_lib_gtk"; then
12020                     # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12021 if test "${with_gtk_prefix+set}" = set; then
12022   withval="$with_gtk_prefix"
12023   gtk_config_prefix="$withval"
12024 else
12025   gtk_config_prefix=""
12026 fi
12027
12028 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12029 if test "${with_gtk_exec_prefix+set}" = set; then
12030   withval="$with_gtk_exec_prefix"
12031   gtk_config_exec_prefix="$withval"
12032 else
12033   gtk_config_exec_prefix=""
12034 fi
12035
12036 # Check whether --enable-gtktest or --disable-gtktest was given.
12037 if test "${enable_gtktest+set}" = set; then
12038   enableval="$enable_gtktest"
12039   :
12040 else
12041   enable_gtktest=yes
12042 fi
12043
12044
12045   for module in . $GTK_MODULES
12046   do
12047       case "$module" in
12048          gthread) 
12049              gtk_config_args="$gtk_config_args gthread"
12050          ;;
12051       esac
12052   done
12053
12054   if test x$gtk_config_exec_prefix != x ; then
12055      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12056      if test x${GTK_CONFIG+set} != xset ; then
12057         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12058      fi
12059   fi
12060   if test x$gtk_config_prefix != x ; then
12061      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12062      if test x${GTK_CONFIG+set} != xset ; then
12063         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12064      fi
12065   fi
12066
12067   # Extract the first word of "gtk-config", so it can be a program name with args.
12068 set dummy gtk-config; ac_word=$2
12069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12070 echo "configure:12071: checking for $ac_word" >&5
12071 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12072   echo $ac_n "(cached) $ac_c" 1>&6
12073 else
12074   case "$GTK_CONFIG" in
12075   /*)
12076   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12077   ;;
12078   *)
12079   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12080   for ac_dir in $PATH; do
12081     test -z "$ac_dir" && ac_dir=.
12082     if test -f $ac_dir/$ac_word; then
12083       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12084       break
12085     fi
12086   done
12087   IFS="$ac_save_ifs"
12088   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12089   ;;
12090 esac
12091 fi
12092 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12093 if test -n "$GTK_CONFIG"; then
12094   echo "$ac_t""$GTK_CONFIG" 1>&6
12095 else
12096   echo "$ac_t""no" 1>&6
12097 fi
12098
12099   min_gtk_version=1.2.7
12100   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12101 echo "configure:12102: checking for GTK - version >= $min_gtk_version" >&5
12102   no_gtk=""
12103   if test "$GTK_CONFIG" = "no" ; then
12104     no_gtk=yes
12105   else
12106     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12107     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12108     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12109            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12110     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12111            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12112     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12113            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12114     if test "x$enable_gtktest" = "xyes" ; then
12115       ac_save_CFLAGS="$CFLAGS"
12116       ac_save_LIBS="$LIBS"
12117       CFLAGS="$CFLAGS $GTK_CFLAGS"
12118       LIBS="$GTK_LIBS $LIBS"
12119       rm -f conf.gtktest
12120       if test "$cross_compiling" = yes; then
12121   echo $ac_n "cross compiling; assumed OK... $ac_c"
12122 else
12123   cat > conftest.$ac_ext <<EOF
12124 #line 12125 "configure"
12125 #include "confdefs.h"
12126
12127 #include <gtk/gtk.h>
12128 #include <stdio.h>
12129 #include <stdlib.h>
12130
12131 int 
12132 main ()
12133 {
12134   int major, minor, micro;
12135   char *tmp_version;
12136
12137   system ("touch conf.gtktest");
12138
12139   /* HP/UX 9 (%@#!) writes to sscanf strings */
12140   tmp_version = g_strdup("$min_gtk_version");
12141   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12142      printf("%s, bad version string\n", "$min_gtk_version");
12143      exit(1);
12144    }
12145
12146   if ((gtk_major_version != $gtk_config_major_version) ||
12147       (gtk_minor_version != $gtk_config_minor_version) ||
12148       (gtk_micro_version != $gtk_config_micro_version))
12149     {
12150       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12151              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12152              gtk_major_version, gtk_minor_version, gtk_micro_version);
12153       printf ("*** was found! If gtk-config was correct, then it is best\n");
12154       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12155       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12156       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12157       printf("*** required on your system.\n");
12158       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12159       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12160       printf("*** before re-running configure\n");
12161     } 
12162 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12163   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12164            (gtk_minor_version != GTK_MINOR_VERSION) ||
12165            (gtk_micro_version != GTK_MICRO_VERSION))
12166     {
12167       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12168              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12169       printf("*** library (version %d.%d.%d)\n",
12170              gtk_major_version, gtk_minor_version, gtk_micro_version);
12171     }
12172 #endif /* defined (GTK_MAJOR_VERSION) ... */
12173   else
12174     {
12175       if ((gtk_major_version > major) ||
12176         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12177         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12178       {
12179         return 0;
12180        }
12181      else
12182       {
12183         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12184                gtk_major_version, gtk_minor_version, gtk_micro_version);
12185         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12186                major, minor, micro);
12187         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12188         printf("***\n");
12189         printf("*** If you have already installed a sufficiently new version, this error\n");
12190         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12191         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12192         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12193         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12194         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12195         printf("*** so that the correct libraries are found at run-time))\n");
12196       }
12197     }
12198   return 1;
12199 }
12200
12201 EOF
12202 if { (eval echo configure:12203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
12203 then
12204   :
12205 else
12206   echo "configure: failed program was:" >&5
12207   cat conftest.$ac_ext >&5
12208   rm -fr conftest*
12209   no_gtk=yes
12210 fi
12211 rm -fr conftest*
12212 fi
12213
12214        CFLAGS="$ac_save_CFLAGS"
12215        LIBS="$ac_save_LIBS"
12216      fi
12217   fi
12218   if test "x$no_gtk" = x ; then
12219      echo "$ac_t""yes" 1>&6
12220      wx_cv_lib_gtk=1.2.7     
12221   else
12222      echo "$ac_t""no" 1>&6
12223      if test "$GTK_CONFIG" = "no" ; then
12224        echo "*** The gtk-config script installed by GTK could not be found"
12225        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12226        echo "*** your path, or set the GTK_CONFIG environment variable to the"
12227        echo "*** full path to gtk-config."
12228      else
12229        if test -f conf.gtktest ; then
12230         :
12231        else
12232           echo "*** Could not run GTK test program, checking why..."
12233           CFLAGS="$CFLAGS $GTK_CFLAGS"
12234           LIBS="$LIBS $GTK_LIBS"
12235           cat > conftest.$ac_ext <<EOF
12236 #line 12237 "configure"
12237 #include "confdefs.h"
12238
12239 #include <gtk/gtk.h>
12240 #include <stdio.h>
12241
12242 int main() {
12243  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12244 ; return 0; }
12245 EOF
12246 if { (eval echo configure:12247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12247   rm -rf conftest*
12248    echo "*** The test program compiled, but did not run. This usually means"
12249           echo "*** that the run-time linker is not finding GTK or finding the wrong"
12250           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12251           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12252           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12253           echo "*** is required on your system"
12254           echo "***"
12255           echo "*** If you have an old version installed, it is best to remove it, although"
12256           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12257           echo "***"
12258           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12259           echo "*** came with the system with the command"
12260           echo "***"
12261           echo "***    rpm --erase --nodeps gtk gtk-devel" 
12262 else
12263   echo "configure: failed program was:" >&5
12264   cat conftest.$ac_ext >&5
12265   rm -rf conftest*
12266    echo "*** The test program failed to compile or link. See the file config.log for the"
12267           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12268           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12269           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
12270 fi
12271 rm -f conftest*
12272           CFLAGS="$ac_save_CFLAGS"
12273           LIBS="$ac_save_LIBS"
12274        fi
12275      fi
12276      GTK_CFLAGS=""
12277      GTK_LIBS=""
12278      :
12279   fi
12280   
12281   
12282   rm -f conf.gtktest
12283
12284                 fi
12285
12286                 if test -z "$wx_cv_lib_gtk"; then
12287                     # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12288 if test "${with_gtk_prefix+set}" = set; then
12289   withval="$with_gtk_prefix"
12290   gtk_config_prefix="$withval"
12291 else
12292   gtk_config_prefix=""
12293 fi
12294
12295 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12296 if test "${with_gtk_exec_prefix+set}" = set; then
12297   withval="$with_gtk_exec_prefix"
12298   gtk_config_exec_prefix="$withval"
12299 else
12300   gtk_config_exec_prefix=""
12301 fi
12302
12303 # Check whether --enable-gtktest or --disable-gtktest was given.
12304 if test "${enable_gtktest+set}" = set; then
12305   enableval="$enable_gtktest"
12306   :
12307 else
12308   enable_gtktest=yes
12309 fi
12310
12311
12312   for module in . $GTK_MODULES
12313   do
12314       case "$module" in
12315          gthread) 
12316              gtk_config_args="$gtk_config_args gthread"
12317          ;;
12318       esac
12319   done
12320
12321   if test x$gtk_config_exec_prefix != x ; then
12322      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12323      if test x${GTK_CONFIG+set} != xset ; then
12324         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12325      fi
12326   fi
12327   if test x$gtk_config_prefix != x ; then
12328      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12329      if test x${GTK_CONFIG+set} != xset ; then
12330         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12331      fi
12332   fi
12333
12334   # Extract the first word of "gtk-config", so it can be a program name with args.
12335 set dummy gtk-config; ac_word=$2
12336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12337 echo "configure:12338: checking for $ac_word" >&5
12338 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12339   echo $ac_n "(cached) $ac_c" 1>&6
12340 else
12341   case "$GTK_CONFIG" in
12342   /*)
12343   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12344   ;;
12345   *)
12346   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12347   for ac_dir in $PATH; do
12348     test -z "$ac_dir" && ac_dir=.
12349     if test -f $ac_dir/$ac_word; then
12350       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12351       break
12352     fi
12353   done
12354   IFS="$ac_save_ifs"
12355   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12356   ;;
12357 esac
12358 fi
12359 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12360 if test -n "$GTK_CONFIG"; then
12361   echo "$ac_t""$GTK_CONFIG" 1>&6
12362 else
12363   echo "$ac_t""no" 1>&6
12364 fi
12365
12366   min_gtk_version=1.2.3
12367   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12368 echo "configure:12369: checking for GTK - version >= $min_gtk_version" >&5
12369   no_gtk=""
12370   if test "$GTK_CONFIG" = "no" ; then
12371     no_gtk=yes
12372   else
12373     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12374     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12375     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12376            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12377     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12378            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12379     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12380            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12381     if test "x$enable_gtktest" = "xyes" ; then
12382       ac_save_CFLAGS="$CFLAGS"
12383       ac_save_LIBS="$LIBS"
12384       CFLAGS="$CFLAGS $GTK_CFLAGS"
12385       LIBS="$GTK_LIBS $LIBS"
12386       rm -f conf.gtktest
12387       if test "$cross_compiling" = yes; then
12388   echo $ac_n "cross compiling; assumed OK... $ac_c"
12389 else
12390   cat > conftest.$ac_ext <<EOF
12391 #line 12392 "configure"
12392 #include "confdefs.h"
12393
12394 #include <gtk/gtk.h>
12395 #include <stdio.h>
12396 #include <stdlib.h>
12397
12398 int 
12399 main ()
12400 {
12401   int major, minor, micro;
12402   char *tmp_version;
12403
12404   system ("touch conf.gtktest");
12405
12406   /* HP/UX 9 (%@#!) writes to sscanf strings */
12407   tmp_version = g_strdup("$min_gtk_version");
12408   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12409      printf("%s, bad version string\n", "$min_gtk_version");
12410      exit(1);
12411    }
12412
12413   if ((gtk_major_version != $gtk_config_major_version) ||
12414       (gtk_minor_version != $gtk_config_minor_version) ||
12415       (gtk_micro_version != $gtk_config_micro_version))
12416     {
12417       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12418              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12419              gtk_major_version, gtk_minor_version, gtk_micro_version);
12420       printf ("*** was found! If gtk-config was correct, then it is best\n");
12421       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12422       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12423       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12424       printf("*** required on your system.\n");
12425       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12426       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12427       printf("*** before re-running configure\n");
12428     } 
12429 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12430   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12431            (gtk_minor_version != GTK_MINOR_VERSION) ||
12432            (gtk_micro_version != GTK_MICRO_VERSION))
12433     {
12434       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12435              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12436       printf("*** library (version %d.%d.%d)\n",
12437              gtk_major_version, gtk_minor_version, gtk_micro_version);
12438     }
12439 #endif /* defined (GTK_MAJOR_VERSION) ... */
12440   else
12441     {
12442       if ((gtk_major_version > major) ||
12443         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12444         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12445       {
12446         return 0;
12447        }
12448      else
12449       {
12450         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12451                gtk_major_version, gtk_minor_version, gtk_micro_version);
12452         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12453                major, minor, micro);
12454         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12455         printf("***\n");
12456         printf("*** If you have already installed a sufficiently new version, this error\n");
12457         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12458         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12459         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12460         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12461         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12462         printf("*** so that the correct libraries are found at run-time))\n");
12463       }
12464     }
12465   return 1;
12466 }
12467
12468 EOF
12469 if { (eval echo configure:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
12470 then
12471   :
12472 else
12473   echo "configure: failed program was:" >&5
12474   cat conftest.$ac_ext >&5
12475   rm -fr conftest*
12476   no_gtk=yes
12477 fi
12478 rm -fr conftest*
12479 fi
12480
12481        CFLAGS="$ac_save_CFLAGS"
12482        LIBS="$ac_save_LIBS"
12483      fi
12484   fi
12485   if test "x$no_gtk" = x ; then
12486      echo "$ac_t""yes" 1>&6
12487      wx_cv_lib_gtk=1.2.3     
12488   else
12489      echo "$ac_t""no" 1>&6
12490      if test "$GTK_CONFIG" = "no" ; then
12491        echo "*** The gtk-config script installed by GTK could not be found"
12492        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12493        echo "*** your path, or set the GTK_CONFIG environment variable to the"
12494        echo "*** full path to gtk-config."
12495      else
12496        if test -f conf.gtktest ; then
12497         :
12498        else
12499           echo "*** Could not run GTK test program, checking why..."
12500           CFLAGS="$CFLAGS $GTK_CFLAGS"
12501           LIBS="$LIBS $GTK_LIBS"
12502           cat > conftest.$ac_ext <<EOF
12503 #line 12504 "configure"
12504 #include "confdefs.h"
12505
12506 #include <gtk/gtk.h>
12507 #include <stdio.h>
12508
12509 int main() {
12510  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12511 ; return 0; }
12512 EOF
12513 if { (eval echo configure:12514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12514   rm -rf conftest*
12515    echo "*** The test program compiled, but did not run. This usually means"
12516           echo "*** that the run-time linker is not finding GTK or finding the wrong"
12517           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12518           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12519           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12520           echo "*** is required on your system"
12521           echo "***"
12522           echo "*** If you have an old version installed, it is best to remove it, although"
12523           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12524           echo "***"
12525           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12526           echo "*** came with the system with the command"
12527           echo "***"
12528           echo "***    rpm --erase --nodeps gtk gtk-devel" 
12529 else
12530   echo "configure: failed program was:" >&5
12531   cat conftest.$ac_ext >&5
12532   rm -rf conftest*
12533    echo "*** The test program failed to compile or link. See the file config.log for the"
12534           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12535           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12536           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
12537 fi
12538 rm -f conftest*
12539           CFLAGS="$ac_save_CFLAGS"
12540           LIBS="$ac_save_LIBS"
12541        fi
12542      fi
12543      GTK_CFLAGS=""
12544      GTK_LIBS=""
12545      :
12546   fi
12547   
12548   
12549   rm -f conf.gtktest
12550
12551                 fi
12552
12553                 if test -z "$wx_cv_lib_gtk"; then
12554                                         wx_cv_lib_gtk=none
12555                 else
12556                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
12557                     wx_cv_libs_gtk=$GTK_LIBS
12558                 fi
12559             
12560         
12561 fi
12562
12563
12564                         if test "$gtk_version_cached" = 1; then
12565             echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12566         fi
12567
12568         case "$wx_cv_lib_gtk" in
12569             2.0)    WXGTK20=1
12570                     ;;
12571             1.2.7)  WXGTK127=1
12572                     WXGTK12=1
12573                     ;;
12574             1.2.3)  WXGTK12=1
12575                     ;;
12576             *)      { echo "configure: error: 
12577 Please check that gtk-config is in path, the directory
12578 where GTK+ libraries are installed (returned by
12579 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12580 equivalent variable and GTK+ is version 1.2.3 or above.
12581                             " 1>&2; exit 1; }
12582                     ;;
12583         esac
12584
12585         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12586         GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12587
12588         AFMINSTALL=afminstall
12589         TOOLKIT=GTK
12590         GUIDIST=GTK_DIST
12591
12592                 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
12593 echo "configure:12594: checking for gdk_im_open in -lgdk" >&5
12594 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
12595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12596   echo $ac_n "(cached) $ac_c" 1>&6
12597 else
12598   ac_save_LIBS="$LIBS"
12599 LIBS="-lgdk  $LIBS"
12600 cat > conftest.$ac_ext <<EOF
12601 #line 12602 "configure"
12602 #include "confdefs.h"
12603 /* Override any gcc2 internal prototype to avoid an error.  */
12604 /* We use char because int might match the return type of a gcc2
12605     builtin and then its argument prototype would still apply.  */
12606 char gdk_im_open();
12607
12608 int main() {
12609 gdk_im_open()
12610 ; return 0; }
12611 EOF
12612 if { (eval echo configure:12613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12613   rm -rf conftest*
12614   eval "ac_cv_lib_$ac_lib_var=yes"
12615 else
12616   echo "configure: failed program was:" >&5
12617   cat conftest.$ac_ext >&5
12618   rm -rf conftest*
12619   eval "ac_cv_lib_$ac_lib_var=no"
12620 fi
12621 rm -f conftest*
12622 LIBS="$ac_save_LIBS"
12623
12624 fi
12625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12626   echo "$ac_t""yes" 1>&6
12627   cat >> confdefs.h <<\EOF
12628 #define HAVE_XIM 1
12629 EOF
12630
12631 else
12632   echo "$ac_t""no" 1>&6
12633 fi
12634
12635     fi
12636
12637     if test "$wxUSE_MGL" = 1; then
12638         echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
12639 echo "configure:12640: checking for SciTech MGL library" >&5
12640         if test "x$MGL_ROOT" = x ; then
12641             echo "$ac_t""not found" 1>&6
12642             { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12643         else
12644             echo "$ac_t""$MGL_ROOT" 1>&6
12645         fi
12646
12647                         case "${host}" in
12648             *-*-linux* )
12649               mgl_os=linux/gcc/glibc
12650               ;;
12651             *-pc-msdosdjgpp )
12652               mgl_os=dos32/dj2
12653               ;;
12654             *)
12655               { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12656         esac
12657
12658         mgl_lib_type=""
12659
12660         if test "$wxUSE_DEBUG_FLAG" = yes ; then
12661             if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12662                     -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12663                 mgl_lib_type=debug
12664             fi
12665         fi
12666         if test "x$mgl_lib_type" = x ; then
12667             if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12668                     -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12669                 mgl_lib_type=release
12670             else
12671                 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12672             fi
12673         fi
12674
12675         wxUSE_UNIVERSAL="yes"
12676
12677         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12678         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12679
12680         AFMINSTALL=afminstall
12681         TOOLKIT=MGL
12682         GUIDIST=MGL_DIST
12683     fi
12684
12685     if test "$wxUSE_MICROWIN" = 1; then
12686         echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
12687 echo "configure:12688: checking for MicroWindows" >&5
12688         if test "x$MICROWINDOWS" = x ; then
12689             echo "$ac_t""not found" 1>&6
12690             { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12691         else
12692             echo "$ac_t""$MICROWINDOWS" 1>&6
12693         fi
12694
12695         if test -f $MICROWINDOWS/lib/libmwin.a; then
12696             echo "$ac_t""MicroWindows' libraries found." 1>&6
12697         else
12698             { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
12699         fi
12700
12701         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12702         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12703
12704         wxUSE_UNIVERSAL="yes"
12705
12706         AFMINSTALL=afminstall
12707         TOOLKIT=MICROWIN
12708         GUIDIST=MICROWIN_DIST
12709
12710         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
12711     fi
12712
12713     if test "$wxUSE_X11" = 1; then
12714                         # If we find X, set shell vars x_includes and x_libraries to the
12715 # paths, otherwise set no_x=yes.
12716 # Uses ac_ vars as temps to allow command line to override cache and checks.
12717 # --without-x overrides everything else, but does not touch the cache.
12718 echo $ac_n "checking for X""... $ac_c" 1>&6
12719 echo "configure:12720: checking for X" >&5
12720
12721 # Check whether --with-x or --without-x was given.
12722 if test "${with_x+set}" = set; then
12723   withval="$with_x"
12724   :
12725 fi
12726
12727 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12728 if test "x$with_x" = xno; then
12729   # The user explicitly disabled X.
12730   have_x=disabled
12731 else
12732   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12733     # Both variables are already set.
12734     have_x=yes
12735   else
12736 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12737   echo $ac_n "(cached) $ac_c" 1>&6
12738 else
12739   # One or both of the vars are not set, and there is no cached value.
12740 ac_x_includes=NO ac_x_libraries=NO
12741 rm -fr conftestdir
12742 if mkdir conftestdir; then
12743   cd conftestdir
12744   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12745   cat > Imakefile <<'EOF'
12746 acfindx:
12747         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12748 EOF
12749   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12750     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12751     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12752     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12753     for ac_extension in a so sl; do
12754       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12755         test -f $ac_im_libdir/libX11.$ac_extension; then
12756         ac_im_usrlibdir=$ac_im_libdir; break
12757       fi
12758     done
12759     # Screen out bogus values from the imake configuration.  They are
12760     # bogus both because they are the default anyway, and because
12761     # using them would break gcc on systems where it needs fixed includes.
12762     case "$ac_im_incroot" in
12763         /usr/include) ;;
12764         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
12765     esac
12766     case "$ac_im_usrlibdir" in
12767         /usr/lib | /lib) ;;
12768         *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
12769     esac
12770   fi
12771   cd ..
12772   rm -fr conftestdir
12773 fi
12774
12775 if test "$ac_x_includes" = NO; then
12776   # Guess where to find include files, by looking for this one X11 .h file.
12777   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
12778
12779   # First, try using that file with no special directory specified.
12780 cat > conftest.$ac_ext <<EOF
12781 #line 12782 "configure"
12782 #include "confdefs.h"
12783 #include <$x_direct_test_include>
12784 EOF
12785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12786 { (eval echo configure:12787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12787 ac_err=`grep -v '^ *+' conftest.out`
12788 if test -z "$ac_err"; then
12789   rm -rf conftest*
12790   # We can compile using X headers with no special include directory.
12791 ac_x_includes=
12792 else
12793   echo "$ac_err" >&5
12794   echo "configure: failed program was:" >&5
12795   cat conftest.$ac_ext >&5
12796   rm -rf conftest*
12797   # Look for the header file in a standard set of common directories.
12798 # Check X11 before X11Rn because it is often a symlink to the current release.
12799   for ac_dir in               \
12800     /usr/X11/include          \
12801     /usr/X11R6/include        \
12802     /usr/X11R5/include        \
12803     /usr/X11R4/include        \
12804                               \
12805     /usr/include/X11          \
12806     /usr/include/X11R6        \
12807     /usr/include/X11R5        \
12808     /usr/include/X11R4        \
12809                               \
12810     /usr/local/X11/include    \
12811     /usr/local/X11R6/include  \
12812     /usr/local/X11R5/include  \
12813     /usr/local/X11R4/include  \
12814                               \
12815     /usr/local/include/X11    \
12816     /usr/local/include/X11R6  \
12817     /usr/local/include/X11R5  \
12818     /usr/local/include/X11R4  \
12819                               \
12820     /usr/X386/include         \
12821     /usr/x386/include         \
12822     /usr/XFree86/include/X11  \
12823                               \
12824     /usr/include              \
12825     /usr/local/include        \
12826     /usr/unsupported/include  \
12827     /usr/athena/include       \
12828     /usr/local/x11r5/include  \
12829     /usr/lpp/Xamples/include  \
12830                               \
12831     /usr/openwin/include      \
12832     /usr/openwin/share/include \
12833     ; \
12834   do
12835     if test -r "$ac_dir/$x_direct_test_include"; then
12836       ac_x_includes=$ac_dir
12837       break
12838     fi
12839   done
12840 fi
12841 rm -f conftest*
12842 fi # $ac_x_includes = NO
12843
12844 if test "$ac_x_libraries" = NO; then
12845   # Check for the libraries.
12846
12847   test -z "$x_direct_test_library" && x_direct_test_library=Xt
12848   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
12849
12850   # See if we find them without any special options.
12851   # Don't add to $LIBS permanently.
12852   ac_save_LIBS="$LIBS"
12853   LIBS="-l$x_direct_test_library $LIBS"
12854 cat > conftest.$ac_ext <<EOF
12855 #line 12856 "configure"
12856 #include "confdefs.h"
12857
12858 int main() {
12859 ${x_direct_test_function}()
12860 ; return 0; }
12861 EOF
12862 if { (eval echo configure:12863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12863   rm -rf conftest*
12864   LIBS="$ac_save_LIBS"
12865 # We can link X programs with no special library path.
12866 ac_x_libraries=
12867 else
12868   echo "configure: failed program was:" >&5
12869   cat conftest.$ac_ext >&5
12870   rm -rf conftest*
12871   LIBS="$ac_save_LIBS"
12872 # First see if replacing the include by lib works.
12873 # Check X11 before X11Rn because it is often a symlink to the current release.
12874 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
12875     /usr/X11/lib          \
12876     /usr/X11R6/lib        \
12877     /usr/X11R5/lib        \
12878     /usr/X11R4/lib        \
12879                           \
12880     /usr/lib/X11          \
12881     /usr/lib/X11R6        \
12882     /usr/lib/X11R5        \
12883     /usr/lib/X11R4        \
12884                           \
12885     /usr/local/X11/lib    \
12886     /usr/local/X11R6/lib  \
12887     /usr/local/X11R5/lib  \
12888     /usr/local/X11R4/lib  \
12889                           \
12890     /usr/local/lib/X11    \
12891     /usr/local/lib/X11R6  \
12892     /usr/local/lib/X11R5  \
12893     /usr/local/lib/X11R4  \
12894                           \
12895     /usr/X386/lib         \
12896     /usr/x386/lib         \
12897     /usr/XFree86/lib/X11  \
12898                           \
12899     /usr/lib              \
12900     /usr/local/lib        \
12901     /usr/unsupported/lib  \
12902     /usr/athena/lib       \
12903     /usr/local/x11r5/lib  \
12904     /usr/lpp/Xamples/lib  \
12905     /lib/usr/lib/X11      \
12906                           \
12907     /usr/openwin/lib      \
12908     /usr/openwin/share/lib \
12909     ; \
12910 do
12911   for ac_extension in a so sl; do
12912     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
12913       ac_x_libraries=$ac_dir
12914       break 2
12915     fi
12916   done
12917 done
12918 fi
12919 rm -f conftest*
12920 fi # $ac_x_libraries = NO
12921
12922 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
12923   # Didn't find X anywhere.  Cache the known absence of X.
12924   ac_cv_have_x="have_x=no"
12925 else
12926   # Record where we found X for the cache.
12927   ac_cv_have_x="have_x=yes \
12928                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
12929 fi
12930 fi
12931   fi
12932   eval "$ac_cv_have_x"
12933 fi # $with_x != no
12934
12935 if test "$have_x" != yes; then
12936   echo "$ac_t""$have_x" 1>&6
12937   no_x=yes
12938 else
12939   # If each of the values was on the command line, it overrides each guess.
12940   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12941   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12942   # Update the cache value to reflect the command line values.
12943   ac_cv_have_x="have_x=yes \
12944                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
12945   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
12946 fi
12947
12948 if test "$no_x" = yes; then
12949   # Not all programs may use this symbol, but it does not hurt to define it.
12950   cat >> confdefs.h <<\EOF
12951 #define X_DISPLAY_MISSING 1
12952 EOF
12953
12954   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12955 else
12956   if test -n "$x_includes"; then
12957     X_CFLAGS="$X_CFLAGS -I$x_includes"
12958   fi
12959
12960   # It would also be nice to do this for all -L options, not just this one.
12961   if test -n "$x_libraries"; then
12962     X_LIBS="$X_LIBS -L$x_libraries"
12963     # For Solaris; some versions of Sun CC require a space after -R and
12964     # others require no space.  Words are not sufficient . . . .
12965     case "`(uname -sr) 2>/dev/null`" in
12966     "SunOS 5"*)
12967       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
12968 echo "configure:12969: checking whether -R must be followed by a space" >&5
12969       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12970       cat > conftest.$ac_ext <<EOF
12971 #line 12972 "configure"
12972 #include "confdefs.h"
12973
12974 int main() {
12975
12976 ; return 0; }
12977 EOF
12978 if { (eval echo configure:12979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12979   rm -rf conftest*
12980   ac_R_nospace=yes
12981 else
12982   echo "configure: failed program was:" >&5
12983   cat conftest.$ac_ext >&5
12984   rm -rf conftest*
12985   ac_R_nospace=no
12986 fi
12987 rm -f conftest*
12988       if test $ac_R_nospace = yes; then
12989         echo "$ac_t""no" 1>&6
12990         X_LIBS="$X_LIBS -R$x_libraries"
12991       else
12992         LIBS="$ac_xsave_LIBS -R $x_libraries"
12993         cat > conftest.$ac_ext <<EOF
12994 #line 12995 "configure"
12995 #include "confdefs.h"
12996
12997 int main() {
12998
12999 ; return 0; }
13000 EOF
13001 if { (eval echo configure:13002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13002   rm -rf conftest*
13003   ac_R_space=yes
13004 else
13005   echo "configure: failed program was:" >&5
13006   cat conftest.$ac_ext >&5
13007   rm -rf conftest*
13008   ac_R_space=no
13009 fi
13010 rm -f conftest*
13011         if test $ac_R_space = yes; then
13012           echo "$ac_t""yes" 1>&6
13013           X_LIBS="$X_LIBS -R $x_libraries"
13014         else
13015           echo "$ac_t""neither works" 1>&6
13016         fi
13017       fi
13018       LIBS="$ac_xsave_LIBS"
13019     esac
13020   fi
13021
13022   # Check for system-dependent libraries X programs must link with.
13023   # Do this before checking for the system-independent R6 libraries
13024   # (-lICE), since we may need -lsocket or whatever for X linking.
13025
13026   if test "$ISC" = yes; then
13027     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13028   else
13029     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13030     # libraries were built with DECnet support.  And karl@cs.umb.edu says
13031     # the Alpha needs dnet_stub (dnet does not exist).
13032     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13033 echo "configure:13034: checking for dnet_ntoa in -ldnet" >&5
13034 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13036   echo $ac_n "(cached) $ac_c" 1>&6
13037 else
13038   ac_save_LIBS="$LIBS"
13039 LIBS="-ldnet  $LIBS"
13040 cat > conftest.$ac_ext <<EOF
13041 #line 13042 "configure"
13042 #include "confdefs.h"
13043 /* Override any gcc2 internal prototype to avoid an error.  */
13044 /* We use char because int might match the return type of a gcc2
13045     builtin and then its argument prototype would still apply.  */
13046 char dnet_ntoa();
13047
13048 int main() {
13049 dnet_ntoa()
13050 ; return 0; }
13051 EOF
13052 if { (eval echo configure:13053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13053   rm -rf conftest*
13054   eval "ac_cv_lib_$ac_lib_var=yes"
13055 else
13056   echo "configure: failed program was:" >&5
13057   cat conftest.$ac_ext >&5
13058   rm -rf conftest*
13059   eval "ac_cv_lib_$ac_lib_var=no"
13060 fi
13061 rm -f conftest*
13062 LIBS="$ac_save_LIBS"
13063
13064 fi
13065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13066   echo "$ac_t""yes" 1>&6
13067   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13068 else
13069   echo "$ac_t""no" 1>&6
13070 fi
13071
13072     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13073       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13074 echo "configure:13075: checking for dnet_ntoa in -ldnet_stub" >&5
13075 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13077   echo $ac_n "(cached) $ac_c" 1>&6
13078 else
13079   ac_save_LIBS="$LIBS"
13080 LIBS="-ldnet_stub  $LIBS"
13081 cat > conftest.$ac_ext <<EOF
13082 #line 13083 "configure"
13083 #include "confdefs.h"
13084 /* Override any gcc2 internal prototype to avoid an error.  */
13085 /* We use char because int might match the return type of a gcc2
13086     builtin and then its argument prototype would still apply.  */
13087 char dnet_ntoa();
13088
13089 int main() {
13090 dnet_ntoa()
13091 ; return 0; }
13092 EOF
13093 if { (eval echo configure:13094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13094   rm -rf conftest*
13095   eval "ac_cv_lib_$ac_lib_var=yes"
13096 else
13097   echo "configure: failed program was:" >&5
13098   cat conftest.$ac_ext >&5
13099   rm -rf conftest*
13100   eval "ac_cv_lib_$ac_lib_var=no"
13101 fi
13102 rm -f conftest*
13103 LIBS="$ac_save_LIBS"
13104
13105 fi
13106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13107   echo "$ac_t""yes" 1>&6
13108   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13109 else
13110   echo "$ac_t""no" 1>&6
13111 fi
13112
13113     fi
13114
13115     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13116     # to get the SysV transport functions.
13117     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13118     # needs -lnsl.
13119     # The nsl library prevents programs from opening the X display
13120     # on Irix 5.2, according to dickey@clark.net.
13121     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13122 echo "configure:13123: checking for gethostbyname" >&5
13123 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13124   echo $ac_n "(cached) $ac_c" 1>&6
13125 else
13126   cat > conftest.$ac_ext <<EOF
13127 #line 13128 "configure"
13128 #include "confdefs.h"
13129 /* System header to define __stub macros and hopefully few prototypes,
13130     which can conflict with char gethostbyname(); below.  */
13131 #include <assert.h>
13132 /* Override any gcc2 internal prototype to avoid an error.  */
13133 /* We use char because int might match the return type of a gcc2
13134     builtin and then its argument prototype would still apply.  */
13135 char gethostbyname();
13136
13137 int main() {
13138
13139 /* The GNU C library defines this for functions which it implements
13140     to always fail with ENOSYS.  Some functions are actually named
13141     something starting with __ and the normal name is an alias.  */
13142 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13143 choke me
13144 #else
13145 gethostbyname();
13146 #endif
13147
13148 ; return 0; }
13149 EOF
13150 if { (eval echo configure:13151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13151   rm -rf conftest*
13152   eval "ac_cv_func_gethostbyname=yes"
13153 else
13154   echo "configure: failed program was:" >&5
13155   cat conftest.$ac_ext >&5
13156   rm -rf conftest*
13157   eval "ac_cv_func_gethostbyname=no"
13158 fi
13159 rm -f conftest*
13160 fi
13161
13162 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13163   echo "$ac_t""yes" 1>&6
13164   :
13165 else
13166   echo "$ac_t""no" 1>&6
13167 fi
13168
13169     if test $ac_cv_func_gethostbyname = no; then
13170       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13171 echo "configure:13172: checking for gethostbyname in -lnsl" >&5
13172 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13174   echo $ac_n "(cached) $ac_c" 1>&6
13175 else
13176   ac_save_LIBS="$LIBS"
13177 LIBS="-lnsl  $LIBS"
13178 cat > conftest.$ac_ext <<EOF
13179 #line 13180 "configure"
13180 #include "confdefs.h"
13181 /* Override any gcc2 internal prototype to avoid an error.  */
13182 /* We use char because int might match the return type of a gcc2
13183     builtin and then its argument prototype would still apply.  */
13184 char gethostbyname();
13185
13186 int main() {
13187 gethostbyname()
13188 ; return 0; }
13189 EOF
13190 if { (eval echo configure:13191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13191   rm -rf conftest*
13192   eval "ac_cv_lib_$ac_lib_var=yes"
13193 else
13194   echo "configure: failed program was:" >&5
13195   cat conftest.$ac_ext >&5
13196   rm -rf conftest*
13197   eval "ac_cv_lib_$ac_lib_var=no"
13198 fi
13199 rm -f conftest*
13200 LIBS="$ac_save_LIBS"
13201
13202 fi
13203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13204   echo "$ac_t""yes" 1>&6
13205   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13206 else
13207   echo "$ac_t""no" 1>&6
13208 fi
13209
13210     fi
13211
13212     # lieder@skyler.mavd.honeywell.com says without -lsocket,
13213     # socket/setsockopt and other routines are undefined under SCO ODT
13214     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
13215     # on later versions), says simon@lia.di.epfl.ch: it contains
13216     # gethostby* variants that don't use the nameserver (or something).
13217     # -lsocket must be given before -lnsl if both are needed.
13218     # We assume that if connect needs -lnsl, so does gethostbyname.
13219     echo $ac_n "checking for connect""... $ac_c" 1>&6
13220 echo "configure:13221: checking for connect" >&5
13221 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13222   echo $ac_n "(cached) $ac_c" 1>&6
13223 else
13224   cat > conftest.$ac_ext <<EOF
13225 #line 13226 "configure"
13226 #include "confdefs.h"
13227 /* System header to define __stub macros and hopefully few prototypes,
13228     which can conflict with char connect(); below.  */
13229 #include <assert.h>
13230 /* Override any gcc2 internal prototype to avoid an error.  */
13231 /* We use char because int might match the return type of a gcc2
13232     builtin and then its argument prototype would still apply.  */
13233 char connect();
13234
13235 int main() {
13236
13237 /* The GNU C library defines this for functions which it implements
13238     to always fail with ENOSYS.  Some functions are actually named
13239     something starting with __ and the normal name is an alias.  */
13240 #if defined (__stub_connect) || defined (__stub___connect)
13241 choke me
13242 #else
13243 connect();
13244 #endif
13245
13246 ; return 0; }
13247 EOF
13248 if { (eval echo configure:13249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13249   rm -rf conftest*
13250   eval "ac_cv_func_connect=yes"
13251 else
13252   echo "configure: failed program was:" >&5
13253   cat conftest.$ac_ext >&5
13254   rm -rf conftest*
13255   eval "ac_cv_func_connect=no"
13256 fi
13257 rm -f conftest*
13258 fi
13259
13260 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13261   echo "$ac_t""yes" 1>&6
13262   :
13263 else
13264   echo "$ac_t""no" 1>&6
13265 fi
13266
13267     if test $ac_cv_func_connect = no; then
13268       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13269 echo "configure:13270: checking for connect in -lsocket" >&5
13270 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13272   echo $ac_n "(cached) $ac_c" 1>&6
13273 else
13274   ac_save_LIBS="$LIBS"
13275 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13276 cat > conftest.$ac_ext <<EOF
13277 #line 13278 "configure"
13278 #include "confdefs.h"
13279 /* Override any gcc2 internal prototype to avoid an error.  */
13280 /* We use char because int might match the return type of a gcc2
13281     builtin and then its argument prototype would still apply.  */
13282 char connect();
13283
13284 int main() {
13285 connect()
13286 ; return 0; }
13287 EOF
13288 if { (eval echo configure:13289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13289   rm -rf conftest*
13290   eval "ac_cv_lib_$ac_lib_var=yes"
13291 else
13292   echo "configure: failed program was:" >&5
13293   cat conftest.$ac_ext >&5
13294   rm -rf conftest*
13295   eval "ac_cv_lib_$ac_lib_var=no"
13296 fi
13297 rm -f conftest*
13298 LIBS="$ac_save_LIBS"
13299
13300 fi
13301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13302   echo "$ac_t""yes" 1>&6
13303   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13304 else
13305   echo "$ac_t""no" 1>&6
13306 fi
13307
13308     fi
13309
13310     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13311     echo $ac_n "checking for remove""... $ac_c" 1>&6
13312 echo "configure:13313: checking for remove" >&5
13313 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13314   echo $ac_n "(cached) $ac_c" 1>&6
13315 else
13316   cat > conftest.$ac_ext <<EOF
13317 #line 13318 "configure"
13318 #include "confdefs.h"
13319 /* System header to define __stub macros and hopefully few prototypes,
13320     which can conflict with char remove(); below.  */
13321 #include <assert.h>
13322 /* Override any gcc2 internal prototype to avoid an error.  */
13323 /* We use char because int might match the return type of a gcc2
13324     builtin and then its argument prototype would still apply.  */
13325 char remove();
13326
13327 int main() {
13328
13329 /* The GNU C library defines this for functions which it implements
13330     to always fail with ENOSYS.  Some functions are actually named
13331     something starting with __ and the normal name is an alias.  */
13332 #if defined (__stub_remove) || defined (__stub___remove)
13333 choke me
13334 #else
13335 remove();
13336 #endif
13337
13338 ; return 0; }
13339 EOF
13340 if { (eval echo configure:13341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13341   rm -rf conftest*
13342   eval "ac_cv_func_remove=yes"
13343 else
13344   echo "configure: failed program was:" >&5
13345   cat conftest.$ac_ext >&5
13346   rm -rf conftest*
13347   eval "ac_cv_func_remove=no"
13348 fi
13349 rm -f conftest*
13350 fi
13351
13352 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13353   echo "$ac_t""yes" 1>&6
13354   :
13355 else
13356   echo "$ac_t""no" 1>&6
13357 fi
13358
13359     if test $ac_cv_func_remove = no; then
13360       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
13361 echo "configure:13362: checking for remove in -lposix" >&5
13362 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13364   echo $ac_n "(cached) $ac_c" 1>&6
13365 else
13366   ac_save_LIBS="$LIBS"
13367 LIBS="-lposix  $LIBS"
13368 cat > conftest.$ac_ext <<EOF
13369 #line 13370 "configure"
13370 #include "confdefs.h"
13371 /* Override any gcc2 internal prototype to avoid an error.  */
13372 /* We use char because int might match the return type of a gcc2
13373     builtin and then its argument prototype would still apply.  */
13374 char remove();
13375
13376 int main() {
13377 remove()
13378 ; return 0; }
13379 EOF
13380 if { (eval echo configure:13381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13381   rm -rf conftest*
13382   eval "ac_cv_lib_$ac_lib_var=yes"
13383 else
13384   echo "configure: failed program was:" >&5
13385   cat conftest.$ac_ext >&5
13386   rm -rf conftest*
13387   eval "ac_cv_lib_$ac_lib_var=no"
13388 fi
13389 rm -f conftest*
13390 LIBS="$ac_save_LIBS"
13391
13392 fi
13393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13394   echo "$ac_t""yes" 1>&6
13395   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13396 else
13397   echo "$ac_t""no" 1>&6
13398 fi
13399
13400     fi
13401
13402     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13403     echo $ac_n "checking for shmat""... $ac_c" 1>&6
13404 echo "configure:13405: checking for shmat" >&5
13405 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13406   echo $ac_n "(cached) $ac_c" 1>&6
13407 else
13408   cat > conftest.$ac_ext <<EOF
13409 #line 13410 "configure"
13410 #include "confdefs.h"
13411 /* System header to define __stub macros and hopefully few prototypes,
13412     which can conflict with char shmat(); below.  */
13413 #include <assert.h>
13414 /* Override any gcc2 internal prototype to avoid an error.  */
13415 /* We use char because int might match the return type of a gcc2
13416     builtin and then its argument prototype would still apply.  */
13417 char shmat();
13418
13419 int main() {
13420
13421 /* The GNU C library defines this for functions which it implements
13422     to always fail with ENOSYS.  Some functions are actually named
13423     something starting with __ and the normal name is an alias.  */
13424 #if defined (__stub_shmat) || defined (__stub___shmat)
13425 choke me
13426 #else
13427 shmat();
13428 #endif
13429
13430 ; return 0; }
13431 EOF
13432 if { (eval echo configure:13433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13433   rm -rf conftest*
13434   eval "ac_cv_func_shmat=yes"
13435 else
13436   echo "configure: failed program was:" >&5
13437   cat conftest.$ac_ext >&5
13438   rm -rf conftest*
13439   eval "ac_cv_func_shmat=no"
13440 fi
13441 rm -f conftest*
13442 fi
13443
13444 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13445   echo "$ac_t""yes" 1>&6
13446   :
13447 else
13448   echo "$ac_t""no" 1>&6
13449 fi
13450
13451     if test $ac_cv_func_shmat = no; then
13452       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
13453 echo "configure:13454: checking for shmat in -lipc" >&5
13454 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13456   echo $ac_n "(cached) $ac_c" 1>&6
13457 else
13458   ac_save_LIBS="$LIBS"
13459 LIBS="-lipc  $LIBS"
13460 cat > conftest.$ac_ext <<EOF
13461 #line 13462 "configure"
13462 #include "confdefs.h"
13463 /* Override any gcc2 internal prototype to avoid an error.  */
13464 /* We use char because int might match the return type of a gcc2
13465     builtin and then its argument prototype would still apply.  */
13466 char shmat();
13467
13468 int main() {
13469 shmat()
13470 ; return 0; }
13471 EOF
13472 if { (eval echo configure:13473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13473   rm -rf conftest*
13474   eval "ac_cv_lib_$ac_lib_var=yes"
13475 else
13476   echo "configure: failed program was:" >&5
13477   cat conftest.$ac_ext >&5
13478   rm -rf conftest*
13479   eval "ac_cv_lib_$ac_lib_var=no"
13480 fi
13481 rm -f conftest*
13482 LIBS="$ac_save_LIBS"
13483
13484 fi
13485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13486   echo "$ac_t""yes" 1>&6
13487   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13488 else
13489   echo "$ac_t""no" 1>&6
13490 fi
13491
13492     fi
13493   fi
13494
13495   # Check for libraries that X11R6 Xt/Xaw programs need.
13496   ac_save_LDFLAGS="$LDFLAGS"
13497   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13498   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13499   # check for ICE first), but we must link in the order -lSM -lICE or
13500   # we get undefined symbols.  So assume we have SM if we have ICE.
13501   # These have to be linked with before -lX11, unlike the other
13502   # libraries we check for below, so use a different variable.
13503   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13504   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
13505 echo "configure:13506: checking for IceConnectionNumber in -lICE" >&5
13506 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13508   echo $ac_n "(cached) $ac_c" 1>&6
13509 else
13510   ac_save_LIBS="$LIBS"
13511 LIBS="-lICE  $LIBS"
13512 cat > conftest.$ac_ext <<EOF
13513 #line 13514 "configure"
13514 #include "confdefs.h"
13515 /* Override any gcc2 internal prototype to avoid an error.  */
13516 /* We use char because int might match the return type of a gcc2
13517     builtin and then its argument prototype would still apply.  */
13518 char IceConnectionNumber();
13519
13520 int main() {
13521 IceConnectionNumber()
13522 ; return 0; }
13523 EOF
13524 if { (eval echo configure:13525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13525   rm -rf conftest*
13526   eval "ac_cv_lib_$ac_lib_var=yes"
13527 else
13528   echo "configure: failed program was:" >&5
13529   cat conftest.$ac_ext >&5
13530   rm -rf conftest*
13531   eval "ac_cv_lib_$ac_lib_var=no"
13532 fi
13533 rm -f conftest*
13534 LIBS="$ac_save_LIBS"
13535
13536 fi
13537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13538   echo "$ac_t""yes" 1>&6
13539   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13540 else
13541   echo "$ac_t""no" 1>&6
13542 fi
13543
13544   LDFLAGS="$ac_save_LDFLAGS"
13545
13546 fi
13547
13548
13549         if test "$no_x" = "yes"; then
13550           { echo "configure: error: X11 not found" 1>&2; exit 1; }
13551         fi
13552
13553         GUI_TK_LIBRARY="$X_LIBS"
13554         TOOLKIT_INCLUDE="$X_CFLAGS"
13555         AFMINSTALL=afminstall
13556         COMPILED_X_PROGRAM=0
13557
13558         if test "$wxUSE_NANOX" = "yes"; then
13559             echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
13560 echo "configure:13561: checking for MicroWindows/NanoX distribution" >&5
13561             if test "x$MICROWIN" = x ; then
13562                 echo "$ac_t""not found" 1>&6
13563                 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
13564             else
13565                 echo "$ac_t""$MICROWIN" 1>&6
13566                 cat >> confdefs.h <<\EOF
13567 #define wxUSE_NANOX 1
13568 EOF
13569
13570             fi
13571         fi
13572
13573         xpm_link=
13574         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13575 echo "configure:13576: checking for Xpm library" >&5
13576         
13577 ac_find_libraries=
13578 for ac_dir in $SEARCH_LIB;
13579   do
13580     for ac_extension in a so sl dylib; do
13581       if test -f "$ac_dir/libXpm.$ac_extension"; then
13582         ac_find_libraries=$ac_dir
13583         break 2
13584       fi
13585     done
13586   done
13587
13588         if test "$ac_find_libraries" != "" ; then
13589             
13590   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13591   result=$?
13592   if test $result = 0; then
13593     ac_path_to_link=""
13594   else
13595     ac_path_to_link=" -L$ac_find_libraries"
13596   fi
13597
13598             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13599             xpm_link=" -lXpm"
13600             cat >> confdefs.h <<\EOF
13601 #define wxHAVE_LIB_XPM 1
13602 EOF
13603
13604             echo "$ac_t""found at $ac_find_libraries" 1>&6
13605         else
13606             cat > conftest.$ac_ext <<EOF
13607 #line 13608 "configure"
13608 #include "confdefs.h"
13609
13610                     #include <X11/xpm.h>
13611                 
13612 int main() {
13613
13614                     int version;
13615                     version = XpmLibraryVersion();
13616                 
13617 ; return 0; }
13618 EOF
13619 if { (eval echo configure:13620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13620   rm -rf conftest*
13621   
13622                     xpm_link=" -lXpm"
13623                     cat >> confdefs.h <<\EOF
13624 #define wxHAVE_LIB_XPM 1
13625 EOF
13626
13627                     echo "$ac_t""found in default search path" 1>&6
13628                     COMPILED_X_PROGRAM=0
13629                 
13630 else
13631   echo "configure: failed program was:" >&5
13632   cat conftest.$ac_ext >&5
13633   rm -rf conftest*
13634   
13635                     echo "$ac_t""no" 1>&6
13636                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13637                 
13638             
13639 fi
13640 rm -f conftest*
13641         fi
13642
13643         wxUSE_UNIVERSAL="yes"
13644
13645         if test "$wxUSE_NANOX" = "yes"; then
13646             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13647             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
13648             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13649         else
13650             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13651         fi
13652
13653         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13654         TOOLKIT=X11
13655         GUIDIST=X11_DIST
13656     fi
13657
13658     if test "$wxUSE_WINE" = 1; then
13659         ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13660 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
13661 echo "configure:13662: checking for windows.h" >&5
13662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13663   echo $ac_n "(cached) $ac_c" 1>&6
13664 else
13665   cat > conftest.$ac_ext <<EOF
13666 #line 13667 "configure"
13667 #include "confdefs.h"
13668 #include <windows.h>
13669 EOF
13670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13671 { (eval echo configure:13672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13672 ac_err=`grep -v '^ *+' conftest.out`
13673 if test -z "$ac_err"; then
13674   rm -rf conftest*
13675   eval "ac_cv_header_$ac_safe=yes"
13676 else
13677   echo "$ac_err" >&5
13678   echo "configure: failed program was:" >&5
13679   cat conftest.$ac_ext >&5
13680   rm -rf conftest*
13681   eval "ac_cv_header_$ac_safe=no"
13682 fi
13683 rm -f conftest*
13684 fi
13685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13686   echo "$ac_t""yes" 1>&6
13687   :
13688 else
13689   echo "$ac_t""no" 1>&6
13690
13691             { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13692         
13693 fi
13694
13695
13696         xpm_link=
13697         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13698 echo "configure:13699: checking for Xpm library" >&5
13699         
13700 ac_find_libraries=
13701 for ac_dir in $SEARCH_LIB;
13702   do
13703     for ac_extension in a so sl dylib; do
13704       if test -f "$ac_dir/libXpm.$ac_extension"; then
13705         ac_find_libraries=$ac_dir
13706         break 2
13707       fi
13708     done
13709   done
13710
13711         if test "$ac_find_libraries" != "" ; then
13712             GUI_TK_LIBRARY="-L$ac_find_libraries"
13713             xpm_link=" -lXpm"
13714             cat >> confdefs.h <<\EOF
13715 #define wxHAVE_LIB_XPM 1
13716 EOF
13717
13718             echo "$ac_t""found at $ac_find_libraries" 1>&6
13719         else
13720             echo "$ac_t""no" 1>&6
13721             echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13722         fi
13723
13724         mesa_link=
13725         echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
13726 echo "configure:13727: checking for Mesa library" >&5
13727         
13728 ac_find_libraries=
13729 for ac_dir in $SEARCH_LIB;
13730   do
13731     for ac_extension in a so sl dylib; do
13732       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13733         ac_find_libraries=$ac_dir
13734         break 2
13735       fi
13736     done
13737   done
13738
13739         if test "$ac_find_libraries" != "" ; then
13740             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13741             mesa_link=" -lMesaGL"
13742             echo "$ac_t""found at $ac_find_libraries" 1>&6
13743         else
13744             { echo "configure: error: no" 1>&2; exit 1; }
13745         fi
13746
13747         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13748         TOOLKIT=MSW
13749         GUIDIST=MSW_DIST
13750         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13751     fi
13752
13753     if test "$wxUSE_MOTIF" = 1; then
13754                         if test "$no_x" = yes; then
13755   # Not all programs may use this symbol, but it does not hurt to define it.
13756   cat >> confdefs.h <<\EOF
13757 #define X_DISPLAY_MISSING 1
13758 EOF
13759
13760   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13761 else
13762   if test -n "$x_includes"; then
13763     X_CFLAGS="$X_CFLAGS -I$x_includes"
13764   fi
13765
13766   # It would also be nice to do this for all -L options, not just this one.
13767   if test -n "$x_libraries"; then
13768     X_LIBS="$X_LIBS -L$x_libraries"
13769     # For Solaris; some versions of Sun CC require a space after -R and
13770     # others require no space.  Words are not sufficient . . . .
13771     case "`(uname -sr) 2>/dev/null`" in
13772     "SunOS 5"*)
13773       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13774 echo "configure:13775: checking whether -R must be followed by a space" >&5
13775       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13776       cat > conftest.$ac_ext <<EOF
13777 #line 13778 "configure"
13778 #include "confdefs.h"
13779
13780 int main() {
13781
13782 ; return 0; }
13783 EOF
13784 if { (eval echo configure:13785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13785   rm -rf conftest*
13786   ac_R_nospace=yes
13787 else
13788   echo "configure: failed program was:" >&5
13789   cat conftest.$ac_ext >&5
13790   rm -rf conftest*
13791   ac_R_nospace=no
13792 fi
13793 rm -f conftest*
13794       if test $ac_R_nospace = yes; then
13795         echo "$ac_t""no" 1>&6
13796         X_LIBS="$X_LIBS -R$x_libraries"
13797       else
13798         LIBS="$ac_xsave_LIBS -R $x_libraries"
13799         cat > conftest.$ac_ext <<EOF
13800 #line 13801 "configure"
13801 #include "confdefs.h"
13802
13803 int main() {
13804
13805 ; return 0; }
13806 EOF
13807 if { (eval echo configure:13808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13808   rm -rf conftest*
13809   ac_R_space=yes
13810 else
13811   echo "configure: failed program was:" >&5
13812   cat conftest.$ac_ext >&5
13813   rm -rf conftest*
13814   ac_R_space=no
13815 fi
13816 rm -f conftest*
13817         if test $ac_R_space = yes; then
13818           echo "$ac_t""yes" 1>&6
13819           X_LIBS="$X_LIBS -R $x_libraries"
13820         else
13821           echo "$ac_t""neither works" 1>&6
13822         fi
13823       fi
13824       LIBS="$ac_xsave_LIBS"
13825     esac
13826   fi
13827
13828   # Check for system-dependent libraries X programs must link with.
13829   # Do this before checking for the system-independent R6 libraries
13830   # (-lICE), since we may need -lsocket or whatever for X linking.
13831
13832   if test "$ISC" = yes; then
13833     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13834   else
13835     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13836     # libraries were built with DECnet support.  And karl@cs.umb.edu says
13837     # the Alpha needs dnet_stub (dnet does not exist).
13838     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13839 echo "configure:13840: checking for dnet_ntoa in -ldnet" >&5
13840 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13842   echo $ac_n "(cached) $ac_c" 1>&6
13843 else
13844   ac_save_LIBS="$LIBS"
13845 LIBS="-ldnet  $LIBS"
13846 cat > conftest.$ac_ext <<EOF
13847 #line 13848 "configure"
13848 #include "confdefs.h"
13849 /* Override any gcc2 internal prototype to avoid an error.  */
13850 /* We use char because int might match the return type of a gcc2
13851     builtin and then its argument prototype would still apply.  */
13852 char dnet_ntoa();
13853
13854 int main() {
13855 dnet_ntoa()
13856 ; return 0; }
13857 EOF
13858 if { (eval echo configure:13859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13859   rm -rf conftest*
13860   eval "ac_cv_lib_$ac_lib_var=yes"
13861 else
13862   echo "configure: failed program was:" >&5
13863   cat conftest.$ac_ext >&5
13864   rm -rf conftest*
13865   eval "ac_cv_lib_$ac_lib_var=no"
13866 fi
13867 rm -f conftest*
13868 LIBS="$ac_save_LIBS"
13869
13870 fi
13871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13872   echo "$ac_t""yes" 1>&6
13873   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13874 else
13875   echo "$ac_t""no" 1>&6
13876 fi
13877
13878     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13879       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13880 echo "configure:13881: checking for dnet_ntoa in -ldnet_stub" >&5
13881 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13883   echo $ac_n "(cached) $ac_c" 1>&6
13884 else
13885   ac_save_LIBS="$LIBS"
13886 LIBS="-ldnet_stub  $LIBS"
13887 cat > conftest.$ac_ext <<EOF
13888 #line 13889 "configure"
13889 #include "confdefs.h"
13890 /* Override any gcc2 internal prototype to avoid an error.  */
13891 /* We use char because int might match the return type of a gcc2
13892     builtin and then its argument prototype would still apply.  */
13893 char dnet_ntoa();
13894
13895 int main() {
13896 dnet_ntoa()
13897 ; return 0; }
13898 EOF
13899 if { (eval echo configure:13900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13900   rm -rf conftest*
13901   eval "ac_cv_lib_$ac_lib_var=yes"
13902 else
13903   echo "configure: failed program was:" >&5
13904   cat conftest.$ac_ext >&5
13905   rm -rf conftest*
13906   eval "ac_cv_lib_$ac_lib_var=no"
13907 fi
13908 rm -f conftest*
13909 LIBS="$ac_save_LIBS"
13910
13911 fi
13912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13913   echo "$ac_t""yes" 1>&6
13914   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13915 else
13916   echo "$ac_t""no" 1>&6
13917 fi
13918
13919     fi
13920
13921     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13922     # to get the SysV transport functions.
13923     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13924     # needs -lnsl.
13925     # The nsl library prevents programs from opening the X display
13926     # on Irix 5.2, according to dickey@clark.net.
13927     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13928 echo "configure:13929: checking for gethostbyname" >&5
13929 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13930   echo $ac_n "(cached) $ac_c" 1>&6
13931 else
13932   cat > conftest.$ac_ext <<EOF
13933 #line 13934 "configure"
13934 #include "confdefs.h"
13935 /* System header to define __stub macros and hopefully few prototypes,
13936     which can conflict with char gethostbyname(); below.  */
13937 #include <assert.h>
13938 /* Override any gcc2 internal prototype to avoid an error.  */
13939 /* We use char because int might match the return type of a gcc2
13940     builtin and then its argument prototype would still apply.  */
13941 char gethostbyname();
13942
13943 int main() {
13944
13945 /* The GNU C library defines this for functions which it implements
13946     to always fail with ENOSYS.  Some functions are actually named
13947     something starting with __ and the normal name is an alias.  */
13948 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13949 choke me
13950 #else
13951 gethostbyname();
13952 #endif
13953
13954 ; return 0; }
13955 EOF
13956 if { (eval echo configure:13957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13957   rm -rf conftest*
13958   eval "ac_cv_func_gethostbyname=yes"
13959 else
13960   echo "configure: failed program was:" >&5
13961   cat conftest.$ac_ext >&5
13962   rm -rf conftest*
13963   eval "ac_cv_func_gethostbyname=no"
13964 fi
13965 rm -f conftest*
13966 fi
13967
13968 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13969   echo "$ac_t""yes" 1>&6
13970   :
13971 else
13972   echo "$ac_t""no" 1>&6
13973 fi
13974
13975     if test $ac_cv_func_gethostbyname = no; then
13976       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13977 echo "configure:13978: checking for gethostbyname in -lnsl" >&5
13978 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13979 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13980   echo $ac_n "(cached) $ac_c" 1>&6
13981 else
13982   ac_save_LIBS="$LIBS"
13983 LIBS="-lnsl  $LIBS"
13984 cat > conftest.$ac_ext <<EOF
13985 #line 13986 "configure"
13986 #include "confdefs.h"
13987 /* Override any gcc2 internal prototype to avoid an error.  */
13988 /* We use char because int might match the return type of a gcc2
13989     builtin and then its argument prototype would still apply.  */
13990 char gethostbyname();
13991
13992 int main() {
13993 gethostbyname()
13994 ; return 0; }
13995 EOF
13996 if { (eval echo configure:13997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13997   rm -rf conftest*
13998   eval "ac_cv_lib_$ac_lib_var=yes"
13999 else
14000   echo "configure: failed program was:" >&5
14001   cat conftest.$ac_ext >&5
14002   rm -rf conftest*
14003   eval "ac_cv_lib_$ac_lib_var=no"
14004 fi
14005 rm -f conftest*
14006 LIBS="$ac_save_LIBS"
14007
14008 fi
14009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14010   echo "$ac_t""yes" 1>&6
14011   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14012 else
14013   echo "$ac_t""no" 1>&6
14014 fi
14015
14016     fi
14017
14018     # lieder@skyler.mavd.honeywell.com says without -lsocket,
14019     # socket/setsockopt and other routines are undefined under SCO ODT
14020     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
14021     # on later versions), says simon@lia.di.epfl.ch: it contains
14022     # gethostby* variants that don't use the nameserver (or something).
14023     # -lsocket must be given before -lnsl if both are needed.
14024     # We assume that if connect needs -lnsl, so does gethostbyname.
14025     echo $ac_n "checking for connect""... $ac_c" 1>&6
14026 echo "configure:14027: checking for connect" >&5
14027 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14028   echo $ac_n "(cached) $ac_c" 1>&6
14029 else
14030   cat > conftest.$ac_ext <<EOF
14031 #line 14032 "configure"
14032 #include "confdefs.h"
14033 /* System header to define __stub macros and hopefully few prototypes,
14034     which can conflict with char connect(); below.  */
14035 #include <assert.h>
14036 /* Override any gcc2 internal prototype to avoid an error.  */
14037 /* We use char because int might match the return type of a gcc2
14038     builtin and then its argument prototype would still apply.  */
14039 char connect();
14040
14041 int main() {
14042
14043 /* The GNU C library defines this for functions which it implements
14044     to always fail with ENOSYS.  Some functions are actually named
14045     something starting with __ and the normal name is an alias.  */
14046 #if defined (__stub_connect) || defined (__stub___connect)
14047 choke me
14048 #else
14049 connect();
14050 #endif
14051
14052 ; return 0; }
14053 EOF
14054 if { (eval echo configure:14055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
14055   rm -rf conftest*
14056   eval "ac_cv_func_connect=yes"
14057 else
14058   echo "configure: failed program was:" >&5
14059   cat conftest.$ac_ext >&5
14060   rm -rf conftest*
14061   eval "ac_cv_func_connect=no"
14062 fi
14063 rm -f conftest*
14064 fi
14065
14066 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14067   echo "$ac_t""yes" 1>&6
14068   :
14069 else
14070   echo "$ac_t""no" 1>&6
14071 fi
14072
14073     if test $ac_cv_func_connect = no; then
14074       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14075 echo "configure:14076: checking for connect in -lsocket" >&5
14076 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14078   echo $ac_n "(cached) $ac_c" 1>&6
14079 else
14080   ac_save_LIBS="$LIBS"
14081 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14082 cat > conftest.$ac_ext <<EOF
14083 #line 14084 "configure"
14084 #include "confdefs.h"
14085 /* Override any gcc2 internal prototype to avoid an error.  */
14086 /* We use char because int might match the return type of a gcc2
14087     builtin and then its argument prototype would still apply.  */
14088 char connect();
14089
14090 int main() {
14091 connect()
14092 ; return 0; }
14093 EOF
14094 if { (eval echo configure:14095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
14095   rm -rf conftest*
14096   eval "ac_cv_lib_$ac_lib_var=yes"
14097 else
14098   echo "configure: failed program was:" >&5
14099   cat conftest.$ac_ext >&5
14100   rm -rf conftest*
14101   eval "ac_cv_lib_$ac_lib_var=no"
14102 fi
14103 rm -f conftest*
14104 LIBS="$ac_save_LIBS"
14105
14106 fi
14107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14108   echo "$ac_t""yes" 1>&6
14109   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14110 else
14111   echo "$ac_t""no" 1>&6
14112 fi
14113
14114     fi
14115
14116     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14117     echo $ac_n "checking for remove""... $ac_c" 1>&6
14118 echo "configure:14119: checking for remove" >&5
14119 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14120   echo $ac_n "(cached) $ac_c" 1>&6
14121 else
14122   cat > conftest.$ac_ext <<EOF
14123 #line 14124 "configure"
14124 #include "confdefs.h"
14125 /* System header to define __stub macros and hopefully few prototypes,
14126     which can conflict with char remove(); below.  */
14127 #include <assert.h>
14128 /* Override any gcc2 internal prototype to avoid an error.  */
14129 /* We use char because int might match the return type of a gcc2
14130     builtin and then its argument prototype would still apply.  */
14131 char remove();
14132
14133 int main() {
14134
14135 /* The GNU C library defines this for functions which it implements
14136     to always fail with ENOSYS.  Some functions are actually named
14137     something starting with __ and the normal name is an alias.  */
14138 #if defined (__stub_remove) || defined (__stub___remove)
14139 choke me
14140 #else
14141 remove();
14142 #endif
14143
14144 ; return 0; }
14145 EOF
14146 if { (eval echo configure:14147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
14147   rm -rf conftest*
14148   eval "ac_cv_func_remove=yes"
14149 else
14150   echo "configure: failed program was:" >&5
14151   cat conftest.$ac_ext >&5
14152   rm -rf conftest*
14153   eval "ac_cv_func_remove=no"
14154 fi
14155 rm -f conftest*
14156 fi
14157
14158 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14159   echo "$ac_t""yes" 1>&6
14160   :
14161 else
14162   echo "$ac_t""no" 1>&6
14163 fi
14164
14165     if test $ac_cv_func_remove = no; then
14166       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14167 echo "configure:14168: checking for remove in -lposix" >&5
14168 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14170   echo $ac_n "(cached) $ac_c" 1>&6
14171 else
14172   ac_save_LIBS="$LIBS"
14173 LIBS="-lposix  $LIBS"
14174 cat > conftest.$ac_ext <<EOF
14175 #line 14176 "configure"
14176 #include "confdefs.h"
14177 /* Override any gcc2 internal prototype to avoid an error.  */
14178 /* We use char because int might match the return type of a gcc2
14179     builtin and then its argument prototype would still apply.  */
14180 char remove();
14181
14182 int main() {
14183 remove()
14184 ; return 0; }
14185 EOF
14186 if { (eval echo configure:14187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
14187   rm -rf conftest*
14188   eval "ac_cv_lib_$ac_lib_var=yes"
14189 else
14190   echo "configure: failed program was:" >&5
14191   cat conftest.$ac_ext >&5
14192   rm -rf conftest*
14193   eval "ac_cv_lib_$ac_lib_var=no"
14194 fi
14195 rm -f conftest*
14196 LIBS="$ac_save_LIBS"
14197
14198 fi
14199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14200   echo "$ac_t""yes" 1>&6
14201   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14202 else
14203   echo "$ac_t""no" 1>&6
14204 fi
14205
14206     fi
14207
14208     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14209     echo $ac_n "checking for shmat""... $ac_c" 1>&6
14210 echo "configure:14211: checking for shmat" >&5
14211 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14212   echo $ac_n "(cached) $ac_c" 1>&6
14213 else
14214   cat > conftest.$ac_ext <<EOF
14215 #line 14216 "configure"
14216 #include "confdefs.h"
14217 /* System header to define __stub macros and hopefully few prototypes,
14218     which can conflict with char shmat(); below.  */
14219 #include <assert.h>
14220 /* Override any gcc2 internal prototype to avoid an error.  */
14221 /* We use char because int might match the return type of a gcc2
14222     builtin and then its argument prototype would still apply.  */
14223 char shmat();
14224
14225 int main() {
14226
14227 /* The GNU C library defines this for functions which it implements
14228     to always fail with ENOSYS.  Some functions are actually named
14229     something starting with __ and the normal name is an alias.  */
14230 #if defined (__stub_shmat) || defined (__stub___shmat)
14231 choke me
14232 #else
14233 shmat();
14234 #endif
14235
14236 ; return 0; }
14237 EOF
14238 if { (eval echo configure:14239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
14239   rm -rf conftest*
14240   eval "ac_cv_func_shmat=yes"
14241 else
14242   echo "configure: failed program was:" >&5
14243   cat conftest.$ac_ext >&5
14244   rm -rf conftest*
14245   eval "ac_cv_func_shmat=no"
14246 fi
14247 rm -f conftest*
14248 fi
14249
14250 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14251   echo "$ac_t""yes" 1>&6
14252   :
14253 else
14254   echo "$ac_t""no" 1>&6
14255 fi
14256
14257     if test $ac_cv_func_shmat = no; then
14258       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14259 echo "configure:14260: checking for shmat in -lipc" >&5
14260 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14262   echo $ac_n "(cached) $ac_c" 1>&6
14263 else
14264   ac_save_LIBS="$LIBS"
14265 LIBS="-lipc  $LIBS"
14266 cat > conftest.$ac_ext <<EOF
14267 #line 14268 "configure"
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
14271     builtin and then its argument prototype would still apply.  */
14272 char shmat();
14273
14274 int main() {
14275 shmat()
14276 ; return 0; }
14277 EOF
14278 if { (eval echo configure:14279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
14279   rm -rf conftest*
14280   eval "ac_cv_lib_$ac_lib_var=yes"
14281 else
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"
14286 fi
14287 rm -f conftest*
14288 LIBS="$ac_save_LIBS"
14289
14290 fi
14291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14292   echo "$ac_t""yes" 1>&6
14293   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14294 else
14295   echo "$ac_t""no" 1>&6
14296 fi
14297
14298     fi
14299   fi
14300
14301   # Check for libraries that X11R6 Xt/Xaw programs need.
14302   ac_save_LDFLAGS="$LDFLAGS"
14303   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14304   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14305   # check for ICE first), but we must link in the order -lSM -lICE or
14306   # we get undefined symbols.  So assume we have SM if we have ICE.
14307   # These have to be linked with before -lX11, unlike the other
14308   # libraries we check for below, so use a different variable.
14309   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14310   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14311 echo "configure:14312: checking for IceConnectionNumber in -lICE" >&5
14312 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14314   echo $ac_n "(cached) $ac_c" 1>&6
14315 else
14316   ac_save_LIBS="$LIBS"
14317 LIBS="-lICE  $LIBS"
14318 cat > conftest.$ac_ext <<EOF
14319 #line 14320 "configure"
14320 #include "confdefs.h"
14321 /* Override any gcc2 internal prototype to avoid an error.  */
14322 /* We use char because int might match the return type of a gcc2
14323     builtin and then its argument prototype would still apply.  */
14324 char IceConnectionNumber();
14325
14326 int main() {
14327 IceConnectionNumber()
14328 ; return 0; }
14329 EOF
14330 if { (eval echo configure:14331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
14331   rm -rf conftest*
14332   eval "ac_cv_lib_$ac_lib_var=yes"
14333 else
14334   echo "configure: failed program was:" >&5
14335   cat conftest.$ac_ext >&5
14336   rm -rf conftest*
14337   eval "ac_cv_lib_$ac_lib_var=no"
14338 fi
14339 rm -f conftest*
14340 LIBS="$ac_save_LIBS"
14341
14342 fi
14343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14344   echo "$ac_t""yes" 1>&6
14345   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14346 else
14347   echo "$ac_t""no" 1>&6
14348 fi
14349
14350   LDFLAGS="$ac_save_LDFLAGS"
14351
14352 fi
14353
14354
14355         if test "$no_x" = "yes"; then
14356           { echo "configure: error: X11 not found" 1>&2; exit 1; }
14357         fi
14358
14359         GUI_TK_LIBRARY="$X_LIBS"
14360         TOOLKIT_INCLUDE="$X_CFLAGS"
14361         AFMINSTALL=afminstall
14362         COMPILED_X_PROGRAM=0
14363
14364         echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
14365 echo "configure:14366: checking for Motif/Lesstif headers" >&5
14366         
14367 ac_find_includes=
14368 for ac_dir in $SEARCH_INCLUDE;
14369   do
14370     if test -f "$ac_dir/Xm/Xm.h"; then
14371       ac_find_includes=$ac_dir
14372       break
14373     fi
14374   done
14375
14376         if test "$ac_find_includes" != "" ; then
14377             echo "$ac_t""found $ac_find_includes" 1>&6
14378         else
14379             cat > conftest.$ac_ext <<EOF
14380 #line 14381 "configure"
14381 #include "confdefs.h"
14382
14383                     #include <Xm/Xm.h>
14384                 
14385 int main() {
14386
14387                     int version;
14388                     version = xmUseVersion;
14389                 
14390 ; return 0; }
14391 EOF
14392 if { (eval echo configure:14393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14393   rm -rf conftest*
14394   
14395                     echo "$ac_t""found in default search path" 1>&6
14396                     COMPILED_X_PROGRAM=1
14397                 
14398 else
14399   echo "configure: failed program was:" >&5
14400   cat conftest.$ac_ext >&5
14401   rm -rf conftest*
14402   
14403                     echo "$ac_t""no" 1>&6
14404                     { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14405                 
14406             
14407 fi
14408 rm -f conftest*
14409         fi
14410
14411         if test "$COMPILED_X_PROGRAM" = 0; then
14412             echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
14413 echo "configure:14414: checking for Motif/Lesstif library" >&5
14414             
14415 ac_find_libraries=
14416 for ac_dir in $SEARCH_LIB;
14417   do
14418     for ac_extension in a so sl dylib; do
14419       if test -f "$ac_dir/libXm.$ac_extension"; then
14420         ac_find_libraries=$ac_dir
14421         break 2
14422       fi
14423     done
14424   done
14425
14426             if test "$ac_find_libraries" != "" ; then
14427                 
14428   ac_path_to_include=$ac_find_includes
14429   echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14430   result=$?
14431   if test $result = 0; then
14432     ac_path_to_include=""
14433   else
14434     ac_path_to_include=" -I$ac_find_includes"
14435   fi
14436
14437                 
14438   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14439   result=$?
14440   if test $result = 0; then
14441     ac_path_to_link=""
14442   else
14443     ac_path_to_link=" -L$ac_find_libraries"
14444   fi
14445
14446
14447                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14448                 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14449                 echo "$ac_t""found at $ac_find_libraries" 1>&6
14450             else
14451                                                                 cat > conftest.$ac_ext <<EOF
14452 #line 14453 "configure"
14453 #include "confdefs.h"
14454
14455                         #include <Xm/Xm.h>
14456                     
14457 int main() {
14458
14459                         int version;
14460                         version = xmUseVersion;
14461                     
14462 ; return 0; }
14463 EOF
14464 if { (eval echo configure:14465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14465   rm -rf conftest*
14466   
14467                         echo "$ac_t""found in default search path" 1>&6
14468                         COMPILED_X_PROGRAM=1
14469                     
14470 else
14471   echo "configure: failed program was:" >&5
14472   cat conftest.$ac_ext >&5
14473   rm -rf conftest*
14474   
14475                         echo "$ac_t""no" 1>&6
14476                         { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14477                     
14478                 
14479 fi
14480 rm -f conftest*
14481             fi
14482         fi
14483
14484         xpm_link=
14485         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14486 echo "configure:14487: checking for Xpm library" >&5
14487         
14488 ac_find_libraries=
14489 for ac_dir in $SEARCH_LIB;
14490   do
14491     for ac_extension in a so sl dylib; do
14492       if test -f "$ac_dir/libXpm.$ac_extension"; then
14493         ac_find_libraries=$ac_dir
14494         break 2
14495       fi
14496     done
14497   done
14498
14499         if test "$ac_find_libraries" != "" ; then
14500             
14501   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14502   result=$?
14503   if test $result = 0; then
14504     ac_path_to_link=""
14505   else
14506     ac_path_to_link=" -L$ac_find_libraries"
14507   fi
14508
14509             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14510             xpm_link=" -lXpm"
14511             cat >> confdefs.h <<\EOF
14512 #define wxHAVE_LIB_XPM 1
14513 EOF
14514
14515             echo "$ac_t""found at $ac_find_libraries" 1>&6
14516         else
14517             cat > conftest.$ac_ext <<EOF
14518 #line 14519 "configure"
14519 #include "confdefs.h"
14520
14521                     #include <X11/xpm.h>
14522                 
14523 int main() {
14524
14525                     int version;
14526                     version = XpmLibraryVersion();
14527                 
14528 ; return 0; }
14529 EOF
14530 if { (eval echo configure:14531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14531   rm -rf conftest*
14532   
14533                     xpm_link=" -lXpm"
14534                     cat >> confdefs.h <<\EOF
14535 #define wxHAVE_LIB_XPM 1
14536 EOF
14537
14538                     echo "$ac_t""found in default search path" 1>&6
14539                     COMPILED_X_PROGRAM=0
14540                 
14541 else
14542   echo "configure: failed program was:" >&5
14543   cat conftest.$ac_ext >&5
14544   rm -rf conftest*
14545   
14546                     echo "$ac_t""no" 1>&6
14547                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14548                 
14549             
14550 fi
14551 rm -f conftest*
14552         fi
14553
14554         echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
14555 echo "configure:14556: checking if we need -lXp and/or -lSM -lICE" >&5
14556         libp_link=""
14557         libsm_ice_link=""
14558         libs_found=0
14559         for libp in "" " -lXp"; do
14560             if test "$libs_found" = "0"; then
14561                 for libsm_ice in " -lSM -lICE"; do
14562                     if test "$libs_found" = "0"; then                
14563                         save_LIBS="$LIBS"
14564                         LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
14565                         cat > conftest.$ac_ext <<EOF
14566 #line 14567 "configure"
14567 #include "confdefs.h"
14568
14569                                 #include <Xm/Xm.h>
14570                                 #include <Xm/List.h>
14571                             
14572 int main() {
14573
14574                                 XmString string = NULL;
14575                                 Widget w = NULL;
14576                                 int position = 0;
14577                                 XmListAddItem(w, string, position);
14578                             
14579 ; return 0; }
14580 EOF
14581 if { (eval echo configure:14582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
14582   rm -rf conftest*
14583   
14584                                 libp_link="$libp"
14585                                 libsm_ice_link="$libsm_ice"
14586                                 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
14587                                 libs_found=1
14588                             
14589 else
14590   echo "configure: failed program was:" >&5
14591   cat conftest.$ac_ext >&5
14592   rm -rf conftest*
14593   
14594                         
14595 fi
14596 rm -f conftest*
14597                         LIBS="$save_LIBS"
14598                     fi
14599                 done
14600             fi
14601         done
14602
14603         if test "$libs_found" = "0"; then
14604             echo "$ac_t""can't find the right libraries" 1>&6
14605             { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
14606         fi
14607
14608         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
14609         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14610         TOOLKIT=MOTIF
14611         GUIDIST=MOTIF_DIST
14612     fi
14613
14614     if test "$wxUSE_MAC" = 1; then
14615         if test "$wxUSE_PRECOMP" = "yes"; then
14616             CPPFLAGS="$CPPFLAGS -cpp-precomp"
14617         else
14618             CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14619         fi
14620         CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14621         CFLAGS="$CFLAGS -fpascal-strings"
14622         CXXFLAGS="$CXXFLAGS -fpascal-strings"
14623
14624         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14625         TOOLKIT=MAC
14626                 GUIDIST=MACX_DIST
14627     fi
14628
14629     if test "$wxUSE_PM" = 1; then
14630         TOOLKIT=PM
14631         GUIDIST=GTK_DIST
14632     fi
14633
14634         if test "$TOOLKIT" = "PM" ; then
14635         TOOLKIT_DIR="os2"
14636     else
14637         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14638     fi
14639
14640         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14641
14642     if test "$wxUSE_UNIVERSAL" = "yes"; then
14643         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14644
14645                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14646         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14647
14648         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14649         if test "$wxUSE_X11" = 1; then
14650             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14651         else
14652             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14653         fi
14654         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14655         WIDGET_SET=univ
14656     else
14657         ALL_OBJECTS="\$(GUIOBJS)"
14658         ALL_SOURCES="\$(ALL_SOURCES)"
14659         ALL_HEADERS="\$(ALL_HEADERS)"
14660     fi
14661
14662     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14663
14664     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14665         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14666     fi
14667
14668     if test "$wxUSE_HTML" = "yes"; then
14669         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14670     fi
14671
14672     if test "$wxUSE_LIBJPEG" = "builtin" ; then
14673         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14674     fi
14675     if test "$wxUSE_LIBTIFF" = "builtin" ; then
14676         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14677     fi
14678     if test "$wxUSE_LIBPNG" = "builtin" ; then
14679         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14680     fi
14681
14682         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14683     DISTDIR="wx\$(TOOLKIT)"
14684 else
14685     USE_GUI=0
14686
14687             TOOLKIT_DIR="base"
14688
14689         if test "$USE_WIN32" = 1 ; then
14690         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14691         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14692
14693                         TOOLKIT="MSW"
14694     else
14695         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14696         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14697     fi
14698
14699     ALL_SOURCES="\$(ALL_SOURCES)"
14700     ALL_HEADERS="\$(ALL_HEADERS)"
14701
14702     PORT_FILES="\${top_srcdir}/src/files.lst"
14703
14704         GUIDIST="BASE_DIST"
14705     DISTDIR="wxBase"
14706 fi
14707
14708
14709 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14710     ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
14711 fi
14712
14713 if test "$wxUSE_REGEX" = "builtin" ; then
14714     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
14715 fi
14716 if test "$wxUSE_ZLIB" = "builtin" ; then
14717     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
14718 fi
14719
14720
14721 if test "$wxUSE_OPENGL" = "yes"; then
14722     if test "$wxUSE_MAC" = 1; then
14723         OPENGL_LIBS="-framework OpenGL -framework AGL"
14724     elif test "$wxUSE_MSW" = 1; then
14725         OPENGL_LIBS="-lopengl32 -lglu32"
14726     else
14727         ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14728 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
14729 echo "configure:14730: checking for GL/gl.h" >&5
14730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14731   echo $ac_n "(cached) $ac_c" 1>&6
14732 else
14733   cat > conftest.$ac_ext <<EOF
14734 #line 14735 "configure"
14735 #include "confdefs.h"
14736 #include <GL/gl.h>
14737 EOF
14738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14739 { (eval echo configure:14740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14740 ac_err=`grep -v '^ *+' conftest.out`
14741 if test -z "$ac_err"; then
14742   rm -rf conftest*
14743   eval "ac_cv_header_$ac_safe=yes"
14744 else
14745   echo "$ac_err" >&5
14746   echo "configure: failed program was:" >&5
14747   cat conftest.$ac_ext >&5
14748   rm -rf conftest*
14749   eval "ac_cv_header_$ac_safe=no"
14750 fi
14751 rm -f conftest*
14752 fi
14753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14754   echo "$ac_t""yes" 1>&6
14755   
14756                 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
14757 echo "configure:14758: checking for -lGL" >&5
14758                 
14759 ac_find_libraries=
14760 for ac_dir in $SEARCH_LIB;
14761   do
14762     for ac_extension in a so sl dylib; do
14763       if test -f "$ac_dir/libGL.$ac_extension"; then
14764         ac_find_libraries=$ac_dir
14765         break 2
14766       fi
14767     done
14768   done
14769
14770                 if test "$ac_find_libraries" != "" ; then
14771                     
14772   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14773   result=$?
14774   if test $result = 0; then
14775     ac_path_to_link=""
14776   else
14777     ac_path_to_link=" -L$ac_find_libraries"
14778   fi
14779
14780                     if test "$ac_path_to_link" = " -L/usr/lib" ; then
14781                         LDFLAGS_GL="$LDFLAGS"
14782                     else
14783                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14784                     fi
14785                     OPENGL_LIBS="-lGL -lGLU"
14786                     echo "$ac_t""yes" 1>&6
14787                 else
14788                     echo "$ac_t""no" 1>&6
14789                     echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
14790 echo "configure:14791: checking for -lMesaGL" >&5
14791                     
14792 ac_find_libraries=
14793 for ac_dir in $SEARCH_LIB;
14794   do
14795     for ac_extension in a so sl dylib; do
14796       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14797         ac_find_libraries=$ac_dir
14798         break 2
14799       fi
14800     done
14801   done
14802
14803                     if test "$ac_find_libraries" != "" ; then
14804                         
14805   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14806   result=$?
14807   if test $result = 0; then
14808     ac_path_to_link=""
14809   else
14810     ac_path_to_link=" -L$ac_find_libraries"
14811   fi
14812
14813                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14814                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
14815                         echo "$ac_t""yes" 1>&6
14816                     else
14817                         echo "$ac_t""no" 1>&6
14818                     fi
14819                 fi
14820             
14821 else
14822   echo "$ac_t""no" 1>&6
14823 fi
14824
14825
14826         if test "x$OPENGL_LIBS" = "x"; then
14827                                                 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
14828         fi
14829     fi
14830
14831     if test "$wxUSE_OPENGL" = "yes"; then
14832         cat >> confdefs.h <<\EOF
14833 #define wxUSE_OPENGL 1
14834 EOF
14835
14836         cat >> confdefs.h <<\EOF
14837 #define wxUSE_GLCANVAS 1
14838 EOF
14839
14840         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
14841     fi
14842 fi
14843
14844 if test -z "$TOOLKIT_VPATH" ; then
14845     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
14846 fi
14847
14848 if test -n "$TOOLKIT" ; then
14849     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
14850 fi
14851
14852 lib_unicode_suffix=
14853 if test "$wxUSE_UNICODE" = "yes"; then
14854     lib_unicode_suffix=u
14855 fi
14856
14857 lib_debug_suffix=
14858 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
14859     lib_debug_suffix=d
14860 fi
14861
14862 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
14863 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
14864
14865 if test "$cross_compiling" = "yes"; then
14866     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
14867     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
14868 fi
14869
14870 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
14871 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
14872
14873 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14874 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14875
14876 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
14877 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
14878 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
14879 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14880
14881 case "${host}" in
14882     *-*-cygwin* | *-*-mingw32* )
14883
14884                         
14885         
14886         if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
14887             WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14888             WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14889             WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
14890             WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
14891         else
14892             WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
14893             WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14894         fi
14895         ;;
14896
14897     *-*-darwin* )
14898                         if test "$wxUSE_MAC" = 1; then
14899                         WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
14900             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
14901         fi
14902         ;;
14903 esac
14904
14905 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
14906 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
14907
14908 WXCONFIG_LIBS="-l${WX_LIBRARY}"
14909 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
14910
14911 if test "$wxUSE_OPENGL" = "yes"; then
14912     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
14913     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
14914 fi
14915
14916
14917
14918 if test "$wxUSE_SHARED" = "yes"; then
14919     case "${host}" in
14920       *-pc-os2_emx | *-pc-os2-emx | \
14921       *-pc-msdosdjgpp )
14922                 wxUSE_SHARED=no
14923         echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
14924       ;;
14925     esac
14926 fi
14927
14928 if test "$wxUSE_SHARED" = "yes"; then
14929
14930         if test "$wxUSE_OPENGL" = "yes"; then
14931         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
14932         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
14933     else
14934         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
14935         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
14936     fi
14937
14938         if test "$GCC" = "yes"; then
14939                 PIC_FLAG="-fPIC"
14940     fi
14941
14942         SHARED_LD="${CXX} -shared -o"
14943
14944     case "${host}" in
14945       *-hp-hpux* )
14946                 if test "$GCC" == "yes"; then
14947             SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
14948         else
14949                         LDFLAGS="$LDFLAGS -L/usr/lib"
14950
14951             SHARED_LD="${CXX} -b -o"
14952             PIC_FLAG="+Z"
14953         fi
14954
14955                 if test "$wxUSE_OPENGL" = "yes"; then
14956             WX_ALL_INSTALLED="preinstall_gl"
14957             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14958         else
14959             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14960         fi
14961       ;;
14962
14963       *-*-linux* )
14964         if test "$GCC" != "yes"; then
14965             echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
14966 echo "configure:14967: checking for Intel compiler" >&5
14967 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
14968   echo $ac_n "(cached) $ac_c" 1>&6
14969 else
14970   
14971                 cat > conftest.$ac_ext <<EOF
14972 #line 14973 "configure"
14973 #include "confdefs.h"
14974
14975 int main() {
14976
14977                         #ifndef __INTEL_COMPILER
14978                         #error Not icc
14979                         #endif
14980                     
14981 ; return 0; }
14982 EOF
14983 if { (eval echo configure:14984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14984   rm -rf conftest*
14985   wx_cv_prog_icc=yes
14986 else
14987   echo "configure: failed program was:" >&5
14988   cat conftest.$ac_ext >&5
14989   rm -rf conftest*
14990   wx_cv_prog_icc=no
14991                 
14992 fi
14993 rm -f conftest*
14994             
14995 fi
14996
14997 echo "$ac_t""$wx_cv_prog_icc" 1>&6
14998             if test "$wx_cv_prog_icc" = "yes"; then
14999                 PIC_FLAG="-KPIC"
15000             fi
15001         fi
15002
15003         if test "$wxUSE_SONAME" = "yes" ; then
15004             SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
15005             SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
15006                         WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
15007         fi
15008       ;;
15009
15010       *-*-solaris2* )
15011         if test "$GCC" = yes ; then
15012                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
15013         else
15014             SHARED_LD="${CXX} -G -o"
15015             PIC_FLAG="-KPIC"
15016             SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
15017             SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
15018         fi
15019       ;;
15020
15021       *-*-darwin* )
15022                         CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
15023         CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
15024                                         SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
15025         PIC_FLAG="-dynamic -fPIC"
15026         SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
15027         SONAME_FLAGS_GL=${SONAME_FLAGS}
15028       ;;
15029
15030       *-*-aix* )
15031                         # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
15032 set dummy makeC++SharedLib; ac_word=$2
15033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15034 echo "configure:15035: checking for $ac_word" >&5
15035 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
15036   echo $ac_n "(cached) $ac_c" 1>&6
15037 else
15038   if test -n "$AIX_CXX_LD"; then
15039   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
15040 else
15041   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15042   for ac_dir in $PATH; do
15043     test -z "$ac_dir" && ac_dir=.
15044     if test -f $ac_dir/$ac_word; then
15045       ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
15046       break
15047     fi
15048   done
15049   IFS="$ac_save_ifs"
15050   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
15051 fi
15052 fi
15053 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
15054 if test -n "$AIX_CXX_LD"; then
15055   echo "$ac_t""$AIX_CXX_LD" 1>&6
15056 else
15057   echo "$ac_t""no" 1>&6
15058 fi
15059
15060
15061         SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
15062       ;;
15063
15064       *-*-cygwin* | *-*-mingw32* )
15065
15066         WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
15067
15068         SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
15069         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
15070
15071         PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
15072
15073                 if test "$wxUSE_OPENGL" = "yes"; then
15074             WX_ALL_INSTALLED="preinstall_gl"
15075             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15076         else
15077             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15078         fi
15079       ;;
15080
15081       *-*-beos* )
15082                         SHARED_LD="${LD} -shared -o"
15083       ;;
15084
15085       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15086       *-*-sunos4* | \
15087       *-*-irix5* | *-*-irix6* | \
15088       *-*-osf* | \
15089       *-*-dgux5* | \
15090       *-*-sysv5* )
15091               ;;
15092
15093       *)
15094         { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
15095     esac
15096
15097         if test "x$WX_TARGET_LIBRARY" = "x"; then
15098         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15099         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15100     fi
15101
15102         WX_TARGET_LIBRARY_TYPE="so"
15103     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
15104 fi
15105
15106 if test "$wxUSE_SHARED" = "no"; then
15107
15108         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15109                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15110     fi
15111
15112     if test "$wxUSE_MAC" = 1; then
15113         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15114     fi
15115
15116     if test "$wxUSE_OPENGL" = "yes"; then
15117         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15118         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15119     else
15120         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15121     fi
15122
15123     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15124     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15125
15126     WX_TARGET_LIBRARY_TYPE="a"
15127     INSTALL_LIBRARY='$(INSTALL_DATA)'
15128 fi
15129
15130 if test "$wxUSE_MAC" = 1; then
15131         LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15132     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15133     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15134     # Extract the first word of "Rez", so it can be a program name with args.
15135 set dummy Rez; ac_word=$2
15136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15137 echo "configure:15138: checking for $ac_word" >&5
15138 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
15139   echo $ac_n "(cached) $ac_c" 1>&6
15140 else
15141   if test -n "$RESCOMP"; then
15142   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
15143 else
15144   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15145   for ac_dir in $PATH; do
15146     test -z "$ac_dir" && ac_dir=.
15147     if test -f $ac_dir/$ac_word; then
15148       ac_cv_prog_RESCOMP="Rez"
15149       break
15150     fi
15151   done
15152   IFS="$ac_save_ifs"
15153   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
15154 fi
15155 fi
15156 RESCOMP="$ac_cv_prog_RESCOMP"
15157 if test -n "$RESCOMP"; then
15158   echo "$ac_t""$RESCOMP" 1>&6
15159 else
15160   echo "$ac_t""no" 1>&6
15161 fi
15162
15163     # Extract the first word of "DeRez", so it can be a program name with args.
15164 set dummy DeRez; ac_word=$2
15165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15166 echo "configure:15167: checking for $ac_word" >&5
15167 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
15168   echo $ac_n "(cached) $ac_c" 1>&6
15169 else
15170   if test -n "$DEREZ"; then
15171   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
15172 else
15173   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15174   for ac_dir in $PATH; do
15175     test -z "$ac_dir" && ac_dir=.
15176     if test -f $ac_dir/$ac_word; then
15177       ac_cv_prog_DEREZ="DeRez"
15178       break
15179     fi
15180   done
15181   IFS="$ac_save_ifs"
15182   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
15183 fi
15184 fi
15185 DEREZ="$ac_cv_prog_DEREZ"
15186 if test -n "$DEREZ"; then
15187   echo "$ac_t""$DEREZ" 1>&6
15188 else
15189   echo "$ac_t""no" 1>&6
15190 fi
15191
15192     MACOSX_BUNDLE="bundle"
15193     if test "$wxUSE_SHARED" = "yes"; then
15194                 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15195         LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15196     else
15197                 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15198         LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15199     fi
15200 else
15201     if test "$wxUSE_PM" = 1; then
15202         LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
15203     fi
15204 fi
15205
15206
15207 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15208 echo "configure:15209: checking for ANSI C header files" >&5
15209 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
15210   echo $ac_n "(cached) $ac_c" 1>&6
15211 else
15212   cat > conftest.$ac_ext <<EOF
15213 #line 15214 "configure"
15214 #include "confdefs.h"
15215 #include <stdlib.h>
15216 #include <stdarg.h>
15217 #include <string.h>
15218 #include <float.h>
15219 EOF
15220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15221 { (eval echo configure:15222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15222 ac_err=`grep -v '^ *+' conftest.out`
15223 if test -z "$ac_err"; then
15224   rm -rf conftest*
15225   ac_cv_header_stdc=yes
15226 else
15227   echo "$ac_err" >&5
15228   echo "configure: failed program was:" >&5
15229   cat conftest.$ac_ext >&5
15230   rm -rf conftest*
15231   ac_cv_header_stdc=no
15232 fi
15233 rm -f conftest*
15234
15235 if test $ac_cv_header_stdc = yes; then
15236   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15237 cat > conftest.$ac_ext <<EOF
15238 #line 15239 "configure"
15239 #include "confdefs.h"
15240 #include <string.h>
15241 EOF
15242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15243   egrep "memchr" >/dev/null 2>&1; then
15244   :
15245 else
15246   rm -rf conftest*
15247   ac_cv_header_stdc=no
15248 fi
15249 rm -f conftest*
15250
15251 fi
15252
15253 if test $ac_cv_header_stdc = yes; then
15254   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15255 cat > conftest.$ac_ext <<EOF
15256 #line 15257 "configure"
15257 #include "confdefs.h"
15258 #include <stdlib.h>
15259 EOF
15260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15261   egrep "free" >/dev/null 2>&1; then
15262   :
15263 else
15264   rm -rf conftest*
15265   ac_cv_header_stdc=no
15266 fi
15267 rm -f conftest*
15268
15269 fi
15270
15271 if test $ac_cv_header_stdc = yes; then
15272   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15273 if test "$cross_compiling" = yes; then
15274   :
15275 else
15276   cat > conftest.$ac_ext <<EOF
15277 #line 15278 "configure"
15278 #include "confdefs.h"
15279 #include <ctype.h>
15280 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15281 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15283 int main () { int i; for (i = 0; i < 256; i++)
15284 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15285 exit (0); }
15286
15287 EOF
15288 if { (eval echo configure:15289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
15289 then
15290   :
15291 else
15292   echo "configure: failed program was:" >&5
15293   cat conftest.$ac_ext >&5
15294   rm -fr conftest*
15295   ac_cv_header_stdc=no
15296 fi
15297 rm -fr conftest*
15298 fi
15299
15300 fi
15301 fi
15302
15303 echo "$ac_t""$ac_cv_header_stdc" 1>&6
15304 if test $ac_cv_header_stdc = yes; then
15305   cat >> confdefs.h <<\EOF
15306 #define STDC_HEADERS 1
15307 EOF
15308
15309 fi
15310
15311 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15312 echo "configure:15313: checking for mode_t" >&5
15313 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
15314   echo $ac_n "(cached) $ac_c" 1>&6
15315 else
15316   cat > conftest.$ac_ext <<EOF
15317 #line 15318 "configure"
15318 #include "confdefs.h"
15319 #include <sys/types.h>
15320 #if STDC_HEADERS
15321 #include <stdlib.h>
15322 #include <stddef.h>
15323 #endif
15324 EOF
15325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15326   egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15327   rm -rf conftest*
15328   ac_cv_type_mode_t=yes
15329 else
15330   rm -rf conftest*
15331   ac_cv_type_mode_t=no
15332 fi
15333 rm -f conftest*
15334
15335 fi
15336 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15337 if test $ac_cv_type_mode_t = no; then
15338   cat >> confdefs.h <<\EOF
15339 #define mode_t int
15340 EOF
15341
15342 fi
15343
15344 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15345 echo "configure:15346: checking for off_t" >&5
15346 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
15347   echo $ac_n "(cached) $ac_c" 1>&6
15348 else
15349   cat > conftest.$ac_ext <<EOF
15350 #line 15351 "configure"
15351 #include "confdefs.h"
15352 #include <sys/types.h>
15353 #if STDC_HEADERS
15354 #include <stdlib.h>
15355 #include <stddef.h>
15356 #endif
15357 EOF
15358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15359   egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15360   rm -rf conftest*
15361   ac_cv_type_off_t=yes
15362 else
15363   rm -rf conftest*
15364   ac_cv_type_off_t=no
15365 fi
15366 rm -f conftest*
15367
15368 fi
15369 echo "$ac_t""$ac_cv_type_off_t" 1>&6
15370 if test $ac_cv_type_off_t = no; then
15371   cat >> confdefs.h <<\EOF
15372 #define off_t long
15373 EOF
15374
15375 fi
15376
15377 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15378 echo "configure:15379: checking for pid_t" >&5
15379 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
15380   echo $ac_n "(cached) $ac_c" 1>&6
15381 else
15382   cat > conftest.$ac_ext <<EOF
15383 #line 15384 "configure"
15384 #include "confdefs.h"
15385 #include <sys/types.h>
15386 #if STDC_HEADERS
15387 #include <stdlib.h>
15388 #include <stddef.h>
15389 #endif
15390 EOF
15391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15392   egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15393   rm -rf conftest*
15394   ac_cv_type_pid_t=yes
15395 else
15396   rm -rf conftest*
15397   ac_cv_type_pid_t=no
15398 fi
15399 rm -f conftest*
15400
15401 fi
15402 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15403 if test $ac_cv_type_pid_t = no; then
15404   cat >> confdefs.h <<\EOF
15405 #define pid_t int
15406 EOF
15407
15408 fi
15409
15410 echo $ac_n "checking for size_t""... $ac_c" 1>&6
15411 echo "configure:15412: checking for size_t" >&5
15412 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
15413   echo $ac_n "(cached) $ac_c" 1>&6
15414 else
15415   cat > conftest.$ac_ext <<EOF
15416 #line 15417 "configure"
15417 #include "confdefs.h"
15418 #include <sys/types.h>
15419 #if STDC_HEADERS
15420 #include <stdlib.h>
15421 #include <stddef.h>
15422 #endif
15423 EOF
15424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15425   egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15426   rm -rf conftest*
15427   ac_cv_type_size_t=yes
15428 else
15429   rm -rf conftest*
15430   ac_cv_type_size_t=no
15431 fi
15432 rm -f conftest*
15433
15434 fi
15435 echo "$ac_t""$ac_cv_type_size_t" 1>&6
15436 if test $ac_cv_type_size_t = no; then
15437   cat >> confdefs.h <<\EOF
15438 #define size_t unsigned
15439 EOF
15440
15441 fi
15442
15443 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15444 echo "configure:15445: checking for uid_t in sys/types.h" >&5
15445 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15446   echo $ac_n "(cached) $ac_c" 1>&6
15447 else
15448   cat > conftest.$ac_ext <<EOF
15449 #line 15450 "configure"
15450 #include "confdefs.h"
15451 #include <sys/types.h>
15452 EOF
15453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15454   egrep "uid_t" >/dev/null 2>&1; then
15455   rm -rf conftest*
15456   ac_cv_type_uid_t=yes
15457 else
15458   rm -rf conftest*
15459   ac_cv_type_uid_t=no
15460 fi
15461 rm -f conftest*
15462
15463 fi
15464
15465 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15466 if test $ac_cv_type_uid_t = no; then
15467   cat >> confdefs.h <<\EOF
15468 #define uid_t int
15469 EOF
15470
15471   cat >> confdefs.h <<\EOF
15472 #define gid_t int
15473 EOF
15474
15475 fi
15476
15477
15478
15479 ac_ext=C
15480 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15481 ac_cpp='$CXXCPP $CPPFLAGS'
15482 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15483 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15484 cross_compiling=$ac_cv_prog_cxx_cross
15485
15486 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
15487 echo "configure:15488: checking if size_t is unsigned int" >&5
15488 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15489   echo $ac_n "(cached) $ac_c" 1>&6
15490 else
15491                           cat > conftest.$ac_ext <<EOF
15492 #line 15493 "configure"
15493 #include "confdefs.h"
15494 #include <stddef.h>
15495 int main() {
15496
15497             return 0; }
15498
15499             struct Foo { void foo(size_t); void foo(unsigned int); };
15500
15501             int bar() {
15502         
15503 ; return 0; }
15504 EOF
15505 if { (eval echo configure:15506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15506   rm -rf conftest*
15507   wx_cv_size_t_is_uint=no
15508 else
15509   echo "configure: failed program was:" >&5
15510   cat conftest.$ac_ext >&5
15511   rm -rf conftest*
15512   wx_cv_size_t_is_uint=yes
15513     
15514 fi
15515 rm -f conftest*
15516
15517 fi
15518
15519 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
15520
15521 if test "$wx_cv_size_t_is_uint" = "yes"; then
15522     cat >> confdefs.h <<\EOF
15523 #define wxSIZE_T_IS_UINT 1
15524 EOF
15525
15526 else
15527     echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
15528 echo "configure:15529: checking if size_t is unsigned long" >&5
15529 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
15530   echo $ac_n "(cached) $ac_c" 1>&6
15531 else
15532   cat > conftest.$ac_ext <<EOF
15533 #line 15534 "configure"
15534 #include "confdefs.h"
15535 #include <stddef.h>
15536 int main() {
15537
15538                 return 0; }
15539
15540                 struct Foo { void foo(size_t); void foo(unsigned long); };
15541
15542                 int bar() {
15543             
15544 ; return 0; }
15545 EOF
15546 if { (eval echo configure:15547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15547   rm -rf conftest*
15548   wx_cv_size_t_is_ulong=no
15549 else
15550   echo "configure: failed program was:" >&5
15551   cat conftest.$ac_ext >&5
15552   rm -rf conftest*
15553   wx_cv_size_t_is_ulong=yes
15554         
15555 fi
15556 rm -f conftest*
15557     
15558 fi
15559
15560 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
15561
15562     if test "$wx_cv_size_t_is_ulong" = "yes"; then
15563         cat >> confdefs.h <<\EOF
15564 #define wxSIZE_T_IS_ULONG 1
15565 EOF
15566
15567     fi
15568 fi
15569
15570 ac_ext=c
15571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15572 ac_cpp='$CPP $CPPFLAGS'
15573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15574 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15575 cross_compiling=$ac_cv_prog_cc_cross
15576
15577
15578
15579 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
15580 echo "configure:15581: checking for pw_gecos in struct passwd" >&5
15581 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
15582   echo $ac_n "(cached) $ac_c" 1>&6
15583 else
15584   
15585         cat > conftest.$ac_ext <<EOF
15586 #line 15587 "configure"
15587 #include "confdefs.h"
15588 #include <pwd.h>
15589 int main() {
15590
15591                 char *p;
15592                 struct passwd *pw;
15593                 p = pw->pw_gecos;
15594              
15595 ; return 0; }
15596 EOF
15597 if { (eval echo configure:15598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15598   rm -rf conftest*
15599   
15600                 wx_cv_struct_pw_gecos=yes
15601              
15602 else
15603   echo "configure: failed program was:" >&5
15604   cat conftest.$ac_ext >&5
15605   rm -rf conftest*
15606   
15607                 wx_cv_struct_pw_gecos=no
15608              
15609         
15610 fi
15611 rm -f conftest*
15612     
15613
15614 fi
15615
15616 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
15617
15618 if test "$wx_cv_struct_pw_gecos" = "yes"; then
15619     cat >> confdefs.h <<\EOF
15620 #define HAVE_PW_GECOS 1
15621 EOF
15622
15623 fi
15624
15625
15626 WCHAR_OK=0
15627 if test "$wx_cv_sizeof_wchar_t" != "0"; then
15628         WCHAR_LINK=
15629     for ac_func in wcslen
15630 do
15631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15632 echo "configure:15633: checking for $ac_func" >&5
15633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15634   echo $ac_n "(cached) $ac_c" 1>&6
15635 else
15636   cat > conftest.$ac_ext <<EOF
15637 #line 15638 "configure"
15638 #include "confdefs.h"
15639 /* System header to define __stub macros and hopefully few prototypes,
15640     which can conflict with char $ac_func(); below.  */
15641 #include <assert.h>
15642 /* Override any gcc2 internal prototype to avoid an error.  */
15643 /* We use char because int might match the return type of a gcc2
15644     builtin and then its argument prototype would still apply.  */
15645 char $ac_func();
15646
15647 int main() {
15648
15649 /* The GNU C library defines this for functions which it implements
15650     to always fail with ENOSYS.  Some functions are actually named
15651     something starting with __ and the normal name is an alias.  */
15652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15653 choke me
15654 #else
15655 $ac_func();
15656 #endif
15657
15658 ; return 0; }
15659 EOF
15660 if { (eval echo configure:15661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
15661   rm -rf conftest*
15662   eval "ac_cv_func_$ac_func=yes"
15663 else
15664   echo "configure: failed program was:" >&5
15665   cat conftest.$ac_ext >&5
15666   rm -rf conftest*
15667   eval "ac_cv_func_$ac_func=no"
15668 fi
15669 rm -f conftest*
15670 fi
15671
15672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15673   echo "$ac_t""yes" 1>&6
15674     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15675   cat >> confdefs.h <<EOF
15676 #define $ac_tr_func 1
15677 EOF
15678  
15679                     cat >> confdefs.h <<\EOF
15680 #define HAVE_WCSLEN 1
15681 EOF
15682
15683                     WCHAR_OK=1
15684                   
15685 else
15686   echo "$ac_t""no" 1>&6
15687 fi
15688 done
15689
15690
15691     if test "$WCHAR_OK" = 0; then
15692         if test "$TOOLKIT" = "MSW"; then
15693             echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15694 echo "configure:15695: checking for wcslen in -lmsvcrt" >&5
15695 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15697   echo $ac_n "(cached) $ac_c" 1>&6
15698 else
15699   ac_save_LIBS="$LIBS"
15700 LIBS="-lmsvcrt  $LIBS"
15701 cat > conftest.$ac_ext <<EOF
15702 #line 15703 "configure"
15703 #include "confdefs.h"
15704 /* Override any gcc2 internal prototype to avoid an error.  */
15705 /* We use char because int might match the return type of a gcc2
15706     builtin and then its argument prototype would still apply.  */
15707 char wcslen();
15708
15709 int main() {
15710 wcslen()
15711 ; return 0; }
15712 EOF
15713 if { (eval echo configure:15714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
15714   rm -rf conftest*
15715   eval "ac_cv_lib_$ac_lib_var=yes"
15716 else
15717   echo "configure: failed program was:" >&5
15718   cat conftest.$ac_ext >&5
15719   rm -rf conftest*
15720   eval "ac_cv_lib_$ac_lib_var=no"
15721 fi
15722 rm -f conftest*
15723 LIBS="$ac_save_LIBS"
15724
15725 fi
15726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15727   echo "$ac_t""yes" 1>&6
15728   
15729                 cat >> confdefs.h <<\EOF
15730 #define HAVE_WCSLEN 1
15731 EOF
15732
15733                 WCHAR_OK=1
15734             
15735 else
15736   echo "$ac_t""no" 1>&6
15737 fi
15738
15739         else
15740             echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15741 echo "configure:15742: checking for wcslen in -lw" >&5
15742 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15743 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15744   echo $ac_n "(cached) $ac_c" 1>&6
15745 else
15746   ac_save_LIBS="$LIBS"
15747 LIBS="-lw  $LIBS"
15748 cat > conftest.$ac_ext <<EOF
15749 #line 15750 "configure"
15750 #include "confdefs.h"
15751 /* Override any gcc2 internal prototype to avoid an error.  */
15752 /* We use char because int might match the return type of a gcc2
15753     builtin and then its argument prototype would still apply.  */
15754 char wcslen();
15755
15756 int main() {
15757 wcslen()
15758 ; return 0; }
15759 EOF
15760 if { (eval echo configure:15761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
15761   rm -rf conftest*
15762   eval "ac_cv_lib_$ac_lib_var=yes"
15763 else
15764   echo "configure: failed program was:" >&5
15765   cat conftest.$ac_ext >&5
15766   rm -rf conftest*
15767   eval "ac_cv_lib_$ac_lib_var=no"
15768 fi
15769 rm -f conftest*
15770 LIBS="$ac_save_LIBS"
15771
15772 fi
15773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15774   echo "$ac_t""yes" 1>&6
15775   
15776                             cat >> confdefs.h <<\EOF
15777 #define HAVE_WCSLEN 1
15778 EOF
15779
15780                             WCHAR_LINK=" -lw"
15781                             WCHAR_OK=1
15782                         
15783 else
15784   echo "$ac_t""no" 1>&6
15785 fi
15786
15787         fi
15788     fi
15789 fi
15790
15791 if test "$WCHAR_OK" = 1; then
15792     cat >> confdefs.h <<\EOF
15793 #define wxUSE_WCHAR_T 1
15794 EOF
15795
15796
15797             for ac_func in wcsrtombs
15798 do
15799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15800 echo "configure:15801: checking for $ac_func" >&5
15801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15802   echo $ac_n "(cached) $ac_c" 1>&6
15803 else
15804   cat > conftest.$ac_ext <<EOF
15805 #line 15806 "configure"
15806 #include "confdefs.h"
15807 /* System header to define __stub macros and hopefully few prototypes,
15808     which can conflict with char $ac_func(); below.  */
15809 #include <assert.h>
15810 /* Override any gcc2 internal prototype to avoid an error.  */
15811 /* We use char because int might match the return type of a gcc2
15812     builtin and then its argument prototype would still apply.  */
15813 char $ac_func();
15814
15815 int main() {
15816
15817 /* The GNU C library defines this for functions which it implements
15818     to always fail with ENOSYS.  Some functions are actually named
15819     something starting with __ and the normal name is an alias.  */
15820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15821 choke me
15822 #else
15823 $ac_func();
15824 #endif
15825
15826 ; return 0; }
15827 EOF
15828 if { (eval echo configure:15829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
15829   rm -rf conftest*
15830   eval "ac_cv_func_$ac_func=yes"
15831 else
15832   echo "configure: failed program was:" >&5
15833   cat conftest.$ac_ext >&5
15834   rm -rf conftest*
15835   eval "ac_cv_func_$ac_func=no"
15836 fi
15837 rm -f conftest*
15838 fi
15839
15840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15841   echo "$ac_t""yes" 1>&6
15842     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15843   cat >> confdefs.h <<EOF
15844 #define $ac_tr_func 1
15845 EOF
15846  
15847 else
15848   echo "$ac_t""no" 1>&6
15849 fi
15850 done
15851
15852 else
15853         if test "$USE_DARWIN" = 1; then
15854         cat >> confdefs.h <<\EOF
15855 #define wxUSE_WCHAR_T 1
15856 EOF
15857
15858     else
15859         echo "configure: warning: Wide character support is unavailable" 1>&2
15860     fi
15861 fi
15862
15863 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15864 echo "configure:15865: checking for vprintf" >&5
15865 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
15866   echo $ac_n "(cached) $ac_c" 1>&6
15867 else
15868   cat > conftest.$ac_ext <<EOF
15869 #line 15870 "configure"
15870 #include "confdefs.h"
15871 /* System header to define __stub macros and hopefully few prototypes,
15872     which can conflict with char vprintf(); below.  */
15873 #include <assert.h>
15874 /* Override any gcc2 internal prototype to avoid an error.  */
15875 /* We use char because int might match the return type of a gcc2
15876     builtin and then its argument prototype would still apply.  */
15877 char vprintf();
15878
15879 int main() {
15880
15881 /* The GNU C library defines this for functions which it implements
15882     to always fail with ENOSYS.  Some functions are actually named
15883     something starting with __ and the normal name is an alias.  */
15884 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15885 choke me
15886 #else
15887 vprintf();
15888 #endif
15889
15890 ; return 0; }
15891 EOF
15892 if { (eval echo configure:15893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
15893   rm -rf conftest*
15894   eval "ac_cv_func_vprintf=yes"
15895 else
15896   echo "configure: failed program was:" >&5
15897   cat conftest.$ac_ext >&5
15898   rm -rf conftest*
15899   eval "ac_cv_func_vprintf=no"
15900 fi
15901 rm -f conftest*
15902 fi
15903
15904 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15905   echo "$ac_t""yes" 1>&6
15906   cat >> confdefs.h <<\EOF
15907 #define HAVE_VPRINTF 1
15908 EOF
15909
15910 else
15911   echo "$ac_t""no" 1>&6
15912 fi
15913
15914 if test "$ac_cv_func_vprintf" != yes; then
15915 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15916 echo "configure:15917: checking for _doprnt" >&5
15917 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
15918   echo $ac_n "(cached) $ac_c" 1>&6
15919 else
15920   cat > conftest.$ac_ext <<EOF
15921 #line 15922 "configure"
15922 #include "confdefs.h"
15923 /* System header to define __stub macros and hopefully few prototypes,
15924     which can conflict with char _doprnt(); below.  */
15925 #include <assert.h>
15926 /* Override any gcc2 internal prototype to avoid an error.  */
15927 /* We use char because int might match the return type of a gcc2
15928     builtin and then its argument prototype would still apply.  */
15929 char _doprnt();
15930
15931 int main() {
15932
15933 /* The GNU C library defines this for functions which it implements
15934     to always fail with ENOSYS.  Some functions are actually named
15935     something starting with __ and the normal name is an alias.  */
15936 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15937 choke me
15938 #else
15939 _doprnt();
15940 #endif
15941
15942 ; return 0; }
15943 EOF
15944 if { (eval echo configure:15945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
15945   rm -rf conftest*
15946   eval "ac_cv_func__doprnt=yes"
15947 else
15948   echo "configure: failed program was:" >&5
15949   cat conftest.$ac_ext >&5
15950   rm -rf conftest*
15951   eval "ac_cv_func__doprnt=no"
15952 fi
15953 rm -f conftest*
15954 fi
15955
15956 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15957   echo "$ac_t""yes" 1>&6
15958   cat >> confdefs.h <<\EOF
15959 #define HAVE_DOPRNT 1
15960 EOF
15961
15962 else
15963   echo "$ac_t""no" 1>&6
15964 fi
15965
15966 fi
15967
15968
15969
15970
15971
15972
15973 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
15974 echo "configure:15975: checking for vsnprintf" >&5
15975 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
15976   echo $ac_n "(cached) $ac_c" 1>&6
15977 else
15978   
15979   cat > conftest.$ac_ext <<EOF
15980 #line 15981 "configure"
15981 #include "confdefs.h"
15982
15983                     #include <stdio.h>
15984                     #include <stdarg.h>
15985                  
15986 int main() {
15987
15988                     int wx_test_vsnprintf(const char *, ...);
15989
15990                     wx_test_vsnprintf("%s");
15991                     return 0;
15992                  }
15993
15994                  int wx_test_vsnprintf(const char *fmt, ...)
15995                  {
15996                     char *s;
15997
15998                     va_list argp;
15999                     va_start(argp, fmt);
16000                     vsnprintf(s, 42, fmt, argp);
16001                     va_end(argp);
16002                  
16003 ; return 0; }
16004 EOF
16005 if { (eval echo configure:16006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16006   rm -rf conftest*
16007   
16008                     wx_cv_func_vsnprintf=yes
16009                  
16010 else
16011   echo "configure: failed program was:" >&5
16012   cat conftest.$ac_ext >&5
16013   rm -rf conftest*
16014   
16015                     cat > conftest.$ac_ext <<EOF
16016 #line 16017 "configure"
16017 #include "confdefs.h"
16018
16019                                       #include <stdio.h>
16020                                       #include <stdarg.h>
16021                                    
16022 int main() {
16023
16024                                       int wx_test_vsnprintf(const char *, ...);
16025
16026                                       wx_test_vsnprintf("%s");
16027                                       return 0;
16028                                    }
16029
16030                                    int wx_test_vsnprintf(const char *fmt, ...)
16031                                    {
16032                                       char *s;
16033
16034                                       va_list argp;
16035                                       va_start(argp, fmt);
16036                                       _vsnprintf(s, 42, fmt, argp);
16037                                       va_end(argp);
16038                                    
16039 ; return 0; }
16040 EOF
16041 if { (eval echo configure:16042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16042   rm -rf conftest*
16043   
16044                                       wx_cv_func_vsnprintf=yes
16045                                    
16046 else
16047   echo "configure: failed program was:" >&5
16048   cat conftest.$ac_ext >&5
16049   rm -rf conftest*
16050   
16051                                       wx_cv_func_vsnprintf=no
16052                                    
16053 fi
16054 rm -f conftest*
16055                  
16056 fi
16057 rm -f conftest*
16058
16059 fi
16060
16061 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
16062
16063 if test "$wx_cv_func_vsnprintf" = yes; then
16064     cat >> confdefs.h <<\EOF
16065 #define HAVE_VSNPRINTF 1
16066 EOF
16067
16068 else
16069     echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
16070 fi
16071
16072 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
16073 echo "configure:16074: checking for vsscanf" >&5
16074 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
16075   echo $ac_n "(cached) $ac_c" 1>&6
16076 else
16077   
16078   cat > conftest.$ac_ext <<EOF
16079 #line 16080 "configure"
16080 #include "confdefs.h"
16081
16082                     #include <stdio.h>
16083                     #include <stdarg.h>
16084                 
16085 int main() {
16086
16087                     int wx_test_vsscanf(const char *, ...);
16088
16089                     wx_test_vsscanf("%d");
16090                     return 0;
16091                 }
16092
16093                 int wx_test_vsscanf(const char *fmt, ...)
16094                 {
16095                     va_list argp;
16096                     va_start(argp, fmt);
16097                     vsscanf("42", fmt, argp);
16098                     va_end(argp);
16099                 
16100 ; return 0; }
16101 EOF
16102 if { (eval echo configure:16103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16103   rm -rf conftest*
16104   
16105                     wx_cv_func_vsscanf=yes
16106                 
16107 else
16108   echo "configure: failed program was:" >&5
16109   cat conftest.$ac_ext >&5
16110   rm -rf conftest*
16111   
16112                     wx_cv_func_vsscanf=no
16113                 
16114 fi
16115 rm -f conftest*
16116
16117 fi
16118
16119 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
16120
16121 if test "$wx_cv_func_vsscanf" = yes; then
16122     cat >> confdefs.h <<\EOF
16123 #define HAVE_VSSCANF 1
16124 EOF
16125
16126 fi
16127
16128 if test "$TOOLKIT" != "MSW"; then
16129
16130
16131
16132 ac_ext=C
16133 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16134 ac_cpp='$CXXCPP $CPPFLAGS'
16135 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16136 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16137 cross_compiling=$ac_cv_prog_cxx_cross
16138
16139
16140     
16141   # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16142 if test "${with_libiconv_prefix+set}" = set; then
16143   withval="$with_libiconv_prefix"
16144   
16145     for dir in `echo "$withval" | tr : ' '`; do
16146       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16147       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16148     done
16149    
16150 fi
16151
16152
16153   echo $ac_n "checking for iconv""... $ac_c" 1>&6
16154 echo "configure:16155: checking for iconv" >&5
16155 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
16156   echo $ac_n "(cached) $ac_c" 1>&6
16157 else
16158   
16159     am_cv_func_iconv="no, consider installing GNU libiconv"
16160     am_cv_lib_iconv=no
16161     cat > conftest.$ac_ext <<EOF
16162 #line 16163 "configure"
16163 #include "confdefs.h"
16164 #include <stdlib.h>
16165 #include <iconv.h>
16166 int main() {
16167 iconv_t cd = iconv_open("","");
16168        iconv(cd,NULL,NULL,NULL,NULL);
16169        iconv_close(cd);
16170 ; return 0; }
16171 EOF
16172 if { (eval echo configure:16173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16173   rm -rf conftest*
16174   am_cv_func_iconv=yes
16175 else
16176   echo "configure: failed program was:" >&5
16177   cat conftest.$ac_ext >&5
16178 fi
16179 rm -f conftest*
16180     if test "$am_cv_func_iconv" != yes; then
16181       am_save_LIBS="$LIBS"
16182       LIBS="$LIBS -liconv"
16183       cat > conftest.$ac_ext <<EOF
16184 #line 16185 "configure"
16185 #include "confdefs.h"
16186 #include <stdlib.h>
16187 #include <iconv.h>
16188 int main() {
16189 iconv_t cd = iconv_open("","");
16190          iconv(cd,NULL,NULL,NULL,NULL);
16191          iconv_close(cd);
16192 ; return 0; }
16193 EOF
16194 if { (eval echo configure:16195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16195   rm -rf conftest*
16196   am_cv_lib_iconv=yes
16197         am_cv_func_iconv=yes
16198 else
16199   echo "configure: failed program was:" >&5
16200   cat conftest.$ac_ext >&5
16201 fi
16202 rm -f conftest*
16203       LIBS="$am_save_LIBS"
16204     fi
16205   
16206 fi
16207
16208 echo "$ac_t""$am_cv_func_iconv" 1>&6
16209   if test "$am_cv_func_iconv" = yes; then
16210     cat >> confdefs.h <<\EOF
16211 #define HAVE_ICONV 1
16212 EOF
16213
16214     echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
16215 echo "configure:16216: checking if iconv needs const" >&5
16216 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
16217   echo $ac_n "(cached) $ac_c" 1>&6
16218 else
16219   cat > conftest.$ac_ext <<EOF
16220 #line 16221 "configure"
16221 #include "confdefs.h"
16222
16223 #include <stdlib.h>
16224 #include <iconv.h>
16225 extern
16226 #ifdef __cplusplus
16227 "C"
16228 #endif
16229 #if defined(__STDC__) || defined(__cplusplus)
16230 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16231 #else
16232 size_t iconv();
16233 #endif
16234         
16235 int main() {
16236
16237 ; return 0; }
16238 EOF
16239 if { (eval echo configure:16240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16240   rm -rf conftest*
16241   wx_cv_func_iconv_const="no"
16242 else
16243   echo "configure: failed program was:" >&5
16244   cat conftest.$ac_ext >&5
16245   rm -rf conftest*
16246   wx_cv_func_iconv_const="yes"
16247       
16248 fi
16249 rm -f conftest*
16250     
16251 fi
16252
16253 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16254
16255     iconv_const=
16256     if test "x$wx_cv_func_iconv_const" = "xyes"; then
16257         iconv_const="const"
16258     fi
16259
16260     cat >> confdefs.h <<EOF
16261 #define ICONV_CONST 1
16262 EOF
16263
16264   fi
16265   LIBICONV=
16266   if test "$am_cv_lib_iconv" = yes; then
16267     LIBICONV="-liconv"
16268   fi
16269   
16270
16271 LIBS="$LIBICONV $LIBS"
16272 ac_ext=c
16273 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16274 ac_cpp='$CPP $CPPFLAGS'
16275 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16276 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16277 cross_compiling=$ac_cv_prog_cc_cross
16278
16279
16280 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16281     for ac_func in sigaction
16282 do
16283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16284 echo "configure:16285: checking for $ac_func" >&5
16285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16286   echo $ac_n "(cached) $ac_c" 1>&6
16287 else
16288   cat > conftest.$ac_ext <<EOF
16289 #line 16290 "configure"
16290 #include "confdefs.h"
16291 /* System header to define __stub macros and hopefully few prototypes,
16292     which can conflict with char $ac_func(); below.  */
16293 #include <assert.h>
16294 /* Override any gcc2 internal prototype to avoid an error.  */
16295 /* We use char because int might match the return type of a gcc2
16296     builtin and then its argument prototype would still apply.  */
16297 char $ac_func();
16298
16299 int main() {
16300
16301 /* The GNU C library defines this for functions which it implements
16302     to always fail with ENOSYS.  Some functions are actually named
16303     something starting with __ and the normal name is an alias.  */
16304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16305 choke me
16306 #else
16307 $ac_func();
16308 #endif
16309
16310 ; return 0; }
16311 EOF
16312 if { (eval echo configure:16313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16313   rm -rf conftest*
16314   eval "ac_cv_func_$ac_func=yes"
16315 else
16316   echo "configure: failed program was:" >&5
16317   cat conftest.$ac_ext >&5
16318   rm -rf conftest*
16319   eval "ac_cv_func_$ac_func=no"
16320 fi
16321 rm -f conftest*
16322 fi
16323
16324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16325   echo "$ac_t""yes" 1>&6
16326     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16327   cat >> confdefs.h <<EOF
16328 #define $ac_tr_func 1
16329 EOF
16330  
16331 else
16332   echo "$ac_t""no" 1>&6
16333 fi
16334 done
16335
16336
16337     if test "$ac_cv_func_sigaction" = "no"; then
16338         echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16339         wxUSE_ON_FATAL_EXCEPTION=no
16340     fi
16341
16342     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16343       
16344       ac_ext=C
16345 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16346 ac_cpp='$CXXCPP $CPPFLAGS'
16347 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16348 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16349 cross_compiling=$ac_cv_prog_cxx_cross
16350
16351
16352       echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
16353 echo "configure:16354: checking for sa_handler type" >&5
16354 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16355   echo $ac_n "(cached) $ac_c" 1>&6
16356 else
16357   
16358         cat > conftest.$ac_ext <<EOF
16359 #line 16360 "configure"
16360 #include "confdefs.h"
16361 #include <signal.h>
16362 int main() {
16363
16364                         extern void testSigHandler(int);
16365
16366                         struct sigaction sa;
16367                         sa.sa_handler = testSigHandler;
16368                      
16369 ; return 0; }
16370 EOF
16371 if { (eval echo configure:16372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16372   rm -rf conftest*
16373   
16374                         wx_cv_type_sa_handler=int
16375                      
16376 else
16377   echo "configure: failed program was:" >&5
16378   cat conftest.$ac_ext >&5
16379   rm -rf conftest*
16380   
16381                         wx_cv_type_sa_handler=void
16382                      
16383 fi
16384 rm -f conftest*
16385       
16386 fi
16387
16388 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16389
16390       ac_ext=c
16391 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16392 ac_cpp='$CPP $CPPFLAGS'
16393 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16394 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16395 cross_compiling=$ac_cv_prog_cc_cross
16396
16397
16398       cat >> confdefs.h <<EOF
16399 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
16400 EOF
16401
16402     fi
16403 fi
16404
16405 for ac_func in vfork
16406 do
16407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16408 echo "configure:16409: checking for $ac_func" >&5
16409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16410   echo $ac_n "(cached) $ac_c" 1>&6
16411 else
16412   cat > conftest.$ac_ext <<EOF
16413 #line 16414 "configure"
16414 #include "confdefs.h"
16415 /* System header to define __stub macros and hopefully few prototypes,
16416     which can conflict with char $ac_func(); below.  */
16417 #include <assert.h>
16418 /* Override any gcc2 internal prototype to avoid an error.  */
16419 /* We use char because int might match the return type of a gcc2
16420     builtin and then its argument prototype would still apply.  */
16421 char $ac_func();
16422
16423 int main() {
16424
16425 /* The GNU C library defines this for functions which it implements
16426     to always fail with ENOSYS.  Some functions are actually named
16427     something starting with __ and the normal name is an alias.  */
16428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16429 choke me
16430 #else
16431 $ac_func();
16432 #endif
16433
16434 ; return 0; }
16435 EOF
16436 if { (eval echo configure:16437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16437   rm -rf conftest*
16438   eval "ac_cv_func_$ac_func=yes"
16439 else
16440   echo "configure: failed program was:" >&5
16441   cat conftest.$ac_ext >&5
16442   rm -rf conftest*
16443   eval "ac_cv_func_$ac_func=no"
16444 fi
16445 rm -f conftest*
16446 fi
16447
16448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16449   echo "$ac_t""yes" 1>&6
16450     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16451   cat >> confdefs.h <<EOF
16452 #define $ac_tr_func 1
16453 EOF
16454  
16455 else
16456   echo "$ac_t""no" 1>&6
16457 fi
16458 done
16459
16460
16461 for ac_func in mkstemp mktemp
16462 do
16463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16464 echo "configure:16465: checking for $ac_func" >&5
16465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16466   echo $ac_n "(cached) $ac_c" 1>&6
16467 else
16468   cat > conftest.$ac_ext <<EOF
16469 #line 16470 "configure"
16470 #include "confdefs.h"
16471 /* System header to define __stub macros and hopefully few prototypes,
16472     which can conflict with char $ac_func(); below.  */
16473 #include <assert.h>
16474 /* Override any gcc2 internal prototype to avoid an error.  */
16475 /* We use char because int might match the return type of a gcc2
16476     builtin and then its argument prototype would still apply.  */
16477 char $ac_func();
16478
16479 int main() {
16480
16481 /* The GNU C library defines this for functions which it implements
16482     to always fail with ENOSYS.  Some functions are actually named
16483     something starting with __ and the normal name is an alias.  */
16484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16485 choke me
16486 #else
16487 $ac_func();
16488 #endif
16489
16490 ; return 0; }
16491 EOF
16492 if { (eval echo configure:16493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16493   rm -rf conftest*
16494   eval "ac_cv_func_$ac_func=yes"
16495 else
16496   echo "configure: failed program was:" >&5
16497   cat conftest.$ac_ext >&5
16498   rm -rf conftest*
16499   eval "ac_cv_func_$ac_func=no"
16500 fi
16501 rm -f conftest*
16502 fi
16503
16504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16505   echo "$ac_t""yes" 1>&6
16506     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16507   cat >> confdefs.h <<EOF
16508 #define $ac_tr_func 1
16509 EOF
16510  break
16511 else
16512   echo "$ac_t""no" 1>&6
16513 fi
16514 done
16515
16516
16517 echo $ac_n "checking for statfs""... $ac_c" 1>&6
16518 echo "configure:16519: checking for statfs" >&5
16519 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16520   echo $ac_n "(cached) $ac_c" 1>&6
16521 else
16522   cat > conftest.$ac_ext <<EOF
16523 #line 16524 "configure"
16524 #include "confdefs.h"
16525
16526              #if defined(__BSD__)
16527                #include <sys/param.h>
16528                #include <sys/mount.h>
16529              #else
16530                #include <sys/vfs.h>
16531              #endif
16532         
16533 int main() {
16534
16535              long l;
16536              struct statfs fs;
16537              statfs("/", &fs);
16538              l = fs.f_bsize;
16539              l += fs.f_blocks;
16540              l += fs.f_bavail;
16541         
16542 ; return 0; }
16543 EOF
16544 if { (eval echo configure:16545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16545   rm -rf conftest*
16546   
16547              wx_cv_func_statfs=yes
16548         
16549 else
16550   echo "configure: failed program was:" >&5
16551   cat conftest.$ac_ext >&5
16552   rm -rf conftest*
16553   
16554              wx_cv_func_statfs=no
16555         
16556     
16557 fi
16558 rm -f conftest*
16559
16560 fi
16561
16562 echo "$ac_t""$wx_cv_func_statfs" 1>&6
16563
16564 if test "$wx_cv_func_statfs" = "yes"; then
16565     cat >> confdefs.h <<\EOF
16566 #define HAVE_STATFS 1
16567 EOF
16568
16569 else
16570     echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16571 echo "configure:16572: checking for statvfs" >&5
16572 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16573   echo $ac_n "(cached) $ac_c" 1>&6
16574 else
16575   cat > conftest.$ac_ext <<EOF
16576 #line 16577 "configure"
16577 #include "confdefs.h"
16578
16579                  #include <sys/statvfs.h>
16580             
16581 int main() {
16582
16583                  long l;
16584                  struct statvfs fs;
16585                  statvfs("/", &fs);
16586                  l = fs.f_bsize;
16587                  l += fs.f_blocks;
16588                  l += fs.f_bavail;
16589             
16590 ; return 0; }
16591 EOF
16592 if { (eval echo configure:16593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16593   rm -rf conftest*
16594   
16595                  wx_cv_func_statvfs=yes
16596             
16597 else
16598   echo "configure: failed program was:" >&5
16599   cat conftest.$ac_ext >&5
16600   rm -rf conftest*
16601   
16602                  wx_cv_func_statvfs=no
16603             
16604         
16605 fi
16606 rm -f conftest*
16607     
16608 fi
16609
16610 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16611
16612     if test "$wx_cv_func_statvfs" = "yes"; then
16613         cat >> confdefs.h <<\EOF
16614 #define HAVE_STATVFS 1
16615 EOF
16616
16617     else
16618         echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16619     fi
16620 fi
16621
16622 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16623     for ac_func in fcntl flock
16624 do
16625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16626 echo "configure:16627: checking for $ac_func" >&5
16627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16628   echo $ac_n "(cached) $ac_c" 1>&6
16629 else
16630   cat > conftest.$ac_ext <<EOF
16631 #line 16632 "configure"
16632 #include "confdefs.h"
16633 /* System header to define __stub macros and hopefully few prototypes,
16634     which can conflict with char $ac_func(); below.  */
16635 #include <assert.h>
16636 /* Override any gcc2 internal prototype to avoid an error.  */
16637 /* We use char because int might match the return type of a gcc2
16638     builtin and then its argument prototype would still apply.  */
16639 char $ac_func();
16640
16641 int main() {
16642
16643 /* The GNU C library defines this for functions which it implements
16644     to always fail with ENOSYS.  Some functions are actually named
16645     something starting with __ and the normal name is an alias.  */
16646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16647 choke me
16648 #else
16649 $ac_func();
16650 #endif
16651
16652 ; return 0; }
16653 EOF
16654 if { (eval echo configure:16655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16655   rm -rf conftest*
16656   eval "ac_cv_func_$ac_func=yes"
16657 else
16658   echo "configure: failed program was:" >&5
16659   cat conftest.$ac_ext >&5
16660   rm -rf conftest*
16661   eval "ac_cv_func_$ac_func=no"
16662 fi
16663 rm -f conftest*
16664 fi
16665
16666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16667   echo "$ac_t""yes" 1>&6
16668     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16669   cat >> confdefs.h <<EOF
16670 #define $ac_tr_func 1
16671 EOF
16672  break
16673 else
16674   echo "$ac_t""no" 1>&6
16675 fi
16676 done
16677
16678
16679     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16680         echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16681         wxUSE_SNGLINST_CHECKER=no
16682     fi
16683 fi
16684
16685 for ac_func in timegm
16686 do
16687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16688 echo "configure:16689: checking for $ac_func" >&5
16689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16690   echo $ac_n "(cached) $ac_c" 1>&6
16691 else
16692   cat > conftest.$ac_ext <<EOF
16693 #line 16694 "configure"
16694 #include "confdefs.h"
16695 /* System header to define __stub macros and hopefully few prototypes,
16696     which can conflict with char $ac_func(); below.  */
16697 #include <assert.h>
16698 /* Override any gcc2 internal prototype to avoid an error.  */
16699 /* We use char because int might match the return type of a gcc2
16700     builtin and then its argument prototype would still apply.  */
16701 char $ac_func();
16702
16703 int main() {
16704
16705 /* The GNU C library defines this for functions which it implements
16706     to always fail with ENOSYS.  Some functions are actually named
16707     something starting with __ and the normal name is an alias.  */
16708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16709 choke me
16710 #else
16711 $ac_func();
16712 #endif
16713
16714 ; return 0; }
16715 EOF
16716 if { (eval echo configure:16717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16717   rm -rf conftest*
16718   eval "ac_cv_func_$ac_func=yes"
16719 else
16720   echo "configure: failed program was:" >&5
16721   cat conftest.$ac_ext >&5
16722   rm -rf conftest*
16723   eval "ac_cv_func_$ac_func=no"
16724 fi
16725 rm -f conftest*
16726 fi
16727
16728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16729   echo "$ac_t""yes" 1>&6
16730     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16731   cat >> confdefs.h <<EOF
16732 #define $ac_tr_func 1
16733 EOF
16734  
16735 else
16736   echo "$ac_t""no" 1>&6
16737 fi
16738 done
16739
16740
16741 for ac_func in putenv setenv
16742 do
16743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16744 echo "configure:16745: checking for $ac_func" >&5
16745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16746   echo $ac_n "(cached) $ac_c" 1>&6
16747 else
16748   cat > conftest.$ac_ext <<EOF
16749 #line 16750 "configure"
16750 #include "confdefs.h"
16751 /* System header to define __stub macros and hopefully few prototypes,
16752     which can conflict with char $ac_func(); below.  */
16753 #include <assert.h>
16754 /* Override any gcc2 internal prototype to avoid an error.  */
16755 /* We use char because int might match the return type of a gcc2
16756     builtin and then its argument prototype would still apply.  */
16757 char $ac_func();
16758
16759 int main() {
16760
16761 /* The GNU C library defines this for functions which it implements
16762     to always fail with ENOSYS.  Some functions are actually named
16763     something starting with __ and the normal name is an alias.  */
16764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16765 choke me
16766 #else
16767 $ac_func();
16768 #endif
16769
16770 ; return 0; }
16771 EOF
16772 if { (eval echo configure:16773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16773   rm -rf conftest*
16774   eval "ac_cv_func_$ac_func=yes"
16775 else
16776   echo "configure: failed program was:" >&5
16777   cat conftest.$ac_ext >&5
16778   rm -rf conftest*
16779   eval "ac_cv_func_$ac_func=no"
16780 fi
16781 rm -f conftest*
16782 fi
16783
16784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16785   echo "$ac_t""yes" 1>&6
16786     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16787   cat >> confdefs.h <<EOF
16788 #define $ac_tr_func 1
16789 EOF
16790  break
16791 else
16792   echo "$ac_t""no" 1>&6
16793 fi
16794 done
16795
16796
16797 HAVE_SOME_SLEEP_FUNC=0
16798 if test "$USE_BEOS" = 1; then
16799             cat >> confdefs.h <<\EOF
16800 #define HAVE_SLEEP 1
16801 EOF
16802
16803     HAVE_SOME_SLEEP_FUNC=1
16804 fi
16805
16806 if test "$USE_DARWIN" = 1; then
16807             cat >> confdefs.h <<\EOF
16808 #define HAVE_USLEEP 1
16809 EOF
16810
16811     HAVE_SOME_SLEEP_FUNC=1
16812 fi
16813
16814 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16815         POSIX4_LINK=
16816     for ac_func in nanosleep
16817 do
16818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16819 echo "configure:16820: checking for $ac_func" >&5
16820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16821   echo $ac_n "(cached) $ac_c" 1>&6
16822 else
16823   cat > conftest.$ac_ext <<EOF
16824 #line 16825 "configure"
16825 #include "confdefs.h"
16826 /* System header to define __stub macros and hopefully few prototypes,
16827     which can conflict with char $ac_func(); below.  */
16828 #include <assert.h>
16829 /* Override any gcc2 internal prototype to avoid an error.  */
16830 /* We use char because int might match the return type of a gcc2
16831     builtin and then its argument prototype would still apply.  */
16832 char $ac_func();
16833
16834 int main() {
16835
16836 /* The GNU C library defines this for functions which it implements
16837     to always fail with ENOSYS.  Some functions are actually named
16838     something starting with __ and the normal name is an alias.  */
16839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16840 choke me
16841 #else
16842 $ac_func();
16843 #endif
16844
16845 ; return 0; }
16846 EOF
16847 if { (eval echo configure:16848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16848   rm -rf conftest*
16849   eval "ac_cv_func_$ac_func=yes"
16850 else
16851   echo "configure: failed program was:" >&5
16852   cat conftest.$ac_ext >&5
16853   rm -rf conftest*
16854   eval "ac_cv_func_$ac_func=no"
16855 fi
16856 rm -f conftest*
16857 fi
16858
16859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16860   echo "$ac_t""yes" 1>&6
16861     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16862   cat >> confdefs.h <<EOF
16863 #define $ac_tr_func 1
16864 EOF
16865  cat >> confdefs.h <<\EOF
16866 #define HAVE_NANOSLEEP 1
16867 EOF
16868
16869 else
16870   echo "$ac_t""no" 1>&6
16871 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16872 echo "configure:16873: checking for nanosleep in -lposix4" >&5
16873 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16875   echo $ac_n "(cached) $ac_c" 1>&6
16876 else
16877   ac_save_LIBS="$LIBS"
16878 LIBS="-lposix4  $LIBS"
16879 cat > conftest.$ac_ext <<EOF
16880 #line 16881 "configure"
16881 #include "confdefs.h"
16882 /* Override any gcc2 internal prototype to avoid an error.  */
16883 /* We use char because int might match the return type of a gcc2
16884     builtin and then its argument prototype would still apply.  */
16885 char nanosleep();
16886
16887 int main() {
16888 nanosleep()
16889 ; return 0; }
16890 EOF
16891 if { (eval echo configure:16892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16892   rm -rf conftest*
16893   eval "ac_cv_lib_$ac_lib_var=yes"
16894 else
16895   echo "configure: failed program was:" >&5
16896   cat conftest.$ac_ext >&5
16897   rm -rf conftest*
16898   eval "ac_cv_lib_$ac_lib_var=no"
16899 fi
16900 rm -f conftest*
16901 LIBS="$ac_save_LIBS"
16902
16903 fi
16904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16905   echo "$ac_t""yes" 1>&6
16906   
16907                     cat >> confdefs.h <<\EOF
16908 #define HAVE_NANOSLEEP 1
16909 EOF
16910
16911                     POSIX4_LINK=" -lposix4"
16912                 
16913 else
16914   echo "$ac_t""no" 1>&6
16915
16916                     for ac_func in usleep
16917 do
16918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16919 echo "configure:16920: checking for $ac_func" >&5
16920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16921   echo $ac_n "(cached) $ac_c" 1>&6
16922 else
16923   cat > conftest.$ac_ext <<EOF
16924 #line 16925 "configure"
16925 #include "confdefs.h"
16926 /* System header to define __stub macros and hopefully few prototypes,
16927     which can conflict with char $ac_func(); below.  */
16928 #include <assert.h>
16929 /* Override any gcc2 internal prototype to avoid an error.  */
16930 /* We use char because int might match the return type of a gcc2
16931     builtin and then its argument prototype would still apply.  */
16932 char $ac_func();
16933
16934 int main() {
16935
16936 /* The GNU C library defines this for functions which it implements
16937     to always fail with ENOSYS.  Some functions are actually named
16938     something starting with __ and the normal name is an alias.  */
16939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16940 choke me
16941 #else
16942 $ac_func();
16943 #endif
16944
16945 ; return 0; }
16946 EOF
16947 if { (eval echo configure:16948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16948   rm -rf conftest*
16949   eval "ac_cv_func_$ac_func=yes"
16950 else
16951   echo "configure: failed program was:" >&5
16952   cat conftest.$ac_ext >&5
16953   rm -rf conftest*
16954   eval "ac_cv_func_$ac_func=no"
16955 fi
16956 rm -f conftest*
16957 fi
16958
16959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16960   echo "$ac_t""yes" 1>&6
16961     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16962   cat >> confdefs.h <<EOF
16963 #define $ac_tr_func 1
16964 EOF
16965  cat >> confdefs.h <<\EOF
16966 #define HAVE_USLEEP 1
16967 EOF
16968
16969 else
16970   echo "$ac_t""no" 1>&6
16971 echo "configure: warning: wxSleep() function will not work" 1>&2
16972                     
16973 fi
16974 done
16975
16976                 
16977             
16978 fi
16979
16980         
16981     
16982 fi
16983 done
16984
16985 fi
16986
16987 for ac_func in uname gethostname
16988 do
16989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16990 echo "configure:16991: checking for $ac_func" >&5
16991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16992   echo $ac_n "(cached) $ac_c" 1>&6
16993 else
16994   cat > conftest.$ac_ext <<EOF
16995 #line 16996 "configure"
16996 #include "confdefs.h"
16997 /* System header to define __stub macros and hopefully few prototypes,
16998     which can conflict with char $ac_func(); below.  */
16999 #include <assert.h>
17000 /* Override any gcc2 internal prototype to avoid an error.  */
17001 /* We use char because int might match the return type of a gcc2
17002     builtin and then its argument prototype would still apply.  */
17003 char $ac_func();
17004
17005 int main() {
17006
17007 /* The GNU C library defines this for functions which it implements
17008     to always fail with ENOSYS.  Some functions are actually named
17009     something starting with __ and the normal name is an alias.  */
17010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17011 choke me
17012 #else
17013 $ac_func();
17014 #endif
17015
17016 ; return 0; }
17017 EOF
17018 if { (eval echo configure:17019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17019   rm -rf conftest*
17020   eval "ac_cv_func_$ac_func=yes"
17021 else
17022   echo "configure: failed program was:" >&5
17023   cat conftest.$ac_ext >&5
17024   rm -rf conftest*
17025   eval "ac_cv_func_$ac_func=no"
17026 fi
17027 rm -f conftest*
17028 fi
17029
17030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17031   echo "$ac_t""yes" 1>&6
17032     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17033   cat >> confdefs.h <<EOF
17034 #define $ac_tr_func 1
17035 EOF
17036  break
17037 else
17038   echo "$ac_t""no" 1>&6
17039 fi
17040 done
17041
17042
17043
17044 ac_ext=C
17045 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17046 ac_cpp='$CXXCPP $CPPFLAGS'
17047 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17048 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17049 cross_compiling=$ac_cv_prog_cxx_cross
17050
17051
17052 for ac_func in strtok_r
17053 do
17054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17055 echo "configure:17056: checking for $ac_func" >&5
17056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17057   echo $ac_n "(cached) $ac_c" 1>&6
17058 else
17059   cat > conftest.$ac_ext <<EOF
17060 #line 17061 "configure"
17061 #include "confdefs.h"
17062 /* System header to define __stub macros and hopefully few prototypes,
17063     which can conflict with char $ac_func(); below.  */
17064 #include <assert.h>
17065 /* Override any gcc2 internal prototype to avoid an error.  */
17066 #ifdef __cplusplus
17067 extern "C"
17068 #endif
17069 /* We use char because int might match the return type of a gcc2
17070     builtin and then its argument prototype would still apply.  */
17071 char $ac_func();
17072
17073 int main() {
17074
17075 /* The GNU C library defines this for functions which it implements
17076     to always fail with ENOSYS.  Some functions are actually named
17077     something starting with __ and the normal name is an alias.  */
17078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17079 choke me
17080 #else
17081 $ac_func();
17082 #endif
17083
17084 ; return 0; }
17085 EOF
17086 if { (eval echo configure:17087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17087   rm -rf conftest*
17088   eval "ac_cv_func_$ac_func=yes"
17089 else
17090   echo "configure: failed program was:" >&5
17091   cat conftest.$ac_ext >&5
17092   rm -rf conftest*
17093   eval "ac_cv_func_$ac_func=no"
17094 fi
17095 rm -f conftest*
17096 fi
17097
17098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17099   echo "$ac_t""yes" 1>&6
17100     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17101   cat >> confdefs.h <<EOF
17102 #define $ac_tr_func 1
17103 EOF
17104  
17105 else
17106   echo "$ac_t""no" 1>&6
17107 fi
17108 done
17109
17110
17111 ac_ext=c
17112 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17113 ac_cpp='$CPP $CPPFLAGS'
17114 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17115 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17116 cross_compiling=$ac_cv_prog_cc_cross
17117
17118
17119 INET_LINK=
17120 for ac_func in inet_addr
17121 do
17122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17123 echo "configure:17124: checking for $ac_func" >&5
17124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17125   echo $ac_n "(cached) $ac_c" 1>&6
17126 else
17127   cat > conftest.$ac_ext <<EOF
17128 #line 17129 "configure"
17129 #include "confdefs.h"
17130 /* System header to define __stub macros and hopefully few prototypes,
17131     which can conflict with char $ac_func(); below.  */
17132 #include <assert.h>
17133 /* Override any gcc2 internal prototype to avoid an error.  */
17134 /* We use char because int might match the return type of a gcc2
17135     builtin and then its argument prototype would still apply.  */
17136 char $ac_func();
17137
17138 int main() {
17139
17140 /* The GNU C library defines this for functions which it implements
17141     to always fail with ENOSYS.  Some functions are actually named
17142     something starting with __ and the normal name is an alias.  */
17143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17144 choke me
17145 #else
17146 $ac_func();
17147 #endif
17148
17149 ; return 0; }
17150 EOF
17151 if { (eval echo configure:17152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17152   rm -rf conftest*
17153   eval "ac_cv_func_$ac_func=yes"
17154 else
17155   echo "configure: failed program was:" >&5
17156   cat conftest.$ac_ext >&5
17157   rm -rf conftest*
17158   eval "ac_cv_func_$ac_func=no"
17159 fi
17160 rm -f conftest*
17161 fi
17162
17163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17164   echo "$ac_t""yes" 1>&6
17165     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17166   cat >> confdefs.h <<EOF
17167 #define $ac_tr_func 1
17168 EOF
17169  cat >> confdefs.h <<\EOF
17170 #define HAVE_INET_ADDR 1
17171 EOF
17172
17173 else
17174   echo "$ac_t""no" 1>&6
17175 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
17176 echo "configure:17177: checking for inet_addr in -lnsl" >&5
17177 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
17178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17179   echo $ac_n "(cached) $ac_c" 1>&6
17180 else
17181   ac_save_LIBS="$LIBS"
17182 LIBS="-lnsl  $LIBS"
17183 cat > conftest.$ac_ext <<EOF
17184 #line 17185 "configure"
17185 #include "confdefs.h"
17186 /* Override any gcc2 internal prototype to avoid an error.  */
17187 /* We use char because int might match the return type of a gcc2
17188     builtin and then its argument prototype would still apply.  */
17189 char inet_addr();
17190
17191 int main() {
17192 inet_addr()
17193 ; return 0; }
17194 EOF
17195 if { (eval echo configure:17196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17196   rm -rf conftest*
17197   eval "ac_cv_lib_$ac_lib_var=yes"
17198 else
17199   echo "configure: failed program was:" >&5
17200   cat conftest.$ac_ext >&5
17201   rm -rf conftest*
17202   eval "ac_cv_lib_$ac_lib_var=no"
17203 fi
17204 rm -f conftest*
17205 LIBS="$ac_save_LIBS"
17206
17207 fi
17208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17209   echo "$ac_t""yes" 1>&6
17210   INET_LINK="nsl"
17211 else
17212   echo "$ac_t""no" 1>&6
17213 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
17214 echo "configure:17215: checking for inet_addr in -lresolv" >&5
17215 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
17216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17217   echo $ac_n "(cached) $ac_c" 1>&6
17218 else
17219   ac_save_LIBS="$LIBS"
17220 LIBS="-lresolv  $LIBS"
17221 cat > conftest.$ac_ext <<EOF
17222 #line 17223 "configure"
17223 #include "confdefs.h"
17224 /* Override any gcc2 internal prototype to avoid an error.  */
17225 /* We use char because int might match the return type of a gcc2
17226     builtin and then its argument prototype would still apply.  */
17227 char inet_addr();
17228
17229 int main() {
17230 inet_addr()
17231 ; return 0; }
17232 EOF
17233 if { (eval echo configure:17234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17234   rm -rf conftest*
17235   eval "ac_cv_lib_$ac_lib_var=yes"
17236 else
17237   echo "configure: failed program was:" >&5
17238   cat conftest.$ac_ext >&5
17239   rm -rf conftest*
17240   eval "ac_cv_lib_$ac_lib_var=no"
17241 fi
17242 rm -f conftest*
17243 LIBS="$ac_save_LIBS"
17244
17245 fi
17246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17247   echo "$ac_t""yes" 1>&6
17248   INET_LINK="resolv"
17249 else
17250   echo "$ac_t""no" 1>&6
17251 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
17252 echo "configure:17253: checking for inet_addr in -lsocket" >&5
17253 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17255   echo $ac_n "(cached) $ac_c" 1>&6
17256 else
17257   ac_save_LIBS="$LIBS"
17258 LIBS="-lsocket  $LIBS"
17259 cat > conftest.$ac_ext <<EOF
17260 #line 17261 "configure"
17261 #include "confdefs.h"
17262 /* Override any gcc2 internal prototype to avoid an error.  */
17263 /* We use char because int might match the return type of a gcc2
17264     builtin and then its argument prototype would still apply.  */
17265 char inet_addr();
17266
17267 int main() {
17268 inet_addr()
17269 ; return 0; }
17270 EOF
17271 if { (eval echo configure:17272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17272   rm -rf conftest*
17273   eval "ac_cv_lib_$ac_lib_var=yes"
17274 else
17275   echo "configure: failed program was:" >&5
17276   cat conftest.$ac_ext >&5
17277   rm -rf conftest*
17278   eval "ac_cv_lib_$ac_lib_var=no"
17279 fi
17280 rm -f conftest*
17281 LIBS="$ac_save_LIBS"
17282
17283 fi
17284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17285   echo "$ac_t""yes" 1>&6
17286   INET_LINK="socket"
17287                 
17288 else
17289   echo "$ac_t""no" 1>&6
17290 fi
17291
17292             
17293 fi
17294
17295         
17296 fi
17297
17298     
17299
17300 fi
17301 done
17302
17303
17304 for ac_func in inet_aton
17305 do
17306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17307 echo "configure:17308: checking for $ac_func" >&5
17308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17309   echo $ac_n "(cached) $ac_c" 1>&6
17310 else
17311   cat > conftest.$ac_ext <<EOF
17312 #line 17313 "configure"
17313 #include "confdefs.h"
17314 /* System header to define __stub macros and hopefully few prototypes,
17315     which can conflict with char $ac_func(); below.  */
17316 #include <assert.h>
17317 /* Override any gcc2 internal prototype to avoid an error.  */
17318 /* We use char because int might match the return type of a gcc2
17319     builtin and then its argument prototype would still apply.  */
17320 char $ac_func();
17321
17322 int main() {
17323
17324 /* The GNU C library defines this for functions which it implements
17325     to always fail with ENOSYS.  Some functions are actually named
17326     something starting with __ and the normal name is an alias.  */
17327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17328 choke me
17329 #else
17330 $ac_func();
17331 #endif
17332
17333 ; return 0; }
17334 EOF
17335 if { (eval echo configure:17336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17336   rm -rf conftest*
17337   eval "ac_cv_func_$ac_func=yes"
17338 else
17339   echo "configure: failed program was:" >&5
17340   cat conftest.$ac_ext >&5
17341   rm -rf conftest*
17342   eval "ac_cv_func_$ac_func=no"
17343 fi
17344 rm -f conftest*
17345 fi
17346
17347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17348   echo "$ac_t""yes" 1>&6
17349     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17350   cat >> confdefs.h <<EOF
17351 #define $ac_tr_func 1
17352 EOF
17353  cat >> confdefs.h <<\EOF
17354 #define HAVE_INET_ATON 1
17355 EOF
17356
17357 else
17358   echo "$ac_t""no" 1>&6
17359             echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
17360 echo "configure:17361: checking for inet_aton in -l$INET_LINK" >&5
17361 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17362 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17363   echo $ac_n "(cached) $ac_c" 1>&6
17364 else
17365   ac_save_LIBS="$LIBS"
17366 LIBS="-l$INET_LINK  $LIBS"
17367 cat > conftest.$ac_ext <<EOF
17368 #line 17369 "configure"
17369 #include "confdefs.h"
17370 /* Override any gcc2 internal prototype to avoid an error.  */
17371 /* We use char because int might match the return type of a gcc2
17372     builtin and then its argument prototype would still apply.  */
17373 char inet_aton();
17374
17375 int main() {
17376 inet_aton()
17377 ; return 0; }
17378 EOF
17379 if { (eval echo configure:17380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17380   rm -rf conftest*
17381   eval "ac_cv_lib_$ac_lib_var=yes"
17382 else
17383   echo "configure: failed program was:" >&5
17384   cat conftest.$ac_ext >&5
17385   rm -rf conftest*
17386   eval "ac_cv_lib_$ac_lib_var=no"
17387 fi
17388 rm -f conftest*
17389 LIBS="$ac_save_LIBS"
17390
17391 fi
17392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17393   echo "$ac_t""yes" 1>&6
17394   cat >> confdefs.h <<\EOF
17395 #define HAVE_INET_ATON 1
17396 EOF
17397
17398 else
17399   echo "$ac_t""no" 1>&6
17400 fi
17401
17402         
17403 fi
17404 done
17405
17406
17407 if test "x$INET_LINK" != "x"; then
17408     cat >> confdefs.h <<\EOF
17409 #define HAVE_INET_ADDR 1
17410 EOF
17411
17412     INET_LINK=" -l$INET_LINK"
17413 fi
17414
17415 fi
17416
17417
17418 cat > confcache <<\EOF
17419 # This file is a shell script that caches the results of configure
17420 # tests run on this system so they can be shared between configure
17421 # scripts and configure runs.  It is not useful on other systems.
17422 # If it contains results you don't want to keep, you may remove or edit it.
17423 #
17424 # By default, configure uses ./config.cache as the cache file,
17425 # creating it if it does not exist already.  You can give configure
17426 # the --cache-file=FILE option to use a different cache file; that is
17427 # what configure does when it calls configure scripts in
17428 # subdirectories, so they share the cache.
17429 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17430 # config.status only pays attention to the cache file if you give it the
17431 # --recheck option to rerun configure.
17432 #
17433 EOF
17434 # The following way of writing the cache mishandles newlines in values,
17435 # but we know of no workaround that is simple, portable, and efficient.
17436 # So, don't put newlines in cache variables' values.
17437 # Ultrix sh set writes to stderr and can't be redirected directly,
17438 # and sets the high bit in the cache file unless we assign to the vars.
17439 (set) 2>&1 |
17440   case `(ac_space=' '; set) 2>&1` in
17441   *ac_space=\ *)
17442     # `set' does not quote correctly, so add quotes (double-quote substitution
17443     # turns \\\\ into \\, and sed turns \\ into \).
17444     sed -n \
17445       -e "s/'/'\\\\''/g" \
17446       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17447     ;;
17448   *)
17449     # `set' quotes correctly as required by POSIX, so do not add quotes.
17450     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17451     ;;
17452   esac >> confcache
17453 if cmp -s $cache_file confcache; then
17454   :
17455 else
17456   if test -w $cache_file; then
17457     echo "updating cache $cache_file"
17458     cat confcache > $cache_file
17459   else
17460     echo "not updating unwritable cache $cache_file"
17461   fi
17462 fi
17463 rm -f confcache
17464
17465
17466
17467 CPP_MT_FLAG=
17468 if test "$TOOLKIT" != "MSW"; then
17469
17470                             
17471     THREADS_LINK=
17472     THREADS_CFLAGS=
17473
17474     if test "$wxUSE_THREADS" = "yes" ; then
17475         if test "$wxUSE_WINE" = 1 ; then
17476             echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
17477             wxUSE_THREADS="no"
17478         elif test "$USE_BEOS" = 1; then
17479             echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
17480             wxUSE_THREADS="no"
17481         fi
17482     fi
17483
17484     if test "$wxUSE_THREADS" = "yes" ; then
17485                                                         
17486         
17487                                 THREAD_OPTS="-pthread"
17488         case "${host}" in
17489           *-*-solaris2* | *-*-sunos4* )
17490                 if test "x$GCC" = "xyes"; then
17491                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
17492                 else
17493                     THREAD_OPTS="-mt $THREAD_OPTS"
17494                 fi
17495                 ;;
17496           *-*-freebsd*)
17497                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17498                 ;;
17499           *-*-darwin* | *-*-cygwin* )
17500                                                 THREAD_OPTS=""
17501                 ;;
17502           *-*-aix*)
17503                                 THREAD_OPTS="pthreads"
17504                 ;;
17505         esac
17506
17507                                 THREAD_OPTS="$THREAD_OPTS pthread none"
17508
17509                 THREADS_OK=no
17510         for flag in $THREAD_OPTS; do
17511             case $flag in
17512                 none)
17513                     echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
17514 echo "configure:17515: checking whether pthreads work without any flags" >&5
17515                     ;;
17516
17517                 -*)
17518                     echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
17519 echo "configure:17520: checking whether pthreads work with $flag" >&5
17520                     THREADS_CFLAGS="$flag"
17521                     ;;
17522
17523                 *)
17524                     echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
17525 echo "configure:17526: checking for the pthreads library -l$flag" >&5
17526                     THREADS_LINK="-l$flag"
17527                     ;;
17528               esac
17529
17530               save_LIBS="$LIBS"
17531               save_CFLAGS="$CFLAGS"
17532               LIBS="$THREADS_LINK $LIBS"
17533               CFLAGS="$THREADS_CFLAGS $CFLAGS"
17534
17535               cat > conftest.$ac_ext <<EOF
17536 #line 17537 "configure"
17537 #include "confdefs.h"
17538 #include <pthread.h>
17539 int main() {
17540 pthread_create(0,0,0,0);
17541 ; return 0; }
17542 EOF
17543 if { (eval echo configure:17544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17544   rm -rf conftest*
17545   THREADS_OK=yes
17546 else
17547   echo "configure: failed program was:" >&5
17548   cat conftest.$ac_ext >&5
17549 fi
17550 rm -f conftest*
17551
17552               LIBS="$save_LIBS"
17553               CFLAGS="$save_CFLAGS"
17554
17555               echo "$ac_t""$THREADS_OK" 1>&6
17556               if test "x$THREADS_OK" = "xyes"; then
17557                       break;
17558               fi
17559
17560               THREADS_LINK=""
17561               THREADS_CFLAGS=""
17562       done
17563
17564       if test "x$THREADS_OK" != "xyes"; then
17565           wxUSE_THREADS=no
17566           echo "configure: warning: No thread support on this system... disabled" 1>&2
17567       else
17568                               LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17569
17570           echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
17571 echo "configure:17572: checking if more special flags are required for pthreads" >&5
17572           flag=no
17573           case "${host}" in
17574             *-aix* | *-freebsd*)
17575                 flag="-D_THREAD_SAFE"
17576                 ;;
17577             *solaris* | alpha*-osf*)
17578                 flag="-D_REENTRANT"
17579                 ;;
17580           esac
17581           echo "$ac_t""${flag}" 1>&6
17582           if test "x$flag" != xno; then
17583               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
17584           fi
17585
17586           if test "x$THREADS_CFLAGS" != "x"; then
17587                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
17588             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17589           fi
17590       fi
17591     fi
17592
17593         if test "$wxUSE_THREADS" = "yes" ; then
17594       for ac_func in thr_setconcurrency
17595 do
17596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17597 echo "configure:17598: checking for $ac_func" >&5
17598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17599   echo $ac_n "(cached) $ac_c" 1>&6
17600 else
17601   cat > conftest.$ac_ext <<EOF
17602 #line 17603 "configure"
17603 #include "confdefs.h"
17604 /* System header to define __stub macros and hopefully few prototypes,
17605     which can conflict with char $ac_func(); below.  */
17606 #include <assert.h>
17607 /* Override any gcc2 internal prototype to avoid an error.  */
17608 /* We use char because int might match the return type of a gcc2
17609     builtin and then its argument prototype would still apply.  */
17610 char $ac_func();
17611
17612 int main() {
17613
17614 /* The GNU C library defines this for functions which it implements
17615     to always fail with ENOSYS.  Some functions are actually named
17616     something starting with __ and the normal name is an alias.  */
17617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17618 choke me
17619 #else
17620 $ac_func();
17621 #endif
17622
17623 ; return 0; }
17624 EOF
17625 if { (eval echo configure:17626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17626   rm -rf conftest*
17627   eval "ac_cv_func_$ac_func=yes"
17628 else
17629   echo "configure: failed program was:" >&5
17630   cat conftest.$ac_ext >&5
17631   rm -rf conftest*
17632   eval "ac_cv_func_$ac_func=no"
17633 fi
17634 rm -f conftest*
17635 fi
17636
17637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17638   echo "$ac_t""yes" 1>&6
17639     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17640   cat >> confdefs.h <<EOF
17641 #define $ac_tr_func 1
17642 EOF
17643  
17644 else
17645   echo "$ac_t""no" 1>&6
17646 fi
17647 done
17648
17649
17650       for ac_hdr in sched.h
17651 do
17652 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17654 echo "configure:17655: checking for $ac_hdr" >&5
17655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17656   echo $ac_n "(cached) $ac_c" 1>&6
17657 else
17658   cat > conftest.$ac_ext <<EOF
17659 #line 17660 "configure"
17660 #include "confdefs.h"
17661 #include <$ac_hdr>
17662 EOF
17663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17664 { (eval echo configure:17665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17665 ac_err=`grep -v '^ *+' conftest.out`
17666 if test -z "$ac_err"; then
17667   rm -rf conftest*
17668   eval "ac_cv_header_$ac_safe=yes"
17669 else
17670   echo "$ac_err" >&5
17671   echo "configure: failed program was:" >&5
17672   cat conftest.$ac_ext >&5
17673   rm -rf conftest*
17674   eval "ac_cv_header_$ac_safe=no"
17675 fi
17676 rm -f conftest*
17677 fi
17678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17679   echo "$ac_t""yes" 1>&6
17680     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17681   cat >> confdefs.h <<EOF
17682 #define $ac_tr_hdr 1
17683 EOF
17684  
17685 else
17686   echo "$ac_t""no" 1>&6
17687 fi
17688 done
17689
17690       if test "$ac_cv_header_sched_h" = "yes"; then
17691           echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
17692 echo "configure:17693: checking for sched_yield" >&5
17693 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
17694   echo $ac_n "(cached) $ac_c" 1>&6
17695 else
17696   cat > conftest.$ac_ext <<EOF
17697 #line 17698 "configure"
17698 #include "confdefs.h"
17699 /* System header to define __stub macros and hopefully few prototypes,
17700     which can conflict with char sched_yield(); below.  */
17701 #include <assert.h>
17702 /* Override any gcc2 internal prototype to avoid an error.  */
17703 /* We use char because int might match the return type of a gcc2
17704     builtin and then its argument prototype would still apply.  */
17705 char sched_yield();
17706
17707 int main() {
17708
17709 /* The GNU C library defines this for functions which it implements
17710     to always fail with ENOSYS.  Some functions are actually named
17711     something starting with __ and the normal name is an alias.  */
17712 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17713 choke me
17714 #else
17715 sched_yield();
17716 #endif
17717
17718 ; return 0; }
17719 EOF
17720 if { (eval echo configure:17721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17721   rm -rf conftest*
17722   eval "ac_cv_func_sched_yield=yes"
17723 else
17724   echo "configure: failed program was:" >&5
17725   cat conftest.$ac_ext >&5
17726   rm -rf conftest*
17727   eval "ac_cv_func_sched_yield=no"
17728 fi
17729 rm -f conftest*
17730 fi
17731
17732 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
17733   echo "$ac_t""yes" 1>&6
17734   cat >> confdefs.h <<\EOF
17735 #define HAVE_SCHED_YIELD 1
17736 EOF
17737
17738 else
17739   echo "$ac_t""no" 1>&6
17740
17741                 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17742 echo "configure:17743: checking for sched_yield in -lposix4" >&5
17743 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17745   echo $ac_n "(cached) $ac_c" 1>&6
17746 else
17747   ac_save_LIBS="$LIBS"
17748 LIBS="-lposix4  $LIBS"
17749 cat > conftest.$ac_ext <<EOF
17750 #line 17751 "configure"
17751 #include "confdefs.h"
17752 /* Override any gcc2 internal prototype to avoid an error.  */
17753 /* We use char because int might match the return type of a gcc2
17754     builtin and then its argument prototype would still apply.  */
17755 char sched_yield();
17756
17757 int main() {
17758 sched_yield()
17759 ; return 0; }
17760 EOF
17761 if { (eval echo configure:17762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17762   rm -rf conftest*
17763   eval "ac_cv_lib_$ac_lib_var=yes"
17764 else
17765   echo "configure: failed program was:" >&5
17766   cat conftest.$ac_ext >&5
17767   rm -rf conftest*
17768   eval "ac_cv_lib_$ac_lib_var=no"
17769 fi
17770 rm -f conftest*
17771 LIBS="$ac_save_LIBS"
17772
17773 fi
17774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17775   echo "$ac_t""yes" 1>&6
17776   cat >> confdefs.h <<\EOF
17777 #define HAVE_SCHED_YIELD 1
17778 EOF
17779  POSIX4_LINK=" -lposix4"
17780 else
17781   echo "$ac_t""no" 1>&6
17782 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17783                 
17784 fi
17785
17786             
17787           
17788 fi
17789
17790       fi
17791
17792                                           HAVE_PRIOR_FUNCS=0
17793       echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
17794 echo "configure:17795: checking for pthread_attr_getschedpolicy" >&5
17795 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
17796   echo $ac_n "(cached) $ac_c" 1>&6
17797 else
17798   cat > conftest.$ac_ext <<EOF
17799 #line 17800 "configure"
17800 #include "confdefs.h"
17801 /* System header to define __stub macros and hopefully few prototypes,
17802     which can conflict with char pthread_attr_getschedpolicy(); below.  */
17803 #include <assert.h>
17804 /* Override any gcc2 internal prototype to avoid an error.  */
17805 /* We use char because int might match the return type of a gcc2
17806     builtin and then its argument prototype would still apply.  */
17807 char pthread_attr_getschedpolicy();
17808
17809 int main() {
17810
17811 /* The GNU C library defines this for functions which it implements
17812     to always fail with ENOSYS.  Some functions are actually named
17813     something starting with __ and the normal name is an alias.  */
17814 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17815 choke me
17816 #else
17817 pthread_attr_getschedpolicy();
17818 #endif
17819
17820 ; return 0; }
17821 EOF
17822 if { (eval echo configure:17823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17823   rm -rf conftest*
17824   eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
17825 else
17826   echo "configure: failed program was:" >&5
17827   cat conftest.$ac_ext >&5
17828   rm -rf conftest*
17829   eval "ac_cv_func_pthread_attr_getschedpolicy=no"
17830 fi
17831 rm -f conftest*
17832 fi
17833
17834 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
17835   echo "$ac_t""yes" 1>&6
17836   echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
17837 echo "configure:17838: checking for pthread_attr_setschedparam" >&5
17838 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
17839   echo $ac_n "(cached) $ac_c" 1>&6
17840 else
17841   cat > conftest.$ac_ext <<EOF
17842 #line 17843 "configure"
17843 #include "confdefs.h"
17844 /* System header to define __stub macros and hopefully few prototypes,
17845     which can conflict with char pthread_attr_setschedparam(); below.  */
17846 #include <assert.h>
17847 /* Override any gcc2 internal prototype to avoid an error.  */
17848 /* We use char because int might match the return type of a gcc2
17849     builtin and then its argument prototype would still apply.  */
17850 char pthread_attr_setschedparam();
17851
17852 int main() {
17853
17854 /* The GNU C library defines this for functions which it implements
17855     to always fail with ENOSYS.  Some functions are actually named
17856     something starting with __ and the normal name is an alias.  */
17857 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17858 choke me
17859 #else
17860 pthread_attr_setschedparam();
17861 #endif
17862
17863 ; return 0; }
17864 EOF
17865 if { (eval echo configure:17866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17866   rm -rf conftest*
17867   eval "ac_cv_func_pthread_attr_setschedparam=yes"
17868 else
17869   echo "configure: failed program was:" >&5
17870   cat conftest.$ac_ext >&5
17871   rm -rf conftest*
17872   eval "ac_cv_func_pthread_attr_setschedparam=no"
17873 fi
17874 rm -f conftest*
17875 fi
17876
17877 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
17878   echo "$ac_t""yes" 1>&6
17879   echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
17880 echo "configure:17881: checking for sched_get_priority_max" >&5
17881 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
17882   echo $ac_n "(cached) $ac_c" 1>&6
17883 else
17884   cat > conftest.$ac_ext <<EOF
17885 #line 17886 "configure"
17886 #include "confdefs.h"
17887 /* System header to define __stub macros and hopefully few prototypes
17888 else
17889   echo "$ac_t""no" 1>&6
17890 which can conflict with char sched_get_priority_max(); below.  */
17891 #include <assert.h>
17892 /* Override any gcc2 internal prototype to avoid an error.  */
17893 /* We use char because int might match the return type of a gcc2
17894     builtin and then its argument prototype would still apply.  */
17895 char sched_get_priority_max();
17896
17897 int main() {
17898
17899 /* The GNU C library defines this for functions which it implements
17900     to always fail with ENOSYS.  Some functions are actually named
17901     something starting with __ and the normal name is an alias.  */
17902 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
17903 choke me
17904 #else
17905 sched_get_priority_max();
17906 #endif
17907
17908 ; return 0; }
17909 EOF
17910 if { (eval echo configure:17911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17911   rm -rf conftest*
17912   eval "ac_cv_func_sched_get_priority_max=yes"
17913 else
17914   echo "configure: failed program was:" >&5
17915   cat conftest.$ac_ext >&5
17916   rm -rf conftest*
17917   eval "ac_cv_func_sched_get_priority_max=no"
17918 fi
17919 rm -f conftest*
17920 fi
17921
17922 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
17923   echo "$ac_t""yes" 1>&6
17924   HAVE_PRIOR_FUNCS=1
17925 else
17926   echo "$ac_t""no" 1>&6
17927 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
17928 echo "configure:17929: checking for sched_get_priority_max in -lposix4" >&5
17929 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17931   echo $ac_n "(cached) $ac_c" 1>&6
17932 else
17933   ac_save_LIBS="$LIBS"
17934 LIBS="-lposix4  $LIBS"
17935 cat > conftest.$ac_ext <<EOF
17936 #line 17937 "configure"
17937 #include "confdefs.h"
17938 /* Override any gcc2 internal prototype to avoid an error.  */
17939 /* We use char because int might match the return type of a gcc2
17940     builtin and then its argument prototype would still apply.  */
17941 char sched_get_priority_max();
17942
17943 int main() {
17944 sched_get_priority_max()
17945 ; return 0; }
17946 EOF
17947 if { (eval echo configure:17948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17948   rm -rf conftest*
17949   eval "ac_cv_lib_$ac_lib_var=yes"
17950 else
17951   echo "configure: failed program was:" >&5
17952   cat conftest.$ac_ext >&5
17953   rm -rf conftest*
17954   eval "ac_cv_lib_$ac_lib_var=no"
17955 fi
17956 rm -f conftest*
17957 LIBS="$ac_save_LIBS"
17958
17959 fi
17960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17961   echo "$ac_t""yes" 1>&6
17962   
17963                                 HAVE_PRIOR_FUNCS=1
17964                                 POSIX4_LINK=" -lposix4"
17965                              
17966 else
17967   echo "$ac_t""no" 1>&6
17968 fi
17969
17970                        
17971 fi
17972
17973                      
17974 else
17975   echo "$ac_t""no" 1>&6
17976 fi
17977
17978                    
17979 fi
17980
17981
17982       if test "$HAVE_PRIOR_FUNCS" = 1; then
17983         cat >> confdefs.h <<\EOF
17984 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
17985 EOF
17986
17987       else
17988         echo "configure: warning: Setting thread priority will not work" 1>&2
17989       fi
17990
17991       echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
17992 echo "configure:17993: checking for pthread_cancel" >&5
17993 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
17994   echo $ac_n "(cached) $ac_c" 1>&6
17995 else
17996   cat > conftest.$ac_ext <<EOF
17997 #line 17998 "configure"
17998 #include "confdefs.h"
17999 /* System header to define __stub macros and hopefully few prototypes,
18000     which can conflict with char pthread_cancel(); below.  */
18001 #include <assert.h>
18002 /* Override any gcc2 internal prototype to avoid an error.  */
18003 /* We use char because int might match the return type of a gcc2
18004     builtin and then its argument prototype would still apply.  */
18005 char pthread_cancel();
18006
18007 int main() {
18008
18009 /* The GNU C library defines this for functions which it implements
18010     to always fail with ENOSYS.  Some functions are actually named
18011     something starting with __ and the normal name is an alias.  */
18012 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
18013 choke me
18014 #else
18015 pthread_cancel();
18016 #endif
18017
18018 ; return 0; }
18019 EOF
18020 if { (eval echo configure:18021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
18021   rm -rf conftest*
18022   eval "ac_cv_func_pthread_cancel=yes"
18023 else
18024   echo "configure: failed program was:" >&5
18025   cat conftest.$ac_ext >&5
18026   rm -rf conftest*
18027   eval "ac_cv_func_pthread_cancel=no"
18028 fi
18029 rm -f conftest*
18030 fi
18031
18032 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
18033   echo "$ac_t""yes" 1>&6
18034   cat >> confdefs.h <<\EOF
18035 #define HAVE_PTHREAD_CANCEL 1
18036 EOF
18037
18038 else
18039   echo "$ac_t""no" 1>&6
18040 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
18041 fi
18042
18043
18044       echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
18045 echo "configure:18046: checking for pthread_cleanup_push/pop" >&5
18046 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18047   echo $ac_n "(cached) $ac_c" 1>&6
18048 else
18049   
18050         cat > conftest.$ac_ext <<EOF
18051 #line 18052 "configure"
18052 #include "confdefs.h"
18053 #include <pthread.h>
18054 int main() {
18055
18056                         pthread_cleanup_push(NULL, NULL);
18057                         pthread_cleanup_pop(0);
18058                      
18059 ; return 0; }
18060 EOF
18061 if { (eval echo configure:18062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18062   rm -rf conftest*
18063   
18064                         wx_cv_func_pthread_cleanup_push=yes
18065                      
18066 else
18067   echo "configure: failed program was:" >&5
18068   cat conftest.$ac_ext >&5
18069   rm -rf conftest*
18070   
18071                         wx_cv_func_pthread_cleanup_push=no
18072                      
18073 fi
18074 rm -f conftest*
18075       
18076 fi
18077
18078 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
18079
18080       if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18081           cat >> confdefs.h <<\EOF
18082 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
18083 EOF
18084
18085       fi
18086
18087                                                 
18088       echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
18089 echo "configure:18090: checking for pthread_mutexattr_t" >&5
18090 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18091   echo $ac_n "(cached) $ac_c" 1>&6
18092 else
18093   
18094         cat > conftest.$ac_ext <<EOF
18095 #line 18096 "configure"
18096 #include "confdefs.h"
18097 #include <pthread.h>
18098 int main() {
18099
18100                pthread_mutexattr_t attr;
18101                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18102             
18103 ; return 0; }
18104 EOF
18105 if { (eval echo configure:18106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18106   rm -rf conftest*
18107   
18108                wx_cv_type_pthread_mutexattr_t=yes
18109             
18110 else
18111   echo "configure: failed program was:" >&5
18112   cat conftest.$ac_ext >&5
18113   rm -rf conftest*
18114   
18115                wx_cv_type_pthread_mutexattr_t=no
18116             
18117         
18118 fi
18119 rm -f conftest*
18120       
18121 fi
18122
18123 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
18124
18125       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
18126         cat >> confdefs.h <<\EOF
18127 #define HAVE_PTHREAD_MUTEXATTR_T 1
18128 EOF
18129
18130       else
18131                 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
18132 echo "configure:18133: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
18133 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
18134   echo $ac_n "(cached) $ac_c" 1>&6
18135 else
18136   
18137             cat > conftest.$ac_ext <<EOF
18138 #line 18139 "configure"
18139 #include "confdefs.h"
18140 #include <pthread.h>
18141 int main() {
18142
18143                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
18144                 
18145 ; return 0; }
18146 EOF
18147 if { (eval echo configure:18148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18148   rm -rf conftest*
18149   
18150                     wx_cv_type_pthread_rec_mutex_init=yes
18151                 
18152 else
18153   echo "configure: failed program was:" >&5
18154   cat conftest.$ac_ext >&5
18155   rm -rf conftest*
18156   
18157                     wx_cv_type_pthread_rec_mutex_init=no
18158                 
18159             
18160 fi
18161 rm -f conftest*
18162         
18163 fi
18164
18165 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
18166         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18167           cat >> confdefs.h <<\EOF
18168 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18169 EOF
18170
18171         else
18172                     echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18173         fi
18174       fi
18175     fi
18176
18177 fi
18178
18179 if test "$wxUSE_THREADS" = "yes"; then
18180   cat >> confdefs.h <<\EOF
18181 #define wxUSE_THREADS 1
18182 EOF
18183
18184
18185   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
18186 else
18187       if test "$ac_cv_func_strtok_r" = "yes"; then
18188     echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
18189 echo "configure:18190: checking if -D_REENTRANT is needed" >&5
18190     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18191         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
18192         echo "$ac_t""yes" 1>&6
18193     else
18194         echo "$ac_t""no" 1>&6
18195     fi
18196   fi
18197 fi
18198
18199 if test "$WXGTK20" = 1 ; then
18200   cat >> confdefs.h <<EOF
18201 #define __WXGTK20__ $WXGTK20
18202 EOF
18203
18204   WXGTK12=1
18205 fi
18206
18207 if test "$WXGTK12" = 1 ; then
18208   cat >> confdefs.h <<EOF
18209 #define __WXGTK12__ $WXGTK12
18210 EOF
18211
18212 fi
18213
18214 if test "$WXGTK127" = 1 ; then
18215   cat >> confdefs.h <<EOF
18216 #define __WXGTK127__ $WXGTK127
18217 EOF
18218
18219 fi
18220
18221 WXDEBUG=
18222
18223 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18224     WXDEBUG="-g"
18225     wxUSE_OPTIMISE=no
18226 fi
18227
18228 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18229     wxUSE_DEBUG_INFO=yes
18230     WXDEBUG="-ggdb"
18231 fi
18232
18233 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18234     cat >> confdefs.h <<\EOF
18235 #define WXDEBUG 1
18236 EOF
18237
18238     WXDEBUG_DEFINE="-D__WXDEBUG__"
18239 else
18240     if test "$wxUSE_GTK" = 1 ; then
18241         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18242     fi
18243 fi
18244
18245 if test "$wxUSE_MEM_TRACING" = "yes" ; then
18246     cat >> confdefs.h <<\EOF
18247 #define wxUSE_MEMORY_TRACING 1
18248 EOF
18249
18250     cat >> confdefs.h <<\EOF
18251 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18252 EOF
18253
18254     cat >> confdefs.h <<\EOF
18255 #define wxUSE_DEBUG_NEW_ALWAYS 1
18256 EOF
18257
18258     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18259 fi
18260
18261 if test "$wxUSE_DMALLOC" = "yes" ; then
18262     DMALLOC_LIBS="-ldmalloc"
18263 fi
18264
18265 PROFILE=
18266 if test "$wxUSE_PROFILE" = "yes" ; then
18267     PROFILE=" -pg"
18268 fi
18269
18270 CODE_GEN_FLAGS=
18271 CODE_GEN_FLAGS_CXX=
18272 if test "$GCC" = "yes" ; then
18273     if test "$wxUSE_NO_RTTI" = "yes" ; then
18274         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
18275     fi
18276     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18277         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18278     fi
18279     if test "$wxUSE_PERMISSIVE" = "yes" ; then
18280         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18281     fi
18282     if test "$USE_WIN32" = 1 ; then
18283         # I'm not even really sure what this was ever added to solve,
18284         # but someone added it for mingw native builds, so I guess
18285         # they had a reason, right??
18286         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18287     fi
18288
18289                             case "${host}" in
18290       powerpc*-*-aix* )
18291         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18292         ;;
18293     esac
18294 fi
18295
18296 if test "$wxUSE_OPTIMISE" = "no" ; then
18297     OPTIMISE=
18298 else
18299     if test "$GCC" = yes ; then
18300         OPTIMISE="-O2"
18301         case "${host}" in
18302             i586-*-*|i686-*-* )
18303             OPTIMISE="${OPTIMISE} "
18304         ;;
18305         esac
18306     else
18307         OPTIMISE="-O"
18308     fi
18309 fi
18310
18311 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18312     cat >> confdefs.h <<\EOF
18313 #define WXWIN_COMPATIBILITY_2 1
18314 EOF
18315
18316
18317     WXWIN_COMPATIBILITY_2_2="yes"
18318 fi
18319
18320 if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
18321     cat >> confdefs.h <<\EOF
18322 #define WXWIN_COMPATIBILITY_2_2 1
18323 EOF
18324
18325 fi
18326
18327
18328 if test "$wxUSE_GUI" = "yes"; then
18329   cat >> confdefs.h <<\EOF
18330 #define wxUSE_GUI 1
18331 EOF
18332
18333
18334                       else
18335   cat >> confdefs.h <<\EOF
18336 #define wxUSE_NOGUI 1
18337 EOF
18338
18339 fi
18340
18341
18342 if test "$wxUSE_UNIX" = "yes"; then
18343   cat >> confdefs.h <<\EOF
18344 #define wxUSE_UNIX 1
18345 EOF
18346
18347 fi
18348
18349
18350 if test "$wxUSE_APPLE_IEEE" = "yes"; then
18351   cat >> confdefs.h <<\EOF
18352 #define wxUSE_APPLE_IEEE 1
18353 EOF
18354
18355 fi
18356
18357 if test "$wxUSE_TIMER" = "yes"; then
18358   cat >> confdefs.h <<\EOF
18359 #define wxUSE_TIMER 1
18360 EOF
18361
18362 fi
18363
18364 if test "$wxUSE_WAVE" = "yes"; then
18365   cat >> confdefs.h <<\EOF
18366 #define wxUSE_WAVE 1
18367 EOF
18368
18369 fi
18370
18371 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18372   cat >> confdefs.h <<\EOF
18373 #define wxUSE_CMDLINE_PARSER 1
18374 EOF
18375
18376 fi
18377
18378 if test "$wxUSE_STOPWATCH" = "yes"; then
18379   cat >> confdefs.h <<\EOF
18380 #define wxUSE_STOPWATCH 1
18381 EOF
18382
18383 fi
18384
18385 if test "$wxUSE_DATETIME" = "yes"; then
18386   cat >> confdefs.h <<\EOF
18387 #define wxUSE_DATETIME 1
18388 EOF
18389
18390 fi
18391
18392 if test "$wxUSE_TIMEDATE" = "yes"; then
18393   cat >> confdefs.h <<\EOF
18394 #define wxUSE_TIMEDATE 1
18395 EOF
18396
18397 fi
18398
18399 if test "$wxUSE_FILE" = "yes"; then
18400   cat >> confdefs.h <<\EOF
18401 #define wxUSE_FILE 1
18402 EOF
18403
18404 fi
18405
18406 if test "$wxUSE_FFILE" = "yes"; then
18407   cat >> confdefs.h <<\EOF
18408 #define wxUSE_FFILE 1
18409 EOF
18410
18411 fi
18412
18413 if test "$wxUSE_FILESYSTEM" = "yes"; then
18414   cat >> confdefs.h <<\EOF
18415 #define wxUSE_FILESYSTEM 1
18416 EOF
18417
18418 fi
18419
18420 if test "$wxUSE_FS_INET" = "yes"; then
18421   cat >> confdefs.h <<\EOF
18422 #define wxUSE_FS_INET 1
18423 EOF
18424
18425 fi
18426
18427 if test "$wxUSE_FS_ZIP" = "yes"; then
18428   cat >> confdefs.h <<\EOF
18429 #define wxUSE_FS_ZIP 1
18430 EOF
18431
18432 fi
18433
18434 if test "$wxUSE_ZIPSTREAM" = "yes"; then
18435   cat >> confdefs.h <<\EOF
18436 #define wxUSE_ZIPSTREAM 1
18437 EOF
18438
18439 fi
18440
18441 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18442   cat >> confdefs.h <<\EOF
18443 #define wxUSE_ON_FATAL_EXCEPTION 1
18444 EOF
18445
18446 fi
18447
18448 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18449   cat >> confdefs.h <<\EOF
18450 #define wxUSE_SNGLINST_CHECKER 1
18451 EOF
18452
18453 fi
18454
18455 if test "$wxUSE_BUSYINFO" = "yes"; then
18456   cat >> confdefs.h <<\EOF
18457 #define wxUSE_BUSYINFO 1
18458 EOF
18459
18460 fi
18461
18462 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
18463   cat >> confdefs.h <<\EOF
18464 #define wxUSE_STD_IOSTREAM 1
18465 EOF
18466
18467 fi
18468
18469 if test "$wxUSE_TEXTBUFFER" = "yes"; then
18470     cat >> confdefs.h <<\EOF
18471 #define wxUSE_TEXTBUFFER 1
18472 EOF
18473
18474 fi
18475
18476 if test "$wxUSE_TEXTFILE" = "yes"; then
18477   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
18478     echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
18479   else
18480     cat >> confdefs.h <<\EOF
18481 #define wxUSE_TEXTFILE 1
18482 EOF
18483
18484   fi
18485 fi
18486
18487 if test "$wxUSE_CONFIG" = "yes" ; then
18488   if test "$wxUSE_TEXTFILE" != "yes"; then
18489     echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
18490   else
18491     cat >> confdefs.h <<\EOF
18492 #define wxUSE_CONFIG 1
18493 EOF
18494
18495     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18496   fi
18497 fi
18498
18499 if test "$wxUSE_INTL" = "yes" ; then
18500   if test "$wxUSE_FILE" != "yes"; then
18501     echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18502   else
18503     cat >> confdefs.h <<\EOF
18504 #define wxUSE_INTL 1
18505 EOF
18506
18507     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18508     GUIDIST="$GUIDIST INTL_DIST"
18509   fi
18510 fi
18511
18512 if test "$wxUSE_LOG" = "yes"; then
18513   cat >> confdefs.h <<\EOF
18514 #define wxUSE_LOG 1
18515 EOF
18516
18517
18518     if test "$wxUSE_LOGGUI" = "yes"; then
18519       cat >> confdefs.h <<\EOF
18520 #define wxUSE_LOGGUI 1
18521 EOF
18522
18523     fi
18524
18525     if test "$wxUSE_LOGWINDOW" = "yes"; then
18526       cat >> confdefs.h <<\EOF
18527 #define wxUSE_LOGWINDOW 1
18528 EOF
18529
18530     fi
18531
18532     if test "$wxUSE_LOGDIALOG" = "yes"; then
18533       cat >> confdefs.h <<\EOF
18534 #define wxUSE_LOG_DIALOG 1
18535 EOF
18536
18537     fi
18538 fi
18539
18540 if test "$wxUSE_LONGLONG" = "yes"; then
18541   cat >> confdefs.h <<\EOF
18542 #define wxUSE_LONGLONG 1
18543 EOF
18544
18545 fi
18546
18547 if test "$wxUSE_GEOMETRY" = "yes"; then
18548   cat >> confdefs.h <<\EOF
18549 #define wxUSE_GEOMETRY 1
18550 EOF
18551
18552 fi
18553
18554 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18555   cat >> confdefs.h <<\EOF
18556 #define wxUSE_DIALUP_MANAGER 1
18557 EOF
18558
18559   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18560 fi
18561
18562 if test "$wxUSE_STREAMS" = "yes" ; then
18563   cat >> confdefs.h <<\EOF
18564 #define wxUSE_STREAMS 1
18565 EOF
18566
18567 fi
18568
18569
18570 if test "$wxUSE_DATETIME" = "yes"; then
18571         for ac_func in strptime
18572 do
18573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18574 echo "configure:18575: checking for $ac_func" >&5
18575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18576   echo $ac_n "(cached) $ac_c" 1>&6
18577 else
18578   cat > conftest.$ac_ext <<EOF
18579 #line 18580 "configure"
18580 #include "confdefs.h"
18581 /* System header to define __stub macros and hopefully few prototypes,
18582     which can conflict with char $ac_func(); below.  */
18583 #include <assert.h>
18584 /* Override any gcc2 internal prototype to avoid an error.  */
18585 /* We use char because int might match the return type of a gcc2
18586     builtin and then its argument prototype would still apply.  */
18587 char $ac_func();
18588
18589 int main() {
18590
18591 /* The GNU C library defines this for functions which it implements
18592     to always fail with ENOSYS.  Some functions are actually named
18593     something starting with __ and the normal name is an alias.  */
18594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18595 choke me
18596 #else
18597 $ac_func();
18598 #endif
18599
18600 ; return 0; }
18601 EOF
18602 if { (eval echo configure:18603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
18603   rm -rf conftest*
18604   eval "ac_cv_func_$ac_func=yes"
18605 else
18606   echo "configure: failed program was:" >&5
18607   cat conftest.$ac_ext >&5
18608   rm -rf conftest*
18609   eval "ac_cv_func_$ac_func=no"
18610 fi
18611 rm -f conftest*
18612 fi
18613
18614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18615   echo "$ac_t""yes" 1>&6
18616     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18617   cat >> confdefs.h <<EOF
18618 #define $ac_tr_func 1
18619 EOF
18620  
18621 else
18622   echo "$ac_t""no" 1>&6
18623 fi
18624 done
18625
18626
18627             echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18628 echo "configure:18629: checking for timezone variable in <time.h>" >&5
18629 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18630   echo $ac_n "(cached) $ac_c" 1>&6
18631 else
18632   
18633                         cat > conftest.$ac_ext <<EOF
18634 #line 18635 "configure"
18635 #include "confdefs.h"
18636
18637                                 #include <time.h>
18638                             
18639 int main() {
18640
18641                                 int tz;
18642                                 tz = timezone;
18643                             
18644 ; return 0; }
18645 EOF
18646 if { (eval echo configure:18647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18647   rm -rf conftest*
18648   
18649                                 wx_cv_var_timezone=timezone
18650                             
18651 else
18652   echo "configure: failed program was:" >&5
18653   cat conftest.$ac_ext >&5
18654   rm -rf conftest*
18655   
18656                                 cat > conftest.$ac_ext <<EOF
18657 #line 18658 "configure"
18658 #include "confdefs.h"
18659
18660                                         #include <time.h>
18661                                     
18662 int main() {
18663
18664                                         int tz;
18665                                         tz = _timezone;
18666                                     
18667 ; return 0; }
18668 EOF
18669 if { (eval echo configure:18670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18670   rm -rf conftest*
18671   
18672                                         wx_cv_var_timezone=_timezone
18673                                     
18674 else
18675   echo "configure: failed program was:" >&5
18676   cat conftest.$ac_ext >&5
18677   rm -rf conftest*
18678   
18679                                         cat > conftest.$ac_ext <<EOF
18680 #line 18681 "configure"
18681 #include "confdefs.h"
18682
18683                                                 #include <time.h>
18684                                             
18685 int main() {
18686
18687                                                 int tz;
18688                                                 tz = __timezone;
18689                                             
18690 ; return 0; }
18691 EOF
18692 if { (eval echo configure:18693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18693   rm -rf conftest*
18694   
18695                                                 wx_cv_var_timezone=__timezone
18696                                             
18697 else
18698   echo "configure: failed program was:" >&5
18699   cat conftest.$ac_ext >&5
18700   rm -rf conftest*
18701   
18702                                                 if test "$USE_DOS" = 0 ; then
18703                                                     echo "configure: warning: no timezone variable" 1>&2
18704                                                 fi
18705                                             
18706                                         
18707 fi
18708 rm -f conftest*
18709                                     
18710                                 
18711 fi
18712 rm -f conftest*
18713                             
18714                         
18715 fi
18716 rm -f conftest*
18717                    
18718     
18719 fi
18720
18721 echo "$ac_t""$wx_cv_var_timezone" 1>&6
18722
18723         if test "x$wx_cv_var_timezone" != x ; then
18724         cat >> confdefs.h <<EOF
18725 #define WX_TIMEZONE $wx_cv_var_timezone
18726 EOF
18727
18728     fi
18729
18730         for ac_func in localtime
18731 do
18732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18733 echo "configure:18734: checking for $ac_func" >&5
18734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18735   echo $ac_n "(cached) $ac_c" 1>&6
18736 else
18737   cat > conftest.$ac_ext <<EOF
18738 #line 18739 "configure"
18739 #include "confdefs.h"
18740 /* System header to define __stub macros and hopefully few prototypes,
18741     which can conflict with char $ac_func(); below.  */
18742 #include <assert.h>
18743 /* Override any gcc2 internal prototype to avoid an error.  */
18744 /* We use char because int might match the return type of a gcc2
18745     builtin and then its argument prototype would still apply.  */
18746 char $ac_func();
18747
18748 int main() {
18749
18750 /* The GNU C library defines this for functions which it implements
18751     to always fail with ENOSYS.  Some functions are actually named
18752     something starting with __ and the normal name is an alias.  */
18753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18754 choke me
18755 #else
18756 $ac_func();
18757 #endif
18758
18759 ; return 0; }
18760 EOF
18761 if { (eval echo configure:18762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
18762   rm -rf conftest*
18763   eval "ac_cv_func_$ac_func=yes"
18764 else
18765   echo "configure: failed program was:" >&5
18766   cat conftest.$ac_ext >&5
18767   rm -rf conftest*
18768   eval "ac_cv_func_$ac_func=no"
18769 fi
18770 rm -f conftest*
18771 fi
18772
18773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18774   echo "$ac_t""yes" 1>&6
18775     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18776   cat >> confdefs.h <<EOF
18777 #define $ac_tr_func 1
18778 EOF
18779  
18780 else
18781   echo "$ac_t""no" 1>&6
18782 fi
18783 done
18784
18785
18786     if test "$ac_cv_func_localtime" = "yes"; then
18787         echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18788 echo "configure:18789: checking for tm_gmtoff in struct tm" >&5
18789 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18790   echo $ac_n "(cached) $ac_c" 1>&6
18791 else
18792   
18793             cat > conftest.$ac_ext <<EOF
18794 #line 18795 "configure"
18795 #include "confdefs.h"
18796
18797                     #include <time.h>
18798                 
18799 int main() {
18800
18801                     struct tm tm;
18802                     tm.tm_gmtoff++;
18803                 
18804 ; return 0; }
18805 EOF
18806 if { (eval echo configure:18807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18807   rm -rf conftest*
18808   
18809                     wx_cv_struct_tm_has_gmtoff=yes
18810                 
18811 else
18812   echo "configure: failed program was:" >&5
18813   cat conftest.$ac_ext >&5
18814   rm -rf conftest*
18815   wx_cv_struct_tm_has_gmtoff=no
18816             
18817 fi
18818 rm -f conftest*
18819         
18820 fi
18821
18822 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18823     fi
18824
18825     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18826         cat >> confdefs.h <<\EOF
18827 #define WX_GMTOFF_IN_TM 1
18828 EOF
18829
18830     fi
18831
18832             for ac_func in gettimeofday ftime
18833 do
18834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18835 echo "configure:18836: checking for $ac_func" >&5
18836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18837   echo $ac_n "(cached) $ac_c" 1>&6
18838 else
18839   cat > conftest.$ac_ext <<EOF
18840 #line 18841 "configure"
18841 #include "confdefs.h"
18842 /* System header to define __stub macros and hopefully few prototypes,
18843     which can conflict with char $ac_func(); below.  */
18844 #include <assert.h>
18845 /* Override any gcc2 internal prototype to avoid an error.  */
18846 /* We use char because int might match the return type of a gcc2
18847     builtin and then its argument prototype would still apply.  */
18848 char $ac_func();
18849
18850 int main() {
18851
18852 /* The GNU C library defines this for functions which it implements
18853     to always fail with ENOSYS.  Some functions are actually named
18854     something starting with __ and the normal name is an alias.  */
18855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18856 choke me
18857 #else
18858 $ac_func();
18859 #endif
18860
18861 ; return 0; }
18862 EOF
18863 if { (eval echo configure:18864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
18864   rm -rf conftest*
18865   eval "ac_cv_func_$ac_func=yes"
18866 else
18867   echo "configure: failed program was:" >&5
18868   cat conftest.$ac_ext >&5
18869   rm -rf conftest*
18870   eval "ac_cv_func_$ac_func=no"
18871 fi
18872 rm -f conftest*
18873 fi
18874
18875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18876   echo "$ac_t""yes" 1>&6
18877     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18878   cat >> confdefs.h <<EOF
18879 #define $ac_tr_func 1
18880 EOF
18881  break
18882 else
18883   echo "$ac_t""no" 1>&6
18884 fi
18885 done
18886
18887
18888     if test "$ac_cv_func_gettimeofday" = "yes"; then
18889         echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
18890 echo "configure:18891: checking whether gettimeofday takes two arguments" >&5
18891 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18892   echo $ac_n "(cached) $ac_c" 1>&6
18893 else
18894   
18895                         
18896             ac_ext=C
18897 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18898 ac_cpp='$CXXCPP $CPPFLAGS'
18899 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18900 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18901 cross_compiling=$ac_cv_prog_cxx_cross
18902
18903
18904             cat > conftest.$ac_ext <<EOF
18905 #line 18906 "configure"
18906 #include "confdefs.h"
18907
18908                     #include <sys/time.h>
18909                     #include <unistd.h>
18910                 
18911 int main() {
18912
18913                     struct timeval tv;
18914                     gettimeofday(&tv, NULL);
18915                 
18916 ; return 0; }
18917 EOF
18918 if { (eval echo configure:18919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18919   rm -rf conftest*
18920   wx_cv_func_gettimeofday_has_2_args=yes
18921 else
18922   echo "configure: failed program was:" >&5
18923   cat conftest.$ac_ext >&5
18924   rm -rf conftest*
18925   cat > conftest.$ac_ext <<EOF
18926 #line 18927 "configure"
18927 #include "confdefs.h"
18928
18929                         #include <sys/time.h>
18930                         #include <unistd.h>
18931                     
18932 int main() {
18933
18934                         struct timeval tv;
18935                         gettimeofday(&tv);
18936                     
18937 ; return 0; }
18938 EOF
18939 if { (eval echo configure:18940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18940   rm -rf conftest*
18941   wx_cv_func_gettimeofday_has_2_args=no
18942 else
18943   echo "configure: failed program was:" >&5
18944   cat conftest.$ac_ext >&5
18945   rm -rf conftest*
18946   
18947                         echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18948                         wx_cv_func_gettimeofday_has_2_args=unknown
18949                     
18950                 
18951 fi
18952 rm -f conftest*
18953             
18954 fi
18955 rm -f conftest*
18956             ac_ext=c
18957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18958 ac_cpp='$CPP $CPPFLAGS'
18959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18960 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18961 cross_compiling=$ac_cv_prog_cc_cross
18962
18963         
18964 fi
18965
18966 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
18967
18968         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
18969             cat >> confdefs.h <<\EOF
18970 #define WX_GETTIMEOFDAY_NO_TZ 1
18971 EOF
18972
18973         fi
18974     fi
18975
18976     cat >> confdefs.h <<\EOF
18977 #define wxUSE_TIMEDATE 1
18978 EOF
18979
18980     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18981 fi
18982
18983
18984 if test "$wxUSE_SOCKETS" = "yes"; then
18985     if test "$wxUSE_X11" = "1"; then
18986         echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
18987         wxUSE_SOCKETS="no"
18988     fi
18989
18990     if test "$wxUSE_MGL" = "1"; then
18991         echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
18992         wxUSE_SOCKETS="no"
18993     fi
18994 fi
18995
18996 if test "$wxUSE_SOCKETS" = "yes"; then
18997         if test "$TOOLKIT" != "MSW"; then
18998                 echo $ac_n "checking for socket""... $ac_c" 1>&6
18999 echo "configure:19000: checking for socket" >&5
19000 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
19001   echo $ac_n "(cached) $ac_c" 1>&6
19002 else
19003   cat > conftest.$ac_ext <<EOF
19004 #line 19005 "configure"
19005 #include "confdefs.h"
19006 /* System header to define __stub macros and hopefully few prototypes,
19007     which can conflict with char socket(); below.  */
19008 #include <assert.h>
19009 /* Override any gcc2 internal prototype to avoid an error.  */
19010 /* We use char because int might match the return type of a gcc2
19011     builtin and then its argument prototype would still apply.  */
19012 char socket();
19013
19014 int main() {
19015
19016 /* The GNU C library defines this for functions which it implements
19017     to always fail with ENOSYS.  Some functions are actually named
19018     something starting with __ and the normal name is an alias.  */
19019 #if defined (__stub_socket) || defined (__stub___socket)
19020 choke me
19021 #else
19022 socket();
19023 #endif
19024
19025 ; return 0; }
19026 EOF
19027 if { (eval echo configure:19028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19028   rm -rf conftest*
19029   eval "ac_cv_func_socket=yes"
19030 else
19031   echo "configure: failed program was:" >&5
19032   cat conftest.$ac_ext >&5
19033   rm -rf conftest*
19034   eval "ac_cv_func_socket=no"
19035 fi
19036 rm -f conftest*
19037 fi
19038
19039 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
19040   echo "$ac_t""yes" 1>&6
19041   :
19042 else
19043   echo "$ac_t""no" 1>&6
19044 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
19045 echo "configure:19046: checking for socket in -lsocket" >&5
19046 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19048   echo $ac_n "(cached) $ac_c" 1>&6
19049 else
19050   ac_save_LIBS="$LIBS"
19051 LIBS="-lsocket  $LIBS"
19052 cat > conftest.$ac_ext <<EOF
19053 #line 19054 "configure"
19054 #include "confdefs.h"
19055 /* Override any gcc2 internal prototype to avoid an error.  */
19056 /* We use char because int might match the return type of a gcc2
19057     builtin and then its argument prototype would still apply.  */
19058 char socket();
19059
19060 int main() {
19061 socket()
19062 ; return 0; }
19063 EOF
19064 if { (eval echo configure:19065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19065   rm -rf conftest*
19066   eval "ac_cv_lib_$ac_lib_var=yes"
19067 else
19068   echo "configure: failed program was:" >&5
19069   cat conftest.$ac_ext >&5
19070   rm -rf conftest*
19071   eval "ac_cv_lib_$ac_lib_var=no"
19072 fi
19073 rm -f conftest*
19074 LIBS="$ac_save_LIBS"
19075
19076 fi
19077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19078   echo "$ac_t""yes" 1>&6
19079   if test "$INET_LINK" != " -lsocket"; then
19080                     INET_LINK="$INET_LINK -lsocket"
19081                 fi
19082 else
19083   echo "$ac_t""no" 1>&6
19084
19085                     echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
19086                     wxUSE_SOCKETS=no
19087                 
19088             
19089 fi
19090
19091         
19092 fi
19093
19094     fi
19095 fi
19096
19097 if test "$wxUSE_SOCKETS" = "yes" ; then
19098                 if test "$TOOLKIT" != "MSW"; then
19099                 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
19100 echo "configure:19101: checking what is the type of the third argument of getsockname" >&5
19101 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19102   echo $ac_n "(cached) $ac_c" 1>&6
19103 else
19104   
19105                 
19106                 ac_ext=C
19107 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19108 ac_cpp='$CXXCPP $CPPFLAGS'
19109 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19110 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19111 cross_compiling=$ac_cv_prog_cxx_cross
19112
19113
19114                 cat > conftest.$ac_ext <<EOF
19115 #line 19116 "configure"
19116 #include "confdefs.h"
19117
19118                         #include <sys/types.h>
19119                         #include <sys/socket.h>
19120                     
19121 int main() {
19122
19123                         socklen_t len;
19124                         getsockname(0, 0, &len);
19125                     
19126 ; return 0; }
19127 EOF
19128 if { (eval echo configure:19129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19129   rm -rf conftest*
19130   wx_cv_type_getsockname3=socklen_t
19131 else
19132   echo "configure: failed program was:" >&5
19133   cat conftest.$ac_ext >&5
19134   rm -rf conftest*
19135   cat > conftest.$ac_ext <<EOF
19136 #line 19137 "configure"
19137 #include "confdefs.h"
19138
19139                             #include <sys/types.h>
19140                             #include <sys/socket.h>
19141                         
19142 int main() {
19143
19144                             size_t len;
19145                             getsockname(0, 0, &len);
19146                         
19147 ; return 0; }
19148 EOF
19149 if { (eval echo configure:19150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19150   rm -rf conftest*
19151   wx_cv_type_getsockname3=size_t
19152 else
19153   echo "configure: failed program was:" >&5
19154   cat conftest.$ac_ext >&5
19155   rm -rf conftest*
19156   cat > conftest.$ac_ext <<EOF
19157 #line 19158 "configure"
19158 #include "confdefs.h"
19159
19160                                 #include <sys/types.h>
19161                                 #include <sys/socket.h>
19162                             
19163 int main() {
19164
19165                                 int len;
19166                                 getsockname(0, 0, &len);
19167                             
19168 ; return 0; }
19169 EOF
19170 if { (eval echo configure:19171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19171   rm -rf conftest*
19172   wx_cv_type_getsockname3=int
19173 else
19174   echo "configure: failed program was:" >&5
19175   cat conftest.$ac_ext >&5
19176   rm -rf conftest*
19177   wx_cv_type_getsockname3=unknown
19178                         
19179 fi
19180 rm -f conftest*
19181                     
19182 fi
19183 rm -f conftest*
19184                 
19185 fi
19186 rm -f conftest*
19187
19188                 ac_ext=c
19189 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19190 ac_cpp='$CPP $CPPFLAGS'
19191 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19192 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19193 cross_compiling=$ac_cv_prog_cc_cross
19194
19195             
19196 fi
19197
19198 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
19199
19200         if test "$wx_cv_type_getsockname3" = "unknown"; then
19201             wxUSE_SOCKETS=no
19202             echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
19203         else
19204             cat >> confdefs.h <<EOF
19205 #define SOCKLEN_T $wx_cv_type_getsockname3
19206 EOF
19207
19208         fi
19209     fi
19210 fi
19211
19212 if test "$wxUSE_SOCKETS" = "yes" ; then
19213     cat >> confdefs.h <<\EOF
19214 #define wxUSE_SOCKETS 1
19215 EOF
19216
19217     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
19218 fi
19219
19220
19221 if test "$wxUSE_GUI" = "yes"; then
19222
19223     if test "$TOOLKIT" = "MAC"; then
19224         echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19225         wxUSE_JOYSTICK=no
19226      fi
19227     if test "$TOOLKIT" = "MOTIF"; then
19228         echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19229         wxUSE_JOYSTICK=no
19230      fi
19231     if test "$TOOLKIT" = "X11"; then
19232         echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19233         wxUSE_JOYSTICK=no
19234      fi
19235
19236         if test "$TOOLKIT" != "MSW"; then
19237         if test "$wxUSE_JOYSTICK" = "yes"; then
19238                         for ac_hdr in linux/joystick.h
19239 do
19240 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19241 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19242 echo "configure:19243: checking for $ac_hdr" >&5
19243 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19244   echo $ac_n "(cached) $ac_c" 1>&6
19245 else
19246   cat > conftest.$ac_ext <<EOF
19247 #line 19248 "configure"
19248 #include "confdefs.h"
19249 #include <$ac_hdr>
19250 EOF
19251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19252 { (eval echo configure:19253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19253 ac_err=`grep -v '^ *+' conftest.out`
19254 if test -z "$ac_err"; then
19255   rm -rf conftest*
19256   eval "ac_cv_header_$ac_safe=yes"
19257 else
19258   echo "$ac_err" >&5
19259   echo "configure: failed program was:" >&5
19260   cat conftest.$ac_ext >&5
19261   rm -rf conftest*
19262   eval "ac_cv_header_$ac_safe=no"
19263 fi
19264 rm -f conftest*
19265 fi
19266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19267   echo "$ac_t""yes" 1>&6
19268     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19269   cat >> confdefs.h <<EOF
19270 #define $ac_tr_hdr 1
19271 EOF
19272  
19273 else
19274   echo "$ac_t""no" 1>&6
19275 fi
19276 done
19277
19278             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19279                 wxUSE_JOYSTICK=no
19280                 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
19281             fi
19282         fi
19283     fi
19284
19285     if test "$wxUSE_JOYSTICK" = "yes"; then
19286         cat >> confdefs.h <<\EOF
19287 #define wxUSE_JOYSTICK 1
19288 EOF
19289
19290         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19291     fi
19292 fi
19293
19294
19295 if test "$TOOLKIT" != "MSW"; then
19296
19297     HAVE_DL_FUNCS=0
19298     HAVE_SHL_FUNCS=0
19299     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19300         if test "$USE_DARWIN" = 1; then
19301                         HAVE_DL_FUNCS=1
19302         else
19303                                                 for ac_func in dlopen
19304 do
19305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19306 echo "configure:19307: checking for $ac_func" >&5
19307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19308   echo $ac_n "(cached) $ac_c" 1>&6
19309 else
19310   cat > conftest.$ac_ext <<EOF
19311 #line 19312 "configure"
19312 #include "confdefs.h"
19313 /* System header to define __stub macros and hopefully few prototypes,
19314     which can conflict with char $ac_func(); below.  */
19315 #include <assert.h>
19316 /* Override any gcc2 internal prototype to avoid an error.  */
19317 /* We use char because int might match the return type of a gcc2
19318     builtin and then its argument prototype would still apply.  */
19319 char $ac_func();
19320
19321 int main() {
19322
19323 /* The GNU C library defines this for functions which it implements
19324     to always fail with ENOSYS.  Some functions are actually named
19325     something starting with __ and the normal name is an alias.  */
19326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19327 choke me
19328 #else
19329 $ac_func();
19330 #endif
19331
19332 ; return 0; }
19333 EOF
19334 if { (eval echo configure:19335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19335   rm -rf conftest*
19336   eval "ac_cv_func_$ac_func=yes"
19337 else
19338   echo "configure: failed program was:" >&5
19339   cat conftest.$ac_ext >&5
19340   rm -rf conftest*
19341   eval "ac_cv_func_$ac_func=no"
19342 fi
19343 rm -f conftest*
19344 fi
19345
19346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19347   echo "$ac_t""yes" 1>&6
19348     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19349   cat >> confdefs.h <<EOF
19350 #define $ac_tr_func 1
19351 EOF
19352  
19353                 cat >> confdefs.h <<\EOF
19354 #define HAVE_DLOPEN 1
19355 EOF
19356
19357                 HAVE_DL_FUNCS=1
19358             
19359 else
19360   echo "$ac_t""no" 1>&6
19361 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
19362 echo "configure:19363: checking for dlopen in -ldl" >&5
19363 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19364 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19365   echo $ac_n "(cached) $ac_c" 1>&6
19366 else
19367   ac_save_LIBS="$LIBS"
19368 LIBS="-ldl  $LIBS"
19369 cat > conftest.$ac_ext <<EOF
19370 #line 19371 "configure"
19371 #include "confdefs.h"
19372 /* Override any gcc2 internal prototype to avoid an error.  */
19373 /* We use char because int might match the return type of a gcc2
19374     builtin and then its argument prototype would still apply.  */
19375 char dlopen();
19376
19377 int main() {
19378 dlopen()
19379 ; return 0; }
19380 EOF
19381 if { (eval echo configure:19382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19382   rm -rf conftest*
19383   eval "ac_cv_lib_$ac_lib_var=yes"
19384 else
19385   echo "configure: failed program was:" >&5
19386   cat conftest.$ac_ext >&5
19387   rm -rf conftest*
19388   eval "ac_cv_lib_$ac_lib_var=no"
19389 fi
19390 rm -f conftest*
19391 LIBS="$ac_save_LIBS"
19392
19393 fi
19394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19395   echo "$ac_t""yes" 1>&6
19396   
19397                                 cat >> confdefs.h <<\EOF
19398 #define HAVE_DLOPEN 1
19399 EOF
19400
19401                                 HAVE_DL_FUNCS=1
19402                                 DL_LINK=" -ldl$DL_LINK"
19403                             
19404 else
19405   echo "$ac_t""no" 1>&6
19406
19407                                 for ac_func in shl_load
19408 do
19409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19410 echo "configure:19411: checking for $ac_func" >&5
19411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19412   echo $ac_n "(cached) $ac_c" 1>&6
19413 else
19414   cat > conftest.$ac_ext <<EOF
19415 #line 19416 "configure"
19416 #include "confdefs.h"
19417 /* System header to define __stub macros and hopefully few prototypes,
19418     which can conflict with char $ac_func(); below.  */
19419 #include <assert.h>
19420 /* Override any gcc2 internal prototype to avoid an error.  */
19421 /* We use char because int might match the return type of a gcc2
19422     builtin and then its argument prototype would still apply.  */
19423 char $ac_func();
19424
19425 int main() {
19426
19427 /* The GNU C library defines this for functions which it implements
19428     to always fail with ENOSYS.  Some functions are actually named
19429     something starting with __ and the normal name is an alias.  */
19430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19431 choke me
19432 #else
19433 $ac_func();
19434 #endif
19435
19436 ; return 0; }
19437 EOF
19438 if { (eval echo configure:19439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19439   rm -rf conftest*
19440   eval "ac_cv_func_$ac_func=yes"
19441 else
19442   echo "configure: failed program was:" >&5
19443   cat conftest.$ac_ext >&5
19444   rm -rf conftest*
19445   eval "ac_cv_func_$ac_func=no"
19446 fi
19447 rm -f conftest*
19448 fi
19449
19450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19451   echo "$ac_t""yes" 1>&6
19452     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19453   cat >> confdefs.h <<EOF
19454 #define $ac_tr_func 1
19455 EOF
19456  
19457                                                 cat >> confdefs.h <<\EOF
19458 #define HAVE_SHL_LOAD 1
19459 EOF
19460
19461                                                 HAVE_SHL_FUNCS=1
19462                                               
19463 else
19464   echo "$ac_t""no" 1>&6
19465 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
19466 echo "configure:19467: checking for dld in -lshl_load" >&5
19467 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19469   echo $ac_n "(cached) $ac_c" 1>&6
19470 else
19471   ac_save_LIBS="$LIBS"
19472 LIBS="-lshl_load  $LIBS"
19473 cat > conftest.$ac_ext <<EOF
19474 #line 19475 "configure"
19475 #include "confdefs.h"
19476 /* Override any gcc2 internal prototype to avoid an error.  */
19477 /* We use char because int might match the return type of a gcc2
19478     builtin and then its argument prototype would still apply.  */
19479 char dld();
19480
19481 int main() {
19482 dld()
19483 ; return 0; }
19484 EOF
19485 if { (eval echo configure:19486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19486   rm -rf conftest*
19487   eval "ac_cv_lib_$ac_lib_var=yes"
19488 else
19489   echo "configure: failed program was:" >&5
19490   cat conftest.$ac_ext >&5
19491   rm -rf conftest*
19492   eval "ac_cv_lib_$ac_lib_var=no"
19493 fi
19494 rm -f conftest*
19495 LIBS="$ac_save_LIBS"
19496
19497 fi
19498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19499   echo "$ac_t""yes" 1>&6
19500   
19501                                                                 HAVE_SHL_FUNCS=1
19502                                                                 DL_LINK=" -ldld$DL_LINK"
19503                                                              
19504 else
19505   echo "$ac_t""no" 1>&6
19506 fi
19507
19508                                               
19509 fi
19510 done
19511
19512                             
19513 fi
19514
19515             
19516 fi
19517 done
19518
19519
19520                 if test "$HAVE_DL_FUNCS" = 1; then
19521             for ac_func in dlerror
19522 do
19523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19524 echo "configure:19525: checking for $ac_func" >&5
19525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19526   echo $ac_n "(cached) $ac_c" 1>&6
19527 else
19528   cat > conftest.$ac_ext <<EOF
19529 #line 19530 "configure"
19530 #include "confdefs.h"
19531 /* System header to define __stub macros and hopefully few prototypes,
19532     which can conflict with char $ac_func(); below.  */
19533 #include <assert.h>
19534 /* Override any gcc2 internal prototype to avoid an error.  */
19535 /* We use char because int might match the return type of a gcc2
19536     builtin and then its argument prototype would still apply.  */
19537 char $ac_func();
19538
19539 int main() {
19540
19541 /* The GNU C library defines this for functions which it implements
19542     to always fail with ENOSYS.  Some functions are actually named
19543     something starting with __ and the normal name is an alias.  */
19544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19545 choke me
19546 #else
19547 $ac_func();
19548 #endif
19549
19550 ; return 0; }
19551 EOF
19552 if { (eval echo configure:19553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19553   rm -rf conftest*
19554   eval "ac_cv_func_$ac_func=yes"
19555 else
19556   echo "configure: failed program was:" >&5
19557   cat conftest.$ac_ext >&5
19558   rm -rf conftest*
19559   eval "ac_cv_func_$ac_func=no"
19560 fi
19561 rm -f conftest*
19562 fi
19563
19564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19565   echo "$ac_t""yes" 1>&6
19566     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19567   cat >> confdefs.h <<EOF
19568 #define $ac_tr_func 1
19569 EOF
19570  cat >> confdefs.h <<\EOF
19571 #define HAVE_DLERROR 1
19572 EOF
19573
19574 else
19575   echo "$ac_t""no" 1>&6
19576 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19577 echo "configure:19578: checking for dlerror in -ldl" >&5
19578 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19580   echo $ac_n "(cached) $ac_c" 1>&6
19581 else
19582   ac_save_LIBS="$LIBS"
19583 LIBS="-ldl  $LIBS"
19584 cat > conftest.$ac_ext <<EOF
19585 #line 19586 "configure"
19586 #include "confdefs.h"
19587 /* Override any gcc2 internal prototype to avoid an error.  */
19588 /* We use char because int might match the return type of a gcc2
19589     builtin and then its argument prototype would still apply.  */
19590 char dlerror();
19591
19592 int main() {
19593 dlerror()
19594 ; return 0; }
19595 EOF
19596 if { (eval echo configure:19597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19597   rm -rf conftest*
19598   eval "ac_cv_lib_$ac_lib_var=yes"
19599 else
19600   echo "configure: failed program was:" >&5
19601   cat conftest.$ac_ext >&5
19602   rm -rf conftest*
19603   eval "ac_cv_lib_$ac_lib_var=no"
19604 fi
19605 rm -f conftest*
19606 LIBS="$ac_save_LIBS"
19607
19608 fi
19609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19610   echo "$ac_t""yes" 1>&6
19611   cat >> confdefs.h <<\EOF
19612 #define HAVE_DLERROR 1
19613 EOF
19614
19615 else
19616   echo "$ac_t""no" 1>&6
19617 fi
19618
19619 fi
19620 done
19621
19622         fi
19623         fi
19624
19625         if test "$HAVE_DL_FUNCS" = 0; then
19626             if test "$HAVE_SHL_FUNCS" = 0; then
19627               if test "$USE_UNIX" = 1; then
19628                   echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19629                   wxUSE_DYNAMIC_LOADER=no
19630                   wxUSE_DYNLIB_CLASS=no
19631               else
19632                   echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19633               fi
19634             fi
19635         fi
19636     fi
19637 fi
19638
19639 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19640     cat >> confdefs.h <<\EOF
19641 #define wxUSE_DYNAMIC_LOADER 1
19642 EOF
19643
19644 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19645     cat >> confdefs.h <<\EOF
19646 #define wxUSE_DYNLIB_CLASS 1
19647 EOF
19648
19649 fi
19650
19651
19652 if test "$wxUSE_FONTMAP" = "yes" ; then
19653   cat >> confdefs.h <<\EOF
19654 #define wxUSE_FONTMAP 1
19655 EOF
19656
19657 fi
19658
19659 if test "$wxUSE_UNICODE" = "yes" ; then
19660   cat >> confdefs.h <<\EOF
19661 #define wxUSE_UNICODE 1
19662 EOF
19663
19664
19665   if test "$wxUSE_MSW" != 1; then
19666       wxUSE_UNICODE_MSLU=no
19667   fi
19668
19669   if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19670         echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19671 echo "configure:19672: checking for main in -lunicows" >&5
19672 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19674   echo $ac_n "(cached) $ac_c" 1>&6
19675 else
19676   ac_save_LIBS="$LIBS"
19677 LIBS="-lunicows  $LIBS"
19678 cat > conftest.$ac_ext <<EOF
19679 #line 19680 "configure"
19680 #include "confdefs.h"
19681
19682 int main() {
19683 main()
19684 ; return 0; }
19685 EOF
19686 if { (eval echo configure:19687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19687   rm -rf conftest*
19688   eval "ac_cv_lib_$ac_lib_var=yes"
19689 else
19690   echo "configure: failed program was:" >&5
19691   cat conftest.$ac_ext >&5
19692   rm -rf conftest*
19693   eval "ac_cv_lib_$ac_lib_var=no"
19694 fi
19695 rm -f conftest*
19696 LIBS="$ac_save_LIBS"
19697
19698 fi
19699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19700   echo "$ac_t""yes" 1>&6
19701   
19702                 cat >> confdefs.h <<\EOF
19703 #define wxUSE_UNICODE_MSLU 1
19704 EOF
19705
19706             
19707 else
19708   echo "$ac_t""no" 1>&6
19709
19710                 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19711                              Applications will only run on Windows NT/2000/XP!" 1>&2
19712                 wxUSE_UNICODE_MSLU=no
19713             
19714 fi
19715
19716     fi
19717 fi
19718
19719 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19720   cat >> confdefs.h <<\EOF
19721 #define wxUSE_EXPERIMENTAL_PRINTF 1
19722 EOF
19723
19724 fi
19725
19726
19727
19728 IODBC_C_SRC=""
19729 if test "$wxUSE_ODBC" = "yes" ; then
19730     cat >> confdefs.h <<\EOF
19731 #define wxUSE_ODBC 1
19732 EOF
19733
19734     WXODBCFLAG="-D_IODBC_"
19735     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19736 fi
19737
19738
19739 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19740   cat >> confdefs.h <<\EOF
19741 #define wxUSE_POSTSCRIPT 1
19742 EOF
19743
19744 fi
19745
19746 cat >> confdefs.h <<\EOF
19747 #define wxUSE_AFM_FOR_POSTSCRIPT 1
19748 EOF
19749
19750
19751 cat >> confdefs.h <<\EOF
19752 #define wxUSE_NORMALIZED_PS_FONTS 1
19753 EOF
19754
19755
19756
19757 if test "$wxUSE_CONSTRAINTS" = "yes"; then
19758     cat >> confdefs.h <<\EOF
19759 #define wxUSE_CONSTRAINTS 1
19760 EOF
19761
19762     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19763 fi
19764
19765 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19766     if test "$wxUSE_UNIVERSAL" = "yes"; then
19767         echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
19768         wxUSE_MDI_ARCHITECTURE=no
19769     fi
19770
19771     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19772         cat >> confdefs.h <<\EOF
19773 #define wxUSE_MDI_ARCHITECTURE 1
19774 EOF
19775
19776         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19777     fi
19778 fi
19779
19780 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19781     cat >> confdefs.h <<\EOF
19782 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
19783 EOF
19784
19785     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19786     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19787         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19788     fi
19789 fi
19790
19791 if test "$wxUSE_HELP" = "yes"; then
19792     cat >> confdefs.h <<\EOF
19793 #define wxUSE_HELP 1
19794 EOF
19795
19796     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19797
19798     if test "$wxUSE_MSW" = 1; then
19799       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19800         cat >> confdefs.h <<\EOF
19801 #define wxUSE_MS_HTML_HELP 1
19802 EOF
19803
19804       fi
19805     fi
19806
19807     if test "$wxUSE_WXHTML_HELP" = "yes"; then
19808       if test "$wxUSE_HTML" = "yes"; then
19809         cat >> confdefs.h <<\EOF
19810 #define wxUSE_WXHTML_HELP 1
19811 EOF
19812
19813       else
19814         echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19815         wxUSE_WXHTML_HELP=no
19816       fi
19817     fi
19818 fi
19819
19820 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19821     if test "$wxUSE_CONSTRAINTS" != "yes"; then
19822         echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19823     else
19824         cat >> confdefs.h <<\EOF
19825 #define wxUSE_PRINTING_ARCHITECTURE 1
19826 EOF
19827
19828     fi
19829     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19830 fi
19831
19832 if test "$wxUSE_PROLOGIO" = "yes" ; then
19833     cat >> confdefs.h <<\EOF
19834 #define wxUSE_PROLOGIO 1
19835 EOF
19836
19837 fi
19838
19839 if test "$wxUSE_RESOURCES" = "yes" ; then
19840     if test "$wxUSE_NANOX" = "yes"; then
19841         echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19842         else
19843                 cat >> confdefs.h <<\EOF
19844 #define wxUSE_RESOURCES 1
19845 EOF
19846
19847                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19848     fi
19849 fi
19850
19851 if test "$wxUSE_X_RESOURCES" = "yes"; then
19852     cat >> confdefs.h <<\EOF
19853 #define wxUSE_X_RESOURCES 1
19854 EOF
19855
19856 fi
19857
19858
19859 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
19860                           -o "$wxUSE_CLIPBOARD"     = "yes" \
19861                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19862     for ac_hdr in ole2.h
19863 do
19864 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19865 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19866 echo "configure:19867: checking for $ac_hdr" >&5
19867 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19868   echo $ac_n "(cached) $ac_c" 1>&6
19869 else
19870   cat > conftest.$ac_ext <<EOF
19871 #line 19872 "configure"
19872 #include "confdefs.h"
19873 #include <$ac_hdr>
19874 EOF
19875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19876 { (eval echo configure:19877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19877 ac_err=`grep -v '^ *+' conftest.out`
19878 if test -z "$ac_err"; then
19879   rm -rf conftest*
19880   eval "ac_cv_header_$ac_safe=yes"
19881 else
19882   echo "$ac_err" >&5
19883   echo "configure: failed program was:" >&5
19884   cat conftest.$ac_ext >&5
19885   rm -rf conftest*
19886   eval "ac_cv_header_$ac_safe=no"
19887 fi
19888 rm -f conftest*
19889 fi
19890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19891   echo "$ac_t""yes" 1>&6
19892     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19893   cat >> confdefs.h <<EOF
19894 #define $ac_tr_hdr 1
19895 EOF
19896  
19897 else
19898   echo "$ac_t""no" 1>&6
19899 fi
19900 done
19901
19902
19903     if test "$ac_cv_header_ole2_h" = "yes" ; then
19904         if test "$GCC" = yes ; then
19905             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
19906             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
19907             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
19908             cat >> confdefs.h <<\EOF
19909 #define wxUSE_OLE 1
19910 EOF
19911
19912
19913         fi
19914
19915                 cat >> confdefs.h <<\EOF
19916 #define wxUSE_DATAOBJ 1
19917 EOF
19918
19919     else
19920         echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19921
19922         wxUSE_CLIPBOARD=no
19923         wxUSE_DRAG_AND_DROP=no
19924         wxUSE_DATAOBJ=no
19925     fi
19926
19927     if test "$wxUSE_METAFILE" = "yes"; then
19928         cat >> confdefs.h <<\EOF
19929 #define wxUSE_METAFILE 1
19930 EOF
19931
19932
19933                 cat >> confdefs.h <<\EOF
19934 #define wxUSE_ENH_METAFILE 1
19935 EOF
19936
19937     fi
19938 fi
19939
19940 if test "$wxUSE_IPC" = "yes"; then
19941     if test "$wxUSE_SOCKETS" != "yes"; then
19942         echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
19943     fi
19944
19945     cat >> confdefs.h <<\EOF
19946 #define wxUSE_IPC 1
19947 EOF
19948
19949 fi
19950
19951 if test "$wxUSE_CLIPBOARD" = "yes"; then
19952     if test "$wxUSE_MGL" = 1; then
19953         echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
19954         wxUSE_CLIPBOARD=no
19955     fi
19956
19957     if test "$wxUSE_CLIPBOARD" = "yes"; then
19958         cat >> confdefs.h <<\EOF
19959 #define wxUSE_CLIPBOARD 1
19960 EOF
19961
19962
19963                 cat >> confdefs.h <<\EOF
19964 #define wxUSE_DATAOBJ 1
19965 EOF
19966
19967     fi
19968 fi
19969
19970 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19971     if test "$wxUSE_GTK" = 1; then
19972         if test "$WXGTK12" != 1; then
19973             echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
19974             wxUSE_DRAG_AND_DROP=no
19975         fi
19976     fi
19977
19978     if test "$wxUSE_MOTIF" = 1; then
19979         echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
19980         wxUSE_DRAG_AND_DROP=no
19981     fi
19982
19983     if test "$wxUSE_X11" = 1; then
19984         echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19985         wxUSE_DRAG_AND_DROP=no
19986     fi
19987
19988     if test "$wxUSE_MGL" = 1; then
19989         echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
19990         wxUSE_DRAG_AND_DROP=no
19991     fi
19992
19993     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
19994         cat >> confdefs.h <<\EOF
19995 #define wxUSE_DRAG_AND_DROP 1
19996 EOF
19997
19998         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19999     fi
20000
20001 fi
20002
20003 if test "$wxUSE_SPLINES" = "yes" ; then
20004   cat >> confdefs.h <<\EOF
20005 #define wxUSE_SPLINES 1
20006 EOF
20007
20008 fi
20009
20010
20011 USES_CONTROLS=0
20012 if test "$wxUSE_CONTROLS" = "yes"; then
20013   USES_CONTROLS=1
20014 fi
20015
20016 if test "$wxUSE_ACCEL" = "yes"; then
20017   cat >> confdefs.h <<\EOF
20018 #define wxUSE_ACCEL 1
20019 EOF
20020
20021   USES_CONTROLS=1
20022 fi
20023
20024 if test "$wxUSE_BUTTON" = "yes"; then
20025   cat >> confdefs.h <<\EOF
20026 #define wxUSE_BUTTON 1
20027 EOF
20028
20029   USES_CONTROLS=1
20030 fi
20031
20032 if test "$wxUSE_BMPBUTTON" = "yes"; then
20033   cat >> confdefs.h <<\EOF
20034 #define wxUSE_BMPBUTTON 1
20035 EOF
20036
20037   USES_CONTROLS=1
20038 fi
20039
20040 if test "$wxUSE_CALCTRL" = "yes"; then
20041   cat >> confdefs.h <<\EOF
20042 #define wxUSE_CALENDARCTRL 1
20043 EOF
20044
20045   USES_CONTROLS=1
20046   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
20047 fi
20048
20049 if test "$wxUSE_CARET" = "yes"; then
20050   cat >> confdefs.h <<\EOF
20051 #define wxUSE_CARET 1
20052 EOF
20053
20054   USES_CONTROLS=1
20055   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
20056 fi
20057
20058 if test "$wxUSE_COMBOBOX" = "yes"; then
20059   cat >> confdefs.h <<\EOF
20060 #define wxUSE_COMBOBOX 1
20061 EOF
20062
20063   USES_CONTROLS=1
20064 fi
20065
20066 if test "$wxUSE_CHOICE" = "yes"; then
20067   cat >> confdefs.h <<\EOF
20068 #define wxUSE_CHOICE 1
20069 EOF
20070
20071   USES_CONTROLS=1
20072 fi
20073
20074 if test "$wxUSE_CHECKBOX" = "yes"; then
20075   cat >> confdefs.h <<\EOF
20076 #define wxUSE_CHECKBOX 1
20077 EOF
20078
20079   USES_CONTROLS=1
20080 fi
20081
20082 if test "$wxUSE_CHECKLST" = "yes"; then
20083   cat >> confdefs.h <<\EOF
20084 #define wxUSE_CHECKLISTBOX 1
20085 EOF
20086
20087   USES_CONTROLS=1
20088   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20089 fi
20090
20091 if test "$wxUSE_GAUGE" = "yes"; then
20092   cat >> confdefs.h <<\EOF
20093 #define wxUSE_GAUGE 1
20094 EOF
20095
20096   USES_CONTROLS=1
20097 fi
20098
20099 if test "$wxUSE_NEW_GRID" = "yes"; then
20100   wxUSE_GRID="yes"
20101   cat >> confdefs.h <<\EOF
20102 #define wxUSE_NEW_GRID 1
20103 EOF
20104
20105   USES_CONTROLS=1
20106   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
20107 fi
20108
20109 if test "$wxUSE_GRID" = "yes"; then
20110   cat >> confdefs.h <<\EOF
20111 #define wxUSE_GRID 1
20112 EOF
20113
20114   USES_CONTROLS=1
20115   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
20116 fi
20117
20118 if test "$wxUSE_IMAGLIST" = "yes"; then
20119     cat >> confdefs.h <<\EOF
20120 #define wxUSE_IMAGLIST 1
20121 EOF
20122
20123 fi
20124
20125 if test "$wxUSE_LISTBOX" = "yes"; then
20126     cat >> confdefs.h <<\EOF
20127 #define wxUSE_LISTBOX 1
20128 EOF
20129
20130     USES_CONTROLS=1
20131 fi
20132
20133 if test "$wxUSE_LISTCTRL" = "yes"; then
20134     if test "$wxUSE_IMAGLIST" = "yes"; then
20135         cat >> confdefs.h <<\EOF
20136 #define wxUSE_LISTCTRL 1
20137 EOF
20138
20139         USES_CONTROLS=1
20140         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20141     else
20142         echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
20143     fi
20144 fi
20145
20146 if test "$wxUSE_NOTEBOOK" = "yes"; then
20147     cat >> confdefs.h <<\EOF
20148 #define wxUSE_NOTEBOOK 1
20149 EOF
20150
20151     USES_CONTROLS=1
20152     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20153 fi
20154
20155 if test "$wxUSE_PROPSHEET" = "yes"; then
20156     cat >> confdefs.h <<\EOF
20157 #define wxUSE_PROPSHEET 1
20158 EOF
20159
20160     USES_CONTROLS=1
20161     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20162 fi
20163
20164 if test "$wxUSE_RADIOBOX" = "yes"; then
20165     cat >> confdefs.h <<\EOF
20166 #define wxUSE_RADIOBOX 1
20167 EOF
20168
20169     USES_CONTROLS=1
20170 fi
20171
20172 if test "$wxUSE_RADIOBTN" = "yes"; then
20173     cat >> confdefs.h <<\EOF
20174 #define wxUSE_RADIOBTN 1
20175 EOF
20176
20177     USES_CONTROLS=1
20178 fi
20179
20180 if test "$wxUSE_SASH" = "yes"; then
20181     cat >> confdefs.h <<\EOF
20182 #define wxUSE_SASH 1
20183 EOF
20184
20185     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20186 fi
20187
20188 if test "$wxUSE_SCROLLBAR" = "yes"; then
20189     cat >> confdefs.h <<\EOF
20190 #define wxUSE_SCROLLBAR 1
20191 EOF
20192
20193     USES_CONTROLS=1
20194     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
20195 fi
20196
20197 if test "$wxUSE_SLIDER" = "yes"; then
20198     cat >> confdefs.h <<\EOF
20199 #define wxUSE_SLIDER 1
20200 EOF
20201
20202     USES_CONTROLS=1
20203 fi
20204
20205 if test "$wxUSE_SPINBTN" = "yes"; then
20206     cat >> confdefs.h <<\EOF
20207 #define wxUSE_SPINBTN 1
20208 EOF
20209
20210     USES_CONTROLS=1
20211 fi
20212
20213 if test "$wxUSE_SPINCTRL" = "yes"; then
20214     cat >> confdefs.h <<\EOF
20215 #define wxUSE_SPINCTRL 1
20216 EOF
20217
20218     USES_CONTROLS=1
20219 fi
20220
20221 if test "$wxUSE_SPLITTER" = "yes"; then
20222     cat >> confdefs.h <<\EOF
20223 #define wxUSE_SPLITTER 1
20224 EOF
20225
20226     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20227 fi
20228
20229 if test "$wxUSE_STATBMP" = "yes"; then
20230     cat >> confdefs.h <<\EOF
20231 #define wxUSE_STATBMP 1
20232 EOF
20233
20234     USES_CONTROLS=1
20235 fi
20236
20237 if test "$wxUSE_STATBOX" = "yes"; then
20238     cat >> confdefs.h <<\EOF
20239 #define wxUSE_STATBOX 1
20240 EOF
20241
20242     USES_CONTROLS=1
20243 fi
20244
20245 if test "$wxUSE_STATTEXT" = "yes"; then
20246     cat >> confdefs.h <<\EOF
20247 #define wxUSE_STATTEXT 1
20248 EOF
20249
20250     USES_CONTROLS=1
20251 fi
20252
20253 if test "$wxUSE_STATLINE" = "yes"; then
20254     if test "$wxUSE_WINE" = 1 ; then
20255         echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
20256     else
20257         cat >> confdefs.h <<\EOF
20258 #define wxUSE_STATLINE 1
20259 EOF
20260
20261         USES_CONTROLS=1
20262     fi
20263 fi
20264
20265 if test "$wxUSE_STATUSBAR" = "yes"; then
20266     cat >> confdefs.h <<\EOF
20267 #define wxUSE_STATUSBAR 1
20268 EOF
20269
20270     USES_CONTROLS=1
20271
20272     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
20273 fi
20274
20275 if test "$wxUSE_TABDIALOG" = "yes"; then
20276     cat >> confdefs.h <<\EOF
20277 #define wxUSE_TAB_DIALOG 1
20278 EOF
20279
20280     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20281 fi
20282
20283 if test "$wxUSE_TEXTCTRL" = "yes"; then
20284     cat >> confdefs.h <<\EOF
20285 #define wxUSE_TEXTCTRL 1
20286 EOF
20287
20288     USES_CONTROLS=1
20289     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20290 fi
20291
20292 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20293     if test "$wxUSE_MAC" = 1; then
20294         echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20295         wxUSE_TOGGLEBTN=no
20296     fi
20297     if test "$wxUSE_UNIVERSAL" = "yes"; then
20298         echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
20299         wxUSE_TOGGLEBTN=no
20300     fi
20301
20302     if test "$wxUSE_TOGGLEBTN" = "yes"; then
20303         cat >> confdefs.h <<\EOF
20304 #define wxUSE_TOGGLEBTN 1
20305 EOF
20306
20307         USES_CONTROLS=1
20308     fi
20309 fi
20310
20311 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
20312     cat >> confdefs.h <<\EOF
20313 #define wxUSE_TOOLBAR_SIMPLE 1
20314 EOF
20315
20316     wxUSE_TOOLBAR="yes"
20317     USES_CONTROLS=1
20318 fi
20319
20320 if test "$wxUSE_TOOLBAR" = "yes"; then
20321     cat >> confdefs.h <<\EOF
20322 #define wxUSE_TOOLBAR 1
20323 EOF
20324
20325     USES_CONTROLS=1
20326
20327         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20328         wxUSE_TOOLBAR_NATIVE="yes"
20329     fi
20330
20331     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20332         cat >> confdefs.h <<\EOF
20333 #define wxUSE_TOOLBAR_NATIVE 1
20334 EOF
20335
20336         USES_CONTROLS=1
20337     fi
20338
20339     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
20340 fi
20341
20342 if test "$wxUSE_TOOLTIPS" = "yes"; then
20343     if test "$wxUSE_MOTIF" = 1; then
20344         echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
20345     else
20346         if test "$wxUSE_WINE" = 1; then
20347             echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
20348         else
20349             if test "$wxUSE_UNIVERSAL" = "yes"; then
20350                 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
20351             else
20352                 cat >> confdefs.h <<\EOF
20353 #define wxUSE_TOOLTIPS 1
20354 EOF
20355
20356             fi
20357         fi
20358     fi
20359 fi
20360
20361 if test "$wxUSE_TREECTRL" = "yes"; then
20362     if test "$wxUSE_IMAGLIST" = "yes"; then
20363         cat >> confdefs.h <<\EOF
20364 #define wxUSE_TREECTRL 1
20365 EOF
20366
20367         USES_CONTROLS=1
20368         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20369     else
20370         echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
20371     fi
20372 fi
20373
20374 if test "$wxUSE_POPUPWIN" = "yes"; then
20375     if test "$wxUSE_MAC" = 1; then
20376         echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
20377     else
20378         if test "$wxUSE_MOTIF" = 1; then
20379             echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20380         else
20381             if test "$wxUSE_PM" = 1; then
20382                 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20383             else
20384                 cat >> confdefs.h <<\EOF
20385 #define wxUSE_POPUPWIN 1
20386 EOF
20387
20388
20389                 USES_CONTROLS=1
20390             fi
20391         fi
20392     fi
20393 fi
20394
20395 if test "$wxUSE_TIPWINDOW" = "yes"; then
20396     if test "$wxUSE_PM" = 1; then
20397         echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20398     else
20399         cat >> confdefs.h <<\EOF
20400 #define wxUSE_TIPWINDOW 1
20401 EOF
20402
20403     fi
20404 fi
20405
20406 if test "$USES_CONTROLS" = 1; then
20407     cat >> confdefs.h <<\EOF
20408 #define wxUSE_CONTROLS 1
20409 EOF
20410
20411 fi
20412
20413
20414 if test "$wxUSE_TREELAYOUT" = "yes"; then
20415     cat >> confdefs.h <<\EOF
20416 #define wxUSE_TREELAYOUT 1
20417 EOF
20418
20419     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20420 fi
20421
20422 if test "$wxUSE_DRAGIMAGE" = "yes"; then
20423     cat >> confdefs.h <<\EOF
20424 #define wxUSE_DRAGIMAGE 1
20425 EOF
20426
20427     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20428 fi
20429
20430 if test "$wxUSE_MENUS" = "yes"; then
20431     cat >> confdefs.h <<\EOF
20432 #define wxUSE_MENUS 1
20433 EOF
20434
20435     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
20436 fi
20437
20438 if test "$wxUSE_METAFILE" = "yes"; then
20439     cat >> confdefs.h <<\EOF
20440 #define wxUSE_METAFILE 1
20441 EOF
20442
20443 fi
20444
20445 if test "$wxUSE_MIMETYPE" = "yes"; then
20446     cat >> confdefs.h <<\EOF
20447 #define wxUSE_MIMETYPE 1
20448 EOF
20449
20450 fi
20451
20452 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20453     cat >> confdefs.h <<\EOF
20454 #define wxUSE_SYSTEM_OPTIONS 1
20455 EOF
20456
20457 if test "$TOOLKIT" = "MSW"; then
20458     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20459 fi
20460
20461 fi
20462
20463 if test "$wxUSE_PROTOCOL" = "yes"; then
20464     if test "$wxUSE_SOCKETS" != "yes"; then
20465         echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20466         wxUSE_PROTOCOL=no
20467     fi
20468
20469     if test "$wxUSE_PROTOCOL" = "yes"; then
20470         cat >> confdefs.h <<\EOF
20471 #define wxUSE_PROTOCOL 1
20472 EOF
20473
20474
20475         if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20476             cat >> confdefs.h <<\EOF
20477 #define wxUSE_PROTOCOL_HTTP 1
20478 EOF
20479
20480         fi
20481         if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20482             cat >> confdefs.h <<\EOF
20483 #define wxUSE_PROTOCOL_FTP 1
20484 EOF
20485
20486         fi
20487         if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20488             cat >> confdefs.h <<\EOF
20489 #define wxUSE_PROTOCOL_FILE 1
20490 EOF
20491
20492         fi
20493     fi
20494 fi
20495
20496 if test "$wxUSE_URL" = "yes"; then
20497     if test "$wxUSE_PROTOCOL" != "yes"; then
20498         echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20499         wxUSE_URL=no
20500     fi
20501     if test "$wxUSE_URL" = "yes"; then
20502         cat >> confdefs.h <<\EOF
20503 #define wxUSE_URL 1
20504 EOF
20505
20506     fi
20507 fi
20508
20509 if test "$wxUSE_MINIFRAME" = "yes"; then
20510     cat >> confdefs.h <<\EOF
20511 #define wxUSE_MINIFRAME 1
20512 EOF
20513
20514     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20515 fi
20516
20517 if test "$wxUSE_HTML" = "yes"; then
20518     cat >> confdefs.h <<\EOF
20519 #define wxUSE_HTML 1
20520 EOF
20521
20522     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20523 fi
20524
20525 if test "$wxUSE_VALIDATORS" = "yes"; then
20526     cat >> confdefs.h <<\EOF
20527 #define wxUSE_VALIDATORS 1
20528 EOF
20529
20530     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20531 fi
20532
20533 if test "$wxUSE_PALETTE" = "yes" ; then
20534   cat >> confdefs.h <<\EOF
20535 #define wxUSE_PALETTE 1
20536 EOF
20537
20538 fi
20539
20540 if test "$wxUSE_IMAGE" = "yes" ; then
20541   cat >> confdefs.h <<\EOF
20542 #define wxUSE_IMAGE 1
20543 EOF
20544
20545 fi
20546
20547 if test "$wxUSE_GIF" = "yes" ; then
20548   cat >> confdefs.h <<\EOF
20549 #define wxUSE_GIF 1
20550 EOF
20551
20552 fi
20553
20554 if test "$wxUSE_PCX" = "yes" ; then
20555   cat >> confdefs.h <<\EOF
20556 #define wxUSE_PCX 1
20557 EOF
20558
20559 fi
20560
20561 if test "$wxUSE_IFF" = "yes" ; then
20562   cat >> confdefs.h <<\EOF
20563 #define wxUSE_IFF 1
20564 EOF
20565
20566 fi
20567
20568 if test "$wxUSE_PNM" = "yes" ; then
20569   cat >> confdefs.h <<\EOF
20570 #define wxUSE_PNM 1
20571 EOF
20572
20573 fi
20574
20575 if test "$wxUSE_XPM" = "yes" ; then
20576   cat >> confdefs.h <<\EOF
20577 #define wxUSE_XPM 1
20578 EOF
20579
20580 fi
20581
20582 if test "$wxUSE_ICO_CUR" = "yes" ; then
20583   cat >> confdefs.h <<\EOF
20584 #define wxUSE_ICO_CUR 1
20585 EOF
20586
20587 fi
20588
20589 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20590     LIBS=" -lunicows $LIBS"
20591 fi
20592
20593
20594 if test "$wxUSE_CHOICEDLG" = "yes"; then
20595     cat >> confdefs.h <<\EOF
20596 #define wxUSE_CHOICEDLG 1
20597 EOF
20598
20599 fi
20600
20601 if test "$wxUSE_COLOURDLG" = "yes"; then
20602     cat >> confdefs.h <<\EOF
20603 #define wxUSE_COLOURDLG 1
20604 EOF
20605
20606 fi
20607
20608 if test "$wxUSE_FILEDLG" = "yes"; then
20609     cat >> confdefs.h <<\EOF
20610 #define wxUSE_FILEDLG 1
20611 EOF
20612
20613 fi
20614
20615 if test "$wxUSE_FINDREPLDLG" = "yes"; then
20616     cat >> confdefs.h <<\EOF
20617 #define wxUSE_FINDREPLDLG 1
20618 EOF
20619
20620 fi
20621
20622 if test "$wxUSE_FONTDLG" = "yes"; then
20623     cat >> confdefs.h <<\EOF
20624 #define wxUSE_FONTDLG 1
20625 EOF
20626
20627 fi
20628
20629 if test "$wxUSE_DIRDLG" = "yes"; then
20630     if test "$wxUSE_TREECTRL" != "yes"; then
20631         echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20632     else
20633         cat >> confdefs.h <<\EOF
20634 #define wxUSE_DIRDLG 1
20635 EOF
20636
20637     fi
20638 fi
20639
20640 if test "$wxUSE_MSGDLG" = "yes"; then
20641     cat >> confdefs.h <<\EOF
20642 #define wxUSE_MSGDLG 1
20643 EOF
20644
20645 fi
20646
20647 if test "$wxUSE_NUMBERDLG" = "yes"; then
20648     cat >> confdefs.h <<\EOF
20649 #define wxUSE_NUMBERDLG 1
20650 EOF
20651
20652 fi
20653
20654 if test "$wxUSE_PROGRESSDLG" = "yes"; then
20655     if test "$wxUSE_CONSTRAINTS" != "yes"; then
20656        echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20657     else
20658         cat >> confdefs.h <<\EOF
20659 #define wxUSE_PROGRESSDLG 1
20660 EOF
20661
20662     fi
20663 fi
20664
20665 if test "$wxUSE_SPLASH" = "yes"; then
20666     cat >> confdefs.h <<\EOF
20667 #define wxUSE_SPLASH 1
20668 EOF
20669
20670 fi
20671
20672 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20673     if test "$wxUSE_CONSTRAINTS" != "yes"; then
20674        echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20675     else
20676         cat >> confdefs.h <<\EOF
20677 #define wxUSE_STARTUP_TIPS 1
20678 EOF
20679
20680     fi
20681 fi
20682
20683 if test "$wxUSE_TEXTDLG" = "yes"; then
20684     cat >> confdefs.h <<\EOF
20685 #define wxUSE_TEXTDLG 1
20686 EOF
20687
20688 fi
20689
20690 if test "$wxUSE_WIZARDDLG" = "yes"; then
20691     cat >> confdefs.h <<\EOF
20692 #define wxUSE_WIZARDDLG 1
20693 EOF
20694
20695     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20696 fi
20697
20698
20699 if test "$cross_compiling" = "yes"; then
20700         OSINFO="\"$host\""
20701 else
20702         OSINFO=`uname -s -r -m`
20703     OSINFO="\"$OSINFO\""
20704 fi
20705
20706 cat >> confdefs.h <<EOF
20707 #define WXWIN_OS_DESCRIPTION $OSINFO
20708 EOF
20709
20710
20711
20712 if test "x$prefix" != "xNONE"; then
20713     wxPREFIX=$prefix
20714 else
20715     wxPREFIX=$ac_default_prefix
20716 fi
20717
20718 cat >> confdefs.h <<EOF
20719 #define wxINSTALL_PREFIX "$wxPREFIX"
20720 EOF
20721
20722
20723
20724
20725
20726 if test "$wxUSE_MAC" = 1 ; then
20727     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20728 fi
20729
20730
20731 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
20732
20733 if test "$wxUSE_GUI" = "yes"; then
20734
20735     LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20736
20737         
20738             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
20739                      drawing dynamic erase event exec font image \
20740                      minimal richedit rotate widgets"
20741
20742         CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20743 else
20744     SAMPLES_SUBDIRS="console"
20745 fi
20746
20747
20748 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20749 -I\${top_srcdir}/include \
20750 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20751 $TOOLKIT_INCLUDE"
20752
20753 if test "$wxUSE_GTK" = 1; then
20754     WXCONFIG_INCLUDE=
20755 else
20756     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20757 fi
20758
20759 if test "$GXX" = yes ; then
20760         CXXWARNINGS="-Wall"
20761         
20762             if test "$wxUSE_NO_DEPS" = "no" ; then
20763         CFLAGS="-MMD $CFLAGS"
20764         CXXFLAGS="-MMD $CXXFLAGS"
20765     fi
20766 fi
20767
20768 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20769
20770 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20771 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20772 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
20773
20774 LDFLAGS="$LDFLAGS $PROFILE"
20775
20776 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
20868 echo "configure:20869: checking whether ${MAKE-make} sets \${MAKE}" >&5
20869 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20870 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20871   echo $ac_n "(cached) $ac_c" 1>&6
20872 else
20873   cat > conftestmake <<\EOF
20874 all:
20875         @echo 'ac_maketemp="${MAKE}"'
20876 EOF
20877 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20878 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
20879 if test -n "$ac_maketemp"; then
20880   eval ac_cv_prog_make_${ac_make}_set=yes
20881 else
20882   eval ac_cv_prog_make_${ac_make}_set=no
20883 fi
20884 rm -f conftestmake
20885 fi
20886 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20887   echo "$ac_t""yes" 1>&6
20888   SET_MAKE=
20889 else
20890   echo "$ac_t""no" 1>&6
20891   SET_MAKE="MAKE=${MAKE-make}"
20892 fi
20893
20894
20895 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20896     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
20897 fi
20898
20899
20900
20901 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20902 wx_cv_if_gnu_make=$IF_GNU_MAKE
20903 wx_cv_path_ifs=$PATH_IFS
20904 wx_cv_program_ext=$PROGRAM_EXT
20905 wx_cv_target_library=$WX_TARGET_LIBRARY
20906 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20907 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20908 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20909        wx_cv_path_ifs wx_cv_program_ext \
20910        wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20911
20912 subdirs="demos samples utils contrib"
20913
20914
20915 trap '' 1 2 15
20916 cat > confcache <<\EOF
20917 # This file is a shell script that caches the results of configure
20918 # tests run on this system so they can be shared between configure
20919 # scripts and configure runs.  It is not useful on other systems.
20920 # If it contains results you don't want to keep, you may remove or edit it.
20921 #
20922 # By default, configure uses ./config.cache as the cache file,
20923 # creating it if it does not exist already.  You can give configure
20924 # the --cache-file=FILE option to use a different cache file; that is
20925 # what configure does when it calls configure scripts in
20926 # subdirectories, so they share the cache.
20927 # Giving --cache-file=/dev/null disables caching, for debugging configure.
20928 # config.status only pays attention to the cache file if you give it the
20929 # --recheck option to rerun configure.
20930 #
20931 EOF
20932 # The following way of writing the cache mishandles newlines in values,
20933 # but we know of no workaround that is simple, portable, and efficient.
20934 # So, don't put newlines in cache variables' values.
20935 # Ultrix sh set writes to stderr and can't be redirected directly,
20936 # and sets the high bit in the cache file unless we assign to the vars.
20937 (set) 2>&1 |
20938   case `(ac_space=' '; set) 2>&1` in
20939   *ac_space=\ *)
20940     # `set' does not quote correctly, so add quotes (double-quote substitution
20941     # turns \\\\ into \\, and sed turns \\ into \).
20942     sed -n \
20943       -e "s/'/'\\\\''/g" \
20944       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20945     ;;
20946   *)
20947     # `set' quotes correctly as required by POSIX, so do not add quotes.
20948     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20949     ;;
20950   esac >> confcache
20951 if cmp -s $cache_file confcache; then
20952   :
20953 else
20954   if test -w $cache_file; then
20955     echo "updating cache $cache_file"
20956     cat confcache > $cache_file
20957   else
20958     echo "not updating unwritable cache $cache_file"
20959   fi
20960 fi
20961 rm -f confcache
20962
20963 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20964
20965 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20966 # Let make expand exec_prefix.
20967 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20968
20969 # Any assignment to VPATH causes Sun make to only execute
20970 # the first set of double-colon rules, so remove it if not needed.
20971 # If there is a colon in the path, we need to keep it.
20972 if test "x$srcdir" = x.; then
20973   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
20974 fi
20975
20976 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20977
20978 DEFS=-DHAVE_CONFIG_H
20979
20980 # Without the "./", some shells look in PATH for config.status.
20981 : ${CONFIG_STATUS=./config.status}
20982
20983 echo creating $CONFIG_STATUS
20984 rm -f $CONFIG_STATUS
20985 cat > $CONFIG_STATUS <<EOF
20986 #! /bin/sh
20987 # Generated automatically by configure.
20988 # Run this file to recreate the current configuration.
20989 # This directory was configured as follows,
20990 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20991 #
20992 # $0 $ac_configure_args
20993 #
20994 # Compiler output produced by configure, useful for debugging
20995 # configure, is in ./config.log if it exists.
20996
20997 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20998 for ac_option
20999 do
21000   case "\$ac_option" in
21001   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21002     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
21003     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
21004   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
21005     echo "$CONFIG_STATUS generated by autoconf version 2.12"
21006     exit 0 ;;
21007   -help | --help | --hel | --he | --h)
21008     echo "\$ac_cs_usage"; exit 0 ;;
21009   *) echo "\$ac_cs_usage"; exit 1 ;;
21010   esac
21011 done
21012
21013 ac_given_srcdir=$srcdir
21014 ac_given_INSTALL="$INSTALL"
21015
21016 trap 'rm -fr `echo "
21017             wx-config
21018             src/make.env
21019             src/makeprog.env
21020             src/makelib.env
21021             Makefile
21022            setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
21023 EOF
21024 cat >> $CONFIG_STATUS <<EOF
21025
21026 # Protect against being on the right side of a sed subst in config.status.
21027 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
21028  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
21029 $ac_vpsub
21030 $extrasub
21031 s%@CFLAGS@%$CFLAGS%g
21032 s%@CPPFLAGS@%$CPPFLAGS%g
21033 s%@CXXFLAGS@%$CXXFLAGS%g
21034 s%@DEFS@%$DEFS%g
21035 s%@LDFLAGS@%$LDFLAGS%g
21036 s%@LIBS@%$LIBS%g
21037 s%@exec_prefix@%$exec_prefix%g
21038 s%@prefix@%$prefix%g
21039 s%@program_transform_name@%$program_transform_name%g
21040 s%@bindir@%$bindir%g
21041 s%@sbindir@%$sbindir%g
21042 s%@libexecdir@%$libexecdir%g
21043 s%@datadir@%$datadir%g
21044 s%@sysconfdir@%$sysconfdir%g
21045 s%@sharedstatedir@%$sharedstatedir%g
21046 s%@localstatedir@%$localstatedir%g
21047 s%@libdir@%$libdir%g
21048 s%@includedir@%$includedir%g
21049 s%@oldincludedir@%$oldincludedir%g
21050 s%@infodir@%$infodir%g
21051 s%@mandir@%$mandir%g
21052 s%@host@%$host%g
21053 s%@host_alias@%$host_alias%g
21054 s%@host_cpu@%$host_cpu%g
21055 s%@host_vendor@%$host_vendor%g
21056 s%@host_os@%$host_os%g
21057 s%@target@%$target%g
21058 s%@target_alias@%$target_alias%g
21059 s%@target_cpu@%$target_cpu%g
21060 s%@target_vendor@%$target_vendor%g
21061 s%@target_os@%$target_os%g
21062 s%@build@%$build%g
21063 s%@build_alias@%$build_alias%g
21064 s%@build_cpu@%$build_cpu%g
21065 s%@build_vendor@%$build_vendor%g
21066 s%@build_os@%$build_os%g
21067 s%@CC@%$CC%g
21068 s%@CPP@%$CPP%g
21069 s%@CXX@%$CXX%g
21070 s%@RANLIB@%$RANLIB%g
21071 s%@AR@%$AR%g
21072 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21073 s%@INSTALL_DATA@%$INSTALL_DATA%g
21074 s%@STRIP@%$STRIP%g
21075 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
21076 s%@YACC@%$YACC%g
21077 s%@LEX@%$LEX%g
21078 s%@LEXLIB@%$LEXLIB%g
21079 s%@LN_S@%$LN_S%g
21080 s%@CXXCPP@%$CXXCPP%g
21081 s%@PKG_CONFIG@%$PKG_CONFIG%g
21082 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21083 s%@GTK_LIBS@%$GTK_LIBS%g
21084 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
21085 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
21086 s%@GTK_CONFIG@%$GTK_CONFIG%g
21087 s%@X_CFLAGS@%$X_CFLAGS%g
21088 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21089 s%@X_LIBS@%$X_LIBS%g
21090 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
21091 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
21092 s%@RESCOMP@%$RESCOMP%g
21093 s%@DEREZ@%$DEREZ%g
21094 s%@LIBICONV@%$LIBICONV%g
21095 s%@LEX_STEM@%$LEX_STEM%g
21096 s%@PATH_IFS@%$PATH_IFS%g
21097 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21098 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21099 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
21100 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21101 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
21102 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
21103 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21104 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21105 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
21106 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
21107 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21108 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
21109 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21110 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21111 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
21112 s%@WX_ALL@%$WX_ALL%g
21113 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21114 s%@SHARED_LD@%$SHARED_LD%g
21115 s%@PIC_FLAG@%$PIC_FLAG%g
21116 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21117 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
21118 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21119 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
21120 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21121 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21122 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21123 s%@USE_GUI@%$USE_GUI%g
21124 s%@AFMINSTALL@%$AFMINSTALL%g
21125 s%@TOOLKIT@%$TOOLKIT%g
21126 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
21127 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
21128 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21129 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
21130 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
21131 s%@cross_compiling@%$cross_compiling%g
21132 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21133 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
21134 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21135 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
21136 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
21137 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
21138 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
21139 s%@ALL_HEADERS@%$ALL_HEADERS%g
21140 s%@ALL_SOURCES@%$ALL_SOURCES%g
21141 s%@GUIDIST@%$GUIDIST%g
21142 s%@PORT_FILES@%$PORT_FILES%g
21143 s%@DISTDIR@%$DISTDIR%g
21144 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
21145 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
21146 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
21147 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
21148 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
21149 s%@EXTRADEFS@%$EXTRADEFS%g
21150 s%@RESFLAGS@%$RESFLAGS%g
21151 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
21152 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21153 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
21154 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
21155 s%@LIBWXMACRES@%$LIBWXMACRES%g
21156 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
21157 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
21158 s%@DLLTOOL@%$DLLTOOL%g
21159 s%@AS@%$AS%g
21160 s%@NM@%$NM%g
21161 s%@LD@%$LD%g
21162 s%@MAKEINFO@%$MAKEINFO%g
21163 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
21164 s%@SET_MAKE@%$SET_MAKE%g
21165 s%@subdirs@%$subdirs%g
21166
21167 CEOF
21168 EOF
21169
21170 cat >> $CONFIG_STATUS <<\EOF
21171
21172 # Split the substitutions into bite-sized pieces for seds with
21173 # small command number limits, like on Digital OSF/1 and HP-UX.
21174 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21175 ac_file=1 # Number of current file.
21176 ac_beg=1 # First line for current file.
21177 ac_end=$ac_max_sed_cmds # Line after last line for current file.
21178 ac_more_lines=:
21179 ac_sed_cmds=""
21180 while $ac_more_lines; do
21181   if test $ac_beg -gt 1; then
21182     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21183   else
21184     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21185   fi
21186   if test ! -s conftest.s$ac_file; then
21187     ac_more_lines=false
21188     rm -f conftest.s$ac_file
21189   else
21190     if test -z "$ac_sed_cmds"; then
21191       ac_sed_cmds="sed -f conftest.s$ac_file"
21192     else
21193       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
21194     fi
21195     ac_file=`expr $ac_file + 1`
21196     ac_beg=$ac_end
21197     ac_end=`expr $ac_end + $ac_max_sed_cmds`
21198   fi
21199 done
21200 if test -z "$ac_sed_cmds"; then
21201   ac_sed_cmds=cat
21202 fi
21203 EOF
21204
21205 cat >> $CONFIG_STATUS <<EOF
21206
21207 CONFIG_FILES=\${CONFIG_FILES-"wx-config
21208             src/make.env
21209             src/makeprog.env
21210             src/makelib.env
21211             Makefile
21212           "}
21213 EOF
21214 cat >> $CONFIG_STATUS <<\EOF
21215 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21216   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21217   case "$ac_file" in
21218   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21219        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21220   *) ac_file_in="${ac_file}.in" ;;
21221   esac
21222
21223   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
21224
21225   # Remove last slash and all that follows it.  Not all systems have dirname.
21226   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21227   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21228     # The file is in a subdirectory.
21229     test ! -d "$ac_dir" && mkdir "$ac_dir"
21230     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21231     # A "../" for each directory in $ac_dir_suffix.
21232     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21233   else
21234     ac_dir_suffix= ac_dots=
21235   fi
21236
21237   case "$ac_given_srcdir" in
21238   .)  srcdir=.
21239       if test -z "$ac_dots"; then top_srcdir=.
21240       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21241   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
21242   *) # Relative path.
21243     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21244     top_srcdir="$ac_dots$ac_given_srcdir" ;;
21245   esac
21246
21247   case "$ac_given_INSTALL" in
21248   [/$]*) INSTALL="$ac_given_INSTALL" ;;
21249   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21250   esac
21251
21252   echo creating "$ac_file"
21253   rm -f "$ac_file"
21254   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21255   case "$ac_file" in
21256   *Makefile*) ac_comsub="1i\\
21257 # $configure_input" ;;
21258   *) ac_comsub= ;;
21259   esac
21260
21261   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21262   sed -e "$ac_comsub
21263 s%@configure_input@%$configure_input%g
21264 s%@srcdir@%$srcdir%g
21265 s%@top_srcdir@%$top_srcdir%g
21266 s%@INSTALL@%$INSTALL%g
21267 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21268 fi; done
21269 rm -f conftest.s*
21270
21271 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21272 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21273 #
21274 # ac_d sets the value in "#define NAME VALUE" lines.
21275 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
21276 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
21277 ac_dC='\3'
21278 ac_dD='%g'
21279 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21280 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21281 ac_uB='\([      ]\)%\1#\2define\3'
21282 ac_uC=' '
21283 ac_uD='\4%g'
21284 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21285 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21286 ac_eB='$%\1#\2define\3'
21287 ac_eC=' '
21288 ac_eD='%g'
21289
21290 if test "${CONFIG_HEADERS+set}" != set; then
21291 EOF
21292 cat >> $CONFIG_STATUS <<EOF
21293   CONFIG_HEADERS="setup.h:setup.h.in"
21294 EOF
21295 cat >> $CONFIG_STATUS <<\EOF
21296 fi
21297 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21298   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21299   case "$ac_file" in
21300   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21301        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21302   *) ac_file_in="${ac_file}.in" ;;
21303   esac
21304
21305   echo creating $ac_file
21306
21307   rm -f conftest.frag conftest.in conftest.out
21308   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21309   cat $ac_file_inputs > conftest.in
21310
21311 EOF
21312
21313 # Transform confdefs.h into a sed script conftest.vals that substitutes
21314 # the proper values into config.h.in to produce config.h.  And first:
21315 # Protect against being on the right side of a sed subst in config.status.
21316 # Protect against being in an unquoted here document in config.status.
21317 rm -f conftest.vals
21318 cat > conftest.hdr <<\EOF
21319 s/[\\&%]/\\&/g
21320 s%[\\$`]%\\&%g
21321 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21322 s%ac_d%ac_u%gp
21323 s%ac_u%ac_e%gp
21324 EOF
21325 sed -n -f conftest.hdr confdefs.h > conftest.vals
21326 rm -f conftest.hdr
21327
21328 # This sed command replaces #undef with comments.  This is necessary, for
21329 # example, in the case of _POSIX_SOURCE, which is predefined and required
21330 # on some systems where configure will not decide to define it.
21331 cat >> conftest.vals <<\EOF
21332 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21333 EOF
21334
21335 # Break up conftest.vals because some shells have a limit on
21336 # the size of here documents, and old seds have small limits too.
21337
21338 rm -f conftest.tail
21339 while :
21340 do
21341   ac_lines=`grep -c . conftest.vals`
21342   # grep -c gives empty output for an empty file on some AIX systems.
21343   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21344   # Write a limited-size here document to conftest.frag.
21345   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21346   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21347   echo 'CEOF
21348   sed -f conftest.frag conftest.in > conftest.out
21349   rm -f conftest.in
21350   mv conftest.out conftest.in
21351 ' >> $CONFIG_STATUS
21352   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21353   rm -f conftest.vals
21354   mv conftest.tail conftest.vals
21355 done
21356 rm -f conftest.vals
21357
21358 cat >> $CONFIG_STATUS <<\EOF
21359   rm -f conftest.frag conftest.h
21360   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
21361   cat conftest.in >> conftest.h
21362   rm -f conftest.in
21363   if cmp -s $ac_file conftest.h 2>/dev/null; then
21364     echo "$ac_file is unchanged"
21365     rm -f conftest.h
21366   else
21367     # Remove last slash and all that follows it.  Not all systems have dirname.
21368       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21369       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21370       # The file is in a subdirectory.
21371       test ! -d "$ac_dir" && mkdir "$ac_dir"
21372     fi
21373     rm -f $ac_file
21374     mv conftest.h $ac_file
21375   fi
21376 fi; done
21377
21378 EOF
21379 cat >> $CONFIG_STATUS <<EOF
21380
21381             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21382             LN_S="${LN_S}"
21383           
21384          
21385 EOF
21386 cat >> $CONFIG_STATUS <<\EOF
21387
21388                                                                                                 if test ! -h wx-config; then
21389                 chmod +x wx-config
21390                 mv wx-config wx${TOOLCHAIN_NAME}-config
21391                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
21392             fi
21393
21394             if test ! -d lib; then
21395               mkdir lib
21396             fi
21397             if test ! -d lib/wx; then
21398               mkdir lib/wx
21399             fi
21400             if test ! -d lib/wx/include; then
21401               mkdir lib/wx/include
21402             fi
21403             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21404               mkdir lib/wx/include/${TOOLCHAIN_NAME}
21405             fi
21406             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21407               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
21408             fi
21409             if test -f setup.h; then
21410               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
21411             fi
21412           
21413 exit 0
21414 EOF
21415 chmod +x $CONFIG_STATUS
21416 rm -fr confdefs* $ac_clean_files
21417 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21418
21419 if test "$no_recursion" != yes; then
21420
21421   # Remove --cache-file and --srcdir arguments so they do not pile up.
21422   ac_sub_configure_args=
21423   ac_prev=
21424   for ac_arg in $ac_configure_args; do
21425     if test -n "$ac_prev"; then
21426       ac_prev=
21427       continue
21428     fi
21429     case "$ac_arg" in
21430     -cache-file | --cache-file | --cache-fil | --cache-fi \
21431     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21432       ac_prev=cache_file ;;
21433     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21434     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
21435       ;;
21436     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21437       ac_prev=srcdir ;;
21438     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21439       ;;
21440     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21441     esac
21442   done
21443
21444   for ac_config_dir in demos samples utils contrib; do
21445
21446     # Do not complain, so a configure script can configure whichever
21447     # parts of a large source tree are present.
21448     if test ! -d $srcdir/$ac_config_dir; then
21449       continue
21450     fi
21451
21452     echo configuring in $ac_config_dir
21453
21454     case "$srcdir" in
21455     .) ;;
21456     *)
21457       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21458       else
21459         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21460       fi
21461       ;;
21462     esac
21463
21464     ac_popdir=`pwd`
21465     cd $ac_config_dir
21466
21467       # A "../" for each directory in /$ac_config_dir.
21468       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
21469
21470     case "$srcdir" in
21471     .) # No --srcdir option.  We are building in place.
21472       ac_sub_srcdir=$srcdir ;;
21473     /*) # Absolute path.
21474       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21475     *) # Relative path.
21476       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21477     esac
21478
21479     # Check for guested configure; otherwise get Cygnus style configure.
21480     if test -f $ac_sub_srcdir/configure; then
21481       ac_sub_configure=$ac_sub_srcdir/configure
21482     elif test -f $ac_sub_srcdir/configure.in; then
21483       ac_sub_configure=$ac_configure
21484     else
21485       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
21486       ac_sub_configure=
21487     fi
21488
21489     # The recursion is here.
21490     if test -n "$ac_sub_configure"; then
21491
21492       # Make the cache file name correct relative to the subdirectory.
21493       case "$cache_file" in
21494       /*) ac_sub_cache_file=$cache_file ;;
21495       *) # Relative path.
21496         ac_sub_cache_file="$ac_dots$cache_file" ;;
21497       esac
21498   case "$ac_given_INSTALL" in
21499         [/$]*) INSTALL="$ac_given_INSTALL" ;;
21500         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21501         esac
21502
21503       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21504       # The eval makes quoting arguments work.
21505       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21506       then :
21507       else
21508         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21509       fi
21510     fi
21511
21512     cd $ac_popdir
21513   done
21514 fi
21515
21516