updated configure to match configure.in changes
[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
60
61
62 # Configure paths for GTK+
63 # Owen Taylor     1997-2001
64
65
66
67 # Configure paths for GTK+
68 # Owen Taylor     97-11-3
69
70
71
72
73
74
75
76
77 # Guess values for system-dependent variables and create Makefiles.
78 # Generated automatically using autoconf version 2.13 
79 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
80 #
81 # This configure script is free software; the Free Software Foundation
82 # gives unlimited permission to copy, distribute and modify it.
83
84 # Defaults:
85 ac_help=
86 ac_default_prefix=/usr/local
87 # Any additions from configure.in:
88 ac_help="$ac_help
89   --enable-gui            use GUI classes"
90 ac_help="$ac_help
91   --enable-universal      use wxWindows GUI controls instead of native ones"
92 ac_help="$ac_help
93   --with-gtk              use GTK+"
94 ac_help="$ac_help
95   --with-motif            use Motif/Lesstif"
96 ac_help="$ac_help
97   --with-mac              use Mac OS X"
98 ac_help="$ac_help
99   --with-wine             use Wine"
100 ac_help="$ac_help
101   --with-msw              use MS-Windows"
102 ac_help="$ac_help
103   --with-pm               use OS/2 Presentation Manager"
104 ac_help="$ac_help
105   --with-mgl              use SciTech MGL"
106 ac_help="$ac_help
107   --with-microwin         use MicroWindows"
108 ac_help="$ac_help
109   --with-x11              use X11"
110 ac_help="$ac_help
111   --enable-nanox          use NanoX"
112 ac_help="$ac_help
113   --enable-gtk2           use GTK+ 2.0 if available (EXPERIMENTAL)"
114 ac_help="$ac_help
115   --with-libpng           use libpng (PNG image format)"
116 ac_help="$ac_help
117   --with-libjpeg          use libjpeg (JPEG file format)"
118 ac_help="$ac_help
119   --with-libtiff          use libtiff (TIFF file format)"
120 ac_help="$ac_help
121   --with-opengl           use OpenGL (or Mesa)"
122 ac_help="$ac_help
123   --with-dmalloc          use dmalloc library (http://dmalloc.com/)"
124 ac_help="$ac_help
125   --with-regex            enable support for wxRegEx class"
126 ac_help="$ac_help
127   --with-zlib             use zlib for LZW compression"
128 ac_help="$ac_help
129   --with-odbc             use the IODBC and wxODBC classes"
130 ac_help="$ac_help
131   --enable-shared         create shared library code"
132 ac_help="$ac_help
133   --enable-soname         set the DT_SONAME field in ELF shared libraries"
134 ac_help="$ac_help
135   --enable-optimise       create optimised code"
136 ac_help="$ac_help
137   --enable-debug          same as debug_flag and debug_info"
138 ac_help="$ac_help
139   --enable-precomp        enable use of precompiled headers (Mac OS X/Darwin)"
140 ac_help="$ac_help
141   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)"
142 ac_help="$ac_help
143   --enable-debug_info     create code with debugging information"
144 ac_help="$ac_help
145   --enable-debug_gdb      create code with extra GDB debugging information"
146 ac_help="$ac_help
147   --enable-debug_cntxt    use wxDebugContext"
148 ac_help="$ac_help
149   --enable-mem_tracing    create code with memory tracing"
150 ac_help="$ac_help
151   --enable-profile        create code with profiling information"
152 ac_help="$ac_help
153   --enable-no_rtti        create code without RTTI information"
154 ac_help="$ac_help
155   --enable-no_exceptions  create code without C++ exceptions handling"
156 ac_help="$ac_help
157   --enable-permissive     compile code disregarding strict ANSI"
158 ac_help="$ac_help
159   --enable-no_deps        create code without dependency information"
160 ac_help="$ac_help
161   --enable-compat20       enable wxWindows 2.0 compatibility"
162 ac_help="$ac_help
163   --disable-compat22      disable wxWindows 2.2 compatibility"
164 ac_help="$ac_help
165   --enable-rpath=DIR      output the rpath flag from wx-config"
166 ac_help="$ac_help
167   --enable-intl           use internationalization system"
168 ac_help="$ac_help
169   --enable-config         use wxConfig (and derived) classes"
170 ac_help="$ac_help
171   --enable-protocols      use wxProtocol and derived classes"
172 ac_help="$ac_help
173   --enable-ftp            use wxFTP (requires wxProtocol"
174 ac_help="$ac_help
175   --enable-http           use wxHTTP (requires wxProtocol"
176 ac_help="$ac_help
177   --enable-fileproto      use wxFileProto class (requires wxProtocol"
178 ac_help="$ac_help
179   --enable-sockets        use socket/network classes"
180 ac_help="$ac_help
181   --enable-ole            use OLE classes"
182 ac_help="$ac_help
183   --enable-dataobj        use data object classes"
184 ac_help="$ac_help
185   --enable-ipc            use interprocess communication (wxSocket etc.)"
186 ac_help="$ac_help
187   --enable-cmdline        use wxCmdLineParser class"
188 ac_help="$ac_help
189   --enable-datetime       use wxDateTime class"
190 ac_help="$ac_help
191   --enable-timedate       use obsolete wxDate/wxTime classes"
192 ac_help="$ac_help
193   --enable-stopwatch      use wxStopWatch class"
194 ac_help="$ac_help
195   --enable-dialupman      use dialup network classes"
196 ac_help="$ac_help
197   --enable-apple_ieee     use the Apple IEEE codec"
198 ac_help="$ac_help
199   --enable-timer          use wxTimer class"
200 ac_help="$ac_help
201   --enable-wave           use wxWave class"
202 ac_help="$ac_help
203   --enable-fraction       use wxFraction class"
204 ac_help="$ac_help
205   --enable-dynlib         use wxLibrary class for DLL loading"
206 ac_help="$ac_help
207   --enable-dynamicloader  use (new) wxDynamicLibrary class"
208 ac_help="$ac_help
209   --enable-longlong       use wxLongLong class"
210 ac_help="$ac_help
211   --enable-geometry       use geometry class"
212 ac_help="$ac_help
213   --enable-log            use logging system"
214 ac_help="$ac_help
215   --enable-streams        use wxStream etc classes"
216 ac_help="$ac_help
217   --enable-file           use wxFile classes"
218 ac_help="$ac_help
219   --enable-ffile          use wxFFile classes"
220 ac_help="$ac_help
221   --enable-textbuf        use wxTextBuffer class"
222 ac_help="$ac_help
223   --enable-textfile       use wxTextFile class"
224 ac_help="$ac_help
225   --enable-fontmap        use font encodings conversion classes"
226 ac_help="$ac_help
227   --enable-unicode        compile wxString with Unicode support"
228 ac_help="$ac_help
229   --enable-mslu           use MS Layer for Unicode on Windows 9x (win32 only)"
230 ac_help="$ac_help
231   --enable-wxprintfv      use wxWindows implementation of vprintf()"
232 ac_help="$ac_help
233   --enable-std_iostreams  use standard C++ stream classes"
234 ac_help="$ac_help
235   --enable-filesystem     use virtual file systems classes"
236 ac_help="$ac_help
237   --enable-fs_inet        use virtual HTTP/FTP filesystems"
238 ac_help="$ac_help
239   --enable-fs_zip         use virtual ZIP filesystems"
240 ac_help="$ac_help
241   --enable-zipstream      use wxZipInputStream"
242 ac_help="$ac_help
243   --enable-catch_segvs    catch signals and pass them to wxApp::OnFatalException"
244 ac_help="$ac_help
245   --enable-snglinst       use wxSingleInstanceChecker class"
246 ac_help="$ac_help
247   --enable-mimetype       use wxMimeTypesManager"
248 ac_help="$ac_help
249   --enable-sysoptions     use wxSystemOptions"
250 ac_help="$ac_help
251   --enable-url            use wxURL class"
252 ac_help="$ac_help
253   --enable-protocol       use wxProtocol class"
254 ac_help="$ac_help
255   --enable-protocol-http  HTTP support in wxProtocol"
256 ac_help="$ac_help
257   --enable-protocol-ftp   FTP support in wxProtocol"
258 ac_help="$ac_help
259   --enable-protocol-file  FILE support in wxProtocol"
260 ac_help="$ac_help
261   --enable-threads        use threads"
262 ac_help="$ac_help
263   --enable-docview        use document view architecture"
264 ac_help="$ac_help
265   --enable-help           use help subsystem"
266 ac_help="$ac_help
267   --enable-mshtmlhelp     use MS HTML Help (win32)"
268 ac_help="$ac_help
269   --enable-html           use wxHTML sub-library"
270 ac_help="$ac_help
271   --enable-htmlhelp       use wxHTML-based help"
272 ac_help="$ac_help
273   --enable-constraints    use layout-constraints system"
274 ac_help="$ac_help
275   --enable-printarch      use printing architecture"
276 ac_help="$ac_help
277   --enable-mdi            use multiple document interface architecture"
278 ac_help="$ac_help
279   --enable-loggui         use standard GUI logger"
280 ac_help="$ac_help
281   --enable-logwin         use wxLogWindow"
282 ac_help="$ac_help
283   --enable-logdialog      use wxLogDialog"
284 ac_help="$ac_help
285   --enable-postscript     use wxPostscriptDC device context (default for gtk+)"
286 ac_help="$ac_help
287   --enable-prologio       use Prolog IO library"
288 ac_help="$ac_help
289   --enable-resources      use wxWindows resources"
290 ac_help="$ac_help
291   --enable-xresources     use X resources for save (default for gtk+)"
292 ac_help="$ac_help
293   --enable-clipboard      use wxClipboard classes"
294 ac_help="$ac_help
295   --enable-dnd            use Drag'n'Drop classes"
296 ac_help="$ac_help
297   --enable-metafile       use win32 metafiles"
298 ac_help="$ac_help
299   --enable-treelayout     use wxTreeLayout classes"
300 ac_help="$ac_help
301   --enable-controls       use all usual controls"
302 ac_help="$ac_help
303   --enable-accel          use accelerators"
304 ac_help="$ac_help
305   --enable-button         use wxButton class"
306 ac_help="$ac_help
307   --enable-bmpbutton      use wxBitmapButton class"
308 ac_help="$ac_help
309   --enable-calendar       use wxCalendarCtrl class"
310 ac_help="$ac_help
311   --enable-caret          use wxCaret class"
312 ac_help="$ac_help
313   --enable-checkbox       use wxCheckBox class"
314 ac_help="$ac_help
315   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class"
316 ac_help="$ac_help
317   --enable-choice         use wxChoice class"
318 ac_help="$ac_help
319   --enable-combobox       use wxComboBox classes"
320 ac_help="$ac_help
321   --enable-gauge          use wxGauge class"
322 ac_help="$ac_help
323   --enable-grid           use wxGrid class"
324 ac_help="$ac_help
325   --enable-newgrid        use new wxGrid class"
326 ac_help="$ac_help
327   --enable-imaglist       use wxImageList class"
328 ac_help="$ac_help
329   --enable-listbox        use wxListBox class"
330 ac_help="$ac_help
331   --enable-listctrl       use wxListCtrl class"
332 ac_help="$ac_help
333   --enable-notebook       use wxNotebook class"
334 ac_help="$ac_help
335   --enable-propsheet      use wxPropertySheet class"
336 ac_help="$ac_help
337   --enable-radiobox       use wxRadioBox class"
338 ac_help="$ac_help
339   --enable-radiobtn       use wxRadioButton class"
340 ac_help="$ac_help
341   --enable-sash           use wxSashWindow class"
342 ac_help="$ac_help
343   --enable-scrollbar      use wxScrollBar class and scrollable windows"
344 ac_help="$ac_help
345   --enable-slider         use wxSlider class"
346 ac_help="$ac_help
347   --enable-spinbtn        use wxSpinButton class"
348 ac_help="$ac_help
349   --enable-spinctrl       use wxSpinCtrl class"
350 ac_help="$ac_help
351   --enable-splitter       use wxSplitterWindow class"
352 ac_help="$ac_help
353   --enable-statbmp        use wxStaticBitmap class"
354 ac_help="$ac_help
355   --enable-statbox        use wxStaticBox class"
356 ac_help="$ac_help
357   --enable-statline       use wxStaticLine class"
358 ac_help="$ac_help
359   --enable-stattext       use wxStaticText class"
360 ac_help="$ac_help
361   --enable-statusbar      use wxStatusBar class"
362 ac_help="$ac_help
363   --enable-tabdialog      use wxTabControl class"
364 ac_help="$ac_help
365   --enable-textctrl       use wxTextCtrl class"
366 ac_help="$ac_help
367   --enable-togglebtn      use wxToggleButton class"
368 ac_help="$ac_help
369   --enable-toolbar        use wxToolBar class"
370 ac_help="$ac_help
371   --enable-tbarnative     use native wxToolBar class"
372 ac_help="$ac_help
373   --enable-tbarsmpl       use wxToolBarSimple class"
374 ac_help="$ac_help
375   --enable-treectrl       use wxTreeCtrl class"
376 ac_help="$ac_help
377   --enable-tipwindow      use wxTipWindow class"
378 ac_help="$ac_help
379   --enable-popupwin       use wxPopUpWindow class"
380 ac_help="$ac_help
381   --enable-commondlg      use all common dialogs"
382 ac_help="$ac_help
383   --enable-choicedlg      use wxChoiceDialog"
384 ac_help="$ac_help
385   --enable-coldlg         use wxColourDialog"
386 ac_help="$ac_help
387   --enable-filedlg        use wxFileDialog"
388 ac_help="$ac_help
389   --enable-finddlg        use wxFindReplaceDialog"
390 ac_help="$ac_help
391   --enable-fontdlg        use wxFontDialog"
392 ac_help="$ac_help
393   --enable-dirdlg         use wxDirDialog"
394 ac_help="$ac_help
395   --enable-msgdlg         use wxMessageDialog"
396 ac_help="$ac_help
397   --enable-numberdlg      use wxNumberEntryDialog"
398 ac_help="$ac_help
399   --enable-splash         use wxSplashScreen"
400 ac_help="$ac_help
401   --enable-textdlg        use wxTextDialog"
402 ac_help="$ac_help
403   --enable-tipdlg         use startup tips"
404 ac_help="$ac_help
405   --enable-progressdlg    use wxProgressDialog"
406 ac_help="$ac_help
407   --enable-wizarddlg      use wxWizard"
408 ac_help="$ac_help
409   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes"
410 ac_help="$ac_help
411   --enable-miniframe      use wxMiniFrame class"
412 ac_help="$ac_help
413   --enable-tooltips       use wxToolTip class"
414 ac_help="$ac_help
415   --enable-splines        use spline drawing code"
416 ac_help="$ac_help
417   --enable-validators     use wxValidator and derived classes"
418 ac_help="$ac_help
419   --enable-busyinfo       use wxBusyInfo"
420 ac_help="$ac_help
421   --enable-joystick       use wxJoystick (Linux only)"
422 ac_help="$ac_help
423   --enable-metafiles      use wxMetaFile (Windows only)"
424 ac_help="$ac_help
425   --enable-dragimage      use wxDragImage"
426 ac_help="$ac_help
427   --enable-palette        use wxPalette class"
428 ac_help="$ac_help
429   --enable-image          use wxImage class"
430 ac_help="$ac_help
431   --enable-gif            use gif images (GIF file format)"
432 ac_help="$ac_help
433   --enable-pcx            use pcx images (PCX file format)"
434 ac_help="$ac_help
435   --enable-iff            use iff images (IFF file format)"
436 ac_help="$ac_help
437   --enable-pnm            use pnm images (PNM file format)"
438 ac_help="$ac_help
439   --enable-xpm            use xpm images (XPM file format)"
440 ac_help="$ac_help
441   --enable-icocur         use Windows ICO and CUR formats"
442 ac_help="$ac_help
443   --disable-largefile     omit support for large files"
444 ac_help="$ac_help
445   --disable-gtktest       do not try to compile and run a test GTK+ program"
446 ac_help="$ac_help
447   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
448 ac_help="$ac_help
449   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
450 ac_help="$ac_help
451   --disable-gtktest       Do not try to compile and run a test GTK program"
452 ac_help="$ac_help
453   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
454 ac_help="$ac_help
455   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
456 ac_help="$ac_help
457   --disable-gtktest       Do not try to compile and run a test GTK program"
458 ac_help="$ac_help
459   --with-x                use the X Window System"
460 ac_help="$ac_help
461   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
462
463 # Initialize some variables set by options.
464 # The variables have the same names as the options, with
465 # dashes changed to underlines.
466 build=NONE
467 cache_file=./config.cache
468 exec_prefix=NONE
469 host=NONE
470 no_create=
471 nonopt=NONE
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 target=NONE
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484 bindir='${exec_prefix}/bin'
485 sbindir='${exec_prefix}/sbin'
486 libexecdir='${exec_prefix}/libexec'
487 datadir='${prefix}/share'
488 sysconfdir='${prefix}/etc'
489 sharedstatedir='${prefix}/com'
490 localstatedir='${prefix}/var'
491 libdir='${exec_prefix}/lib'
492 includedir='${prefix}/include'
493 oldincludedir='/usr/include'
494 infodir='${prefix}/info'
495 mandir='${prefix}/man'
496
497 # Initialize some other variables.
498 subdirs=
499 MFLAGS= MAKEFLAGS=
500 SHELL=${CONFIG_SHELL-/bin/sh}
501 # Maximum number of lines to put in a shell here document.
502 ac_max_here_lines=12
503
504 ac_prev=
505 for ac_option
506 do
507
508   # If the previous option needs an argument, assign it.
509   if test -n "$ac_prev"; then
510     eval "$ac_prev=\$ac_option"
511     ac_prev=
512     continue
513   fi
514
515   case "$ac_option" in
516   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
517   *) ac_optarg= ;;
518   esac
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case "$ac_option" in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir="$ac_optarg" ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build="$ac_optarg" ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file="$ac_optarg" ;;
540
541   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
542     ac_prev=datadir ;;
543   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
544   | --da=*)
545     datadir="$ac_optarg" ;;
546
547   -disable-* | --disable-*)
548     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
549     # Reject names that are not valid shell variable names.
550     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
551       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
552     fi
553     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
554     eval "enable_${ac_feature}=no" ;;
555
556   -enable-* | --enable-*)
557     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
558     # Reject names that are not valid shell variable names.
559     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
560       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
561     fi
562     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
563     case "$ac_option" in
564       *=*) ;;
565       *) ac_optarg=yes ;;
566     esac
567     eval "enable_${ac_feature}='$ac_optarg'" ;;
568
569   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
570   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
571   | --exec | --exe | --ex)
572     ac_prev=exec_prefix ;;
573   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
574   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
575   | --exec=* | --exe=* | --ex=*)
576     exec_prefix="$ac_optarg" ;;
577
578   -gas | --gas | --ga | --g)
579     # Obsolete; use --with-gas.
580     with_gas=yes ;;
581
582   -help | --help | --hel | --he)
583     # Omit some internal or obsolete options to make the list less imposing.
584     # This message is too long to be a string in the A/UX 3.1 sh.
585     cat << EOF
586 Usage: configure [options] [host]
587 Options: [defaults in brackets after descriptions]
588 Configuration:
589   --cache-file=FILE       cache test results in FILE
590   --help                  print this message
591   --no-create             do not create output files
592   --quiet, --silent       do not print \`checking...' messages
593   --version               print the version of autoconf that created configure
594 Directory and file names:
595   --prefix=PREFIX         install architecture-independent files in PREFIX
596                           [$ac_default_prefix]
597   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
598                           [same as prefix]
599   --bindir=DIR            user executables in DIR [EPREFIX/bin]
600   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
601   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
602   --datadir=DIR           read-only architecture-independent data in DIR
603                           [PREFIX/share]
604   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
605   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
606                           [PREFIX/com]
607   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
608   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
609   --includedir=DIR        C header files in DIR [PREFIX/include]
610   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
611   --infodir=DIR           info documentation in DIR [PREFIX/info]
612   --mandir=DIR            man documentation in DIR [PREFIX/man]
613   --srcdir=DIR            find the sources in DIR [configure dir or ..]
614   --program-prefix=PREFIX prepend PREFIX to installed program names
615   --program-suffix=SUFFIX append SUFFIX to installed program names
616   --program-transform-name=PROGRAM
617                           run sed PROGRAM on installed program names
618 EOF
619     cat << EOF
620 Host type:
621   --build=BUILD           configure for building on BUILD [BUILD=HOST]
622   --host=HOST             configure for HOST [guessed]
623   --target=TARGET         configure for TARGET [TARGET=HOST]
624 Features and packages:
625   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
626   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
627   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
628   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
629   --x-includes=DIR        X include files are in DIR
630   --x-libraries=DIR       X library files are in DIR
631 EOF
632     if test -n "$ac_help"; then
633       echo "--enable and --with options recognized:$ac_help"
634     fi
635     exit 0 ;;
636
637   -host | --host | --hos | --ho)
638     ac_prev=host ;;
639   -host=* | --host=* | --hos=* | --ho=*)
640     host="$ac_optarg" ;;
641
642   -includedir | --includedir | --includedi | --included | --include \
643   | --includ | --inclu | --incl | --inc)
644     ac_prev=includedir ;;
645   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
646   | --includ=* | --inclu=* | --incl=* | --inc=*)
647     includedir="$ac_optarg" ;;
648
649   -infodir | --infodir | --infodi | --infod | --info | --inf)
650     ac_prev=infodir ;;
651   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
652     infodir="$ac_optarg" ;;
653
654   -libdir | --libdir | --libdi | --libd)
655     ac_prev=libdir ;;
656   -libdir=* | --libdir=* | --libdi=* | --libd=*)
657     libdir="$ac_optarg" ;;
658
659   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
660   | --libexe | --libex | --libe)
661     ac_prev=libexecdir ;;
662   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
663   | --libexe=* | --libex=* | --libe=*)
664     libexecdir="$ac_optarg" ;;
665
666   -localstatedir | --localstatedir | --localstatedi | --localstated \
667   | --localstate | --localstat | --localsta | --localst \
668   | --locals | --local | --loca | --loc | --lo)
669     ac_prev=localstatedir ;;
670   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
671   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
672   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
673     localstatedir="$ac_optarg" ;;
674
675   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
676     ac_prev=mandir ;;
677   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
678     mandir="$ac_optarg" ;;
679
680   -nfp | --nfp | --nf)
681     # Obsolete; use --without-fp.
682     with_fp=no ;;
683
684   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
685   | --no-cr | --no-c)
686     no_create=yes ;;
687
688   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
689   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
690     no_recursion=yes ;;
691
692   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
693   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
694   | --oldin | --oldi | --old | --ol | --o)
695     ac_prev=oldincludedir ;;
696   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
697   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
698   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
699     oldincludedir="$ac_optarg" ;;
700
701   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
702     ac_prev=prefix ;;
703   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
704     prefix="$ac_optarg" ;;
705
706   -program-prefix | --program-prefix | --program-prefi | --program-pref \
707   | --program-pre | --program-pr | --program-p)
708     ac_prev=program_prefix ;;
709   -program-prefix=* | --program-prefix=* | --program-prefi=* \
710   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
711     program_prefix="$ac_optarg" ;;
712
713   -program-suffix | --program-suffix | --program-suffi | --program-suff \
714   | --program-suf | --program-su | --program-s)
715     ac_prev=program_suffix ;;
716   -program-suffix=* | --program-suffix=* | --program-suffi=* \
717   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
718     program_suffix="$ac_optarg" ;;
719
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     ac_prev=program_transform_name ;;
728   -program-transform-name=* | --program-transform-name=* \
729   | --program-transform-nam=* | --program-transform-na=* \
730   | --program-transform-n=* | --program-transform-=* \
731   | --program-transform=* | --program-transfor=* \
732   | --program-transfo=* | --program-transf=* \
733   | --program-trans=* | --program-tran=* \
734   | --progr-tra=* | --program-tr=* | --program-t=*)
735     program_transform_name="$ac_optarg" ;;
736
737   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
738   | -silent | --silent | --silen | --sile | --sil)
739     silent=yes ;;
740
741   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
742     ac_prev=sbindir ;;
743   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
744   | --sbi=* | --sb=*)
745     sbindir="$ac_optarg" ;;
746
747   -sharedstatedir | --sharedstatedir | --sharedstatedi \
748   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
749   | --sharedst | --shareds | --shared | --share | --shar \
750   | --sha | --sh)
751     ac_prev=sharedstatedir ;;
752   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
753   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
754   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
755   | --sha=* | --sh=*)
756     sharedstatedir="$ac_optarg" ;;
757
758   -site | --site | --sit)
759     ac_prev=site ;;
760   -site=* | --site=* | --sit=*)
761     site="$ac_optarg" ;;
762
763   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
764     ac_prev=srcdir ;;
765   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
766     srcdir="$ac_optarg" ;;
767
768   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
769   | --syscon | --sysco | --sysc | --sys | --sy)
770     ac_prev=sysconfdir ;;
771   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
772   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
773     sysconfdir="$ac_optarg" ;;
774
775   -target | --target | --targe | --targ | --tar | --ta | --t)
776     ac_prev=target ;;
777   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
778     target="$ac_optarg" ;;
779
780   -v | -verbose | --verbose | --verbos | --verbo | --verb)
781     verbose=yes ;;
782
783   -version | --version | --versio | --versi | --vers)
784     echo "configure generated by autoconf version 2.13"
785     exit 0 ;;
786
787   -with-* | --with-*)
788     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
789     # Reject names that are not valid shell variable names.
790     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
791       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
792     fi
793     ac_package=`echo $ac_package| sed 's/-/_/g'`
794     case "$ac_option" in
795       *=*) ;;
796       *) ac_optarg=yes ;;
797     esac
798     eval "with_${ac_package}='$ac_optarg'" ;;
799
800   -without-* | --without-*)
801     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
802     # Reject names that are not valid shell variable names.
803     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
804       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
805     fi
806     ac_package=`echo $ac_package| sed 's/-/_/g'`
807     eval "with_${ac_package}=no" ;;
808
809   --x)
810     # Obsolete; use --with-x.
811     with_x=yes ;;
812
813   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
814   | --x-incl | --x-inc | --x-in | --x-i)
815     ac_prev=x_includes ;;
816   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
817   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
818     x_includes="$ac_optarg" ;;
819
820   -x-libraries | --x-libraries | --x-librarie | --x-librari \
821   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
822     ac_prev=x_libraries ;;
823   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
824   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
825     x_libraries="$ac_optarg" ;;
826
827   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
828     ;;
829
830   *)
831     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
832       echo "configure: warning: $ac_option: invalid host type" 1>&2
833     fi
834     if test "x$nonopt" != xNONE; then
835       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
836     fi
837     nonopt="$ac_option"
838     ;;
839
840   esac
841 done
842
843 if test -n "$ac_prev"; then
844   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
845 fi
846
847 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
848
849 # File descriptor usage:
850 # 0 standard input
851 # 1 file creation
852 # 2 errors and warnings
853 # 3 some systems may open it to /dev/tty
854 # 4 used on the Kubota Titan
855 # 6 checking for... messages and results
856 # 5 compiler messages saved in config.log
857 if test "$silent" = yes; then
858   exec 6>/dev/null
859 else
860   exec 6>&1
861 fi
862 exec 5>./config.log
863
864 echo "\
865 This file contains any messages produced by compilers while
866 running configure, to aid debugging if configure makes a mistake.
867 " 1>&5
868
869 # Strip out --no-create and --no-recursion so they do not pile up.
870 # Also quote any args containing shell metacharacters.
871 ac_configure_args=
872 for ac_arg
873 do
874   case "$ac_arg" in
875   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
876   | --no-cr | --no-c) ;;
877   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
878   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
879   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
880   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
881   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
882   esac
883 done
884
885 # NLS nuisances.
886 # Only set these to C if already set.  These must not be set unconditionally
887 # because not all systems understand e.g. LANG=C (notably SCO).
888 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
889 # Non-C LC_CTYPE values break the ctype check.
890 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
891 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
892 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
893 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
894
895 # confdefs.h avoids OS command line length limits that DEFS can exceed.
896 rm -rf conftest* confdefs.h
897 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
898 echo > confdefs.h
899
900 # A filename unique to this package, relative to the directory that
901 # configure is in, which we can look for to find out if srcdir is correct.
902 ac_unique_file=wx-config.in
903
904 # Find the source files, if location was not specified.
905 if test -z "$srcdir"; then
906   ac_srcdir_defaulted=yes
907   # Try the directory containing this script, then its parent.
908   ac_prog=$0
909   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
910   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
911   srcdir=$ac_confdir
912   if test ! -r $srcdir/$ac_unique_file; then
913     srcdir=..
914   fi
915 else
916   ac_srcdir_defaulted=no
917 fi
918 if test ! -r $srcdir/$ac_unique_file; then
919   if test "$ac_srcdir_defaulted" = yes; then
920     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
921   else
922     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
923   fi
924 fi
925 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
926
927 # Prefer explicitly selected file to automatically selected ones.
928 if test -z "$CONFIG_SITE"; then
929   if test "x$prefix" != xNONE; then
930     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
931   else
932     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
933   fi
934 fi
935 for ac_site_file in $CONFIG_SITE; do
936   if test -r "$ac_site_file"; then
937     echo "loading site script $ac_site_file"
938     . "$ac_site_file"
939   fi
940 done
941
942 if test -r "$cache_file"; then
943   echo "loading cache $cache_file"
944   . $cache_file
945 else
946   echo "creating cache $cache_file"
947   > $cache_file
948 fi
949
950 ac_ext=c
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling=$ac_cv_prog_cc_cross
956
957 ac_exeext=
958 ac_objext=o
959 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
960   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
961   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
962     ac_n= ac_c='
963 ' ac_t='        '
964   else
965     ac_n=-n ac_c= ac_t=
966   fi
967 else
968   ac_n= ac_c='\c' ac_t=
969 fi
970
971
972
973 ac_aux_dir=
974 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
975   if test -f $ac_dir/install-sh; then
976     ac_aux_dir=$ac_dir
977     ac_install_sh="$ac_aux_dir/install-sh -c"
978     break
979   elif test -f $ac_dir/install.sh; then
980     ac_aux_dir=$ac_dir
981     ac_install_sh="$ac_aux_dir/install.sh -c"
982     break
983   fi
984 done
985 if test -z "$ac_aux_dir"; then
986   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
987 fi
988 ac_config_guess=$ac_aux_dir/config.guess
989 ac_config_sub=$ac_aux_dir/config.sub
990 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
991
992
993 # Do some error checking and defaulting for the host and target type.
994 # The inputs are:
995 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
996 #
997 # The rules are:
998 # 1. You are not allowed to specify --host, --target, and nonopt at the
999 #    same time.
1000 # 2. Host defaults to nonopt.
1001 # 3. If nonopt is not specified, then host defaults to the current host,
1002 #    as determined by config.guess.
1003 # 4. Target and build default to nonopt.
1004 # 5. If nonopt is not specified, then target and build default to host.
1005
1006 # The aliases save the names the user supplied, while $host etc.
1007 # will get canonicalized.
1008 case $host---$target---$nonopt in
1009 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1010 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1011 esac
1012
1013
1014 # Make sure we can run config.sub.
1015 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1016 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1017 fi
1018
1019 echo $ac_n "checking host system type""... $ac_c" 1>&6
1020 echo "configure:1021: checking host system type" >&5
1021
1022 host_alias=$host
1023 case "$host_alias" in
1024 NONE)
1025   case $nonopt in
1026   NONE)
1027     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1028     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1029     fi ;;
1030   *) host_alias=$nonopt ;;
1031   esac ;;
1032 esac
1033
1034 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1035 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1036 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1037 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1038 echo "$ac_t""$host" 1>&6
1039
1040 echo $ac_n "checking target system type""... $ac_c" 1>&6
1041 echo "configure:1042: checking target system type" >&5
1042
1043 target_alias=$target
1044 case "$target_alias" in
1045 NONE)
1046   case $nonopt in
1047   NONE) target_alias=$host_alias ;;
1048   *) target_alias=$nonopt ;;
1049   esac ;;
1050 esac
1051
1052 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1053 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1054 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1055 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1056 echo "$ac_t""$target" 1>&6
1057
1058 echo $ac_n "checking build system type""... $ac_c" 1>&6
1059 echo "configure:1060: checking build system type" >&5
1060
1061 build_alias=$build
1062 case "$build_alias" in
1063 NONE)
1064   case $nonopt in
1065   NONE) build_alias=$host_alias ;;
1066   *) build_alias=$nonopt ;;
1067   esac ;;
1068 esac
1069
1070 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1071 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1072 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1073 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1074 echo "$ac_t""$build" 1>&6
1075
1076 test "$host_alias" != "$target_alias" &&
1077   test "$program_prefix$program_suffix$program_transform_name" = \
1078     NONENONEs,x,x, &&
1079   program_prefix=${target_alias}-
1080
1081
1082
1083 WX_MAJOR_VERSION_NUMBER=2
1084 WX_MINOR_VERSION_NUMBER=5
1085 WX_RELEASE_NUMBER=0
1086
1087 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1088 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1089
1090 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1091
1092 WX_CURRENT=0
1093 WX_REVISION=0
1094 WX_AGE=0
1095
1096
1097
1098 USE_UNIX=1
1099 USE_WIN32=0
1100 USE_DOS=0
1101 USE_BEOS=0
1102 USE_MAC=0
1103
1104 USE_LINUX=
1105 USE_SGI=
1106 USE_HPUX=
1107 USE_SYSV=
1108 USE_SVR4=
1109 USE_AIX=
1110 USE_SUN=
1111 USE_SOLARIS=
1112 USE_SUNOS=
1113 USE_ALPHA=
1114 USE_OSF=
1115 USE_BSD=
1116 USE_DARWIN=
1117 USE_FREEBSD=
1118 USE_OPENBSD=
1119 USE_NETBSD=
1120 USE_VMS=
1121 USE_ULTRIX=
1122 USE_DATA_GENERAL=
1123
1124 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1125
1126 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1127
1128 DEFAULT_wxUSE_GTK=0
1129 DEFAULT_wxUSE_MAC=0
1130 DEFAULT_wxUSE_MGL=0
1131 DEFAULT_wxUSE_MICROWIN=0
1132 DEFAULT_wxUSE_MOTIF=0
1133 DEFAULT_wxUSE_MSW=0
1134 DEFAULT_wxUSE_PM=0
1135 DEFAULT_wxUSE_X11=0
1136
1137 DEFAULT_DEFAULT_wxUSE_GTK=0
1138 DEFAULT_DEFAULT_wxUSE_MAC=0
1139 DEFAULT_DEFAULT_wxUSE_MGL=0
1140 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1141 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1142 DEFAULT_DEFAULT_wxUSE_MSW=0
1143 DEFAULT_DEFAULT_wxUSE_PM=0
1144 DEFAULT_DEFAULT_wxUSE_X11=0
1145
1146 PROGRAM_EXT=
1147 SO_SUFFIX=so
1148
1149 case "${host}" in
1150   *-hp-hpux* )
1151     USE_HPUX=1
1152     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1153     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1154     SO_SUFFIX=sl
1155     cat >> confdefs.h <<\EOF
1156 #define __HPUX__ 1
1157 EOF
1158
1159   ;;
1160   *-*-linux* )
1161     USE_LINUX=1
1162     cat >> confdefs.h <<\EOF
1163 #define __LINUX__ 1
1164 EOF
1165
1166     TMP=`uname -m`
1167     if test "x$TMP" = "xalpha"; then
1168       USE_ALPHA=1
1169       cat >> confdefs.h <<\EOF
1170 #define __ALPHA__ 1
1171 EOF
1172
1173     fi
1174     DEFAULT_DEFAULT_wxUSE_GTK=1
1175   ;;
1176   *-*-irix5* | *-*-irix6* )
1177     USE_SGI=1
1178     USE_SVR4=1
1179     cat >> confdefs.h <<\EOF
1180 #define __SGI__ 1
1181 EOF
1182
1183     cat >> confdefs.h <<\EOF
1184 #define __SVR4__ 1
1185 EOF
1186
1187     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1188   ;;
1189   *-*-solaris2* )
1190     USE_SUN=1
1191     USE_SOLARIS=1
1192     USE_SVR4=1
1193     cat >> confdefs.h <<\EOF
1194 #define __SUN__ 1
1195 EOF
1196
1197     cat >> confdefs.h <<\EOF
1198 #define __SOLARIS__ 1
1199 EOF
1200
1201     cat >> confdefs.h <<\EOF
1202 #define __SVR4__ 1
1203 EOF
1204
1205     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1206     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1207   ;;
1208   *-*-sunos4* )
1209     USE_SUN=1
1210     USE_SUNOS=1
1211     USE_BSD=1
1212     cat >> confdefs.h <<\EOF
1213 #define __SUN__ 1
1214 EOF
1215
1216     cat >> confdefs.h <<\EOF
1217 #define __SUNOS__ 1
1218 EOF
1219
1220     cat >> confdefs.h <<\EOF
1221 #define __BSD__ 1
1222 EOF
1223
1224     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1225   ;;
1226   *-*-freebsd*)
1227     USE_BSD=1
1228     USE_FREEBSD=1
1229     cat >> confdefs.h <<\EOF
1230 #define __FREEBSD__ 1
1231 EOF
1232
1233     cat >> confdefs.h <<\EOF
1234 #define __BSD__ 1
1235 EOF
1236
1237     DEFAULT_DEFAULT_wxUSE_GTK=1
1238   ;;
1239   *-*-openbsd*)
1240     USE_BSD=1
1241     USE_OPENBSD=1
1242     cat >> confdefs.h <<\EOF
1243 #define __OPENBSD__ 1
1244 EOF
1245
1246     cat >> confdefs.h <<\EOF
1247 #define __BSD__ 1
1248 EOF
1249
1250     DEFAULT_DEFAULT_wxUSE_GTK=1
1251   ;;
1252   *-*-netbsd*)
1253     USE_BSD=1
1254     USE_NETBSD=1
1255     cat >> confdefs.h <<\EOF
1256 #define __NETBSD__ 1
1257 EOF
1258
1259     cat >> confdefs.h <<\EOF
1260 #define __BSD__ 1
1261 EOF
1262
1263     DEFAULT_DEFAULT_wxUSE_GTK=1
1264   ;;
1265   *-*-osf* )
1266     USE_ALPHA=1
1267     USE_OSF=1
1268     cat >> confdefs.h <<\EOF
1269 #define __ALPHA__ 1
1270 EOF
1271
1272     cat >> confdefs.h <<\EOF
1273 #define __OSF__ 1
1274 EOF
1275
1276     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1277     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1278   ;;
1279   *-*-dgux5* )
1280     USE_ALPHA=1
1281     USE_SVR4=1
1282     cat >> confdefs.h <<\EOF
1283 #define __ALPHA__ 1
1284 EOF
1285
1286     cat >> confdefs.h <<\EOF
1287 #define __SVR4__ 1
1288 EOF
1289
1290     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1291   ;;
1292   *-*-sysv5* )
1293     USE_SYSV=1
1294     USE_SVR4=1
1295     cat >> confdefs.h <<\EOF
1296 #define __SYSV__ 1
1297 EOF
1298
1299     cat >> confdefs.h <<\EOF
1300 #define __SVR4__ 1
1301 EOF
1302
1303     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1304   ;;
1305   *-*-aix* )
1306     USE_AIX=1
1307     USE_SYSV=1
1308     USE_SVR4=1
1309                         SO_SUFFIX=a
1310     cat >> confdefs.h <<\EOF
1311 #define __AIX__ 1
1312 EOF
1313
1314     cat >> confdefs.h <<\EOF
1315 #define __SYSV__ 1
1316 EOF
1317
1318     cat >> confdefs.h <<\EOF
1319 #define __SVR4__ 1
1320 EOF
1321
1322     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1323   ;;
1324
1325   *-*-cygwin* | *-*-mingw32* )
1326                 SO_SUFFIX=dll
1327     PROGRAM_EXT=".exe"
1328     RESCOMP=windres
1329     DEFAULT_DEFAULT_wxUSE_MSW=1
1330   ;;
1331
1332   *-pc-msdosdjgpp )
1333     USE_UNIX=0
1334     USE_DOS=1
1335     cat >> confdefs.h <<\EOF
1336 #define __DOS__ 1
1337 EOF
1338
1339     PROGRAM_EXT=".exe"
1340     DEFAULT_DEFAULT_wxUSE_MGL=1
1341         LIBS="$LIBS -lstdc++"
1342   ;;
1343
1344   *-pc-os2_emx | *-pc-os2-emx )
1345     cat >> confdefs.h <<\EOF
1346 #define __EMX__ 1
1347 EOF
1348
1349     PROGRAM_EXT=".exe"
1350     DEFAULT_DEFAULT_wxUSE_PM=1
1351   ;;
1352
1353   powerpc-*-darwin* )
1354         USE_BSD=1
1355     USE_DARWIN=1
1356     SO_SUFFIX=dylib
1357     cat >> confdefs.h <<\EOF
1358 #define __BSD__ 1
1359 EOF
1360
1361     cat >> confdefs.h <<\EOF
1362 #define __DARWIN__ 1
1363 EOF
1364
1365     cat >> confdefs.h <<\EOF
1366 #define __POWERPC__ 1
1367 EOF
1368
1369     DEFAULT_DEFAULT_wxUSE_MAC=1
1370   ;;
1371
1372   *-*-beos* )
1373         USE_BEOS=1
1374     cat >> confdefs.h <<\EOF
1375 #define __BEOS__ 1
1376 EOF
1377
1378   ;;
1379
1380   *)
1381     { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1382 esac
1383
1384
1385
1386
1387           wx_arg_cache_file="configarg.cache"
1388           echo "loading argument cache $wx_arg_cache_file"
1389           rm -f ${wx_arg_cache_file}.tmp
1390           touch ${wx_arg_cache_file}.tmp
1391           touch ${wx_arg_cache_file}
1392         
1393
1394 DEBUG_CONFIGURE=0
1395 if test $DEBUG_CONFIGURE = 1; then
1396   DEFAULT_wxUSE_UNIVERSAL=no
1397
1398   DEFAULT_wxUSE_NANOX=no
1399
1400   DEFAULT_wxUSE_THREADS=yes
1401
1402   DEFAULT_wxUSE_SHARED=yes
1403   DEFAULT_wxUSE_SONAME=no
1404   DEFAULT_wxUSE_OPTIMISE=no
1405   DEFAULT_wxUSE_PROFILE=no
1406   DEFAULT_wxUSE_NO_DEPS=no
1407   DEFAULT_wxUSE_NO_RTTI=no
1408   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1409   DEFAULT_wxUSE_PERMISSIVE=no
1410   DEFAULT_wxUSE_DEBUG_FLAG=yes
1411   DEFAULT_wxUSE_DEBUG_INFO=yes
1412   DEFAULT_wxUSE_DEBUG_GDB=yes
1413   DEFAULT_wxUSE_MEM_TRACING=no
1414   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1415   DEFAULT_wxUSE_DMALLOC=no
1416   DEFAULT_wxUSE_PRECOMP=no
1417   DEFAULT_wxUSE_APPLE_IEEE=no
1418
1419   DEFAULT_wxUSE_LOG=yes
1420   DEFAULT_wxUSE_LOGWINDOW=no
1421   DEFAULT_wxUSE_LOGGUI=no
1422   DEFAULT_wxUSE_LOGDIALOG=no
1423
1424   DEFAULT_wxUSE_GUI=yes
1425   DEFAULT_wxUSE_CONTROLS=no
1426
1427   DEFAULT_wxUSE_REGEX=no
1428   DEFAULT_wxUSE_ZLIB=no
1429   DEFAULT_wxUSE_LIBPNG=no
1430   DEFAULT_wxUSE_LIBJPEG=no
1431   DEFAULT_wxUSE_LIBTIFF=no
1432   DEFAULT_wxUSE_ODBC=no
1433   DEFAULT_wxUSE_OPENGL=no
1434
1435   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1436   DEFAULT_wxUSE_SNGLINST_CHECKER=no
1437   DEFAULT_wxUSE_STD_IOSTREAM=no
1438   DEFAULT_wxUSE_CMDLINE_PARSER=no
1439   DEFAULT_wxUSE_DATETIME=no
1440   DEFAULT_wxUSE_TIMEDATE=no
1441   DEFAULT_wxUSE_TIMER=no
1442   DEFAULT_wxUSE_STOPWATCH=no
1443   DEFAULT_wxUSE_FILE=no
1444   DEFAULT_wxUSE_FFILE=no
1445   DEFAULT_wxUSE_TEXTBUFFER=no
1446   DEFAULT_wxUSE_TEXTFILE=no
1447   DEFAULT_wxUSE_WAVE=no
1448   DEFAULT_wxUSE_INTL=no
1449   DEFAULT_wxUSE_CONFIG=no
1450   DEFAULT_wxUSE_FONTMAP=no
1451   DEFAULT_wxUSE_STREAMS=no
1452   DEFAULT_wxUSE_SOCKETS=no
1453   DEFAULT_wxUSE_OLE=no
1454   DEFAULT_wxUSE_DATAOBJ=no
1455   DEFAULT_wxUSE_DIALUP_MANAGER=no
1456   DEFAULT_wxUSE_JOYSTICK=no
1457   DEFAULT_wxUSE_DYNLIB_CLASS=no
1458   DEFAULT_wxUSE_DYNAMIC_LOADER=no
1459   DEFAULT_wxUSE_LONGLONG=no
1460   DEFAULT_wxUSE_GEOMETRY=no
1461
1462   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1463   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1464   DEFAULT_wxUSE_POSTSCRIPT=no
1465
1466   DEFAULT_wxUSE_X_RESOURCES=no
1467   DEFAULT_wxUSE_CLIPBOARD=no
1468   DEFAULT_wxUSE_TOOLTIPS=no
1469   DEFAULT_wxUSE_DRAG_AND_DROP=no
1470   DEFAULT_wxUSE_DRAGIMAGE=no
1471   DEFAULT_wxUSE_SPLINES=no
1472
1473   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1474   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1475   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1476
1477   DEFAULT_wxUSE_PROLOGIO=no
1478   DEFAULT_wxUSE_RESOURCES=no
1479   DEFAULT_wxUSE_CONSTRAINTS=no
1480   DEFAULT_wxUSE_IPC=no
1481   DEFAULT_wxUSE_HELP=no
1482   DEFAULT_wxUSE_MS_HTML_HELP=no
1483   DEFAULT_wxUSE_WXHTML_HELP=no
1484   DEFAULT_wxUSE_TREELAYOUT=no
1485   DEFAULT_wxUSE_METAFILE=no
1486   DEFAULT_wxUSE_MIMETYPE=no
1487   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1488   DEFAULT_wxUSE_PROTOCOL=no
1489   DEFAULT_wxUSE_PROTOCOL_HTTP=no
1490   DEFAULT_wxUSE_PROTOCOL_FTP=no
1491   DEFAULT_wxUSE_PROTOCOL_FILE=no
1492   DEFAULT_wxUSE_URL=no
1493
1494   DEFAULT_wxUSE_COMMONDLGS=no
1495   DEFAULT_wxUSE_CHOICEDLG=no
1496   DEFAULT_wxUSE_COLOURDLG=no
1497   DEFAULT_wxUSE_DIRDLG=no
1498   DEFAULT_wxUSE_FILEDLG=no
1499   DEFAULT_wxUSE_FINDREPLDLG=no
1500   DEFAULT_wxUSE_FONTDLG=no
1501   DEFAULT_wxUSE_MSGDLG=no
1502   DEFAULT_wxUSE_NUMBERDLG=no
1503   DEFAULT_wxUSE_TEXTDLG=no
1504   DEFAULT_wxUSE_SPLASH=no
1505   DEFAULT_wxUSE_STARTUP_TIPS=no
1506   DEFAULT_wxUSE_PROGRESSDLG=no
1507   DEFAULT_wxUSE_WIZARDDLG=no
1508
1509   DEFAULT_wxUSE_MENUS=no
1510   DEFAULT_wxUSE_MINIFRAME=no
1511   DEFAULT_wxUSE_HTML=no
1512   DEFAULT_wxUSE_FILESYSTEM=no
1513   DEFAULT_wxUSE_FS_INET=no
1514   DEFAULT_wxUSE_FS_ZIP=no
1515   DEFAULT_wxUSE_BUSYINFO=no
1516   DEFAULT_wxUSE_ZIPSTREAM=no
1517   DEFAULT_wxUSE_VALIDATORS=no
1518
1519   DEFAULT_wxUSE_ACCEL=no
1520   DEFAULT_wxUSE_BUTTON=no
1521   DEFAULT_wxUSE_BMPBUTTON=no
1522   DEFAULT_wxUSE_CALCTRL=no
1523   DEFAULT_wxUSE_CARET=no
1524   DEFAULT_wxUSE_CHECKBOX=no
1525   DEFAULT_wxUSE_CHECKLST=no
1526   DEFAULT_wxUSE_CHOICE=no
1527   DEFAULT_wxUSE_COMBOBOX=no
1528   DEFAULT_wxUSE_GAUGE=no
1529   DEFAULT_wxUSE_GRID=no
1530   DEFAULT_wxUSE_NEW_GRID=no
1531   DEFAULT_wxUSE_IMAGLIST=no
1532   DEFAULT_wxUSE_LISTBOX=no
1533   DEFAULT_wxUSE_LISTCTRL=no
1534   DEFAULT_wxUSE_NOTEBOOK=no
1535   DEFAULT_wxUSE_PROPSHEET=no
1536   DEFAULT_wxUSE_RADIOBOX=no
1537   DEFAULT_wxUSE_RADIOBTN=no
1538   DEFAULT_wxUSE_SASH=no
1539   DEFAULT_wxUSE_SCROLLBAR=no
1540   DEFAULT_wxUSE_SLIDER=no
1541   DEFAULT_wxUSE_SPINBTN=no
1542   DEFAULT_wxUSE_SPINCTRL=no
1543   DEFAULT_wxUSE_SPLITTER=no
1544   DEFAULT_wxUSE_STATBMP=no
1545   DEFAULT_wxUSE_STATBOX=no
1546   DEFAULT_wxUSE_STATLINE=no
1547   DEFAULT_wxUSE_STATTEXT=no
1548   DEFAULT_wxUSE_STATUSBAR=yes
1549   DEFAULT_wxUSE_TABDIALOG=no
1550   DEFAULT_wxUSE_TEXTCTRL=no
1551   DEFAULT_wxUSE_TOGGLEBTN=no
1552   DEFAULT_wxUSE_TOOLBAR=no
1553   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1554   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1555   DEFAULT_wxUSE_TREECTRL=no
1556   DEFAULT_wxUSE_POPUPWIN=no
1557   DEFAULT_wxUSE_TIPWINDOW=no
1558
1559   DEFAULT_wxUSE_UNICODE=no
1560   DEFAULT_wxUSE_UNICODE_MSLU=no
1561   DEFAULT_wxUSE_WCSRTOMBS=no
1562
1563   DEFAULT_wxUSE_PALETTE=no
1564   DEFAULT_wxUSE_IMAGE=no
1565   DEFAULT_wxUSE_GIF=no
1566   DEFAULT_wxUSE_PCX=no
1567   DEFAULT_wxUSE_PNM=no
1568   DEFAULT_wxUSE_IFF=no
1569   DEFAULT_wxUSE_XPM=no
1570   DEFAULT_wxUSE_ICO_CUR=no
1571 else
1572   DEFAULT_wxUSE_UNIVERSAL=no
1573
1574   DEFAULT_wxUSE_NANOX=no
1575
1576   DEFAULT_wxUSE_THREADS=yes
1577
1578   DEFAULT_wxUSE_SHARED=yes
1579   DEFAULT_wxUSE_SONAME=no
1580   DEFAULT_wxUSE_OPTIMISE=yes
1581   DEFAULT_wxUSE_PROFILE=no
1582   DEFAULT_wxUSE_NO_DEPS=no
1583   DEFAULT_wxUSE_NO_RTTI=no
1584   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1585   DEFAULT_wxUSE_PERMISSIVE=no
1586   DEFAULT_wxUSE_DEBUG_FLAG=no
1587   DEFAULT_wxUSE_DEBUG_INFO=no
1588   DEFAULT_wxUSE_DEBUG_GDB=no
1589   DEFAULT_wxUSE_MEM_TRACING=no
1590   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1591   DEFAULT_wxUSE_DMALLOC=no
1592   DEFAULT_wxUSE_PRECOMP=no
1593   DEFAULT_wxUSE_APPLE_IEEE=yes
1594
1595   DEFAULT_wxUSE_LOG=yes
1596   DEFAULT_wxUSE_LOGWINDOW=yes
1597   DEFAULT_wxUSE_LOGGUI=yes
1598   DEFAULT_wxUSE_LOGDIALOG=yes
1599
1600   DEFAULT_wxUSE_GUI=yes
1601
1602   DEFAULT_wxUSE_REGEX=yes
1603   DEFAULT_wxUSE_ZLIB=yes
1604   DEFAULT_wxUSE_LIBPNG=yes
1605   DEFAULT_wxUSE_LIBJPEG=yes
1606   DEFAULT_wxUSE_LIBTIFF=yes
1607   DEFAULT_wxUSE_ODBC=no
1608   DEFAULT_wxUSE_OPENGL=no
1609
1610   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1611   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1612   DEFAULT_wxUSE_STD_IOSTREAM=no
1613   DEFAULT_wxUSE_CMDLINE_PARSER=yes
1614   DEFAULT_wxUSE_DATETIME=yes
1615   DEFAULT_wxUSE_TIMEDATE=no
1616   DEFAULT_wxUSE_TIMER=yes
1617   DEFAULT_wxUSE_STOPWATCH=yes
1618   DEFAULT_wxUSE_FILE=yes
1619   DEFAULT_wxUSE_FFILE=yes
1620   DEFAULT_wxUSE_TEXTBUFFER=yes
1621   DEFAULT_wxUSE_TEXTFILE=yes
1622   DEFAULT_wxUSE_WAVE=no
1623   DEFAULT_wxUSE_INTL=yes
1624   DEFAULT_wxUSE_CONFIG=yes
1625   DEFAULT_wxUSE_FONTMAP=yes
1626   DEFAULT_wxUSE_STREAMS=yes
1627   DEFAULT_wxUSE_SOCKETS=yes
1628   DEFAULT_wxUSE_OLE=yes
1629   DEFAULT_wxUSE_DATAOBJ=yes
1630   DEFAULT_wxUSE_DIALUP_MANAGER=yes
1631   DEFAULT_wxUSE_JOYSTICK=yes
1632   DEFAULT_wxUSE_DYNLIB_CLASS=yes
1633   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1634   DEFAULT_wxUSE_LONGLONG=yes
1635   DEFAULT_wxUSE_GEOMETRY=yes
1636
1637   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1638   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1639   DEFAULT_wxUSE_POSTSCRIPT=yes
1640
1641   DEFAULT_wxUSE_X_RESOURCES=no
1642   DEFAULT_wxUSE_CLIPBOARD=yes
1643   DEFAULT_wxUSE_TOOLTIPS=yes
1644   DEFAULT_wxUSE_DRAG_AND_DROP=yes
1645   DEFAULT_wxUSE_DRAGIMAGE=yes
1646   DEFAULT_wxUSE_SPLINES=yes
1647
1648   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1649   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1650   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1651
1652   DEFAULT_wxUSE_PROLOGIO=no
1653   DEFAULT_wxUSE_RESOURCES=no
1654   DEFAULT_wxUSE_CONSTRAINTS=yes
1655   DEFAULT_wxUSE_IPC=yes
1656   DEFAULT_wxUSE_HELP=yes
1657   DEFAULT_wxUSE_MS_HTML_HELP=yes
1658   DEFAULT_wxUSE_WXHTML_HELP=yes
1659   DEFAULT_wxUSE_TREELAYOUT=yes
1660   DEFAULT_wxUSE_METAFILE=yes
1661   DEFAULT_wxUSE_MIMETYPE=yes
1662   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1663   DEFAULT_wxUSE_PROTOCOL=yes
1664   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1665   DEFAULT_wxUSE_PROTOCOL_FTP=yes
1666   DEFAULT_wxUSE_PROTOCOL_FILE=yes
1667   DEFAULT_wxUSE_URL=yes
1668
1669   DEFAULT_wxUSE_COMMONDLGS=yes
1670   DEFAULT_wxUSE_CHOICEDLG=yes
1671   DEFAULT_wxUSE_COLOURDLG=yes
1672   DEFAULT_wxUSE_DIRDLG=yes
1673   DEFAULT_wxUSE_FILEDLG=yes
1674   DEFAULT_wxUSE_FINDREPLDLG=yes
1675   DEFAULT_wxUSE_FONTDLG=yes
1676   DEFAULT_wxUSE_MSGDLG=yes
1677   DEFAULT_wxUSE_NUMBERDLG=yes
1678   DEFAULT_wxUSE_TEXTDLG=yes
1679   DEFAULT_wxUSE_SPLASH=yes
1680   DEFAULT_wxUSE_STARTUP_TIPS=yes
1681   DEFAULT_wxUSE_PROGRESSDLG=yes
1682   DEFAULT_wxUSE_WIZARDDLG=yes
1683
1684   DEFAULT_wxUSE_MENUS=yes
1685   DEFAULT_wxUSE_MINIFRAME=yes
1686   DEFAULT_wxUSE_HTML=yes
1687   DEFAULT_wxUSE_FILESYSTEM=yes
1688   DEFAULT_wxUSE_FS_INET=yes
1689   DEFAULT_wxUSE_FS_ZIP=yes
1690   DEFAULT_wxUSE_BUSYINFO=yes
1691   DEFAULT_wxUSE_ZIPSTREAM=yes
1692   DEFAULT_wxUSE_VALIDATORS=yes
1693
1694   DEFAULT_wxUSE_ACCEL=yes
1695   DEFAULT_wxUSE_BUTTON=yes
1696   DEFAULT_wxUSE_BMPBUTTON=yes
1697   DEFAULT_wxUSE_CALCTRL=yes
1698   DEFAULT_wxUSE_CARET=yes
1699   DEFAULT_wxUSE_CHECKBOX=yes
1700   DEFAULT_wxUSE_CHECKLST=yes
1701   DEFAULT_wxUSE_CHOICE=yes
1702   DEFAULT_wxUSE_COMBOBOX=yes
1703   DEFAULT_wxUSE_GAUGE=yes
1704   DEFAULT_wxUSE_GRID=yes
1705   DEFAULT_wxUSE_NEW_GRID=yes
1706   DEFAULT_wxUSE_IMAGLIST=yes
1707   DEFAULT_wxUSE_LISTBOX=yes
1708   DEFAULT_wxUSE_LISTCTRL=yes
1709   DEFAULT_wxUSE_NOTEBOOK=yes
1710   DEFAULT_wxUSE_PROPSHEET=yes
1711   DEFAULT_wxUSE_RADIOBOX=yes
1712   DEFAULT_wxUSE_RADIOBTN=yes
1713   DEFAULT_wxUSE_SASH=yes
1714   DEFAULT_wxUSE_SCROLLBAR=yes
1715   DEFAULT_wxUSE_SLIDER=yes
1716   DEFAULT_wxUSE_SPINBTN=yes
1717   DEFAULT_wxUSE_SPINCTRL=yes
1718   DEFAULT_wxUSE_SPLITTER=yes
1719   DEFAULT_wxUSE_STATBMP=yes
1720   DEFAULT_wxUSE_STATBOX=yes
1721   DEFAULT_wxUSE_STATLINE=yes
1722   DEFAULT_wxUSE_STATTEXT=yes
1723   DEFAULT_wxUSE_STATUSBAR=yes
1724   DEFAULT_wxUSE_TABDIALOG=no
1725   DEFAULT_wxUSE_TEXTCTRL=yes
1726   DEFAULT_wxUSE_TOGGLEBTN=yes
1727   DEFAULT_wxUSE_TOOLBAR=yes
1728   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1729   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1730   DEFAULT_wxUSE_TREECTRL=yes
1731   DEFAULT_wxUSE_POPUPWIN=yes
1732   DEFAULT_wxUSE_TIPWINDOW=yes
1733
1734   DEFAULT_wxUSE_UNICODE=no
1735   DEFAULT_wxUSE_UNICODE_MSLU=yes
1736   DEFAULT_wxUSE_WCSRTOMBS=no
1737
1738   DEFAULT_wxUSE_PALETTE=yes
1739   DEFAULT_wxUSE_IMAGE=yes
1740   DEFAULT_wxUSE_GIF=yes
1741   DEFAULT_wxUSE_PCX=yes
1742   DEFAULT_wxUSE_IFF=no
1743   DEFAULT_wxUSE_PNM=yes
1744   DEFAULT_wxUSE_XPM=yes
1745   DEFAULT_wxUSE_ICO_CUR=yes
1746 fi
1747
1748
1749
1750 for toolkit in `echo $ALL_TOOLKITS`; do
1751   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1752   if test "x$LINE" != "x" ; then
1753     has_toolkit_in_cache=1
1754     eval "DEFAULT_$LINE"
1755     eval "CACHE_$toolkit=1"
1756   fi
1757 done
1758
1759
1760
1761           enablestring=
1762           echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1763 echo "configure:1764: checking for --${enablestring:-enable}-gui" >&5
1764           no_cache=0
1765           # Check whether --enable-gui or --disable-gui was given.
1766 if test "${enable_gui+set}" = set; then
1767   enableval="$enable_gui"
1768   
1769                           if test "$enableval" = yes; then
1770                             ac_cv_use_gui='wxUSE_GUI=yes'
1771                           else
1772                             ac_cv_use_gui='wxUSE_GUI=no'
1773                           fi
1774                         
1775 else
1776   
1777                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1778                           if test "x$LINE" != x ; then
1779                             eval "DEFAULT_$LINE"
1780                           else
1781                             no_cache=1
1782                           fi
1783
1784                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1785                         
1786 fi
1787
1788
1789           eval "$ac_cv_use_gui"
1790           if test "$no_cache" != 1; then
1791             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1792           fi
1793
1794           if test "$wxUSE_GUI" = yes; then
1795             echo "$ac_t""yes" 1>&6
1796           else
1797             echo "$ac_t""no" 1>&6
1798           fi
1799         
1800
1801 if test "$wxUSE_GUI" = "yes"; then
1802
1803
1804           enablestring=
1805           echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1806 echo "configure:1807: checking for --${enablestring:-enable}-universal" >&5
1807           no_cache=0
1808           # Check whether --enable-universal or --disable-universal was given.
1809 if test "${enable_universal+set}" = set; then
1810   enableval="$enable_universal"
1811   
1812                           if test "$enableval" = yes; then
1813                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1814                           else
1815                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1816                           fi
1817                         
1818 else
1819   
1820                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1821                           if test "x$LINE" != x ; then
1822                             eval "DEFAULT_$LINE"
1823                           else
1824                             no_cache=1
1825                           fi
1826
1827                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1828                         
1829 fi
1830
1831
1832           eval "$ac_cv_use_universal"
1833           if test "$no_cache" != 1; then
1834             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1835           fi
1836
1837           if test "$wxUSE_UNIVERSAL" = yes; then
1838             echo "$ac_t""yes" 1>&6
1839           else
1840             echo "$ac_t""no" 1>&6
1841           fi
1842         
1843 # Check whether --with-gtk or --without-gtk was given.
1844 if test "${with_gtk+set}" = set; then
1845   withval="$with_gtk"
1846   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1847 fi
1848
1849 # Check whether --with-motif or --without-motif was given.
1850 if test "${with_motif+set}" = set; then
1851   withval="$with_motif"
1852   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1853 fi
1854
1855 # Check whether --with-mac or --without-mac was given.
1856 if test "${with_mac+set}" = set; then
1857   withval="$with_mac"
1858   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1859 fi
1860
1861 # Check whether --with-wine or --without-wine was given.
1862 if test "${with_wine+set}" = set; then
1863   withval="$with_wine"
1864   wxUSE_WINE="$withval" CACHE_WINE=1
1865 fi
1866
1867 # Check whether --with-msw or --without-msw was given.
1868 if test "${with_msw+set}" = set; then
1869   withval="$with_msw"
1870   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1871 fi
1872
1873 # Check whether --with-pm or --without-pm was given.
1874 if test "${with_pm+set}" = set; then
1875   withval="$with_pm"
1876   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1877 fi
1878
1879 # Check whether --with-mgl or --without-mgl was given.
1880 if test "${with_mgl+set}" = set; then
1881   withval="$with_mgl"
1882   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1883 fi
1884
1885 # Check whether --with-microwin or --without-microwin was given.
1886 if test "${with_microwin+set}" = set; then
1887   withval="$with_microwin"
1888   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1889 fi
1890
1891 # Check whether --with-x11 or --without-x11 was given.
1892 if test "${with_x11+set}" = set; then
1893   withval="$with_x11"
1894   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1895 fi
1896
1897
1898           enablestring=
1899           echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1900 echo "configure:1901: checking for --${enablestring:-enable}-nanox" >&5
1901           no_cache=0
1902           # Check whether --enable-nanox or --disable-nanox was given.
1903 if test "${enable_nanox+set}" = set; then
1904   enableval="$enable_nanox"
1905   
1906                           if test "$enableval" = yes; then
1907                             ac_cv_use_nanox='wxUSE_NANOX=yes'
1908                           else
1909                             ac_cv_use_nanox='wxUSE_NANOX=no'
1910                           fi
1911                         
1912 else
1913   
1914                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1915                           if test "x$LINE" != x ; then
1916                             eval "DEFAULT_$LINE"
1917                           else
1918                             no_cache=1
1919                           fi
1920
1921                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1922                         
1923 fi
1924
1925
1926           eval "$ac_cv_use_nanox"
1927           if test "$no_cache" != 1; then
1928             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1929           fi
1930
1931           if test "$wxUSE_NANOX" = yes; then
1932             echo "$ac_t""yes" 1>&6
1933           else
1934             echo "$ac_t""no" 1>&6
1935           fi
1936         
1937
1938
1939           enablestring=
1940           echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1941 echo "configure:1942: checking for --${enablestring:-enable}-gtk2" >&5
1942           no_cache=0
1943           # Check whether --enable-gtk2 or --disable-gtk2 was given.
1944 if test "${enable_gtk2+set}" = set; then
1945   enableval="$enable_gtk2"
1946   
1947                           if test "$enableval" = yes; then
1948                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
1949                           else
1950                             ac_cv_use_gtk2='wxUSE_GTK2=no'
1951                           fi
1952                         
1953 else
1954   
1955                           LINE=`grep "wxUSE_GTK2" ${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_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1963                         
1964 fi
1965
1966
1967           eval "$ac_cv_use_gtk2"
1968           if test "$no_cache" != 1; then
1969             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1970           fi
1971
1972           if test "$wxUSE_GTK2" = yes; then
1973             echo "$ac_t""yes" 1>&6
1974           else
1975             echo "$ac_t""no" 1>&6
1976           fi
1977         
1978
1979
1980           echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1981 echo "configure:1982: checking for --with-libpng" >&5
1982           no_cache=0
1983           # Check whether --with-libpng or --without-libpng was given.
1984 if test "${with_libpng+set}" = set; then
1985   withval="$with_libpng"
1986   
1987                         if test "$withval" = yes; then
1988                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1989                         elif test "$withval" = no; then
1990                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
1991                         elif test "$withval" = sys; then
1992                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1993                         elif test "$withval" = builtin; then
1994                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1995                         else
1996                           { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1997                         fi
1998                       
1999 else
2000   
2001                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2002                         if test "x$LINE" != x ; then
2003                           eval "DEFAULT_$LINE"
2004                         else
2005                           no_cache=1
2006                         fi
2007
2008                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2009                       
2010 fi
2011
2012
2013           eval "$ac_cv_use_libpng"
2014           if test "$no_cache" != 1; then
2015             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2016           fi
2017
2018           if test "$wxUSE_LIBPNG" = yes; then
2019             echo "$ac_t""yes" 1>&6
2020           elif test "$wxUSE_LIBPNG" = no; then
2021             echo "$ac_t""no" 1>&6
2022           elif test "$wxUSE_LIBPNG" = sys; then
2023             echo "$ac_t""system version" 1>&6
2024           elif test "$wxUSE_LIBPNG" = builtin; then
2025             echo "$ac_t""builtin version" 1>&6
2026           else
2027             { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2028           fi
2029         
2030
2031           echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2032 echo "configure:2033: checking for --with-libjpeg" >&5
2033           no_cache=0
2034           # Check whether --with-libjpeg or --without-libjpeg was given.
2035 if test "${with_libjpeg+set}" = set; then
2036   withval="$with_libjpeg"
2037   
2038                         if test "$withval" = yes; then
2039                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2040                         elif test "$withval" = no; then
2041                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2042                         elif test "$withval" = sys; then
2043                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2044                         elif test "$withval" = builtin; then
2045                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2046                         else
2047                           { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2048                         fi
2049                       
2050 else
2051   
2052                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2053                         if test "x$LINE" != x ; then
2054                           eval "DEFAULT_$LINE"
2055                         else
2056                           no_cache=1
2057                         fi
2058
2059                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2060                       
2061 fi
2062
2063
2064           eval "$ac_cv_use_libjpeg"
2065           if test "$no_cache" != 1; then
2066             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2067           fi
2068
2069           if test "$wxUSE_LIBJPEG" = yes; then
2070             echo "$ac_t""yes" 1>&6
2071           elif test "$wxUSE_LIBJPEG" = no; then
2072             echo "$ac_t""no" 1>&6
2073           elif test "$wxUSE_LIBJPEG" = sys; then
2074             echo "$ac_t""system version" 1>&6
2075           elif test "$wxUSE_LIBJPEG" = builtin; then
2076             echo "$ac_t""builtin version" 1>&6
2077           else
2078             { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2079           fi
2080         
2081
2082           echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2083 echo "configure:2084: checking for --with-libtiff" >&5
2084           no_cache=0
2085           # Check whether --with-libtiff or --without-libtiff was given.
2086 if test "${with_libtiff+set}" = set; then
2087   withval="$with_libtiff"
2088   
2089                         if test "$withval" = yes; then
2090                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2091                         elif test "$withval" = no; then
2092                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2093                         elif test "$withval" = sys; then
2094                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2095                         elif test "$withval" = builtin; then
2096                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2097                         else
2098                           { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2099                         fi
2100                       
2101 else
2102   
2103                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2104                         if test "x$LINE" != x ; then
2105                           eval "DEFAULT_$LINE"
2106                         else
2107                           no_cache=1
2108                         fi
2109
2110                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2111                       
2112 fi
2113
2114
2115           eval "$ac_cv_use_libtiff"
2116           if test "$no_cache" != 1; then
2117             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2118           fi
2119
2120           if test "$wxUSE_LIBTIFF" = yes; then
2121             echo "$ac_t""yes" 1>&6
2122           elif test "$wxUSE_LIBTIFF" = no; then
2123             echo "$ac_t""no" 1>&6
2124           elif test "$wxUSE_LIBTIFF" = sys; then
2125             echo "$ac_t""system version" 1>&6
2126           elif test "$wxUSE_LIBTIFF" = builtin; then
2127             echo "$ac_t""builtin version" 1>&6
2128           else
2129             { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2130           fi
2131         
2132
2133           echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2134 echo "configure:2135: checking for --with-opengl" >&5
2135           no_cache=0
2136           # Check whether --with-opengl or --without-opengl was given.
2137 if test "${with_opengl+set}" = set; then
2138   withval="$with_opengl"
2139   
2140                         if test "$withval" = yes; then
2141                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
2142                         else
2143                           ac_cv_use_opengl='wxUSE_OPENGL=no'
2144                         fi
2145                       
2146 else
2147   
2148                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2149                         if test "x$LINE" != x ; then
2150                           eval "DEFAULT_$LINE"
2151                         else
2152                           no_cache=1
2153                         fi
2154
2155                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2156                       
2157 fi
2158
2159
2160           eval "$ac_cv_use_opengl"
2161           if test "$no_cache" != 1; then
2162             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2163           fi
2164
2165           if test "$wxUSE_OPENGL" = yes; then
2166             echo "$ac_t""yes" 1>&6
2167           else
2168             echo "$ac_t""no" 1>&6
2169           fi
2170         
2171
2172 fi
2173
2174
2175           echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2176 echo "configure:2177: checking for --with-dmalloc" >&5
2177           no_cache=0
2178           # Check whether --with-dmalloc or --without-dmalloc was given.
2179 if test "${with_dmalloc+set}" = set; then
2180   withval="$with_dmalloc"
2181   
2182                         if test "$withval" = yes; then
2183                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2184                         else
2185                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2186                         fi
2187                       
2188 else
2189   
2190                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2191                         if test "x$LINE" != x ; then
2192                           eval "DEFAULT_$LINE"
2193                         else
2194                           no_cache=1
2195                         fi
2196
2197                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2198                       
2199 fi
2200
2201
2202           eval "$ac_cv_use_dmalloc"
2203           if test "$no_cache" != 1; then
2204             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2205           fi
2206
2207           if test "$wxUSE_DMALLOC" = yes; then
2208             echo "$ac_t""yes" 1>&6
2209           else
2210             echo "$ac_t""no" 1>&6
2211           fi
2212         
2213
2214           echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2215 echo "configure:2216: checking for --with-regex" >&5
2216           no_cache=0
2217           # Check whether --with-regex or --without-regex was given.
2218 if test "${with_regex+set}" = set; then
2219   withval="$with_regex"
2220   
2221                         if test "$withval" = yes; then
2222                           ac_cv_use_regex='wxUSE_REGEX=yes'
2223                         elif test "$withval" = no; then
2224                           ac_cv_use_regex='wxUSE_REGEX=no'
2225                         elif test "$withval" = sys; then
2226                           ac_cv_use_regex='wxUSE_REGEX=sys'
2227                         elif test "$withval" = builtin; then
2228                           ac_cv_use_regex='wxUSE_REGEX=builtin'
2229                         else
2230                           { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2231                         fi
2232                       
2233 else
2234   
2235                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2236                         if test "x$LINE" != x ; then
2237                           eval "DEFAULT_$LINE"
2238                         else
2239                           no_cache=1
2240                         fi
2241
2242                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2243                       
2244 fi
2245
2246
2247           eval "$ac_cv_use_regex"
2248           if test "$no_cache" != 1; then
2249             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2250           fi
2251
2252           if test "$wxUSE_REGEX" = yes; then
2253             echo "$ac_t""yes" 1>&6
2254           elif test "$wxUSE_REGEX" = no; then
2255             echo "$ac_t""no" 1>&6
2256           elif test "$wxUSE_REGEX" = sys; then
2257             echo "$ac_t""system version" 1>&6
2258           elif test "$wxUSE_REGEX" = builtin; then
2259             echo "$ac_t""builtin version" 1>&6
2260           else
2261             { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2262           fi
2263         
2264
2265           echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2266 echo "configure:2267: checking for --with-zlib" >&5
2267           no_cache=0
2268           # Check whether --with-zlib or --without-zlib was given.
2269 if test "${with_zlib+set}" = set; then
2270   withval="$with_zlib"
2271   
2272                         if test "$withval" = yes; then
2273                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
2274                         elif test "$withval" = no; then
2275                           ac_cv_use_zlib='wxUSE_ZLIB=no'
2276                         elif test "$withval" = sys; then
2277                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
2278                         elif test "$withval" = builtin; then
2279                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2280                         else
2281                           { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2282                         fi
2283                       
2284 else
2285   
2286                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2287                         if test "x$LINE" != x ; then
2288                           eval "DEFAULT_$LINE"
2289                         else
2290                           no_cache=1
2291                         fi
2292
2293                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2294                       
2295 fi
2296
2297
2298           eval "$ac_cv_use_zlib"
2299           if test "$no_cache" != 1; then
2300             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2301           fi
2302
2303           if test "$wxUSE_ZLIB" = yes; then
2304             echo "$ac_t""yes" 1>&6
2305           elif test "$wxUSE_ZLIB" = no; then
2306             echo "$ac_t""no" 1>&6
2307           elif test "$wxUSE_ZLIB" = sys; then
2308             echo "$ac_t""system version" 1>&6
2309           elif test "$wxUSE_ZLIB" = builtin; then
2310             echo "$ac_t""builtin version" 1>&6
2311           else
2312             { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2313           fi
2314         
2315
2316           echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2317 echo "configure:2318: checking for --with-odbc" >&5
2318           no_cache=0
2319           # Check whether --with-odbc or --without-odbc was given.
2320 if test "${with_odbc+set}" = set; then
2321   withval="$with_odbc"
2322   
2323                         if test "$withval" = yes; then
2324                           ac_cv_use_odbc='wxUSE_ODBC=yes'
2325                         else
2326                           ac_cv_use_odbc='wxUSE_ODBC=no'
2327                         fi
2328                       
2329 else
2330   
2331                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2332                         if test "x$LINE" != x ; then
2333                           eval "DEFAULT_$LINE"
2334                         else
2335                           no_cache=1
2336                         fi
2337
2338                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2339                       
2340 fi
2341
2342
2343           eval "$ac_cv_use_odbc"
2344           if test "$no_cache" != 1; then
2345             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2346           fi
2347
2348           if test "$wxUSE_ODBC" = yes; then
2349             echo "$ac_t""yes" 1>&6
2350           else
2351             echo "$ac_t""no" 1>&6
2352           fi
2353         
2354
2355
2356
2357           enablestring=
2358           echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2359 echo "configure:2360: checking for --${enablestring:-enable}-shared" >&5
2360           no_cache=0
2361           # Check whether --enable-shared or --disable-shared was given.
2362 if test "${enable_shared+set}" = set; then
2363   enableval="$enable_shared"
2364   
2365                           if test "$enableval" = yes; then
2366                             ac_cv_use_shared='wxUSE_SHARED=yes'
2367                           else
2368                             ac_cv_use_shared='wxUSE_SHARED=no'
2369                           fi
2370                         
2371 else
2372   
2373                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2374                           if test "x$LINE" != x ; then
2375                             eval "DEFAULT_$LINE"
2376                           else
2377                             no_cache=1
2378                           fi
2379
2380                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2381                         
2382 fi
2383
2384
2385           eval "$ac_cv_use_shared"
2386           if test "$no_cache" != 1; then
2387             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2388           fi
2389
2390           if test "$wxUSE_SHARED" = yes; then
2391             echo "$ac_t""yes" 1>&6
2392           else
2393             echo "$ac_t""no" 1>&6
2394           fi
2395         
2396
2397           enablestring=
2398           echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2399 echo "configure:2400: checking for --${enablestring:-enable}-soname" >&5
2400           no_cache=0
2401           # Check whether --enable-soname or --disable-soname was given.
2402 if test "${enable_soname+set}" = set; then
2403   enableval="$enable_soname"
2404   
2405                           if test "$enableval" = yes; then
2406                             ac_cv_use_soname='wxUSE_SONAME=yes'
2407                           else
2408                             ac_cv_use_soname='wxUSE_SONAME=no'
2409                           fi
2410                         
2411 else
2412   
2413                           LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2414                           if test "x$LINE" != x ; then
2415                             eval "DEFAULT_$LINE"
2416                           else
2417                             no_cache=1
2418                           fi
2419
2420                           ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2421                         
2422 fi
2423
2424
2425           eval "$ac_cv_use_soname"
2426           if test "$no_cache" != 1; then
2427             echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2428           fi
2429
2430           if test "$wxUSE_SONAME" = yes; then
2431             echo "$ac_t""yes" 1>&6
2432           else
2433             echo "$ac_t""no" 1>&6
2434           fi
2435         
2436
2437           enablestring=
2438           echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2439 echo "configure:2440: checking for --${enablestring:-enable}-optimise" >&5
2440           no_cache=0
2441           # Check whether --enable-optimise or --disable-optimise was given.
2442 if test "${enable_optimise+set}" = set; then
2443   enableval="$enable_optimise"
2444   
2445                           if test "$enableval" = yes; then
2446                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2447                           else
2448                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2449                           fi
2450                         
2451 else
2452   
2453                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2454                           if test "x$LINE" != x ; then
2455                             eval "DEFAULT_$LINE"
2456                           else
2457                             no_cache=1
2458                           fi
2459
2460                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2461                         
2462 fi
2463
2464
2465           eval "$ac_cv_use_optimise"
2466           if test "$no_cache" != 1; then
2467             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2468           fi
2469
2470           if test "$wxUSE_OPTIMISE" = yes; then
2471             echo "$ac_t""yes" 1>&6
2472           else
2473             echo "$ac_t""no" 1>&6
2474           fi
2475         
2476
2477           enablestring=
2478           echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2479 echo "configure:2480: checking for --${enablestring:-enable}-debug" >&5
2480           no_cache=0
2481           # Check whether --enable-debug or --disable-debug was given.
2482 if test "${enable_debug+set}" = set; then
2483   enableval="$enable_debug"
2484   
2485                           if test "$enableval" = yes; then
2486                             ac_cv_use_debug='wxUSE_DEBUG=yes'
2487                           else
2488                             ac_cv_use_debug='wxUSE_DEBUG=no'
2489                           fi
2490                         
2491 else
2492   
2493                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2494                           if test "x$LINE" != x ; then
2495                             eval "DEFAULT_$LINE"
2496                           else
2497                             no_cache=1
2498                           fi
2499
2500                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2501                         
2502 fi
2503
2504
2505           eval "$ac_cv_use_debug"
2506           if test "$no_cache" != 1; then
2507             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2508           fi
2509
2510           if test "$wxUSE_DEBUG" = yes; then
2511             echo "$ac_t""yes" 1>&6
2512           else
2513             echo "$ac_t""no" 1>&6
2514           fi
2515         
2516
2517
2518           enablestring=
2519           echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2520 echo "configure:2521: checking for --${enablestring:-enable}-precomp" >&5
2521           no_cache=0
2522           # Check whether --enable-precomp or --disable-precomp was given.
2523 if test "${enable_precomp+set}" = set; then
2524   enableval="$enable_precomp"
2525   
2526                           if test "$enableval" = yes; then
2527                             ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2528                           else
2529                             ac_cv_use_precomp='wxUSE_PRECOMP=no'
2530                           fi
2531                         
2532 else
2533   
2534                           LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2535                           if test "x$LINE" != x ; then
2536                             eval "DEFAULT_$LINE"
2537                           else
2538                             no_cache=1
2539                           fi
2540
2541                           ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2542                         
2543 fi
2544
2545
2546           eval "$ac_cv_use_precomp"
2547           if test "$no_cache" != 1; then
2548             echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2549           fi
2550
2551           if test "$wxUSE_PRECOMP" = yes; then
2552             echo "$ac_t""yes" 1>&6
2553           else
2554             echo "$ac_t""no" 1>&6
2555           fi
2556         
2557
2558 if test "$wxUSE_DEBUG" = "yes"; then
2559   DEFAULT_wxUSE_DEBUG_FLAG=yes
2560   DEFAULT_wxUSE_DEBUG_INFO=yes
2561 elif test "$wxUSE_DEBUG" = "no"; then
2562   DEFAULT_wxUSE_DEBUG_FLAG=no
2563   DEFAULT_wxUSE_DEBUG_INFO=no
2564 fi
2565
2566
2567           enablestring=
2568           echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2569 echo "configure:2570: checking for --${enablestring:-enable}-debug_flag" >&5
2570           no_cache=0
2571           # Check whether --enable-debug_flag or --disable-debug_flag was given.
2572 if test "${enable_debug_flag+set}" = set; then
2573   enableval="$enable_debug_flag"
2574   
2575                           if test "$enableval" = yes; then
2576                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2577                           else
2578                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2579                           fi
2580                         
2581 else
2582   
2583                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2584                           if test "x$LINE" != x ; then
2585                             eval "DEFAULT_$LINE"
2586                           else
2587                             no_cache=1
2588                           fi
2589
2590                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2591                         
2592 fi
2593
2594
2595           eval "$ac_cv_use_debug_flag"
2596           if test "$no_cache" != 1; then
2597             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2598           fi
2599
2600           if test "$wxUSE_DEBUG_FLAG" = yes; then
2601             echo "$ac_t""yes" 1>&6
2602           else
2603             echo "$ac_t""no" 1>&6
2604           fi
2605         
2606
2607           enablestring=
2608           echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2609 echo "configure:2610: checking for --${enablestring:-enable}-debug_info" >&5
2610           no_cache=0
2611           # Check whether --enable-debug_info or --disable-debug_info was given.
2612 if test "${enable_debug_info+set}" = set; then
2613   enableval="$enable_debug_info"
2614   
2615                           if test "$enableval" = yes; then
2616                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2617                           else
2618                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2619                           fi
2620                         
2621 else
2622   
2623                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2624                           if test "x$LINE" != x ; then
2625                             eval "DEFAULT_$LINE"
2626                           else
2627                             no_cache=1
2628                           fi
2629
2630                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2631                         
2632 fi
2633
2634
2635           eval "$ac_cv_use_debug_info"
2636           if test "$no_cache" != 1; then
2637             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2638           fi
2639
2640           if test "$wxUSE_DEBUG_INFO" = yes; then
2641             echo "$ac_t""yes" 1>&6
2642           else
2643             echo "$ac_t""no" 1>&6
2644           fi
2645         
2646
2647           enablestring=
2648           echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2649 echo "configure:2650: checking for --${enablestring:-enable}-debug_gdb" >&5
2650           no_cache=0
2651           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2652 if test "${enable_debug_gdb+set}" = set; then
2653   enableval="$enable_debug_gdb"
2654   
2655                           if test "$enableval" = yes; then
2656                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2657                           else
2658                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2659                           fi
2660                         
2661 else
2662   
2663                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2664                           if test "x$LINE" != x ; then
2665                             eval "DEFAULT_$LINE"
2666                           else
2667                             no_cache=1
2668                           fi
2669
2670                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2671                         
2672 fi
2673
2674
2675           eval "$ac_cv_use_debug_gdb"
2676           if test "$no_cache" != 1; then
2677             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2678           fi
2679
2680           if test "$wxUSE_DEBUG_GDB" = yes; then
2681             echo "$ac_t""yes" 1>&6
2682           else
2683             echo "$ac_t""no" 1>&6
2684           fi
2685         
2686
2687           enablestring=
2688           echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2689 echo "configure:2690: checking for --${enablestring:-enable}-debug_cntxt" >&5
2690           no_cache=0
2691           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2692 if test "${enable_debug_cntxt+set}" = set; then
2693   enableval="$enable_debug_cntxt"
2694   
2695                           if test "$enableval" = yes; then
2696                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2697                           else
2698                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2699                           fi
2700                         
2701 else
2702   
2703                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2704                           if test "x$LINE" != x ; then
2705                             eval "DEFAULT_$LINE"
2706                           else
2707                             no_cache=1
2708                           fi
2709
2710                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2711                         
2712 fi
2713
2714
2715           eval "$ac_cv_use_debug_cntxt"
2716           if test "$no_cache" != 1; then
2717             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2718           fi
2719
2720           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2721             echo "$ac_t""yes" 1>&6
2722           else
2723             echo "$ac_t""no" 1>&6
2724           fi
2725         
2726
2727           enablestring=
2728           echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2729 echo "configure:2730: checking for --${enablestring:-enable}-mem_tracing" >&5
2730           no_cache=0
2731           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2732 if test "${enable_mem_tracing+set}" = set; then
2733   enableval="$enable_mem_tracing"
2734   
2735                           if test "$enableval" = yes; then
2736                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2737                           else
2738                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2739                           fi
2740                         
2741 else
2742   
2743                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2744                           if test "x$LINE" != x ; then
2745                             eval "DEFAULT_$LINE"
2746                           else
2747                             no_cache=1
2748                           fi
2749
2750                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2751                         
2752 fi
2753
2754
2755           eval "$ac_cv_use_mem_tracing"
2756           if test "$no_cache" != 1; then
2757             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2758           fi
2759
2760           if test "$wxUSE_MEM_TRACING" = yes; then
2761             echo "$ac_t""yes" 1>&6
2762           else
2763             echo "$ac_t""no" 1>&6
2764           fi
2765         
2766
2767           enablestring=
2768           echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2769 echo "configure:2770: checking for --${enablestring:-enable}-profile" >&5
2770           no_cache=0
2771           # Check whether --enable-profile or --disable-profile was given.
2772 if test "${enable_profile+set}" = set; then
2773   enableval="$enable_profile"
2774   
2775                           if test "$enableval" = yes; then
2776                             ac_cv_use_profile='wxUSE_PROFILE=yes'
2777                           else
2778                             ac_cv_use_profile='wxUSE_PROFILE=no'
2779                           fi
2780                         
2781 else
2782   
2783                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2784                           if test "x$LINE" != x ; then
2785                             eval "DEFAULT_$LINE"
2786                           else
2787                             no_cache=1
2788                           fi
2789
2790                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2791                         
2792 fi
2793
2794
2795           eval "$ac_cv_use_profile"
2796           if test "$no_cache" != 1; then
2797             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2798           fi
2799
2800           if test "$wxUSE_PROFILE" = yes; then
2801             echo "$ac_t""yes" 1>&6
2802           else
2803             echo "$ac_t""no" 1>&6
2804           fi
2805         
2806
2807           enablestring=
2808           echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2809 echo "configure:2810: checking for --${enablestring:-enable}-no_rtti" >&5
2810           no_cache=0
2811           # Check whether --enable-no_rtti or --disable-no_rtti was given.
2812 if test "${enable_no_rtti+set}" = set; then
2813   enableval="$enable_no_rtti"
2814   
2815                           if test "$enableval" = yes; then
2816                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2817                           else
2818                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2819                           fi
2820                         
2821 else
2822   
2823                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2824                           if test "x$LINE" != x ; then
2825                             eval "DEFAULT_$LINE"
2826                           else
2827                             no_cache=1
2828                           fi
2829
2830                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2831                         
2832 fi
2833
2834
2835           eval "$ac_cv_use_no_rtti"
2836           if test "$no_cache" != 1; then
2837             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2838           fi
2839
2840           if test "$wxUSE_NO_RTTI" = yes; then
2841             echo "$ac_t""yes" 1>&6
2842           else
2843             echo "$ac_t""no" 1>&6
2844           fi
2845         
2846
2847           enablestring=
2848           echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2849 echo "configure:2850: checking for --${enablestring:-enable}-no_exceptions" >&5
2850           no_cache=0
2851           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2852 if test "${enable_no_exceptions+set}" = set; then
2853   enableval="$enable_no_exceptions"
2854   
2855                           if test "$enableval" = yes; then
2856                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2857                           else
2858                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2859                           fi
2860                         
2861 else
2862   
2863                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2864                           if test "x$LINE" != x ; then
2865                             eval "DEFAULT_$LINE"
2866                           else
2867                             no_cache=1
2868                           fi
2869
2870                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2871                         
2872 fi
2873
2874
2875           eval "$ac_cv_use_no_exceptions"
2876           if test "$no_cache" != 1; then
2877             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2878           fi
2879
2880           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2881             echo "$ac_t""yes" 1>&6
2882           else
2883             echo "$ac_t""no" 1>&6
2884           fi
2885         
2886
2887           enablestring=
2888           echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2889 echo "configure:2890: checking for --${enablestring:-enable}-permissive" >&5
2890           no_cache=0
2891           # Check whether --enable-permissive or --disable-permissive was given.
2892 if test "${enable_permissive+set}" = set; then
2893   enableval="$enable_permissive"
2894   
2895                           if test "$enableval" = yes; then
2896                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2897                           else
2898                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2899                           fi
2900                         
2901 else
2902   
2903                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2904                           if test "x$LINE" != x ; then
2905                             eval "DEFAULT_$LINE"
2906                           else
2907                             no_cache=1
2908                           fi
2909
2910                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2911                         
2912 fi
2913
2914
2915           eval "$ac_cv_use_permissive"
2916           if test "$no_cache" != 1; then
2917             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2918           fi
2919
2920           if test "$wxUSE_PERMISSIVE" = yes; then
2921             echo "$ac_t""yes" 1>&6
2922           else
2923             echo "$ac_t""no" 1>&6
2924           fi
2925         
2926
2927           enablestring=
2928           echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2929 echo "configure:2930: checking for --${enablestring:-enable}-no_deps" >&5
2930           no_cache=0
2931           # Check whether --enable-no_deps or --disable-no_deps was given.
2932 if test "${enable_no_deps+set}" = set; then
2933   enableval="$enable_no_deps"
2934   
2935                           if test "$enableval" = yes; then
2936                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2937                           else
2938                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2939                           fi
2940                         
2941 else
2942   
2943                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2944                           if test "x$LINE" != x ; then
2945                             eval "DEFAULT_$LINE"
2946                           else
2947                             no_cache=1
2948                           fi
2949
2950                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2951                         
2952 fi
2953
2954
2955           eval "$ac_cv_use_no_deps"
2956           if test "$no_cache" != 1; then
2957             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2958           fi
2959
2960           if test "$wxUSE_NO_DEPS" = yes; then
2961             echo "$ac_t""yes" 1>&6
2962           else
2963             echo "$ac_t""no" 1>&6
2964           fi
2965         
2966
2967
2968           enablestring=
2969           echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
2970 echo "configure:2971: checking for --${enablestring:-enable}-compat20" >&5
2971           no_cache=0
2972           # Check whether --enable-compat20 or --disable-compat20 was given.
2973 if test "${enable_compat20+set}" = set; then
2974   enableval="$enable_compat20"
2975   
2976                           if test "$enableval" = yes; then
2977                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2978                           else
2979                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2980                           fi
2981                         
2982 else
2983   
2984                           LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2985                           if test "x$LINE" != x ; then
2986                             eval "DEFAULT_$LINE"
2987                           else
2988                             no_cache=1
2989                           fi
2990
2991                           ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2992                         
2993 fi
2994
2995
2996           eval "$ac_cv_use_compat20"
2997           if test "$no_cache" != 1; then
2998             echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2999           fi
3000
3001           if test "$WXWIN_COMPATIBILITY_2" = yes; then
3002             echo "$ac_t""yes" 1>&6
3003           else
3004             echo "$ac_t""no" 1>&6
3005           fi
3006         
3007
3008           enablestring=disable
3009           echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3010 echo "configure:3011: checking for --${enablestring:-enable}-compat22" >&5
3011           no_cache=0
3012           # Check whether --enable-compat22 or --disable-compat22 was given.
3013 if test "${enable_compat22+set}" = set; then
3014   enableval="$enable_compat22"
3015   
3016                           if test "$enableval" = yes; then
3017                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3018                           else
3019                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3020                           fi
3021                         
3022 else
3023   
3024                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3025                           if test "x$LINE" != x ; then
3026                             eval "DEFAULT_$LINE"
3027                           else
3028                             no_cache=1
3029                           fi
3030
3031                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3032                         
3033 fi
3034
3035
3036           eval "$ac_cv_use_compat22"
3037           if test "$no_cache" != 1; then
3038             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3039           fi
3040
3041           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3042             echo "$ac_t""yes" 1>&6
3043           else
3044             echo "$ac_t""no" 1>&6
3045           fi
3046         
3047
3048 # Check whether --enable-rpath or --disable-rpath was given.
3049 if test "${enable_rpath+set}" = set; then
3050   enableval="$enable_rpath"
3051   wxRPATH_DIR="$enableval"
3052 fi
3053
3054
3055 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3056    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3057 fi
3058
3059
3060
3061
3062           enablestring=
3063           echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3064 echo "configure:3065: checking for --${enablestring:-enable}-intl" >&5
3065           no_cache=0
3066           # Check whether --enable-intl or --disable-intl was given.
3067 if test "${enable_intl+set}" = set; then
3068   enableval="$enable_intl"
3069   
3070                           if test "$enableval" = yes; then
3071                             ac_cv_use_intl='wxUSE_INTL=yes'
3072                           else
3073                             ac_cv_use_intl='wxUSE_INTL=no'
3074                           fi
3075                         
3076 else
3077   
3078                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3079                           if test "x$LINE" != x ; then
3080                             eval "DEFAULT_$LINE"
3081                           else
3082                             no_cache=1
3083                           fi
3084
3085                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3086                         
3087 fi
3088
3089
3090           eval "$ac_cv_use_intl"
3091           if test "$no_cache" != 1; then
3092             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3093           fi
3094
3095           if test "$wxUSE_INTL" = yes; then
3096             echo "$ac_t""yes" 1>&6
3097           else
3098             echo "$ac_t""no" 1>&6
3099           fi
3100         
3101
3102           enablestring=
3103           echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3104 echo "configure:3105: checking for --${enablestring:-enable}-config" >&5
3105           no_cache=0
3106           # Check whether --enable-config or --disable-config was given.
3107 if test "${enable_config+set}" = set; then
3108   enableval="$enable_config"
3109   
3110                           if test "$enableval" = yes; then
3111                             ac_cv_use_config='wxUSE_CONFIG=yes'
3112                           else
3113                             ac_cv_use_config='wxUSE_CONFIG=no'
3114                           fi
3115                         
3116 else
3117   
3118                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3119                           if test "x$LINE" != x ; then
3120                             eval "DEFAULT_$LINE"
3121                           else
3122                             no_cache=1
3123                           fi
3124
3125                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3126                         
3127 fi
3128
3129
3130           eval "$ac_cv_use_config"
3131           if test "$no_cache" != 1; then
3132             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3133           fi
3134
3135           if test "$wxUSE_CONFIG" = yes; then
3136             echo "$ac_t""yes" 1>&6
3137           else
3138             echo "$ac_t""no" 1>&6
3139           fi
3140         
3141
3142
3143           enablestring=
3144           echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3145 echo "configure:3146: checking for --${enablestring:-enable}-protocols" >&5
3146           no_cache=0
3147           # Check whether --enable-protocols or --disable-protocols was given.
3148 if test "${enable_protocols+set}" = set; then
3149   enableval="$enable_protocols"
3150   
3151                           if test "$enableval" = yes; then
3152                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3153                           else
3154                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3155                           fi
3156                         
3157 else
3158   
3159                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3160                           if test "x$LINE" != x ; then
3161                             eval "DEFAULT_$LINE"
3162                           else
3163                             no_cache=1
3164                           fi
3165
3166                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3167                         
3168 fi
3169
3170
3171           eval "$ac_cv_use_protocols"
3172           if test "$no_cache" != 1; then
3173             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3174           fi
3175
3176           if test "$wxUSE_PROTOCOL" = yes; then
3177             echo "$ac_t""yes" 1>&6
3178           else
3179             echo "$ac_t""no" 1>&6
3180           fi
3181         
3182
3183           enablestring=
3184           echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3185 echo "configure:3186: checking for --${enablestring:-enable}-ftp" >&5
3186           no_cache=0
3187           # Check whether --enable-ftp or --disable-ftp was given.
3188 if test "${enable_ftp+set}" = set; then
3189   enableval="$enable_ftp"
3190   
3191                           if test "$enableval" = yes; then
3192                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3193                           else
3194                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3195                           fi
3196                         
3197 else
3198   
3199                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3200                           if test "x$LINE" != x ; then
3201                             eval "DEFAULT_$LINE"
3202                           else
3203                             no_cache=1
3204                           fi
3205
3206                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3207                         
3208 fi
3209
3210
3211           eval "$ac_cv_use_ftp"
3212           if test "$no_cache" != 1; then
3213             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3214           fi
3215
3216           if test "$wxUSE_PROTOCOL_FTP" = yes; then
3217             echo "$ac_t""yes" 1>&6
3218           else
3219             echo "$ac_t""no" 1>&6
3220           fi
3221         
3222
3223           enablestring=
3224           echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3225 echo "configure:3226: checking for --${enablestring:-enable}-http" >&5
3226           no_cache=0
3227           # Check whether --enable-http or --disable-http was given.
3228 if test "${enable_http+set}" = set; then
3229   enableval="$enable_http"
3230   
3231                           if test "$enableval" = yes; then
3232                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3233                           else
3234                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3235                           fi
3236                         
3237 else
3238   
3239                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3240                           if test "x$LINE" != x ; then
3241                             eval "DEFAULT_$LINE"
3242                           else
3243                             no_cache=1
3244                           fi
3245
3246                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3247                         
3248 fi
3249
3250
3251           eval "$ac_cv_use_http"
3252           if test "$no_cache" != 1; then
3253             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3254           fi
3255
3256           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3257             echo "$ac_t""yes" 1>&6
3258           else
3259             echo "$ac_t""no" 1>&6
3260           fi
3261         
3262
3263           enablestring=
3264           echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3265 echo "configure:3266: checking for --${enablestring:-enable}-fileproto" >&5
3266           no_cache=0
3267           # Check whether --enable-fileproto or --disable-fileproto was given.
3268 if test "${enable_fileproto+set}" = set; then
3269   enableval="$enable_fileproto"
3270   
3271                           if test "$enableval" = yes; then
3272                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3273                           else
3274                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3275                           fi
3276                         
3277 else
3278   
3279                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3280                           if test "x$LINE" != x ; then
3281                             eval "DEFAULT_$LINE"
3282                           else
3283                             no_cache=1
3284                           fi
3285
3286                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3287                         
3288 fi
3289
3290
3291           eval "$ac_cv_use_fileproto"
3292           if test "$no_cache" != 1; then
3293             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3294           fi
3295
3296           if test "$wxUSE_PROTOCOL_FILE" = yes; then
3297             echo "$ac_t""yes" 1>&6
3298           else
3299             echo "$ac_t""no" 1>&6
3300           fi
3301         
3302
3303           enablestring=
3304           echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3305 echo "configure:3306: checking for --${enablestring:-enable}-sockets" >&5
3306           no_cache=0
3307           # Check whether --enable-sockets or --disable-sockets was given.
3308 if test "${enable_sockets+set}" = set; then
3309   enableval="$enable_sockets"
3310   
3311                           if test "$enableval" = yes; then
3312                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3313                           else
3314                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
3315                           fi
3316                         
3317 else
3318   
3319                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3320                           if test "x$LINE" != x ; then
3321                             eval "DEFAULT_$LINE"
3322                           else
3323                             no_cache=1
3324                           fi
3325
3326                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3327                         
3328 fi
3329
3330
3331           eval "$ac_cv_use_sockets"
3332           if test "$no_cache" != 1; then
3333             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3334           fi
3335
3336           if test "$wxUSE_SOCKETS" = yes; then
3337             echo "$ac_t""yes" 1>&6
3338           else
3339             echo "$ac_t""no" 1>&6
3340           fi
3341         
3342
3343           enablestring=
3344           echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3345 echo "configure:3346: checking for --${enablestring:-enable}-ole" >&5
3346           no_cache=0
3347           # Check whether --enable-ole or --disable-ole was given.
3348 if test "${enable_ole+set}" = set; then
3349   enableval="$enable_ole"
3350   
3351                           if test "$enableval" = yes; then
3352                             ac_cv_use_ole='wxUSE_OLE=yes'
3353                           else
3354                             ac_cv_use_ole='wxUSE_OLE=no'
3355                           fi
3356                         
3357 else
3358   
3359                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3360                           if test "x$LINE" != x ; then
3361                             eval "DEFAULT_$LINE"
3362                           else
3363                             no_cache=1
3364                           fi
3365
3366                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3367                         
3368 fi
3369
3370
3371           eval "$ac_cv_use_ole"
3372           if test "$no_cache" != 1; then
3373             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3374           fi
3375
3376           if test "$wxUSE_OLE" = yes; then
3377             echo "$ac_t""yes" 1>&6
3378           else
3379             echo "$ac_t""no" 1>&6
3380           fi
3381         
3382
3383           enablestring=
3384           echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3385 echo "configure:3386: checking for --${enablestring:-enable}-dataobj" >&5
3386           no_cache=0
3387           # Check whether --enable-dataobj or --disable-dataobj was given.
3388 if test "${enable_dataobj+set}" = set; then
3389   enableval="$enable_dataobj"
3390   
3391                           if test "$enableval" = yes; then
3392                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3393                           else
3394                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3395                           fi
3396                         
3397 else
3398   
3399                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3400                           if test "x$LINE" != x ; then
3401                             eval "DEFAULT_$LINE"
3402                           else
3403                             no_cache=1
3404                           fi
3405
3406                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3407                         
3408 fi
3409
3410
3411           eval "$ac_cv_use_dataobj"
3412           if test "$no_cache" != 1; then
3413             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3414           fi
3415
3416           if test "$wxUSE_DATAOBJ" = yes; then
3417             echo "$ac_t""yes" 1>&6
3418           else
3419             echo "$ac_t""no" 1>&6
3420           fi
3421         
3422
3423
3424           enablestring=
3425           echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3426 echo "configure:3427: checking for --${enablestring:-enable}-ipc" >&5
3427           no_cache=0
3428           # Check whether --enable-ipc or --disable-ipc was given.
3429 if test "${enable_ipc+set}" = set; then
3430   enableval="$enable_ipc"
3431   
3432                           if test "$enableval" = yes; then
3433                             ac_cv_use_ipc='wxUSE_IPC=yes'
3434                           else
3435                             ac_cv_use_ipc='wxUSE_IPC=no'
3436                           fi
3437                         
3438 else
3439   
3440                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3441                           if test "x$LINE" != x ; then
3442                             eval "DEFAULT_$LINE"
3443                           else
3444                             no_cache=1
3445                           fi
3446
3447                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3448                         
3449 fi
3450
3451
3452           eval "$ac_cv_use_ipc"
3453           if test "$no_cache" != 1; then
3454             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3455           fi
3456
3457           if test "$wxUSE_IPC" = yes; then
3458             echo "$ac_t""yes" 1>&6
3459           else
3460             echo "$ac_t""no" 1>&6
3461           fi
3462         
3463
3464
3465           enablestring=
3466           echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3467 echo "configure:3468: checking for --${enablestring:-enable}-cmdline" >&5
3468           no_cache=0
3469           # Check whether --enable-cmdline or --disable-cmdline was given.
3470 if test "${enable_cmdline+set}" = set; then
3471   enableval="$enable_cmdline"
3472   
3473                           if test "$enableval" = yes; then
3474                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3475                           else
3476                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3477                           fi
3478                         
3479 else
3480   
3481                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3482                           if test "x$LINE" != x ; then
3483                             eval "DEFAULT_$LINE"
3484                           else
3485                             no_cache=1
3486                           fi
3487
3488                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3489                         
3490 fi
3491
3492
3493           eval "$ac_cv_use_cmdline"
3494           if test "$no_cache" != 1; then
3495             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3496           fi
3497
3498           if test "$wxUSE_CMDLINE_PARSER" = yes; then
3499             echo "$ac_t""yes" 1>&6
3500           else
3501             echo "$ac_t""no" 1>&6
3502           fi
3503         
3504
3505           enablestring=
3506           echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3507 echo "configure:3508: checking for --${enablestring:-enable}-datetime" >&5
3508           no_cache=0
3509           # Check whether --enable-datetime or --disable-datetime was given.
3510 if test "${enable_datetime+set}" = set; then
3511   enableval="$enable_datetime"
3512   
3513                           if test "$enableval" = yes; then
3514                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
3515                           else
3516                             ac_cv_use_datetime='wxUSE_DATETIME=no'
3517                           fi
3518                         
3519 else
3520   
3521                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3522                           if test "x$LINE" != x ; then
3523                             eval "DEFAULT_$LINE"
3524                           else
3525                             no_cache=1
3526                           fi
3527
3528                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3529                         
3530 fi
3531
3532
3533           eval "$ac_cv_use_datetime"
3534           if test "$no_cache" != 1; then
3535             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3536           fi
3537
3538           if test "$wxUSE_DATETIME" = yes; then
3539             echo "$ac_t""yes" 1>&6
3540           else
3541             echo "$ac_t""no" 1>&6
3542           fi
3543         
3544
3545           enablestring=
3546           echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6
3547 echo "configure:3548: checking for --${enablestring:-enable}-timedate" >&5
3548           no_cache=0
3549           # Check whether --enable-timedate or --disable-timedate was given.
3550 if test "${enable_timedate+set}" = set; then
3551   enableval="$enable_timedate"
3552   
3553                           if test "$enableval" = yes; then
3554                             ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3555                           else
3556                             ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3557                           fi
3558                         
3559 else
3560   
3561                           LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3562                           if test "x$LINE" != x ; then
3563                             eval "DEFAULT_$LINE"
3564                           else
3565                             no_cache=1
3566                           fi
3567
3568                           ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3569                         
3570 fi
3571
3572
3573           eval "$ac_cv_use_timedate"
3574           if test "$no_cache" != 1; then
3575             echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3576           fi
3577
3578           if test "$wxUSE_TIMEDATE" = yes; then
3579             echo "$ac_t""yes" 1>&6
3580           else
3581             echo "$ac_t""no" 1>&6
3582           fi
3583         
3584
3585           enablestring=
3586           echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3587 echo "configure:3588: checking for --${enablestring:-enable}-stopwatch" >&5
3588           no_cache=0
3589           # Check whether --enable-stopwatch or --disable-stopwatch was given.
3590 if test "${enable_stopwatch+set}" = set; then
3591   enableval="$enable_stopwatch"
3592   
3593                           if test "$enableval" = yes; then
3594                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3595                           else
3596                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3597                           fi
3598                         
3599 else
3600   
3601                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3602                           if test "x$LINE" != x ; then
3603                             eval "DEFAULT_$LINE"
3604                           else
3605                             no_cache=1
3606                           fi
3607
3608                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3609                         
3610 fi
3611
3612
3613           eval "$ac_cv_use_stopwatch"
3614           if test "$no_cache" != 1; then
3615             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3616           fi
3617
3618           if test "$wxUSE_STOPWATCH" = yes; then
3619             echo "$ac_t""yes" 1>&6
3620           else
3621             echo "$ac_t""no" 1>&6
3622           fi
3623         
3624
3625           enablestring=
3626           echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3627 echo "configure:3628: checking for --${enablestring:-enable}-dialupman" >&5
3628           no_cache=0
3629           # Check whether --enable-dialupman or --disable-dialupman was given.
3630 if test "${enable_dialupman+set}" = set; then
3631   enableval="$enable_dialupman"
3632   
3633                           if test "$enableval" = yes; then
3634                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3635                           else
3636                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3637                           fi
3638                         
3639 else
3640   
3641                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${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_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3649                         
3650 fi
3651
3652
3653           eval "$ac_cv_use_dialupman"
3654           if test "$no_cache" != 1; then
3655             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3656           fi
3657
3658           if test "$wxUSE_DIALUP_MANAGER" = yes; then
3659             echo "$ac_t""yes" 1>&6
3660           else
3661             echo "$ac_t""no" 1>&6
3662           fi
3663         
3664
3665           enablestring=
3666           echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3667 echo "configure:3668: checking for --${enablestring:-enable}-apple_ieee" >&5
3668           no_cache=0
3669           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3670 if test "${enable_apple_ieee+set}" = set; then
3671   enableval="$enable_apple_ieee"
3672   
3673                           if test "$enableval" = yes; then
3674                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3675                           else
3676                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3677                           fi
3678                         
3679 else
3680   
3681                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3682                           if test "x$LINE" != x ; then
3683                             eval "DEFAULT_$LINE"
3684                           else
3685                             no_cache=1
3686                           fi
3687
3688                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3689                         
3690 fi
3691
3692
3693           eval "$ac_cv_use_apple_ieee"
3694           if test "$no_cache" != 1; then
3695             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3696           fi
3697
3698           if test "$wxUSE_APPLE_IEEE" = yes; then
3699             echo "$ac_t""yes" 1>&6
3700           else
3701             echo "$ac_t""no" 1>&6
3702           fi
3703         
3704
3705           enablestring=
3706           echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3707 echo "configure:3708: checking for --${enablestring:-enable}-timer" >&5
3708           no_cache=0
3709           # Check whether --enable-timer or --disable-timer was given.
3710 if test "${enable_timer+set}" = set; then
3711   enableval="$enable_timer"
3712   
3713                           if test "$enableval" = yes; then
3714                             ac_cv_use_timer='wxUSE_TIMER=yes'
3715                           else
3716                             ac_cv_use_timer='wxUSE_TIMER=no'
3717                           fi
3718                         
3719 else
3720   
3721                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3722                           if test "x$LINE" != x ; then
3723                             eval "DEFAULT_$LINE"
3724                           else
3725                             no_cache=1
3726                           fi
3727
3728                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3729                         
3730 fi
3731
3732
3733           eval "$ac_cv_use_timer"
3734           if test "$no_cache" != 1; then
3735             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3736           fi
3737
3738           if test "$wxUSE_TIMER" = yes; then
3739             echo "$ac_t""yes" 1>&6
3740           else
3741             echo "$ac_t""no" 1>&6
3742           fi
3743         
3744
3745           enablestring=
3746           echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3747 echo "configure:3748: checking for --${enablestring:-enable}-wave" >&5
3748           no_cache=0
3749           # Check whether --enable-wave or --disable-wave was given.
3750 if test "${enable_wave+set}" = set; then
3751   enableval="$enable_wave"
3752   
3753                           if test "$enableval" = yes; then
3754                             ac_cv_use_wave='wxUSE_WAVE=yes'
3755                           else
3756                             ac_cv_use_wave='wxUSE_WAVE=no'
3757                           fi
3758                         
3759 else
3760   
3761                           LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3762                           if test "x$LINE" != x ; then
3763                             eval "DEFAULT_$LINE"
3764                           else
3765                             no_cache=1
3766                           fi
3767
3768                           ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3769                         
3770 fi
3771
3772
3773           eval "$ac_cv_use_wave"
3774           if test "$no_cache" != 1; then
3775             echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3776           fi
3777
3778           if test "$wxUSE_WAVE" = yes; then
3779             echo "$ac_t""yes" 1>&6
3780           else
3781             echo "$ac_t""no" 1>&6
3782           fi
3783         
3784
3785           enablestring=
3786           echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3787 echo "configure:3788: checking for --${enablestring:-enable}-fraction" >&5
3788           no_cache=0
3789           # Check whether --enable-fraction or --disable-fraction was given.
3790 if test "${enable_fraction+set}" = set; then
3791   enableval="$enable_fraction"
3792   
3793                           if test "$enableval" = yes; then
3794                             ac_cv_use_fraction='wxUSE_FRACTION=yes'
3795                           else
3796                             ac_cv_use_fraction='wxUSE_FRACTION=no'
3797                           fi
3798                         
3799 else
3800   
3801                           LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3802                           if test "x$LINE" != x ; then
3803                             eval "DEFAULT_$LINE"
3804                           else
3805                             no_cache=1
3806                           fi
3807
3808                           ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3809                         
3810 fi
3811
3812
3813           eval "$ac_cv_use_fraction"
3814           if test "$no_cache" != 1; then
3815             echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3816           fi
3817
3818           if test "$wxUSE_FRACTION" = yes; then
3819             echo "$ac_t""yes" 1>&6
3820           else
3821             echo "$ac_t""no" 1>&6
3822           fi
3823         
3824
3825           enablestring=
3826           echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3827 echo "configure:3828: checking for --${enablestring:-enable}-dynlib" >&5
3828           no_cache=0
3829           # Check whether --enable-dynlib or --disable-dynlib was given.
3830 if test "${enable_dynlib+set}" = set; then
3831   enableval="$enable_dynlib"
3832   
3833                           if test "$enableval" = yes; then
3834                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3835                           else
3836                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3837                           fi
3838                         
3839 else
3840   
3841                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3842                           if test "x$LINE" != x ; then
3843                             eval "DEFAULT_$LINE"
3844                           else
3845                             no_cache=1
3846                           fi
3847
3848                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3849                         
3850 fi
3851
3852
3853           eval "$ac_cv_use_dynlib"
3854           if test "$no_cache" != 1; then
3855             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3856           fi
3857
3858           if test "$wxUSE_DYNLIB_CLASS" = yes; then
3859             echo "$ac_t""yes" 1>&6
3860           else
3861             echo "$ac_t""no" 1>&6
3862           fi
3863         
3864
3865           enablestring=
3866           echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3867 echo "configure:3868: checking for --${enablestring:-enable}-dynamicloader" >&5
3868           no_cache=0
3869           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3870 if test "${enable_dynamicloader+set}" = set; then
3871   enableval="$enable_dynamicloader"
3872   
3873                           if test "$enableval" = yes; then
3874                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3875                           else
3876                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3877                           fi
3878                         
3879 else
3880   
3881                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3882                           if test "x$LINE" != x ; then
3883                             eval "DEFAULT_$LINE"
3884                           else
3885                             no_cache=1
3886                           fi
3887
3888                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3889                         
3890 fi
3891
3892
3893           eval "$ac_cv_use_dynamicloader"
3894           if test "$no_cache" != 1; then
3895             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3896           fi
3897
3898           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3899             echo "$ac_t""yes" 1>&6
3900           else
3901             echo "$ac_t""no" 1>&6
3902           fi
3903         
3904
3905           enablestring=
3906           echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3907 echo "configure:3908: checking for --${enablestring:-enable}-longlong" >&5
3908           no_cache=0
3909           # Check whether --enable-longlong or --disable-longlong was given.
3910 if test "${enable_longlong+set}" = set; then
3911   enableval="$enable_longlong"
3912   
3913                           if test "$enableval" = yes; then
3914                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3915                           else
3916                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
3917                           fi
3918                         
3919 else
3920   
3921                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3922                           if test "x$LINE" != x ; then
3923                             eval "DEFAULT_$LINE"
3924                           else
3925                             no_cache=1
3926                           fi
3927
3928                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3929                         
3930 fi
3931
3932
3933           eval "$ac_cv_use_longlong"
3934           if test "$no_cache" != 1; then
3935             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3936           fi
3937
3938           if test "$wxUSE_LONGLONG" = yes; then
3939             echo "$ac_t""yes" 1>&6
3940           else
3941             echo "$ac_t""no" 1>&6
3942           fi
3943         
3944
3945           enablestring=
3946           echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3947 echo "configure:3948: checking for --${enablestring:-enable}-geometry" >&5
3948           no_cache=0
3949           # Check whether --enable-geometry or --disable-geometry was given.
3950 if test "${enable_geometry+set}" = set; then
3951   enableval="$enable_geometry"
3952   
3953                           if test "$enableval" = yes; then
3954                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3955                           else
3956                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3957                           fi
3958                         
3959 else
3960   
3961                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3962                           if test "x$LINE" != x ; then
3963                             eval "DEFAULT_$LINE"
3964                           else
3965                             no_cache=1
3966                           fi
3967
3968                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3969                         
3970 fi
3971
3972
3973           eval "$ac_cv_use_geometry"
3974           if test "$no_cache" != 1; then
3975             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3976           fi
3977
3978           if test "$wxUSE_GEOMETRY" = yes; then
3979             echo "$ac_t""yes" 1>&6
3980           else
3981             echo "$ac_t""no" 1>&6
3982           fi
3983         
3984
3985           enablestring=
3986           echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
3987 echo "configure:3988: checking for --${enablestring:-enable}-log" >&5
3988           no_cache=0
3989           # Check whether --enable-log or --disable-log was given.
3990 if test "${enable_log+set}" = set; then
3991   enableval="$enable_log"
3992   
3993                           if test "$enableval" = yes; then
3994                             ac_cv_use_log='wxUSE_LOG=yes'
3995                           else
3996                             ac_cv_use_log='wxUSE_LOG=no'
3997                           fi
3998                         
3999 else
4000   
4001                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4002                           if test "x$LINE" != x ; then
4003                             eval "DEFAULT_$LINE"
4004                           else
4005                             no_cache=1
4006                           fi
4007
4008                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4009                         
4010 fi
4011
4012
4013           eval "$ac_cv_use_log"
4014           if test "$no_cache" != 1; then
4015             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4016           fi
4017
4018           if test "$wxUSE_LOG" = yes; then
4019             echo "$ac_t""yes" 1>&6
4020           else
4021             echo "$ac_t""no" 1>&6
4022           fi
4023         
4024
4025           enablestring=
4026           echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4027 echo "configure:4028: checking for --${enablestring:-enable}-streams" >&5
4028           no_cache=0
4029           # Check whether --enable-streams or --disable-streams was given.
4030 if test "${enable_streams+set}" = set; then
4031   enableval="$enable_streams"
4032   
4033                           if test "$enableval" = yes; then
4034                             ac_cv_use_streams='wxUSE_STREAMS=yes'
4035                           else
4036                             ac_cv_use_streams='wxUSE_STREAMS=no'
4037                           fi
4038                         
4039 else
4040   
4041                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4042                           if test "x$LINE" != x ; then
4043                             eval "DEFAULT_$LINE"
4044                           else
4045                             no_cache=1
4046                           fi
4047
4048                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4049                         
4050 fi
4051
4052
4053           eval "$ac_cv_use_streams"
4054           if test "$no_cache" != 1; then
4055             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4056           fi
4057
4058           if test "$wxUSE_STREAMS" = yes; then
4059             echo "$ac_t""yes" 1>&6
4060           else
4061             echo "$ac_t""no" 1>&6
4062           fi
4063         
4064
4065           enablestring=
4066           echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4067 echo "configure:4068: checking for --${enablestring:-enable}-file" >&5
4068           no_cache=0
4069           # Check whether --enable-file or --disable-file was given.
4070 if test "${enable_file+set}" = set; then
4071   enableval="$enable_file"
4072   
4073                           if test "$enableval" = yes; then
4074                             ac_cv_use_file='wxUSE_FILE=yes'
4075                           else
4076                             ac_cv_use_file='wxUSE_FILE=no'
4077                           fi
4078                         
4079 else
4080   
4081                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4082                           if test "x$LINE" != x ; then
4083                             eval "DEFAULT_$LINE"
4084                           else
4085                             no_cache=1
4086                           fi
4087
4088                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4089                         
4090 fi
4091
4092
4093           eval "$ac_cv_use_file"
4094           if test "$no_cache" != 1; then
4095             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4096           fi
4097
4098           if test "$wxUSE_FILE" = yes; then
4099             echo "$ac_t""yes" 1>&6
4100           else
4101             echo "$ac_t""no" 1>&6
4102           fi
4103         
4104
4105           enablestring=
4106           echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4107 echo "configure:4108: checking for --${enablestring:-enable}-ffile" >&5
4108           no_cache=0
4109           # Check whether --enable-ffile or --disable-ffile was given.
4110 if test "${enable_ffile+set}" = set; then
4111   enableval="$enable_ffile"
4112   
4113                           if test "$enableval" = yes; then
4114                             ac_cv_use_ffile='wxUSE_FFILE=yes'
4115                           else
4116                             ac_cv_use_ffile='wxUSE_FFILE=no'
4117                           fi
4118                         
4119 else
4120   
4121                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4122                           if test "x$LINE" != x ; then
4123                             eval "DEFAULT_$LINE"
4124                           else
4125                             no_cache=1
4126                           fi
4127
4128                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4129                         
4130 fi
4131
4132
4133           eval "$ac_cv_use_ffile"
4134           if test "$no_cache" != 1; then
4135             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4136           fi
4137
4138           if test "$wxUSE_FFILE" = yes; then
4139             echo "$ac_t""yes" 1>&6
4140           else
4141             echo "$ac_t""no" 1>&6
4142           fi
4143         
4144
4145           enablestring=
4146           echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4147 echo "configure:4148: checking for --${enablestring:-enable}-textbuf" >&5
4148           no_cache=0
4149           # Check whether --enable-textbuf or --disable-textbuf was given.
4150 if test "${enable_textbuf+set}" = set; then
4151   enableval="$enable_textbuf"
4152   
4153                           if test "$enableval" = yes; then
4154                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4155                           else
4156                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4157                           fi
4158                         
4159 else
4160   
4161                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4162                           if test "x$LINE" != x ; then
4163                             eval "DEFAULT_$LINE"
4164                           else
4165                             no_cache=1
4166                           fi
4167
4168                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4169                         
4170 fi
4171
4172
4173           eval "$ac_cv_use_textbuf"
4174           if test "$no_cache" != 1; then
4175             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4176           fi
4177
4178           if test "$wxUSE_TEXTBUFFER" = yes; then
4179             echo "$ac_t""yes" 1>&6
4180           else
4181             echo "$ac_t""no" 1>&6
4182           fi
4183         
4184
4185           enablestring=
4186           echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4187 echo "configure:4188: checking for --${enablestring:-enable}-textfile" >&5
4188           no_cache=0
4189           # Check whether --enable-textfile or --disable-textfile was given.
4190 if test "${enable_textfile+set}" = set; then
4191   enableval="$enable_textfile"
4192   
4193                           if test "$enableval" = yes; then
4194                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4195                           else
4196                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4197                           fi
4198                         
4199 else
4200   
4201                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4202                           if test "x$LINE" != x ; then
4203                             eval "DEFAULT_$LINE"
4204                           else
4205                             no_cache=1
4206                           fi
4207
4208                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4209                         
4210 fi
4211
4212
4213           eval "$ac_cv_use_textfile"
4214           if test "$no_cache" != 1; then
4215             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4216           fi
4217
4218           if test "$wxUSE_TEXTFILE" = yes; then
4219             echo "$ac_t""yes" 1>&6
4220           else
4221             echo "$ac_t""no" 1>&6
4222           fi
4223         
4224
4225           enablestring=
4226           echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4227 echo "configure:4228: checking for --${enablestring:-enable}-fontmap" >&5
4228           no_cache=0
4229           # Check whether --enable-fontmap or --disable-fontmap was given.
4230 if test "${enable_fontmap+set}" = set; then
4231   enableval="$enable_fontmap"
4232   
4233                           if test "$enableval" = yes; then
4234                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4235                           else
4236                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4237                           fi
4238                         
4239 else
4240   
4241                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4242                           if test "x$LINE" != x ; then
4243                             eval "DEFAULT_$LINE"
4244                           else
4245                             no_cache=1
4246                           fi
4247
4248                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4249                         
4250 fi
4251
4252
4253           eval "$ac_cv_use_fontmap"
4254           if test "$no_cache" != 1; then
4255             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4256           fi
4257
4258           if test "$wxUSE_FONTMAP" = yes; then
4259             echo "$ac_t""yes" 1>&6
4260           else
4261             echo "$ac_t""no" 1>&6
4262           fi
4263         
4264
4265           enablestring=
4266           echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4267 echo "configure:4268: checking for --${enablestring:-enable}-unicode" >&5
4268           no_cache=0
4269           # Check whether --enable-unicode or --disable-unicode was given.
4270 if test "${enable_unicode+set}" = set; then
4271   enableval="$enable_unicode"
4272   
4273                           if test "$enableval" = yes; then
4274                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
4275                           else
4276                             ac_cv_use_unicode='wxUSE_UNICODE=no'
4277                           fi
4278                         
4279 else
4280   
4281                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4282                           if test "x$LINE" != x ; then
4283                             eval "DEFAULT_$LINE"
4284                           else
4285                             no_cache=1
4286                           fi
4287
4288                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4289                         
4290 fi
4291
4292
4293           eval "$ac_cv_use_unicode"
4294           if test "$no_cache" != 1; then
4295             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4296           fi
4297
4298           if test "$wxUSE_UNICODE" = yes; then
4299             echo "$ac_t""yes" 1>&6
4300           else
4301             echo "$ac_t""no" 1>&6
4302           fi
4303         
4304
4305           enablestring=
4306           echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4307 echo "configure:4308: checking for --${enablestring:-enable}-mslu" >&5
4308           no_cache=0
4309           # Check whether --enable-mslu or --disable-mslu was given.
4310 if test "${enable_mslu+set}" = set; then
4311   enableval="$enable_mslu"
4312   
4313                           if test "$enableval" = yes; then
4314                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4315                           else
4316                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4317                           fi
4318                         
4319 else
4320   
4321                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4322                           if test "x$LINE" != x ; then
4323                             eval "DEFAULT_$LINE"
4324                           else
4325                             no_cache=1
4326                           fi
4327
4328                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4329                         
4330 fi
4331
4332
4333           eval "$ac_cv_use_mslu"
4334           if test "$no_cache" != 1; then
4335             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4336           fi
4337
4338           if test "$wxUSE_UNICODE_MSLU" = yes; then
4339             echo "$ac_t""yes" 1>&6
4340           else
4341             echo "$ac_t""no" 1>&6
4342           fi
4343         
4344
4345           enablestring=
4346           echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4347 echo "configure:4348: checking for --${enablestring:-enable}-wxprintfv" >&5
4348           no_cache=0
4349           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4350 if test "${enable_wxprintfv+set}" = set; then
4351   enableval="$enable_wxprintfv"
4352   
4353                           if test "$enableval" = yes; then
4354                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4355                           else
4356                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4357                           fi
4358                         
4359 else
4360   
4361                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4362                           if test "x$LINE" != x ; then
4363                             eval "DEFAULT_$LINE"
4364                           else
4365                             no_cache=1
4366                           fi
4367
4368                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4369                         
4370 fi
4371
4372
4373           eval "$ac_cv_use_wxprintfv"
4374           if test "$no_cache" != 1; then
4375             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4376           fi
4377
4378           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4379             echo "$ac_t""yes" 1>&6
4380           else
4381             echo "$ac_t""no" 1>&6
4382           fi
4383         
4384
4385           enablestring=
4386           echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4387 echo "configure:4388: checking for --${enablestring:-enable}-std_iostreams" >&5
4388           no_cache=0
4389           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4390 if test "${enable_std_iostreams+set}" = set; then
4391   enableval="$enable_std_iostreams"
4392   
4393                           if test "$enableval" = yes; then
4394                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4395                           else
4396                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4397                           fi
4398                         
4399 else
4400   
4401                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4402                           if test "x$LINE" != x ; then
4403                             eval "DEFAULT_$LINE"
4404                           else
4405                             no_cache=1
4406                           fi
4407
4408                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4409                         
4410 fi
4411
4412
4413           eval "$ac_cv_use_std_iostreams"
4414           if test "$no_cache" != 1; then
4415             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4416           fi
4417
4418           if test "$wxUSE_STD_IOSTREAM" = yes; then
4419             echo "$ac_t""yes" 1>&6
4420           else
4421             echo "$ac_t""no" 1>&6
4422           fi
4423         
4424
4425           enablestring=
4426           echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4427 echo "configure:4428: checking for --${enablestring:-enable}-filesystem" >&5
4428           no_cache=0
4429           # Check whether --enable-filesystem or --disable-filesystem was given.
4430 if test "${enable_filesystem+set}" = set; then
4431   enableval="$enable_filesystem"
4432   
4433                           if test "$enableval" = yes; then
4434                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4435                           else
4436                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4437                           fi
4438                         
4439 else
4440   
4441                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4442                           if test "x$LINE" != x ; then
4443                             eval "DEFAULT_$LINE"
4444                           else
4445                             no_cache=1
4446                           fi
4447
4448                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4449                         
4450 fi
4451
4452
4453           eval "$ac_cv_use_filesystem"
4454           if test "$no_cache" != 1; then
4455             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4456           fi
4457
4458           if test "$wxUSE_FILESYSTEM" = yes; then
4459             echo "$ac_t""yes" 1>&6
4460           else
4461             echo "$ac_t""no" 1>&6
4462           fi
4463         
4464
4465           enablestring=
4466           echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4467 echo "configure:4468: checking for --${enablestring:-enable}-fs_inet" >&5
4468           no_cache=0
4469           # Check whether --enable-fs_inet or --disable-fs_inet was given.
4470 if test "${enable_fs_inet+set}" = set; then
4471   enableval="$enable_fs_inet"
4472   
4473                           if test "$enableval" = yes; then
4474                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4475                           else
4476                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4477                           fi
4478                         
4479 else
4480   
4481                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4482                           if test "x$LINE" != x ; then
4483                             eval "DEFAULT_$LINE"
4484                           else
4485                             no_cache=1
4486                           fi
4487
4488                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4489                         
4490 fi
4491
4492
4493           eval "$ac_cv_use_fs_inet"
4494           if test "$no_cache" != 1; then
4495             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4496           fi
4497
4498           if test "$wxUSE_FS_INET" = yes; then
4499             echo "$ac_t""yes" 1>&6
4500           else
4501             echo "$ac_t""no" 1>&6
4502           fi
4503         
4504
4505           enablestring=
4506           echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4507 echo "configure:4508: checking for --${enablestring:-enable}-fs_zip" >&5
4508           no_cache=0
4509           # Check whether --enable-fs_zip or --disable-fs_zip was given.
4510 if test "${enable_fs_zip+set}" = set; then
4511   enableval="$enable_fs_zip"
4512   
4513                           if test "$enableval" = yes; then
4514                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4515                           else
4516                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4517                           fi
4518                         
4519 else
4520   
4521                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4522                           if test "x$LINE" != x ; then
4523                             eval "DEFAULT_$LINE"
4524                           else
4525                             no_cache=1
4526                           fi
4527
4528                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4529                         
4530 fi
4531
4532
4533           eval "$ac_cv_use_fs_zip"
4534           if test "$no_cache" != 1; then
4535             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4536           fi
4537
4538           if test "$wxUSE_FS_ZIP" = yes; then
4539             echo "$ac_t""yes" 1>&6
4540           else
4541             echo "$ac_t""no" 1>&6
4542           fi
4543         
4544
4545           enablestring=
4546           echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4547 echo "configure:4548: checking for --${enablestring:-enable}-zipstream" >&5
4548           no_cache=0
4549           # Check whether --enable-zipstream or --disable-zipstream was given.
4550 if test "${enable_zipstream+set}" = set; then
4551   enableval="$enable_zipstream"
4552   
4553                           if test "$enableval" = yes; then
4554                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4555                           else
4556                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4557                           fi
4558                         
4559 else
4560   
4561                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4562                           if test "x$LINE" != x ; then
4563                             eval "DEFAULT_$LINE"
4564                           else
4565                             no_cache=1
4566                           fi
4567
4568                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4569                         
4570 fi
4571
4572
4573           eval "$ac_cv_use_zipstream"
4574           if test "$no_cache" != 1; then
4575             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4576           fi
4577
4578           if test "$wxUSE_ZIPSTREAM" = yes; then
4579             echo "$ac_t""yes" 1>&6
4580           else
4581             echo "$ac_t""no" 1>&6
4582           fi
4583         
4584
4585
4586           enablestring=
4587           echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4588 echo "configure:4589: checking for --${enablestring:-enable}-catch_segvs" >&5
4589           no_cache=0
4590           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4591 if test "${enable_catch_segvs+set}" = set; then
4592   enableval="$enable_catch_segvs"
4593   
4594                           if test "$enableval" = yes; then
4595                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4596                           else
4597                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4598                           fi
4599                         
4600 else
4601   
4602                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4603                           if test "x$LINE" != x ; then
4604                             eval "DEFAULT_$LINE"
4605                           else
4606                             no_cache=1
4607                           fi
4608
4609                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4610                         
4611 fi
4612
4613
4614           eval "$ac_cv_use_catch_segvs"
4615           if test "$no_cache" != 1; then
4616             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4617           fi
4618
4619           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4620             echo "$ac_t""yes" 1>&6
4621           else
4622             echo "$ac_t""no" 1>&6
4623           fi
4624         
4625
4626           enablestring=
4627           echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4628 echo "configure:4629: checking for --${enablestring:-enable}-snglinst" >&5
4629           no_cache=0
4630           # Check whether --enable-snglinst or --disable-snglinst was given.
4631 if test "${enable_snglinst+set}" = set; then
4632   enableval="$enable_snglinst"
4633   
4634                           if test "$enableval" = yes; then
4635                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4636                           else
4637                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4638                           fi
4639                         
4640 else
4641   
4642                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4643                           if test "x$LINE" != x ; then
4644                             eval "DEFAULT_$LINE"
4645                           else
4646                             no_cache=1
4647                           fi
4648
4649                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4650                         
4651 fi
4652
4653
4654           eval "$ac_cv_use_snglinst"
4655           if test "$no_cache" != 1; then
4656             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4657           fi
4658
4659           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4660             echo "$ac_t""yes" 1>&6
4661           else
4662             echo "$ac_t""no" 1>&6
4663           fi
4664         
4665
4666
4667           enablestring=
4668           echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4669 echo "configure:4670: checking for --${enablestring:-enable}-mimetype" >&5
4670           no_cache=0
4671           # Check whether --enable-mimetype or --disable-mimetype was given.
4672 if test "${enable_mimetype+set}" = set; then
4673   enableval="$enable_mimetype"
4674   
4675                           if test "$enableval" = yes; then
4676                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4677                           else
4678                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4679                           fi
4680                         
4681 else
4682   
4683                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4684                           if test "x$LINE" != x ; then
4685                             eval "DEFAULT_$LINE"
4686                           else
4687                             no_cache=1
4688                           fi
4689
4690                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4691                         
4692 fi
4693
4694
4695           eval "$ac_cv_use_mimetype"
4696           if test "$no_cache" != 1; then
4697             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4698           fi
4699
4700           if test "$wxUSE_MIMETYPE" = yes; then
4701             echo "$ac_t""yes" 1>&6
4702           else
4703             echo "$ac_t""no" 1>&6
4704           fi
4705         
4706
4707           enablestring=
4708           echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4709 echo "configure:4710: checking for --${enablestring:-enable}-system_options" >&5
4710           no_cache=0
4711           # Check whether --enable-system_options or --disable-system_options was given.
4712 if test "${enable_system_options+set}" = set; then
4713   enableval="$enable_system_options"
4714   
4715                           if test "$enableval" = yes; then
4716                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4717                           else
4718                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4719                           fi
4720                         
4721 else
4722   
4723                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4724                           if test "x$LINE" != x ; then
4725                             eval "DEFAULT_$LINE"
4726                           else
4727                             no_cache=1
4728                           fi
4729
4730                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4731                         
4732 fi
4733
4734
4735           eval "$ac_cv_use_system_options"
4736           if test "$no_cache" != 1; then
4737             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4738           fi
4739
4740           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4741             echo "$ac_t""yes" 1>&6
4742           else
4743             echo "$ac_t""no" 1>&6
4744           fi
4745         
4746
4747
4748           enablestring=
4749           echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4750 echo "configure:4751: checking for --${enablestring:-enable}-url" >&5
4751           no_cache=0
4752           # Check whether --enable-url or --disable-url was given.
4753 if test "${enable_url+set}" = set; then
4754   enableval="$enable_url"
4755   
4756                           if test "$enableval" = yes; then
4757                             ac_cv_use_url='wxUSE_URL=yes'
4758                           else
4759                             ac_cv_use_url='wxUSE_URL=no'
4760                           fi
4761                         
4762 else
4763   
4764                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4765                           if test "x$LINE" != x ; then
4766                             eval "DEFAULT_$LINE"
4767                           else
4768                             no_cache=1
4769                           fi
4770
4771                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4772                         
4773 fi
4774
4775
4776           eval "$ac_cv_use_url"
4777           if test "$no_cache" != 1; then
4778             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4779           fi
4780
4781           if test "$wxUSE_URL" = yes; then
4782             echo "$ac_t""yes" 1>&6
4783           else
4784             echo "$ac_t""no" 1>&6
4785           fi
4786         
4787
4788           enablestring=
4789           echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4790 echo "configure:4791: checking for --${enablestring:-enable}-protocol" >&5
4791           no_cache=0
4792           # Check whether --enable-protocol or --disable-protocol was given.
4793 if test "${enable_protocol+set}" = set; then
4794   enableval="$enable_protocol"
4795   
4796                           if test "$enableval" = yes; then
4797                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4798                           else
4799                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4800                           fi
4801                         
4802 else
4803   
4804                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4805                           if test "x$LINE" != x ; then
4806                             eval "DEFAULT_$LINE"
4807                           else
4808                             no_cache=1
4809                           fi
4810
4811                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4812                         
4813 fi
4814
4815
4816           eval "$ac_cv_use_protocol"
4817           if test "$no_cache" != 1; then
4818             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4819           fi
4820
4821           if test "$wxUSE_PROTOCOL" = yes; then
4822             echo "$ac_t""yes" 1>&6
4823           else
4824             echo "$ac_t""no" 1>&6
4825           fi
4826         
4827
4828           enablestring=
4829           echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4830 echo "configure:4831: checking for --${enablestring:-enable}-protocol_http" >&5
4831           no_cache=0
4832           # Check whether --enable-protocol_http or --disable-protocol_http was given.
4833 if test "${enable_protocol_http+set}" = set; then
4834   enableval="$enable_protocol_http"
4835   
4836                           if test "$enableval" = yes; then
4837                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4838                           else
4839                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4840                           fi
4841                         
4842 else
4843   
4844                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4845                           if test "x$LINE" != x ; then
4846                             eval "DEFAULT_$LINE"
4847                           else
4848                             no_cache=1
4849                           fi
4850
4851                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4852                         
4853 fi
4854
4855
4856           eval "$ac_cv_use_protocol_http"
4857           if test "$no_cache" != 1; then
4858             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4859           fi
4860
4861           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4862             echo "$ac_t""yes" 1>&6
4863           else
4864             echo "$ac_t""no" 1>&6
4865           fi
4866         
4867
4868           enablestring=
4869           echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4870 echo "configure:4871: checking for --${enablestring:-enable}-protocol_ftp" >&5
4871           no_cache=0
4872           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4873 if test "${enable_protocol_ftp+set}" = set; then
4874   enableval="$enable_protocol_ftp"
4875   
4876                           if test "$enableval" = yes; then
4877                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4878                           else
4879                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4880                           fi
4881                         
4882 else
4883   
4884                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4885                           if test "x$LINE" != x ; then
4886                             eval "DEFAULT_$LINE"
4887                           else
4888                             no_cache=1
4889                           fi
4890
4891                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4892                         
4893 fi
4894
4895
4896           eval "$ac_cv_use_protocol_ftp"
4897           if test "$no_cache" != 1; then
4898             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4899           fi
4900
4901           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4902             echo "$ac_t""yes" 1>&6
4903           else
4904             echo "$ac_t""no" 1>&6
4905           fi
4906         
4907
4908           enablestring=
4909           echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4910 echo "configure:4911: checking for --${enablestring:-enable}-protocol_file" >&5
4911           no_cache=0
4912           # Check whether --enable-protocol_file or --disable-protocol_file was given.
4913 if test "${enable_protocol_file+set}" = set; then
4914   enableval="$enable_protocol_file"
4915   
4916                           if test "$enableval" = yes; then
4917                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4918                           else
4919                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4920                           fi
4921                         
4922 else
4923   
4924                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4925                           if test "x$LINE" != x ; then
4926                             eval "DEFAULT_$LINE"
4927                           else
4928                             no_cache=1
4929                           fi
4930
4931                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4932                         
4933 fi
4934
4935
4936           eval "$ac_cv_use_protocol_file"
4937           if test "$no_cache" != 1; then
4938             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4939           fi
4940
4941           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4942             echo "$ac_t""yes" 1>&6
4943           else
4944             echo "$ac_t""no" 1>&6
4945           fi
4946         
4947
4948
4949
4950
4951           enablestring=
4952           echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4953 echo "configure:4954: checking for --${enablestring:-enable}-threads" >&5
4954           no_cache=0
4955           # Check whether --enable-threads or --disable-threads was given.
4956 if test "${enable_threads+set}" = set; then
4957   enableval="$enable_threads"
4958   
4959                           if test "$enableval" = yes; then
4960                             ac_cv_use_threads='wxUSE_THREADS=yes'
4961                           else
4962                             ac_cv_use_threads='wxUSE_THREADS=no'
4963                           fi
4964                         
4965 else
4966   
4967                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4968                           if test "x$LINE" != x ; then
4969                             eval "DEFAULT_$LINE"
4970                           else
4971                             no_cache=1
4972                           fi
4973
4974                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4975                         
4976 fi
4977
4978
4979           eval "$ac_cv_use_threads"
4980           if test "$no_cache" != 1; then
4981             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4982           fi
4983
4984           if test "$wxUSE_THREADS" = yes; then
4985             echo "$ac_t""yes" 1>&6
4986           else
4987             echo "$ac_t""no" 1>&6
4988           fi
4989         
4990
4991 if test "$wxUSE_GUI" = "yes"; then
4992
4993
4994
4995           enablestring=
4996           echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
4997 echo "configure:4998: checking for --${enablestring:-enable}-docview" >&5
4998           no_cache=0
4999           # Check whether --enable-docview or --disable-docview was given.
5000 if test "${enable_docview+set}" = set; then
5001   enableval="$enable_docview"
5002   
5003                           if test "$enableval" = yes; then
5004                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5005                           else
5006                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5007                           fi
5008                         
5009 else
5010   
5011                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5012                           if test "x$LINE" != x ; then
5013                             eval "DEFAULT_$LINE"
5014                           else
5015                             no_cache=1
5016                           fi
5017
5018                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5019                         
5020 fi
5021
5022
5023           eval "$ac_cv_use_docview"
5024           if test "$no_cache" != 1; then
5025             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5026           fi
5027
5028           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5029             echo "$ac_t""yes" 1>&6
5030           else
5031             echo "$ac_t""no" 1>&6
5032           fi
5033         
5034
5035           enablestring=
5036           echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5037 echo "configure:5038: checking for --${enablestring:-enable}-help" >&5
5038           no_cache=0
5039           # Check whether --enable-help or --disable-help was given.
5040 if test "${enable_help+set}" = set; then
5041   enableval="$enable_help"
5042   
5043                           if test "$enableval" = yes; then
5044                             ac_cv_use_help='wxUSE_HELP=yes'
5045                           else
5046                             ac_cv_use_help='wxUSE_HELP=no'
5047                           fi
5048                         
5049 else
5050   
5051                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5052                           if test "x$LINE" != x ; then
5053                             eval "DEFAULT_$LINE"
5054                           else
5055                             no_cache=1
5056                           fi
5057
5058                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5059                         
5060 fi
5061
5062
5063           eval "$ac_cv_use_help"
5064           if test "$no_cache" != 1; then
5065             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5066           fi
5067
5068           if test "$wxUSE_HELP" = yes; then
5069             echo "$ac_t""yes" 1>&6
5070           else
5071             echo "$ac_t""no" 1>&6
5072           fi
5073         
5074
5075           enablestring=
5076           echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5077 echo "configure:5078: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5078           no_cache=0
5079           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5080 if test "${enable_mshtmlhelp+set}" = set; then
5081   enableval="$enable_mshtmlhelp"
5082   
5083                           if test "$enableval" = yes; then
5084                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5085                           else
5086                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5087                           fi
5088                         
5089 else
5090   
5091                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5092                           if test "x$LINE" != x ; then
5093                             eval "DEFAULT_$LINE"
5094                           else
5095                             no_cache=1
5096                           fi
5097
5098                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5099                         
5100 fi
5101
5102
5103           eval "$ac_cv_use_mshtmlhelp"
5104           if test "$no_cache" != 1; then
5105             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5106           fi
5107
5108           if test "$wxUSE_MS_HTML_HELP" = yes; then
5109             echo "$ac_t""yes" 1>&6
5110           else
5111             echo "$ac_t""no" 1>&6
5112           fi
5113         
5114
5115           enablestring=
5116           echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5117 echo "configure:5118: checking for --${enablestring:-enable}-html" >&5
5118           no_cache=0
5119           # Check whether --enable-html or --disable-html was given.
5120 if test "${enable_html+set}" = set; then
5121   enableval="$enable_html"
5122   
5123                           if test "$enableval" = yes; then
5124                             ac_cv_use_html='wxUSE_HTML=yes'
5125                           else
5126                             ac_cv_use_html='wxUSE_HTML=no'
5127                           fi
5128                         
5129 else
5130   
5131                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5132                           if test "x$LINE" != x ; then
5133                             eval "DEFAULT_$LINE"
5134                           else
5135                             no_cache=1
5136                           fi
5137
5138                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5139                         
5140 fi
5141
5142
5143           eval "$ac_cv_use_html"
5144           if test "$no_cache" != 1; then
5145             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5146           fi
5147
5148           if test "$wxUSE_HTML" = yes; then
5149             echo "$ac_t""yes" 1>&6
5150           else
5151             echo "$ac_t""no" 1>&6
5152           fi
5153         
5154
5155           enablestring=
5156           echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5157 echo "configure:5158: checking for --${enablestring:-enable}-htmlhelp" >&5
5158           no_cache=0
5159           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5160 if test "${enable_htmlhelp+set}" = set; then
5161   enableval="$enable_htmlhelp"
5162   
5163                           if test "$enableval" = yes; then
5164                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5165                           else
5166                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5167                           fi
5168                         
5169 else
5170   
5171                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5172                           if test "x$LINE" != x ; then
5173                             eval "DEFAULT_$LINE"
5174                           else
5175                             no_cache=1
5176                           fi
5177
5178                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5179                         
5180 fi
5181
5182
5183           eval "$ac_cv_use_htmlhelp"
5184           if test "$no_cache" != 1; then
5185             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5186           fi
5187
5188           if test "$wxUSE_WXHTML_HELP" = yes; then
5189             echo "$ac_t""yes" 1>&6
5190           else
5191             echo "$ac_t""no" 1>&6
5192           fi
5193         
5194
5195           enablestring=
5196           echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5197 echo "configure:5198: checking for --${enablestring:-enable}-constraints" >&5
5198           no_cache=0
5199           # Check whether --enable-constraints or --disable-constraints was given.
5200 if test "${enable_constraints+set}" = set; then
5201   enableval="$enable_constraints"
5202   
5203                           if test "$enableval" = yes; then
5204                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5205                           else
5206                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5207                           fi
5208                         
5209 else
5210   
5211                           LINE=`grep "wxUSE_CONSTRAINTS" ${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_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5219                         
5220 fi
5221
5222
5223           eval "$ac_cv_use_constraints"
5224           if test "$no_cache" != 1; then
5225             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5226           fi
5227
5228           if test "$wxUSE_CONSTRAINTS" = yes; then
5229             echo "$ac_t""yes" 1>&6
5230           else
5231             echo "$ac_t""no" 1>&6
5232           fi
5233         
5234
5235           enablestring=
5236           echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5237 echo "configure:5238: checking for --${enablestring:-enable}-printarch" >&5
5238           no_cache=0
5239           # Check whether --enable-printarch or --disable-printarch was given.
5240 if test "${enable_printarch+set}" = set; then
5241   enableval="$enable_printarch"
5242   
5243                           if test "$enableval" = yes; then
5244                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5245                           else
5246                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5247                           fi
5248                         
5249 else
5250   
5251                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${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_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5259                         
5260 fi
5261
5262
5263           eval "$ac_cv_use_printarch"
5264           if test "$no_cache" != 1; then
5265             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5266           fi
5267
5268           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5269             echo "$ac_t""yes" 1>&6
5270           else
5271             echo "$ac_t""no" 1>&6
5272           fi
5273         
5274
5275           enablestring=
5276           echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5277 echo "configure:5278: checking for --${enablestring:-enable}-mdi" >&5
5278           no_cache=0
5279           # Check whether --enable-mdi or --disable-mdi was given.
5280 if test "${enable_mdi+set}" = set; then
5281   enableval="$enable_mdi"
5282   
5283                           if test "$enableval" = yes; then
5284                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5285                           else
5286                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5287                           fi
5288                         
5289 else
5290   
5291                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5292                           if test "x$LINE" != x ; then
5293                             eval "DEFAULT_$LINE"
5294                           else
5295                             no_cache=1
5296                           fi
5297
5298                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5299                         
5300 fi
5301
5302
5303           eval "$ac_cv_use_mdi"
5304           if test "$no_cache" != 1; then
5305             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5306           fi
5307
5308           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5309             echo "$ac_t""yes" 1>&6
5310           else
5311             echo "$ac_t""no" 1>&6
5312           fi
5313         
5314
5315           enablestring=
5316           echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5317 echo "configure:5318: checking for --${enablestring:-enable}-loggui" >&5
5318           no_cache=0
5319           # Check whether --enable-loggui or --disable-loggui was given.
5320 if test "${enable_loggui+set}" = set; then
5321   enableval="$enable_loggui"
5322   
5323                           if test "$enableval" = yes; then
5324                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5325                           else
5326                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
5327                           fi
5328                         
5329 else
5330   
5331                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5332                           if test "x$LINE" != x ; then
5333                             eval "DEFAULT_$LINE"
5334                           else
5335                             no_cache=1
5336                           fi
5337
5338                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5339                         
5340 fi
5341
5342
5343           eval "$ac_cv_use_loggui"
5344           if test "$no_cache" != 1; then
5345             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5346           fi
5347
5348           if test "$wxUSE_LOGGUI" = yes; then
5349             echo "$ac_t""yes" 1>&6
5350           else
5351             echo "$ac_t""no" 1>&6
5352           fi
5353         
5354
5355           enablestring=
5356           echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5357 echo "configure:5358: checking for --${enablestring:-enable}-logwin" >&5
5358           no_cache=0
5359           # Check whether --enable-logwin or --disable-logwin was given.
5360 if test "${enable_logwin+set}" = set; then
5361   enableval="$enable_logwin"
5362   
5363                           if test "$enableval" = yes; then
5364                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5365                           else
5366                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5367                           fi
5368                         
5369 else
5370   
5371                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5372                           if test "x$LINE" != x ; then
5373                             eval "DEFAULT_$LINE"
5374                           else
5375                             no_cache=1
5376                           fi
5377
5378                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5379                         
5380 fi
5381
5382
5383           eval "$ac_cv_use_logwin"
5384           if test "$no_cache" != 1; then
5385             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5386           fi
5387
5388           if test "$wxUSE_LOGWINDOW" = yes; then
5389             echo "$ac_t""yes" 1>&6
5390           else
5391             echo "$ac_t""no" 1>&6
5392           fi
5393         
5394
5395           enablestring=
5396           echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5397 echo "configure:5398: checking for --${enablestring:-enable}-logdialog" >&5
5398           no_cache=0
5399           # Check whether --enable-logdialog or --disable-logdialog was given.
5400 if test "${enable_logdialog+set}" = set; then
5401   enableval="$enable_logdialog"
5402   
5403                           if test "$enableval" = yes; then
5404                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5405                           else
5406                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5407                           fi
5408                         
5409 else
5410   
5411                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5412                           if test "x$LINE" != x ; then
5413                             eval "DEFAULT_$LINE"
5414                           else
5415                             no_cache=1
5416                           fi
5417
5418                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5419                         
5420 fi
5421
5422
5423           eval "$ac_cv_use_logdialog"
5424           if test "$no_cache" != 1; then
5425             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5426           fi
5427
5428           if test "$wxUSE_LOGDIALOG" = yes; then
5429             echo "$ac_t""yes" 1>&6
5430           else
5431             echo "$ac_t""no" 1>&6
5432           fi
5433         
5434
5435
5436           enablestring=
5437           echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5438 echo "configure:5439: checking for --${enablestring:-enable}-postscript" >&5
5439           no_cache=0
5440           # Check whether --enable-postscript or --disable-postscript was given.
5441 if test "${enable_postscript+set}" = set; then
5442   enableval="$enable_postscript"
5443   
5444                           if test "$enableval" = yes; then
5445                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5446                           else
5447                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5448                           fi
5449                         
5450 else
5451   
5452                           LINE=`grep "wxUSE_POSTSCRIPT" ${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_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5460                         
5461 fi
5462
5463
5464           eval "$ac_cv_use_postscript"
5465           if test "$no_cache" != 1; then
5466             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5467           fi
5468
5469           if test "$wxUSE_POSTSCRIPT" = yes; then
5470             echo "$ac_t""yes" 1>&6
5471           else
5472             echo "$ac_t""no" 1>&6
5473           fi
5474         
5475
5476
5477
5478
5479           enablestring=
5480           echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
5481 echo "configure:5482: checking for --${enablestring:-enable}-prologio" >&5
5482           no_cache=0
5483           # Check whether --enable-prologio or --disable-prologio was given.
5484 if test "${enable_prologio+set}" = set; then
5485   enableval="$enable_prologio"
5486   
5487                           if test "$enableval" = yes; then
5488                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5489                           else
5490                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5491                           fi
5492                         
5493 else
5494   
5495                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5496                           if test "x$LINE" != x ; then
5497                             eval "DEFAULT_$LINE"
5498                           else
5499                             no_cache=1
5500                           fi
5501
5502                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5503                         
5504 fi
5505
5506
5507           eval "$ac_cv_use_prologio"
5508           if test "$no_cache" != 1; then
5509             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5510           fi
5511
5512           if test "$wxUSE_PROLOGIO" = yes; then
5513             echo "$ac_t""yes" 1>&6
5514           else
5515             echo "$ac_t""no" 1>&6
5516           fi
5517         
5518
5519           enablestring=
5520           echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5521 echo "configure:5522: checking for --${enablestring:-enable}-resources" >&5
5522           no_cache=0
5523           # Check whether --enable-resources or --disable-resources was given.
5524 if test "${enable_resources+set}" = set; then
5525   enableval="$enable_resources"
5526   
5527                           if test "$enableval" = yes; then
5528                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
5529                           else
5530                             ac_cv_use_resources='wxUSE_RESOURCES=no'
5531                           fi
5532                         
5533 else
5534   
5535                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5536                           if test "x$LINE" != x ; then
5537                             eval "DEFAULT_$LINE"
5538                           else
5539                             no_cache=1
5540                           fi
5541
5542                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5543                         
5544 fi
5545
5546
5547           eval "$ac_cv_use_resources"
5548           if test "$no_cache" != 1; then
5549             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5550           fi
5551
5552           if test "$wxUSE_RESOURCES" = yes; then
5553             echo "$ac_t""yes" 1>&6
5554           else
5555             echo "$ac_t""no" 1>&6
5556           fi
5557         
5558
5559
5560           enablestring=
5561           echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
5562 echo "configure:5563: checking for --${enablestring:-enable}-xresources" >&5
5563           no_cache=0
5564           # Check whether --enable-xresources or --disable-xresources was given.
5565 if test "${enable_xresources+set}" = set; then
5566   enableval="$enable_xresources"
5567   
5568                           if test "$enableval" = yes; then
5569                             ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5570                           else
5571                             ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5572                           fi
5573                         
5574 else
5575   
5576                           LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5577                           if test "x$LINE" != x ; then
5578                             eval "DEFAULT_$LINE"
5579                           else
5580                             no_cache=1
5581                           fi
5582
5583                           ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5584                         
5585 fi
5586
5587
5588           eval "$ac_cv_use_xresources"
5589           if test "$no_cache" != 1; then
5590             echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5591           fi
5592
5593           if test "$wxUSE_X_RESOURCES" = yes; then
5594             echo "$ac_t""yes" 1>&6
5595           else
5596             echo "$ac_t""no" 1>&6
5597           fi
5598         
5599
5600
5601
5602           enablestring=
5603           echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5604 echo "configure:5605: checking for --${enablestring:-enable}-clipboard" >&5
5605           no_cache=0
5606           # Check whether --enable-clipboard or --disable-clipboard was given.
5607 if test "${enable_clipboard+set}" = set; then
5608   enableval="$enable_clipboard"
5609   
5610                           if test "$enableval" = yes; then
5611                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5612                           else
5613                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5614                           fi
5615                         
5616 else
5617   
5618                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5619                           if test "x$LINE" != x ; then
5620                             eval "DEFAULT_$LINE"
5621                           else
5622                             no_cache=1
5623                           fi
5624
5625                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5626                         
5627 fi
5628
5629
5630           eval "$ac_cv_use_clipboard"
5631           if test "$no_cache" != 1; then
5632             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5633           fi
5634
5635           if test "$wxUSE_CLIPBOARD" = yes; then
5636             echo "$ac_t""yes" 1>&6
5637           else
5638             echo "$ac_t""no" 1>&6
5639           fi
5640         
5641
5642           enablestring=
5643           echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5644 echo "configure:5645: checking for --${enablestring:-enable}-dnd" >&5
5645           no_cache=0
5646           # Check whether --enable-dnd or --disable-dnd was given.
5647 if test "${enable_dnd+set}" = set; then
5648   enableval="$enable_dnd"
5649   
5650                           if test "$enableval" = yes; then
5651                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5652                           else
5653                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5654                           fi
5655                         
5656 else
5657   
5658                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5659                           if test "x$LINE" != x ; then
5660                             eval "DEFAULT_$LINE"
5661                           else
5662                             no_cache=1
5663                           fi
5664
5665                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5666                         
5667 fi
5668
5669
5670           eval "$ac_cv_use_dnd"
5671           if test "$no_cache" != 1; then
5672             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5673           fi
5674
5675           if test "$wxUSE_DRAG_AND_DROP" = yes; then
5676             echo "$ac_t""yes" 1>&6
5677           else
5678             echo "$ac_t""no" 1>&6
5679           fi
5680         
5681
5682           enablestring=
5683           echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5684 echo "configure:5685: checking for --${enablestring:-enable}-metafile" >&5
5685           no_cache=0
5686           # Check whether --enable-metafile or --disable-metafile was given.
5687 if test "${enable_metafile+set}" = set; then
5688   enableval="$enable_metafile"
5689   
5690                           if test "$enableval" = yes; then
5691                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
5692                           else
5693                             ac_cv_use_metafile='wxUSE_METAFILE=no'
5694                           fi
5695                         
5696 else
5697   
5698                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5699                           if test "x$LINE" != x ; then
5700                             eval "DEFAULT_$LINE"
5701                           else
5702                             no_cache=1
5703                           fi
5704
5705                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5706                         
5707 fi
5708
5709
5710           eval "$ac_cv_use_metafile"
5711           if test "$no_cache" != 1; then
5712             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5713           fi
5714
5715           if test "$wxUSE_METAFILE" = yes; then
5716             echo "$ac_t""yes" 1>&6
5717           else
5718             echo "$ac_t""no" 1>&6
5719           fi
5720         
5721
5722
5723           enablestring=
5724           echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6
5725 echo "configure:5726: checking for --${enablestring:-enable}-treelayout" >&5
5726           no_cache=0
5727           # Check whether --enable-treelayout or --disable-treelayout was given.
5728 if test "${enable_treelayout+set}" = set; then
5729   enableval="$enable_treelayout"
5730   
5731                           if test "$enableval" = yes; then
5732                             ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5733                           else
5734                             ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5735                           fi
5736                         
5737 else
5738   
5739                           LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5740                           if test "x$LINE" != x ; then
5741                             eval "DEFAULT_$LINE"
5742                           else
5743                             no_cache=1
5744                           fi
5745
5746                           ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5747                         
5748 fi
5749
5750
5751           eval "$ac_cv_use_treelayout"
5752           if test "$no_cache" != 1; then
5753             echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5754           fi
5755
5756           if test "$wxUSE_TREELAYOUT" = yes; then
5757             echo "$ac_t""yes" 1>&6
5758           else
5759             echo "$ac_t""no" 1>&6
5760           fi
5761         
5762
5763
5764
5765           enablestring=
5766           echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5767 echo "configure:5768: checking for --${enablestring:-enable}-controls" >&5
5768           no_cache=0
5769           # Check whether --enable-controls or --disable-controls was given.
5770 if test "${enable_controls+set}" = set; then
5771   enableval="$enable_controls"
5772   
5773                           if test "$enableval" = yes; then
5774                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
5775                           else
5776                             ac_cv_use_controls='wxUSE_CONTROLS=no'
5777                           fi
5778                         
5779 else
5780   
5781                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5782                           if test "x$LINE" != x ; then
5783                             eval "DEFAULT_$LINE"
5784                           else
5785                             no_cache=1
5786                           fi
5787
5788                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5789                         
5790 fi
5791
5792
5793           eval "$ac_cv_use_controls"
5794           if test "$no_cache" != 1; then
5795             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5796           fi
5797
5798           if test "$wxUSE_CONTROLS" = yes; then
5799             echo "$ac_t""yes" 1>&6
5800           else
5801             echo "$ac_t""no" 1>&6
5802           fi
5803         
5804
5805 if test "$wxUSE_CONTROLS" = "yes"; then
5806   DEFAULT_wxUSE_ACCEL=yes
5807   DEFAULT_wxUSE_BMPBUTTON=yes
5808   DEFAULT_wxUSE_BUTTON=yes
5809   DEFAULT_wxUSE_CALCTRL=no
5810   DEFAULT_wxUSE_CARET=yes
5811   DEFAULT_wxUSE_COMBOBOX=yes
5812   DEFAULT_wxUSE_CHECKBOX=yes
5813   DEFAULT_wxUSE_CHECKLISTBOX=yes
5814   DEFAULT_wxUSE_CHOICE=yes
5815   DEFAULT_wxUSE_GAUGE=yes
5816   DEFAULT_wxUSE_GRID=yes
5817   DEFAULT_wxUSE_NEW_GRID=yes
5818   DEFAULT_wxUSE_IMAGLIST=yes
5819   DEFAULT_wxUSE_LISTBOX=yes
5820   DEFAULT_wxUSE_LISTCTRL=yes
5821   DEFAULT_wxUSE_NOTEBOOK=yes
5822   DEFAULT_wxUSE_PROPSHEET=yes
5823   DEFAULT_wxUSE_RADIOBOX=yes
5824   DEFAULT_wxUSE_RADIOBTN=yes
5825   DEFAULT_wxUSE_SASH=yes
5826   DEFAULT_wxUSE_SCROLLBAR=yes
5827   DEFAULT_wxUSE_SLIDER=yes
5828   DEFAULT_wxUSE_SPINBTN=yes
5829   DEFAULT_wxUSE_SPINCTRL=yes
5830   DEFAULT_wxUSE_SPLITTER=yes
5831   DEFAULT_wxUSE_STATBMP=yes
5832   DEFAULT_wxUSE_STATBOX=yes
5833   DEFAULT_wxUSE_STATLINE=yes
5834   DEFAULT_wxUSE_STATUSBAR=yes
5835   DEFAULT_wxUSE_TAB_DIALOG=yes
5836   DEFAULT_wxUSE_TOGGLEBTN=yes
5837   DEFAULT_wxUSE_TOOLBAR=yes
5838   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5839   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5840   DEFAULT_wxUSE_TOOLTIPS=yes
5841   DEFAULT_wxUSE_TREECTRL=yes
5842   DEFAULT_wxUSE_POPUPWIN=yes
5843   DEFAULT_wxUSE_TIPWINDOW=yes
5844 elif test "$wxUSE_CONTROLS" = "no"; then
5845   DEFAULT_wxUSE_ACCEL=no
5846   DEFAULT_wxUSE_BMPBUTTON=no
5847   DEFAULT_wxUSE_BUTTON=no
5848   DEFAULT_wxUSE_CALCTRL=no
5849   DEFAULT_wxUSE_CARET=no
5850   DEFAULT_wxUSE_COMBOBOX=no
5851   DEFAULT_wxUSE_CHECKBOX=no
5852   DEFAULT_wxUSE_CHECKLISTBOX=no
5853   DEFAULT_wxUSE_CHOICE=no
5854   DEFAULT_wxUSE_GAUGE=no
5855   DEFAULT_wxUSE_GRID=no
5856   DEFAULT_wxUSE_NEW_GRID=no
5857   DEFAULT_wxUSE_IMAGLIST=no
5858   DEFAULT_wxUSE_LISTBOX=no
5859   DEFAULT_wxUSE_LISTCTRL=no
5860   DEFAULT_wxUSE_NOTEBOOK=no
5861   DEFAULT_wxUSE_PROPSHEET=no
5862   DEFAULT_wxUSE_RADIOBOX=no
5863   DEFAULT_wxUSE_RADIOBTN=no
5864   DEFAULT_wxUSE_SASH=no
5865   DEFAULT_wxUSE_SCROLLBAR=no
5866   DEFAULT_wxUSE_SLIDER=no
5867   DEFAULT_wxUSE_SPINBTN=no
5868   DEFAULT_wxUSE_SPINCTRL=no
5869   DEFAULT_wxUSE_SPLITTER=no
5870   DEFAULT_wxUSE_STATBMP=no
5871   DEFAULT_wxUSE_STATBOX=no
5872   DEFAULT_wxUSE_STATLINE=no
5873   DEFAULT_wxUSE_STATUSBAR=no
5874   DEFAULT_wxUSE_TAB_DIALOG=no
5875   DEFAULT_wxUSE_TOGGLEBTN=no
5876   DEFAULT_wxUSE_TOOLBAR=no
5877   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5878   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5879   DEFAULT_wxUSE_TOOLTIPS=no
5880   DEFAULT_wxUSE_TREECTRL=no
5881   DEFAULT_wxUSE_POPUPWIN=no
5882   DEFAULT_wxUSE_TIPWINDOW=no
5883 fi
5884
5885
5886           enablestring=
5887           echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5888 echo "configure:5889: checking for --${enablestring:-enable}-accel" >&5
5889           no_cache=0
5890           # Check whether --enable-accel or --disable-accel was given.
5891 if test "${enable_accel+set}" = set; then
5892   enableval="$enable_accel"
5893   
5894                           if test "$enableval" = yes; then
5895                             ac_cv_use_accel='wxUSE_ACCEL=yes'
5896                           else
5897                             ac_cv_use_accel='wxUSE_ACCEL=no'
5898                           fi
5899                         
5900 else
5901   
5902                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5903                           if test "x$LINE" != x ; then
5904                             eval "DEFAULT_$LINE"
5905                           else
5906                             no_cache=1
5907                           fi
5908
5909                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5910                         
5911 fi
5912
5913
5914           eval "$ac_cv_use_accel"
5915           if test "$no_cache" != 1; then
5916             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5917           fi
5918
5919           if test "$wxUSE_ACCEL" = yes; then
5920             echo "$ac_t""yes" 1>&6
5921           else
5922             echo "$ac_t""no" 1>&6
5923           fi
5924         
5925
5926           enablestring=
5927           echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5928 echo "configure:5929: checking for --${enablestring:-enable}-button" >&5
5929           no_cache=0
5930           # Check whether --enable-button or --disable-button was given.
5931 if test "${enable_button+set}" = set; then
5932   enableval="$enable_button"
5933   
5934                           if test "$enableval" = yes; then
5935                             ac_cv_use_button='wxUSE_BUTTON=yes'
5936                           else
5937                             ac_cv_use_button='wxUSE_BUTTON=no'
5938                           fi
5939                         
5940 else
5941   
5942                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5943                           if test "x$LINE" != x ; then
5944                             eval "DEFAULT_$LINE"
5945                           else
5946                             no_cache=1
5947                           fi
5948
5949                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5950                         
5951 fi
5952
5953
5954           eval "$ac_cv_use_button"
5955           if test "$no_cache" != 1; then
5956             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5957           fi
5958
5959           if test "$wxUSE_BUTTON" = yes; then
5960             echo "$ac_t""yes" 1>&6
5961           else
5962             echo "$ac_t""no" 1>&6
5963           fi
5964         
5965
5966           enablestring=
5967           echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
5968 echo "configure:5969: checking for --${enablestring:-enable}-bmpbutton" >&5
5969           no_cache=0
5970           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5971 if test "${enable_bmpbutton+set}" = set; then
5972   enableval="$enable_bmpbutton"
5973   
5974                           if test "$enableval" = yes; then
5975                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5976                           else
5977                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5978                           fi
5979                         
5980 else
5981   
5982                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5983                           if test "x$LINE" != x ; then
5984                             eval "DEFAULT_$LINE"
5985                           else
5986                             no_cache=1
5987                           fi
5988
5989                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5990                         
5991 fi
5992
5993
5994           eval "$ac_cv_use_bmpbutton"
5995           if test "$no_cache" != 1; then
5996             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5997           fi
5998
5999           if test "$wxUSE_BMPBUTTON" = yes; then
6000             echo "$ac_t""yes" 1>&6
6001           else
6002             echo "$ac_t""no" 1>&6
6003           fi
6004         
6005
6006           enablestring=
6007           echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
6008 echo "configure:6009: checking for --${enablestring:-enable}-calendar" >&5
6009           no_cache=0
6010           # Check whether --enable-calendar or --disable-calendar was given.
6011 if test "${enable_calendar+set}" = set; then
6012   enableval="$enable_calendar"
6013   
6014                           if test "$enableval" = yes; then
6015                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6016                           else
6017                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
6018                           fi
6019                         
6020 else
6021   
6022                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6023                           if test "x$LINE" != x ; then
6024                             eval "DEFAULT_$LINE"
6025                           else
6026                             no_cache=1
6027                           fi
6028
6029                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6030                         
6031 fi
6032
6033
6034           eval "$ac_cv_use_calendar"
6035           if test "$no_cache" != 1; then
6036             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6037           fi
6038
6039           if test "$wxUSE_CALCTRL" = yes; then
6040             echo "$ac_t""yes" 1>&6
6041           else
6042             echo "$ac_t""no" 1>&6
6043           fi
6044         
6045
6046           enablestring=
6047           echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6048 echo "configure:6049: checking for --${enablestring:-enable}-caret" >&5
6049           no_cache=0
6050           # Check whether --enable-caret or --disable-caret was given.
6051 if test "${enable_caret+set}" = set; then
6052   enableval="$enable_caret"
6053   
6054                           if test "$enableval" = yes; then
6055                             ac_cv_use_caret='wxUSE_CARET=yes'
6056                           else
6057                             ac_cv_use_caret='wxUSE_CARET=no'
6058                           fi
6059                         
6060 else
6061   
6062                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6063                           if test "x$LINE" != x ; then
6064                             eval "DEFAULT_$LINE"
6065                           else
6066                             no_cache=1
6067                           fi
6068
6069                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6070                         
6071 fi
6072
6073
6074           eval "$ac_cv_use_caret"
6075           if test "$no_cache" != 1; then
6076             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6077           fi
6078
6079           if test "$wxUSE_CARET" = yes; then
6080             echo "$ac_t""yes" 1>&6
6081           else
6082             echo "$ac_t""no" 1>&6
6083           fi
6084         
6085
6086           enablestring=
6087           echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6088 echo "configure:6089: checking for --${enablestring:-enable}-checkbox" >&5
6089           no_cache=0
6090           # Check whether --enable-checkbox or --disable-checkbox was given.
6091 if test "${enable_checkbox+set}" = set; then
6092   enableval="$enable_checkbox"
6093   
6094                           if test "$enableval" = yes; then
6095                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6096                           else
6097                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6098                           fi
6099                         
6100 else
6101   
6102                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6103                           if test "x$LINE" != x ; then
6104                             eval "DEFAULT_$LINE"
6105                           else
6106                             no_cache=1
6107                           fi
6108
6109                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6110                         
6111 fi
6112
6113
6114           eval "$ac_cv_use_checkbox"
6115           if test "$no_cache" != 1; then
6116             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6117           fi
6118
6119           if test "$wxUSE_CHECKBOX" = yes; then
6120             echo "$ac_t""yes" 1>&6
6121           else
6122             echo "$ac_t""no" 1>&6
6123           fi
6124         
6125
6126           enablestring=
6127           echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6128 echo "configure:6129: checking for --${enablestring:-enable}-checklst" >&5
6129           no_cache=0
6130           # Check whether --enable-checklst or --disable-checklst was given.
6131 if test "${enable_checklst+set}" = set; then
6132   enableval="$enable_checklst"
6133   
6134                           if test "$enableval" = yes; then
6135                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6136                           else
6137                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
6138                           fi
6139                         
6140 else
6141   
6142                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6143                           if test "x$LINE" != x ; then
6144                             eval "DEFAULT_$LINE"
6145                           else
6146                             no_cache=1
6147                           fi
6148
6149                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6150                         
6151 fi
6152
6153
6154           eval "$ac_cv_use_checklst"
6155           if test "$no_cache" != 1; then
6156             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6157           fi
6158
6159           if test "$wxUSE_CHECKLST" = yes; then
6160             echo "$ac_t""yes" 1>&6
6161           else
6162             echo "$ac_t""no" 1>&6
6163           fi
6164         
6165
6166           enablestring=
6167           echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6168 echo "configure:6169: checking for --${enablestring:-enable}-choice" >&5
6169           no_cache=0
6170           # Check whether --enable-choice or --disable-choice was given.
6171 if test "${enable_choice+set}" = set; then
6172   enableval="$enable_choice"
6173   
6174                           if test "$enableval" = yes; then
6175                             ac_cv_use_choice='wxUSE_CHOICE=yes'
6176                           else
6177                             ac_cv_use_choice='wxUSE_CHOICE=no'
6178                           fi
6179                         
6180 else
6181   
6182                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6183                           if test "x$LINE" != x ; then
6184                             eval "DEFAULT_$LINE"
6185                           else
6186                             no_cache=1
6187                           fi
6188
6189                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6190                         
6191 fi
6192
6193
6194           eval "$ac_cv_use_choice"
6195           if test "$no_cache" != 1; then
6196             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6197           fi
6198
6199           if test "$wxUSE_CHOICE" = yes; then
6200             echo "$ac_t""yes" 1>&6
6201           else
6202             echo "$ac_t""no" 1>&6
6203           fi
6204         
6205
6206           enablestring=
6207           echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6208 echo "configure:6209: checking for --${enablestring:-enable}-combobox" >&5
6209           no_cache=0
6210           # Check whether --enable-combobox or --disable-combobox was given.
6211 if test "${enable_combobox+set}" = set; then
6212   enableval="$enable_combobox"
6213   
6214                           if test "$enableval" = yes; then
6215                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6216                           else
6217                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6218                           fi
6219                         
6220 else
6221   
6222                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6223                           if test "x$LINE" != x ; then
6224                             eval "DEFAULT_$LINE"
6225                           else
6226                             no_cache=1
6227                           fi
6228
6229                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6230                         
6231 fi
6232
6233
6234           eval "$ac_cv_use_combobox"
6235           if test "$no_cache" != 1; then
6236             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6237           fi
6238
6239           if test "$wxUSE_COMBOBOX" = yes; then
6240             echo "$ac_t""yes" 1>&6
6241           else
6242             echo "$ac_t""no" 1>&6
6243           fi
6244         
6245
6246           enablestring=
6247           echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6248 echo "configure:6249: checking for --${enablestring:-enable}-gauge" >&5
6249           no_cache=0
6250           # Check whether --enable-gauge or --disable-gauge was given.
6251 if test "${enable_gauge+set}" = set; then
6252   enableval="$enable_gauge"
6253   
6254                           if test "$enableval" = yes; then
6255                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
6256                           else
6257                             ac_cv_use_gauge='wxUSE_GAUGE=no'
6258                           fi
6259                         
6260 else
6261   
6262                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6263                           if test "x$LINE" != x ; then
6264                             eval "DEFAULT_$LINE"
6265                           else
6266                             no_cache=1
6267                           fi
6268
6269                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6270                         
6271 fi
6272
6273
6274           eval "$ac_cv_use_gauge"
6275           if test "$no_cache" != 1; then
6276             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6277           fi
6278
6279           if test "$wxUSE_GAUGE" = yes; then
6280             echo "$ac_t""yes" 1>&6
6281           else
6282             echo "$ac_t""no" 1>&6
6283           fi
6284         
6285
6286           enablestring=
6287           echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6288 echo "configure:6289: checking for --${enablestring:-enable}-grid" >&5
6289           no_cache=0
6290           # Check whether --enable-grid or --disable-grid was given.
6291 if test "${enable_grid+set}" = set; then
6292   enableval="$enable_grid"
6293   
6294                           if test "$enableval" = yes; then
6295                             ac_cv_use_grid='wxUSE_GRID=yes'
6296                           else
6297                             ac_cv_use_grid='wxUSE_GRID=no'
6298                           fi
6299                         
6300 else
6301   
6302                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6303                           if test "x$LINE" != x ; then
6304                             eval "DEFAULT_$LINE"
6305                           else
6306                             no_cache=1
6307                           fi
6308
6309                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6310                         
6311 fi
6312
6313
6314           eval "$ac_cv_use_grid"
6315           if test "$no_cache" != 1; then
6316             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6317           fi
6318
6319           if test "$wxUSE_GRID" = yes; then
6320             echo "$ac_t""yes" 1>&6
6321           else
6322             echo "$ac_t""no" 1>&6
6323           fi
6324         
6325
6326           enablestring=
6327           echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6
6328 echo "configure:6329: checking for --${enablestring:-enable}-newgrid" >&5
6329           no_cache=0
6330           # Check whether --enable-newgrid or --disable-newgrid was given.
6331 if test "${enable_newgrid+set}" = set; then
6332   enableval="$enable_newgrid"
6333   
6334                           if test "$enableval" = yes; then
6335                             ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6336                           else
6337                             ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6338                           fi
6339                         
6340 else
6341   
6342                           LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6343                           if test "x$LINE" != x ; then
6344                             eval "DEFAULT_$LINE"
6345                           else
6346                             no_cache=1
6347                           fi
6348
6349                           ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6350                         
6351 fi
6352
6353
6354           eval "$ac_cv_use_newgrid"
6355           if test "$no_cache" != 1; then
6356             echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6357           fi
6358
6359           if test "$wxUSE_NEW_GRID" = yes; then
6360             echo "$ac_t""yes" 1>&6
6361           else
6362             echo "$ac_t""no" 1>&6
6363           fi
6364         
6365
6366           enablestring=
6367           echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6368 echo "configure:6369: checking for --${enablestring:-enable}-imaglist" >&5
6369           no_cache=0
6370           # Check whether --enable-imaglist or --disable-imaglist was given.
6371 if test "${enable_imaglist+set}" = set; then
6372   enableval="$enable_imaglist"
6373   
6374                           if test "$enableval" = yes; then
6375                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6376                           else
6377                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6378                           fi
6379                         
6380 else
6381   
6382                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6383                           if test "x$LINE" != x ; then
6384                             eval "DEFAULT_$LINE"
6385                           else
6386                             no_cache=1
6387                           fi
6388
6389                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6390                         
6391 fi
6392
6393
6394           eval "$ac_cv_use_imaglist"
6395           if test "$no_cache" != 1; then
6396             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6397           fi
6398
6399           if test "$wxUSE_IMAGLIST" = yes; then
6400             echo "$ac_t""yes" 1>&6
6401           else
6402             echo "$ac_t""no" 1>&6
6403           fi
6404         
6405
6406           enablestring=
6407           echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6408 echo "configure:6409: checking for --${enablestring:-enable}-listbox" >&5
6409           no_cache=0
6410           # Check whether --enable-listbox or --disable-listbox was given.
6411 if test "${enable_listbox+set}" = set; then
6412   enableval="$enable_listbox"
6413   
6414                           if test "$enableval" = yes; then
6415                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6416                           else
6417                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
6418                           fi
6419                         
6420 else
6421   
6422                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6423                           if test "x$LINE" != x ; then
6424                             eval "DEFAULT_$LINE"
6425                           else
6426                             no_cache=1
6427                           fi
6428
6429                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6430                         
6431 fi
6432
6433
6434           eval "$ac_cv_use_listbox"
6435           if test "$no_cache" != 1; then
6436             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6437           fi
6438
6439           if test "$wxUSE_LISTBOX" = yes; then
6440             echo "$ac_t""yes" 1>&6
6441           else
6442             echo "$ac_t""no" 1>&6
6443           fi
6444         
6445
6446           enablestring=
6447           echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6448 echo "configure:6449: checking for --${enablestring:-enable}-listctrl" >&5
6449           no_cache=0
6450           # Check whether --enable-listctrl or --disable-listctrl was given.
6451 if test "${enable_listctrl+set}" = set; then
6452   enableval="$enable_listctrl"
6453   
6454                           if test "$enableval" = yes; then
6455                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6456                           else
6457                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6458                           fi
6459                         
6460 else
6461   
6462                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6463                           if test "x$LINE" != x ; then
6464                             eval "DEFAULT_$LINE"
6465                           else
6466                             no_cache=1
6467                           fi
6468
6469                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6470                         
6471 fi
6472
6473
6474           eval "$ac_cv_use_listctrl"
6475           if test "$no_cache" != 1; then
6476             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6477           fi
6478
6479           if test "$wxUSE_LISTCTRL" = yes; then
6480             echo "$ac_t""yes" 1>&6
6481           else
6482             echo "$ac_t""no" 1>&6
6483           fi
6484         
6485
6486           enablestring=
6487           echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6488 echo "configure:6489: checking for --${enablestring:-enable}-notebook" >&5
6489           no_cache=0
6490           # Check whether --enable-notebook or --disable-notebook was given.
6491 if test "${enable_notebook+set}" = set; then
6492   enableval="$enable_notebook"
6493   
6494                           if test "$enableval" = yes; then
6495                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6496                           else
6497                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6498                           fi
6499                         
6500 else
6501   
6502                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6503                           if test "x$LINE" != x ; then
6504                             eval "DEFAULT_$LINE"
6505                           else
6506                             no_cache=1
6507                           fi
6508
6509                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6510                         
6511 fi
6512
6513
6514           eval "$ac_cv_use_notebook"
6515           if test "$no_cache" != 1; then
6516             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6517           fi
6518
6519           if test "$wxUSE_NOTEBOOK" = yes; then
6520             echo "$ac_t""yes" 1>&6
6521           else
6522             echo "$ac_t""no" 1>&6
6523           fi
6524         
6525
6526           enablestring=
6527           echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6
6528 echo "configure:6529: checking for --${enablestring:-enable}-propsheet" >&5
6529           no_cache=0
6530           # Check whether --enable-propsheet or --disable-propsheet was given.
6531 if test "${enable_propsheet+set}" = set; then
6532   enableval="$enable_propsheet"
6533   
6534                           if test "$enableval" = yes; then
6535                             ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6536                           else
6537                             ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6538                           fi
6539                         
6540 else
6541   
6542                           LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6543                           if test "x$LINE" != x ; then
6544                             eval "DEFAULT_$LINE"
6545                           else
6546                             no_cache=1
6547                           fi
6548
6549                           ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6550                         
6551 fi
6552
6553
6554           eval "$ac_cv_use_propsheet"
6555           if test "$no_cache" != 1; then
6556             echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6557           fi
6558
6559           if test "$wxUSE_PROPSHEET" = yes; then
6560             echo "$ac_t""yes" 1>&6
6561           else
6562             echo "$ac_t""no" 1>&6
6563           fi
6564         
6565
6566           enablestring=
6567           echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6568 echo "configure:6569: checking for --${enablestring:-enable}-radiobox" >&5
6569           no_cache=0
6570           # Check whether --enable-radiobox or --disable-radiobox was given.
6571 if test "${enable_radiobox+set}" = set; then
6572   enableval="$enable_radiobox"
6573   
6574                           if test "$enableval" = yes; then
6575                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6576                           else
6577                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6578                           fi
6579                         
6580 else
6581   
6582                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6583                           if test "x$LINE" != x ; then
6584                             eval "DEFAULT_$LINE"
6585                           else
6586                             no_cache=1
6587                           fi
6588
6589                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6590                         
6591 fi
6592
6593
6594           eval "$ac_cv_use_radiobox"
6595           if test "$no_cache" != 1; then
6596             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6597           fi
6598
6599           if test "$wxUSE_RADIOBOX" = yes; then
6600             echo "$ac_t""yes" 1>&6
6601           else
6602             echo "$ac_t""no" 1>&6
6603           fi
6604         
6605
6606           enablestring=
6607           echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6608 echo "configure:6609: checking for --${enablestring:-enable}-radiobtn" >&5
6609           no_cache=0
6610           # Check whether --enable-radiobtn or --disable-radiobtn was given.
6611 if test "${enable_radiobtn+set}" = set; then
6612   enableval="$enable_radiobtn"
6613   
6614                           if test "$enableval" = yes; then
6615                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6616                           else
6617                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6618                           fi
6619                         
6620 else
6621   
6622                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6623                           if test "x$LINE" != x ; then
6624                             eval "DEFAULT_$LINE"
6625                           else
6626                             no_cache=1
6627                           fi
6628
6629                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6630                         
6631 fi
6632
6633
6634           eval "$ac_cv_use_radiobtn"
6635           if test "$no_cache" != 1; then
6636             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6637           fi
6638
6639           if test "$wxUSE_RADIOBTN" = yes; then
6640             echo "$ac_t""yes" 1>&6
6641           else
6642             echo "$ac_t""no" 1>&6
6643           fi
6644         
6645
6646           enablestring=
6647           echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6648 echo "configure:6649: checking for --${enablestring:-enable}-sash" >&5
6649           no_cache=0
6650           # Check whether --enable-sash or --disable-sash was given.
6651 if test "${enable_sash+set}" = set; then
6652   enableval="$enable_sash"
6653   
6654                           if test "$enableval" = yes; then
6655                             ac_cv_use_sash='wxUSE_SASH=yes'
6656                           else
6657                             ac_cv_use_sash='wxUSE_SASH=no'
6658                           fi
6659                         
6660 else
6661   
6662                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6663                           if test "x$LINE" != x ; then
6664                             eval "DEFAULT_$LINE"
6665                           else
6666                             no_cache=1
6667                           fi
6668
6669                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6670                         
6671 fi
6672
6673
6674           eval "$ac_cv_use_sash"
6675           if test "$no_cache" != 1; then
6676             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6677           fi
6678
6679           if test "$wxUSE_SASH" = yes; then
6680             echo "$ac_t""yes" 1>&6
6681           else
6682             echo "$ac_t""no" 1>&6
6683           fi
6684         
6685
6686           enablestring=
6687           echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6688 echo "configure:6689: checking for --${enablestring:-enable}-scrollbar" >&5
6689           no_cache=0
6690           # Check whether --enable-scrollbar or --disable-scrollbar was given.
6691 if test "${enable_scrollbar+set}" = set; then
6692   enableval="$enable_scrollbar"
6693   
6694                           if test "$enableval" = yes; then
6695                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6696                           else
6697                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6698                           fi
6699                         
6700 else
6701   
6702                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6703                           if test "x$LINE" != x ; then
6704                             eval "DEFAULT_$LINE"
6705                           else
6706                             no_cache=1
6707                           fi
6708
6709                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6710                         
6711 fi
6712
6713
6714           eval "$ac_cv_use_scrollbar"
6715           if test "$no_cache" != 1; then
6716             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6717           fi
6718
6719           if test "$wxUSE_SCROLLBAR" = yes; then
6720             echo "$ac_t""yes" 1>&6
6721           else
6722             echo "$ac_t""no" 1>&6
6723           fi
6724         
6725
6726           enablestring=
6727           echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6728 echo "configure:6729: checking for --${enablestring:-enable}-slider" >&5
6729           no_cache=0
6730           # Check whether --enable-slider or --disable-slider was given.
6731 if test "${enable_slider+set}" = set; then
6732   enableval="$enable_slider"
6733   
6734                           if test "$enableval" = yes; then
6735                             ac_cv_use_slider='wxUSE_SLIDER=yes'
6736                           else
6737                             ac_cv_use_slider='wxUSE_SLIDER=no'
6738                           fi
6739                         
6740 else
6741   
6742                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6743                           if test "x$LINE" != x ; then
6744                             eval "DEFAULT_$LINE"
6745                           else
6746                             no_cache=1
6747                           fi
6748
6749                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6750                         
6751 fi
6752
6753
6754           eval "$ac_cv_use_slider"
6755           if test "$no_cache" != 1; then
6756             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6757           fi
6758
6759           if test "$wxUSE_SLIDER" = yes; then
6760             echo "$ac_t""yes" 1>&6
6761           else
6762             echo "$ac_t""no" 1>&6
6763           fi
6764         
6765
6766           enablestring=
6767           echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6768 echo "configure:6769: checking for --${enablestring:-enable}-spinbtn" >&5
6769           no_cache=0
6770           # Check whether --enable-spinbtn or --disable-spinbtn was given.
6771 if test "${enable_spinbtn+set}" = set; then
6772   enableval="$enable_spinbtn"
6773   
6774                           if test "$enableval" = yes; then
6775                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6776                           else
6777                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6778                           fi
6779                         
6780 else
6781   
6782                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6783                           if test "x$LINE" != x ; then
6784                             eval "DEFAULT_$LINE"
6785                           else
6786                             no_cache=1
6787                           fi
6788
6789                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6790                         
6791 fi
6792
6793
6794           eval "$ac_cv_use_spinbtn"
6795           if test "$no_cache" != 1; then
6796             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6797           fi
6798
6799           if test "$wxUSE_SPINBTN" = yes; then
6800             echo "$ac_t""yes" 1>&6
6801           else
6802             echo "$ac_t""no" 1>&6
6803           fi
6804         
6805
6806           enablestring=
6807           echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6808 echo "configure:6809: checking for --${enablestring:-enable}-spinctrl" >&5
6809           no_cache=0
6810           # Check whether --enable-spinctrl or --disable-spinctrl was given.
6811 if test "${enable_spinctrl+set}" = set; then
6812   enableval="$enable_spinctrl"
6813   
6814                           if test "$enableval" = yes; then
6815                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6816                           else
6817                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6818                           fi
6819                         
6820 else
6821   
6822                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6823                           if test "x$LINE" != x ; then
6824                             eval "DEFAULT_$LINE"
6825                           else
6826                             no_cache=1
6827                           fi
6828
6829                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6830                         
6831 fi
6832
6833
6834           eval "$ac_cv_use_spinctrl"
6835           if test "$no_cache" != 1; then
6836             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6837           fi
6838
6839           if test "$wxUSE_SPINCTRL" = yes; then
6840             echo "$ac_t""yes" 1>&6
6841           else
6842             echo "$ac_t""no" 1>&6
6843           fi
6844         
6845
6846           enablestring=
6847           echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6848 echo "configure:6849: checking for --${enablestring:-enable}-splitter" >&5
6849           no_cache=0
6850           # Check whether --enable-splitter or --disable-splitter was given.
6851 if test "${enable_splitter+set}" = set; then
6852   enableval="$enable_splitter"
6853   
6854                           if test "$enableval" = yes; then
6855                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6856                           else
6857                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
6858                           fi
6859                         
6860 else
6861   
6862                           LINE=`grep "wxUSE_SPLITTER" ${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_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6870                         
6871 fi
6872
6873
6874           eval "$ac_cv_use_splitter"
6875           if test "$no_cache" != 1; then
6876             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6877           fi
6878
6879           if test "$wxUSE_SPLITTER" = yes; then
6880             echo "$ac_t""yes" 1>&6
6881           else
6882             echo "$ac_t""no" 1>&6
6883           fi
6884         
6885
6886           enablestring=
6887           echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6888 echo "configure:6889: checking for --${enablestring:-enable}-statbmp" >&5
6889           no_cache=0
6890           # Check whether --enable-statbmp or --disable-statbmp was given.
6891 if test "${enable_statbmp+set}" = set; then
6892   enableval="$enable_statbmp"
6893   
6894                           if test "$enableval" = yes; then
6895                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6896                           else
6897                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
6898                           fi
6899                         
6900 else
6901   
6902                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6903                           if test "x$LINE" != x ; then
6904                             eval "DEFAULT_$LINE"
6905                           else
6906                             no_cache=1
6907                           fi
6908
6909                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6910                         
6911 fi
6912
6913
6914           eval "$ac_cv_use_statbmp"
6915           if test "$no_cache" != 1; then
6916             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6917           fi
6918
6919           if test "$wxUSE_STATBMP" = yes; then
6920             echo "$ac_t""yes" 1>&6
6921           else
6922             echo "$ac_t""no" 1>&6
6923           fi
6924         
6925
6926           enablestring=
6927           echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6928 echo "configure:6929: checking for --${enablestring:-enable}-statbox" >&5
6929           no_cache=0
6930           # Check whether --enable-statbox or --disable-statbox was given.
6931 if test "${enable_statbox+set}" = set; then
6932   enableval="$enable_statbox"
6933   
6934                           if test "$enableval" = yes; then
6935                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
6936                           else
6937                             ac_cv_use_statbox='wxUSE_STATBOX=no'
6938                           fi
6939                         
6940 else
6941   
6942                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6943                           if test "x$LINE" != x ; then
6944                             eval "DEFAULT_$LINE"
6945                           else
6946                             no_cache=1
6947                           fi
6948
6949                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6950                         
6951 fi
6952
6953
6954           eval "$ac_cv_use_statbox"
6955           if test "$no_cache" != 1; then
6956             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6957           fi
6958
6959           if test "$wxUSE_STATBOX" = yes; then
6960             echo "$ac_t""yes" 1>&6
6961           else
6962             echo "$ac_t""no" 1>&6
6963           fi
6964         
6965
6966           enablestring=
6967           echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
6968 echo "configure:6969: checking for --${enablestring:-enable}-statline" >&5
6969           no_cache=0
6970           # Check whether --enable-statline or --disable-statline was given.
6971 if test "${enable_statline+set}" = set; then
6972   enableval="$enable_statline"
6973   
6974                           if test "$enableval" = yes; then
6975                             ac_cv_use_statline='wxUSE_STATLINE=yes'
6976                           else
6977                             ac_cv_use_statline='wxUSE_STATLINE=no'
6978                           fi
6979                         
6980 else
6981   
6982                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6983                           if test "x$LINE" != x ; then
6984                             eval "DEFAULT_$LINE"
6985                           else
6986                             no_cache=1
6987                           fi
6988
6989                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6990                         
6991 fi
6992
6993
6994           eval "$ac_cv_use_statline"
6995           if test "$no_cache" != 1; then
6996             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6997           fi
6998
6999           if test "$wxUSE_STATLINE" = yes; then
7000             echo "$ac_t""yes" 1>&6
7001           else
7002             echo "$ac_t""no" 1>&6
7003           fi
7004         
7005
7006           enablestring=
7007           echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
7008 echo "configure:7009: checking for --${enablestring:-enable}-stattext" >&5
7009           no_cache=0
7010           # Check whether --enable-stattext or --disable-stattext was given.
7011 if test "${enable_stattext+set}" = set; then
7012   enableval="$enable_stattext"
7013   
7014                           if test "$enableval" = yes; then
7015                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7016                           else
7017                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
7018                           fi
7019                         
7020 else
7021   
7022                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7023                           if test "x$LINE" != x ; then
7024                             eval "DEFAULT_$LINE"
7025                           else
7026                             no_cache=1
7027                           fi
7028
7029                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7030                         
7031 fi
7032
7033
7034           eval "$ac_cv_use_stattext"
7035           if test "$no_cache" != 1; then
7036             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7037           fi
7038
7039           if test "$wxUSE_STATTEXT" = yes; then
7040             echo "$ac_t""yes" 1>&6
7041           else
7042             echo "$ac_t""no" 1>&6
7043           fi
7044         
7045
7046           enablestring=
7047           echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
7048 echo "configure:7049: checking for --${enablestring:-enable}-statusbar" >&5
7049           no_cache=0
7050           # Check whether --enable-statusbar or --disable-statusbar was given.
7051 if test "${enable_statusbar+set}" = set; then
7052   enableval="$enable_statusbar"
7053   
7054                           if test "$enableval" = yes; then
7055                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7056                           else
7057                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7058                           fi
7059                         
7060 else
7061   
7062                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7063                           if test "x$LINE" != x ; then
7064                             eval "DEFAULT_$LINE"
7065                           else
7066                             no_cache=1
7067                           fi
7068
7069                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7070                         
7071 fi
7072
7073
7074           eval "$ac_cv_use_statusbar"
7075           if test "$no_cache" != 1; then
7076             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7077           fi
7078
7079           if test "$wxUSE_STATUSBAR" = yes; then
7080             echo "$ac_t""yes" 1>&6
7081           else
7082             echo "$ac_t""no" 1>&6
7083           fi
7084         
7085
7086           enablestring=
7087           echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7088 echo "configure:7089: checking for --${enablestring:-enable}-tabdialog" >&5
7089           no_cache=0
7090           # Check whether --enable-tabdialog or --disable-tabdialog was given.
7091 if test "${enable_tabdialog+set}" = set; then
7092   enableval="$enable_tabdialog"
7093   
7094                           if test "$enableval" = yes; then
7095                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7096                           else
7097                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7098                           fi
7099                         
7100 else
7101   
7102                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7103                           if test "x$LINE" != x ; then
7104                             eval "DEFAULT_$LINE"
7105                           else
7106                             no_cache=1
7107                           fi
7108
7109                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7110                         
7111 fi
7112
7113
7114           eval "$ac_cv_use_tabdialog"
7115           if test "$no_cache" != 1; then
7116             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7117           fi
7118
7119           if test "$wxUSE_TABDIALOG" = yes; then
7120             echo "$ac_t""yes" 1>&6
7121           else
7122             echo "$ac_t""no" 1>&6
7123           fi
7124         
7125
7126           enablestring=
7127           echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7128 echo "configure:7129: checking for --${enablestring:-enable}-textctrl" >&5
7129           no_cache=0
7130           # Check whether --enable-textctrl or --disable-textctrl was given.
7131 if test "${enable_textctrl+set}" = set; then
7132   enableval="$enable_textctrl"
7133   
7134                           if test "$enableval" = yes; then
7135                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7136                           else
7137                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7138                           fi
7139                         
7140 else
7141   
7142                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7143                           if test "x$LINE" != x ; then
7144                             eval "DEFAULT_$LINE"
7145                           else
7146                             no_cache=1
7147                           fi
7148
7149                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7150                         
7151 fi
7152
7153
7154           eval "$ac_cv_use_textctrl"
7155           if test "$no_cache" != 1; then
7156             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7157           fi
7158
7159           if test "$wxUSE_TEXTCTRL" = yes; then
7160             echo "$ac_t""yes" 1>&6
7161           else
7162             echo "$ac_t""no" 1>&6
7163           fi
7164         
7165
7166           enablestring=
7167           echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7168 echo "configure:7169: checking for --${enablestring:-enable}-togglebtn" >&5
7169           no_cache=0
7170           # Check whether --enable-togglebtn or --disable-togglebtn was given.
7171 if test "${enable_togglebtn+set}" = set; then
7172   enableval="$enable_togglebtn"
7173   
7174                           if test "$enableval" = yes; then
7175                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7176                           else
7177                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7178                           fi
7179                         
7180 else
7181   
7182                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7183                           if test "x$LINE" != x ; then
7184                             eval "DEFAULT_$LINE"
7185                           else
7186                             no_cache=1
7187                           fi
7188
7189                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7190                         
7191 fi
7192
7193
7194           eval "$ac_cv_use_togglebtn"
7195           if test "$no_cache" != 1; then
7196             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7197           fi
7198
7199           if test "$wxUSE_TOGGLEBTN" = yes; then
7200             echo "$ac_t""yes" 1>&6
7201           else
7202             echo "$ac_t""no" 1>&6
7203           fi
7204         
7205
7206           enablestring=
7207           echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7208 echo "configure:7209: checking for --${enablestring:-enable}-toolbar" >&5
7209           no_cache=0
7210           # Check whether --enable-toolbar or --disable-toolbar was given.
7211 if test "${enable_toolbar+set}" = set; then
7212   enableval="$enable_toolbar"
7213   
7214                           if test "$enableval" = yes; then
7215                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7216                           else
7217                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7218                           fi
7219                         
7220 else
7221   
7222                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7223                           if test "x$LINE" != x ; then
7224                             eval "DEFAULT_$LINE"
7225                           else
7226                             no_cache=1
7227                           fi
7228
7229                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7230                         
7231 fi
7232
7233
7234           eval "$ac_cv_use_toolbar"
7235           if test "$no_cache" != 1; then
7236             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7237           fi
7238
7239           if test "$wxUSE_TOOLBAR" = yes; then
7240             echo "$ac_t""yes" 1>&6
7241           else
7242             echo "$ac_t""no" 1>&6
7243           fi
7244         
7245
7246           enablestring=
7247           echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7248 echo "configure:7249: checking for --${enablestring:-enable}-tbarnative" >&5
7249           no_cache=0
7250           # Check whether --enable-tbarnative or --disable-tbarnative was given.
7251 if test "${enable_tbarnative+set}" = set; then
7252   enableval="$enable_tbarnative"
7253   
7254                           if test "$enableval" = yes; then
7255                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7256                           else
7257                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7258                           fi
7259                         
7260 else
7261   
7262                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7263                           if test "x$LINE" != x ; then
7264                             eval "DEFAULT_$LINE"
7265                           else
7266                             no_cache=1
7267                           fi
7268
7269                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7270                         
7271 fi
7272
7273
7274           eval "$ac_cv_use_tbarnative"
7275           if test "$no_cache" != 1; then
7276             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7277           fi
7278
7279           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7280             echo "$ac_t""yes" 1>&6
7281           else
7282             echo "$ac_t""no" 1>&6
7283           fi
7284         
7285
7286           enablestring=
7287           echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7288 echo "configure:7289: checking for --${enablestring:-enable}-tbarsmpl" >&5
7289           no_cache=0
7290           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7291 if test "${enable_tbarsmpl+set}" = set; then
7292   enableval="$enable_tbarsmpl"
7293   
7294                           if test "$enableval" = yes; then
7295                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7296                           else
7297                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7298                           fi
7299                         
7300 else
7301   
7302                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7303                           if test "x$LINE" != x ; then
7304                             eval "DEFAULT_$LINE"
7305                           else
7306                             no_cache=1
7307                           fi
7308
7309                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7310                         
7311 fi
7312
7313
7314           eval "$ac_cv_use_tbarsmpl"
7315           if test "$no_cache" != 1; then
7316             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7317           fi
7318
7319           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7320             echo "$ac_t""yes" 1>&6
7321           else
7322             echo "$ac_t""no" 1>&6
7323           fi
7324         
7325
7326           enablestring=
7327           echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7328 echo "configure:7329: checking for --${enablestring:-enable}-treectrl" >&5
7329           no_cache=0
7330           # Check whether --enable-treectrl or --disable-treectrl was given.
7331 if test "${enable_treectrl+set}" = set; then
7332   enableval="$enable_treectrl"
7333   
7334                           if test "$enableval" = yes; then
7335                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7336                           else
7337                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7338                           fi
7339                         
7340 else
7341   
7342                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7343                           if test "x$LINE" != x ; then
7344                             eval "DEFAULT_$LINE"
7345                           else
7346                             no_cache=1
7347                           fi
7348
7349                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7350                         
7351 fi
7352
7353
7354           eval "$ac_cv_use_treectrl"
7355           if test "$no_cache" != 1; then
7356             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7357           fi
7358
7359           if test "$wxUSE_TREECTRL" = yes; then
7360             echo "$ac_t""yes" 1>&6
7361           else
7362             echo "$ac_t""no" 1>&6
7363           fi
7364         
7365
7366           enablestring=
7367           echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7368 echo "configure:7369: checking for --${enablestring:-enable}-tipwindow" >&5
7369           no_cache=0
7370           # Check whether --enable-tipwindow or --disable-tipwindow was given.
7371 if test "${enable_tipwindow+set}" = set; then
7372   enableval="$enable_tipwindow"
7373   
7374                           if test "$enableval" = yes; then
7375                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7376                           else
7377                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7378                           fi
7379                         
7380 else
7381   
7382                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7383                           if test "x$LINE" != x ; then
7384                             eval "DEFAULT_$LINE"
7385                           else
7386                             no_cache=1
7387                           fi
7388
7389                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7390                         
7391 fi
7392
7393
7394           eval "$ac_cv_use_tipwindow"
7395           if test "$no_cache" != 1; then
7396             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7397           fi
7398
7399           if test "$wxUSE_TIPWINDOW" = yes; then
7400             echo "$ac_t""yes" 1>&6
7401           else
7402             echo "$ac_t""no" 1>&6
7403           fi
7404         
7405
7406           enablestring=
7407           echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7408 echo "configure:7409: checking for --${enablestring:-enable}-popupwin" >&5
7409           no_cache=0
7410           # Check whether --enable-popupwin or --disable-popupwin was given.
7411 if test "${enable_popupwin+set}" = set; then
7412   enableval="$enable_popupwin"
7413   
7414                           if test "$enableval" = yes; then
7415                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7416                           else
7417                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7418                           fi
7419                         
7420 else
7421   
7422                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7423                           if test "x$LINE" != x ; then
7424                             eval "DEFAULT_$LINE"
7425                           else
7426                             no_cache=1
7427                           fi
7428
7429                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7430                         
7431 fi
7432
7433
7434           eval "$ac_cv_use_popupwin"
7435           if test "$no_cache" != 1; then
7436             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7437           fi
7438
7439           if test "$wxUSE_POPUPWIN" = yes; then
7440             echo "$ac_t""yes" 1>&6
7441           else
7442             echo "$ac_t""no" 1>&6
7443           fi
7444         
7445
7446
7447
7448           enablestring=
7449           echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7450 echo "configure:7451: checking for --${enablestring:-enable}-commondlg" >&5
7451           no_cache=0
7452           # Check whether --enable-commondlg or --disable-commondlg was given.
7453 if test "${enable_commondlg+set}" = set; then
7454   enableval="$enable_commondlg"
7455   
7456                           if test "$enableval" = yes; then
7457                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7458                           else
7459                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7460                           fi
7461                         
7462 else
7463   
7464                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7465                           if test "x$LINE" != x ; then
7466                             eval "DEFAULT_$LINE"
7467                           else
7468                             no_cache=1
7469                           fi
7470
7471                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7472                         
7473 fi
7474
7475
7476           eval "$ac_cv_use_commondlg"
7477           if test "$no_cache" != 1; then
7478             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7479           fi
7480
7481           if test "$wxUSE_COMMONDLGS" = yes; then
7482             echo "$ac_t""yes" 1>&6
7483           else
7484             echo "$ac_t""no" 1>&6
7485           fi
7486         
7487
7488           enablestring=
7489           echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7490 echo "configure:7491: checking for --${enablestring:-enable}-choicedlg" >&5
7491           no_cache=0
7492           # Check whether --enable-choicedlg or --disable-choicedlg was given.
7493 if test "${enable_choicedlg+set}" = set; then
7494   enableval="$enable_choicedlg"
7495   
7496                           if test "$enableval" = yes; then
7497                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7498                           else
7499                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7500                           fi
7501                         
7502 else
7503   
7504                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7505                           if test "x$LINE" != x ; then
7506                             eval "DEFAULT_$LINE"
7507                           else
7508                             no_cache=1
7509                           fi
7510
7511                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7512                         
7513 fi
7514
7515
7516           eval "$ac_cv_use_choicedlg"
7517           if test "$no_cache" != 1; then
7518             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7519           fi
7520
7521           if test "$wxUSE_CHOICEDLG" = yes; then
7522             echo "$ac_t""yes" 1>&6
7523           else
7524             echo "$ac_t""no" 1>&6
7525           fi
7526         
7527
7528           enablestring=
7529           echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7530 echo "configure:7531: checking for --${enablestring:-enable}-coldlg" >&5
7531           no_cache=0
7532           # Check whether --enable-coldlg or --disable-coldlg was given.
7533 if test "${enable_coldlg+set}" = set; then
7534   enableval="$enable_coldlg"
7535   
7536                           if test "$enableval" = yes; then
7537                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7538                           else
7539                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7540                           fi
7541                         
7542 else
7543   
7544                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7545                           if test "x$LINE" != x ; then
7546                             eval "DEFAULT_$LINE"
7547                           else
7548                             no_cache=1
7549                           fi
7550
7551                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7552                         
7553 fi
7554
7555
7556           eval "$ac_cv_use_coldlg"
7557           if test "$no_cache" != 1; then
7558             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7559           fi
7560
7561           if test "$wxUSE_COLOURDLG" = yes; then
7562             echo "$ac_t""yes" 1>&6
7563           else
7564             echo "$ac_t""no" 1>&6
7565           fi
7566         
7567
7568           enablestring=
7569           echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7570 echo "configure:7571: checking for --${enablestring:-enable}-filedlg" >&5
7571           no_cache=0
7572           # Check whether --enable-filedlg or --disable-filedlg was given.
7573 if test "${enable_filedlg+set}" = set; then
7574   enableval="$enable_filedlg"
7575   
7576                           if test "$enableval" = yes; then
7577                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7578                           else
7579                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7580                           fi
7581                         
7582 else
7583   
7584                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7585                           if test "x$LINE" != x ; then
7586                             eval "DEFAULT_$LINE"
7587                           else
7588                             no_cache=1
7589                           fi
7590
7591                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7592                         
7593 fi
7594
7595
7596           eval "$ac_cv_use_filedlg"
7597           if test "$no_cache" != 1; then
7598             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7599           fi
7600
7601           if test "$wxUSE_FILEDLG" = yes; then
7602             echo "$ac_t""yes" 1>&6
7603           else
7604             echo "$ac_t""no" 1>&6
7605           fi
7606         
7607
7608           enablestring=
7609           echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7610 echo "configure:7611: checking for --${enablestring:-enable}-finddlg" >&5
7611           no_cache=0
7612           # Check whether --enable-finddlg or --disable-finddlg was given.
7613 if test "${enable_finddlg+set}" = set; then
7614   enableval="$enable_finddlg"
7615   
7616                           if test "$enableval" = yes; then
7617                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7618                           else
7619                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7620                           fi
7621                         
7622 else
7623   
7624                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7625                           if test "x$LINE" != x ; then
7626                             eval "DEFAULT_$LINE"
7627                           else
7628                             no_cache=1
7629                           fi
7630
7631                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7632                         
7633 fi
7634
7635
7636           eval "$ac_cv_use_finddlg"
7637           if test "$no_cache" != 1; then
7638             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7639           fi
7640
7641           if test "$wxUSE_FINDREPLDLG" = yes; then
7642             echo "$ac_t""yes" 1>&6
7643           else
7644             echo "$ac_t""no" 1>&6
7645           fi
7646         
7647
7648           enablestring=
7649           echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7650 echo "configure:7651: checking for --${enablestring:-enable}-fontdlg" >&5
7651           no_cache=0
7652           # Check whether --enable-fontdlg or --disable-fontdlg was given.
7653 if test "${enable_fontdlg+set}" = set; then
7654   enableval="$enable_fontdlg"
7655   
7656                           if test "$enableval" = yes; then
7657                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7658                           else
7659                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7660                           fi
7661                         
7662 else
7663   
7664                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7665                           if test "x$LINE" != x ; then
7666                             eval "DEFAULT_$LINE"
7667                           else
7668                             no_cache=1
7669                           fi
7670
7671                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7672                         
7673 fi
7674
7675
7676           eval "$ac_cv_use_fontdlg"
7677           if test "$no_cache" != 1; then
7678             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7679           fi
7680
7681           if test "$wxUSE_FONTDLG" = yes; then
7682             echo "$ac_t""yes" 1>&6
7683           else
7684             echo "$ac_t""no" 1>&6
7685           fi
7686         
7687
7688           enablestring=
7689           echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7690 echo "configure:7691: checking for --${enablestring:-enable}-dirdlg" >&5
7691           no_cache=0
7692           # Check whether --enable-dirdlg or --disable-dirdlg was given.
7693 if test "${enable_dirdlg+set}" = set; then
7694   enableval="$enable_dirdlg"
7695   
7696                           if test "$enableval" = yes; then
7697                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7698                           else
7699                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7700                           fi
7701                         
7702 else
7703   
7704                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7705                           if test "x$LINE" != x ; then
7706                             eval "DEFAULT_$LINE"
7707                           else
7708                             no_cache=1
7709                           fi
7710
7711                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7712                         
7713 fi
7714
7715
7716           eval "$ac_cv_use_dirdlg"
7717           if test "$no_cache" != 1; then
7718             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7719           fi
7720
7721           if test "$wxUSE_DIRDLG" = yes; then
7722             echo "$ac_t""yes" 1>&6
7723           else
7724             echo "$ac_t""no" 1>&6
7725           fi
7726         
7727
7728           enablestring=
7729           echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7730 echo "configure:7731: checking for --${enablestring:-enable}-msgdlg" >&5
7731           no_cache=0
7732           # Check whether --enable-msgdlg or --disable-msgdlg was given.
7733 if test "${enable_msgdlg+set}" = set; then
7734   enableval="$enable_msgdlg"
7735   
7736                           if test "$enableval" = yes; then
7737                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7738                           else
7739                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7740                           fi
7741                         
7742 else
7743   
7744                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7745                           if test "x$LINE" != x ; then
7746                             eval "DEFAULT_$LINE"
7747                           else
7748                             no_cache=1
7749                           fi
7750
7751                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7752                         
7753 fi
7754
7755
7756           eval "$ac_cv_use_msgdlg"
7757           if test "$no_cache" != 1; then
7758             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7759           fi
7760
7761           if test "$wxUSE_MSGDLG" = yes; then
7762             echo "$ac_t""yes" 1>&6
7763           else
7764             echo "$ac_t""no" 1>&6
7765           fi
7766         
7767
7768           enablestring=
7769           echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7770 echo "configure:7771: checking for --${enablestring:-enable}-numberdlg" >&5
7771           no_cache=0
7772           # Check whether --enable-numberdlg or --disable-numberdlg was given.
7773 if test "${enable_numberdlg+set}" = set; then
7774   enableval="$enable_numberdlg"
7775   
7776                           if test "$enableval" = yes; then
7777                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7778                           else
7779                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7780                           fi
7781                         
7782 else
7783   
7784                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7785                           if test "x$LINE" != x ; then
7786                             eval "DEFAULT_$LINE"
7787                           else
7788                             no_cache=1
7789                           fi
7790
7791                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7792                         
7793 fi
7794
7795
7796           eval "$ac_cv_use_numberdlg"
7797           if test "$no_cache" != 1; then
7798             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7799           fi
7800
7801           if test "$wxUSE_NUMBERDLG" = yes; then
7802             echo "$ac_t""yes" 1>&6
7803           else
7804             echo "$ac_t""no" 1>&6
7805           fi
7806         
7807
7808           enablestring=
7809           echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7810 echo "configure:7811: checking for --${enablestring:-enable}-splash" >&5
7811           no_cache=0
7812           # Check whether --enable-splash or --disable-splash was given.
7813 if test "${enable_splash+set}" = set; then
7814   enableval="$enable_splash"
7815   
7816                           if test "$enableval" = yes; then
7817                             ac_cv_use_splash='wxUSE_SPLASH=yes'
7818                           else
7819                             ac_cv_use_splash='wxUSE_SPLASH=no'
7820                           fi
7821                         
7822 else
7823   
7824                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7825                           if test "x$LINE" != x ; then
7826                             eval "DEFAULT_$LINE"
7827                           else
7828                             no_cache=1
7829                           fi
7830
7831                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7832                         
7833 fi
7834
7835
7836           eval "$ac_cv_use_splash"
7837           if test "$no_cache" != 1; then
7838             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7839           fi
7840
7841           if test "$wxUSE_SPLASH" = yes; then
7842             echo "$ac_t""yes" 1>&6
7843           else
7844             echo "$ac_t""no" 1>&6
7845           fi
7846         
7847
7848           enablestring=
7849           echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7850 echo "configure:7851: checking for --${enablestring:-enable}-textdlg" >&5
7851           no_cache=0
7852           # Check whether --enable-textdlg or --disable-textdlg was given.
7853 if test "${enable_textdlg+set}" = set; then
7854   enableval="$enable_textdlg"
7855   
7856                           if test "$enableval" = yes; then
7857                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7858                           else
7859                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7860                           fi
7861                         
7862 else
7863   
7864                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7865                           if test "x$LINE" != x ; then
7866                             eval "DEFAULT_$LINE"
7867                           else
7868                             no_cache=1
7869                           fi
7870
7871                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7872                         
7873 fi
7874
7875
7876           eval "$ac_cv_use_textdlg"
7877           if test "$no_cache" != 1; then
7878             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7879           fi
7880
7881           if test "$wxUSE_TEXTDLG" = yes; then
7882             echo "$ac_t""yes" 1>&6
7883           else
7884             echo "$ac_t""no" 1>&6
7885           fi
7886         
7887
7888           enablestring=
7889           echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7890 echo "configure:7891: checking for --${enablestring:-enable}-tipdlg" >&5
7891           no_cache=0
7892           # Check whether --enable-tipdlg or --disable-tipdlg was given.
7893 if test "${enable_tipdlg+set}" = set; then
7894   enableval="$enable_tipdlg"
7895   
7896                           if test "$enableval" = yes; then
7897                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7898                           else
7899                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7900                           fi
7901                         
7902 else
7903   
7904                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7905                           if test "x$LINE" != x ; then
7906                             eval "DEFAULT_$LINE"
7907                           else
7908                             no_cache=1
7909                           fi
7910
7911                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7912                         
7913 fi
7914
7915
7916           eval "$ac_cv_use_tipdlg"
7917           if test "$no_cache" != 1; then
7918             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7919           fi
7920
7921           if test "$wxUSE_STARTUP_TIPS" = yes; then
7922             echo "$ac_t""yes" 1>&6
7923           else
7924             echo "$ac_t""no" 1>&6
7925           fi
7926         
7927
7928           enablestring=
7929           echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7930 echo "configure:7931: checking for --${enablestring:-enable}-progressdlg" >&5
7931           no_cache=0
7932           # Check whether --enable-progressdlg or --disable-progressdlg was given.
7933 if test "${enable_progressdlg+set}" = set; then
7934   enableval="$enable_progressdlg"
7935   
7936                           if test "$enableval" = yes; then
7937                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7938                           else
7939                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7940                           fi
7941                         
7942 else
7943   
7944                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7945                           if test "x$LINE" != x ; then
7946                             eval "DEFAULT_$LINE"
7947                           else
7948                             no_cache=1
7949                           fi
7950
7951                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7952                         
7953 fi
7954
7955
7956           eval "$ac_cv_use_progressdlg"
7957           if test "$no_cache" != 1; then
7958             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7959           fi
7960
7961           if test "$wxUSE_PROGRESSDLG" = yes; then
7962             echo "$ac_t""yes" 1>&6
7963           else
7964             echo "$ac_t""no" 1>&6
7965           fi
7966         
7967
7968           enablestring=
7969           echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
7970 echo "configure:7971: checking for --${enablestring:-enable}-wizarddlg" >&5
7971           no_cache=0
7972           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7973 if test "${enable_wizarddlg+set}" = set; then
7974   enableval="$enable_wizarddlg"
7975   
7976                           if test "$enableval" = yes; then
7977                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7978                           else
7979                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7980                           fi
7981                         
7982 else
7983   
7984                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7985                           if test "x$LINE" != x ; then
7986                             eval "DEFAULT_$LINE"
7987                           else
7988                             no_cache=1
7989                           fi
7990
7991                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7992                         
7993 fi
7994
7995
7996           eval "$ac_cv_use_wizarddlg"
7997           if test "$no_cache" != 1; then
7998             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7999           fi
8000
8001           if test "$wxUSE_WIZARDDLG" = yes; then
8002             echo "$ac_t""yes" 1>&6
8003           else
8004             echo "$ac_t""no" 1>&6
8005           fi
8006         
8007
8008
8009
8010           enablestring=
8011           echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
8012 echo "configure:8013: checking for --${enablestring:-enable}-menus" >&5
8013           no_cache=0
8014           # Check whether --enable-menus or --disable-menus was given.
8015 if test "${enable_menus+set}" = set; then
8016   enableval="$enable_menus"
8017   
8018                           if test "$enableval" = yes; then
8019                             ac_cv_use_menus='wxUSE_MENUS=yes'
8020                           else
8021                             ac_cv_use_menus='wxUSE_MENUS=no'
8022                           fi
8023                         
8024 else
8025   
8026                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8027                           if test "x$LINE" != x ; then
8028                             eval "DEFAULT_$LINE"
8029                           else
8030                             no_cache=1
8031                           fi
8032
8033                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8034                         
8035 fi
8036
8037
8038           eval "$ac_cv_use_menus"
8039           if test "$no_cache" != 1; then
8040             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8041           fi
8042
8043           if test "$wxUSE_MENUS" = yes; then
8044             echo "$ac_t""yes" 1>&6
8045           else
8046             echo "$ac_t""no" 1>&6
8047           fi
8048         
8049
8050           enablestring=
8051           echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
8052 echo "configure:8053: checking for --${enablestring:-enable}-miniframe" >&5
8053           no_cache=0
8054           # Check whether --enable-miniframe or --disable-miniframe was given.
8055 if test "${enable_miniframe+set}" = set; then
8056   enableval="$enable_miniframe"
8057   
8058                           if test "$enableval" = yes; then
8059                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8060                           else
8061                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8062                           fi
8063                         
8064 else
8065   
8066                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8067                           if test "x$LINE" != x ; then
8068                             eval "DEFAULT_$LINE"
8069                           else
8070                             no_cache=1
8071                           fi
8072
8073                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8074                         
8075 fi
8076
8077
8078           eval "$ac_cv_use_miniframe"
8079           if test "$no_cache" != 1; then
8080             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8081           fi
8082
8083           if test "$wxUSE_MINIFRAME" = yes; then
8084             echo "$ac_t""yes" 1>&6
8085           else
8086             echo "$ac_t""no" 1>&6
8087           fi
8088         
8089
8090           enablestring=
8091           echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8092 echo "configure:8093: checking for --${enablestring:-enable}-tooltips" >&5
8093           no_cache=0
8094           # Check whether --enable-tooltips or --disable-tooltips was given.
8095 if test "${enable_tooltips+set}" = set; then
8096   enableval="$enable_tooltips"
8097   
8098                           if test "$enableval" = yes; then
8099                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8100                           else
8101                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8102                           fi
8103                         
8104 else
8105   
8106                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8107                           if test "x$LINE" != x ; then
8108                             eval "DEFAULT_$LINE"
8109                           else
8110                             no_cache=1
8111                           fi
8112
8113                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8114                         
8115 fi
8116
8117
8118           eval "$ac_cv_use_tooltips"
8119           if test "$no_cache" != 1; then
8120             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8121           fi
8122
8123           if test "$wxUSE_TOOLTIPS" = yes; then
8124             echo "$ac_t""yes" 1>&6
8125           else
8126             echo "$ac_t""no" 1>&6
8127           fi
8128         
8129
8130           enablestring=
8131           echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8132 echo "configure:8133: checking for --${enablestring:-enable}-splines" >&5
8133           no_cache=0
8134           # Check whether --enable-splines or --disable-splines was given.
8135 if test "${enable_splines+set}" = set; then
8136   enableval="$enable_splines"
8137   
8138                           if test "$enableval" = yes; then
8139                             ac_cv_use_splines='wxUSE_SPLINES=yes'
8140                           else
8141                             ac_cv_use_splines='wxUSE_SPLINES=no'
8142                           fi
8143                         
8144 else
8145   
8146                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8147                           if test "x$LINE" != x ; then
8148                             eval "DEFAULT_$LINE"
8149                           else
8150                             no_cache=1
8151                           fi
8152
8153                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8154                         
8155 fi
8156
8157
8158           eval "$ac_cv_use_splines"
8159           if test "$no_cache" != 1; then
8160             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8161           fi
8162
8163           if test "$wxUSE_SPLINES" = yes; then
8164             echo "$ac_t""yes" 1>&6
8165           else
8166             echo "$ac_t""no" 1>&6
8167           fi
8168         
8169
8170           enablestring=
8171           echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8172 echo "configure:8173: checking for --${enablestring:-enable}-validators" >&5
8173           no_cache=0
8174           # Check whether --enable-validators or --disable-validators was given.
8175 if test "${enable_validators+set}" = set; then
8176   enableval="$enable_validators"
8177   
8178                           if test "$enableval" = yes; then
8179                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8180                           else
8181                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
8182                           fi
8183                         
8184 else
8185   
8186                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8187                           if test "x$LINE" != x ; then
8188                             eval "DEFAULT_$LINE"
8189                           else
8190                             no_cache=1
8191                           fi
8192
8193                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8194                         
8195 fi
8196
8197
8198           eval "$ac_cv_use_validators"
8199           if test "$no_cache" != 1; then
8200             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8201           fi
8202
8203           if test "$wxUSE_VALIDATORS" = yes; then
8204             echo "$ac_t""yes" 1>&6
8205           else
8206             echo "$ac_t""no" 1>&6
8207           fi
8208         
8209
8210           enablestring=
8211           echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8212 echo "configure:8213: checking for --${enablestring:-enable}-busyinfo" >&5
8213           no_cache=0
8214           # Check whether --enable-busyinfo or --disable-busyinfo was given.
8215 if test "${enable_busyinfo+set}" = set; then
8216   enableval="$enable_busyinfo"
8217   
8218                           if test "$enableval" = yes; then
8219                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8220                           else
8221                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8222                           fi
8223                         
8224 else
8225   
8226                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8227                           if test "x$LINE" != x ; then
8228                             eval "DEFAULT_$LINE"
8229                           else
8230                             no_cache=1
8231                           fi
8232
8233                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8234                         
8235 fi
8236
8237
8238           eval "$ac_cv_use_busyinfo"
8239           if test "$no_cache" != 1; then
8240             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8241           fi
8242
8243           if test "$wxUSE_BUSYINFO" = yes; then
8244             echo "$ac_t""yes" 1>&6
8245           else
8246             echo "$ac_t""no" 1>&6
8247           fi
8248         
8249
8250           enablestring=
8251           echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8252 echo "configure:8253: checking for --${enablestring:-enable}-joystick" >&5
8253           no_cache=0
8254           # Check whether --enable-joystick or --disable-joystick was given.
8255 if test "${enable_joystick+set}" = set; then
8256   enableval="$enable_joystick"
8257   
8258                           if test "$enableval" = yes; then
8259                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8260                           else
8261                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8262                           fi
8263                         
8264 else
8265   
8266                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8267                           if test "x$LINE" != x ; then
8268                             eval "DEFAULT_$LINE"
8269                           else
8270                             no_cache=1
8271                           fi
8272
8273                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8274                         
8275 fi
8276
8277
8278           eval "$ac_cv_use_joystick"
8279           if test "$no_cache" != 1; then
8280             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8281           fi
8282
8283           if test "$wxUSE_JOYSTICK" = yes; then
8284             echo "$ac_t""yes" 1>&6
8285           else
8286             echo "$ac_t""no" 1>&6
8287           fi
8288         
8289
8290           enablestring=
8291           echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8292 echo "configure:8293: checking for --${enablestring:-enable}-metafile" >&5
8293           no_cache=0
8294           # Check whether --enable-metafile or --disable-metafile was given.
8295 if test "${enable_metafile+set}" = set; then
8296   enableval="$enable_metafile"
8297   
8298                           if test "$enableval" = yes; then
8299                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
8300                           else
8301                             ac_cv_use_metafile='wxUSE_METAFILE=no'
8302                           fi
8303                         
8304 else
8305   
8306                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8307                           if test "x$LINE" != x ; then
8308                             eval "DEFAULT_$LINE"
8309                           else
8310                             no_cache=1
8311                           fi
8312
8313                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8314                         
8315 fi
8316
8317
8318           eval "$ac_cv_use_metafile"
8319           if test "$no_cache" != 1; then
8320             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8321           fi
8322
8323           if test "$wxUSE_METAFILE" = yes; then
8324             echo "$ac_t""yes" 1>&6
8325           else
8326             echo "$ac_t""no" 1>&6
8327           fi
8328         
8329
8330           enablestring=
8331           echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8332 echo "configure:8333: checking for --${enablestring:-enable}-dragimage" >&5
8333           no_cache=0
8334           # Check whether --enable-dragimage or --disable-dragimage was given.
8335 if test "${enable_dragimage+set}" = set; then
8336   enableval="$enable_dragimage"
8337   
8338                           if test "$enableval" = yes; then
8339                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8340                           else
8341                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8342                           fi
8343                         
8344 else
8345   
8346                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8347                           if test "x$LINE" != x ; then
8348                             eval "DEFAULT_$LINE"
8349                           else
8350                             no_cache=1
8351                           fi
8352
8353                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8354                         
8355 fi
8356
8357
8358           eval "$ac_cv_use_dragimage"
8359           if test "$no_cache" != 1; then
8360             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8361           fi
8362
8363           if test "$wxUSE_DRAGIMAGE" = yes; then
8364             echo "$ac_t""yes" 1>&6
8365           else
8366             echo "$ac_t""no" 1>&6
8367           fi
8368         
8369
8370
8371
8372           enablestring=
8373           echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8374 echo "configure:8375: checking for --${enablestring:-enable}-palette" >&5
8375           no_cache=0
8376           # Check whether --enable-palette or --disable-palette was given.
8377 if test "${enable_palette+set}" = set; then
8378   enableval="$enable_palette"
8379   
8380                           if test "$enableval" = yes; then
8381                             ac_cv_use_palette='wxUSE_PALETTE=yes'
8382                           else
8383                             ac_cv_use_palette='wxUSE_PALETTE=no'
8384                           fi
8385                         
8386 else
8387   
8388                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8389                           if test "x$LINE" != x ; then
8390                             eval "DEFAULT_$LINE"
8391                           else
8392                             no_cache=1
8393                           fi
8394
8395                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8396                         
8397 fi
8398
8399
8400           eval "$ac_cv_use_palette"
8401           if test "$no_cache" != 1; then
8402             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8403           fi
8404
8405           if test "$wxUSE_PALETTE" = yes; then
8406             echo "$ac_t""yes" 1>&6
8407           else
8408             echo "$ac_t""no" 1>&6
8409           fi
8410         
8411
8412           enablestring=
8413           echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8414 echo "configure:8415: checking for --${enablestring:-enable}-image" >&5
8415           no_cache=0
8416           # Check whether --enable-image or --disable-image was given.
8417 if test "${enable_image+set}" = set; then
8418   enableval="$enable_image"
8419   
8420                           if test "$enableval" = yes; then
8421                             ac_cv_use_image='wxUSE_IMAGE=yes'
8422                           else
8423                             ac_cv_use_image='wxUSE_IMAGE=no'
8424                           fi
8425                         
8426 else
8427   
8428                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8429                           if test "x$LINE" != x ; then
8430                             eval "DEFAULT_$LINE"
8431                           else
8432                             no_cache=1
8433                           fi
8434
8435                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8436                         
8437 fi
8438
8439
8440           eval "$ac_cv_use_image"
8441           if test "$no_cache" != 1; then
8442             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8443           fi
8444
8445           if test "$wxUSE_IMAGE" = yes; then
8446             echo "$ac_t""yes" 1>&6
8447           else
8448             echo "$ac_t""no" 1>&6
8449           fi
8450         
8451
8452           enablestring=
8453           echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8454 echo "configure:8455: checking for --${enablestring:-enable}-gif" >&5
8455           no_cache=0
8456           # Check whether --enable-gif or --disable-gif was given.
8457 if test "${enable_gif+set}" = set; then
8458   enableval="$enable_gif"
8459   
8460                           if test "$enableval" = yes; then
8461                             ac_cv_use_gif='wxUSE_GIF=yes'
8462                           else
8463                             ac_cv_use_gif='wxUSE_GIF=no'
8464                           fi
8465                         
8466 else
8467   
8468                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8469                           if test "x$LINE" != x ; then
8470                             eval "DEFAULT_$LINE"
8471                           else
8472                             no_cache=1
8473                           fi
8474
8475                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8476                         
8477 fi
8478
8479
8480           eval "$ac_cv_use_gif"
8481           if test "$no_cache" != 1; then
8482             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8483           fi
8484
8485           if test "$wxUSE_GIF" = yes; then
8486             echo "$ac_t""yes" 1>&6
8487           else
8488             echo "$ac_t""no" 1>&6
8489           fi
8490         
8491
8492           enablestring=
8493           echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8494 echo "configure:8495: checking for --${enablestring:-enable}-pcx" >&5
8495           no_cache=0
8496           # Check whether --enable-pcx or --disable-pcx was given.
8497 if test "${enable_pcx+set}" = set; then
8498   enableval="$enable_pcx"
8499   
8500                           if test "$enableval" = yes; then
8501                             ac_cv_use_pcx='wxUSE_PCX=yes'
8502                           else
8503                             ac_cv_use_pcx='wxUSE_PCX=no'
8504                           fi
8505                         
8506 else
8507   
8508                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8509                           if test "x$LINE" != x ; then
8510                             eval "DEFAULT_$LINE"
8511                           else
8512                             no_cache=1
8513                           fi
8514
8515                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8516                         
8517 fi
8518
8519
8520           eval "$ac_cv_use_pcx"
8521           if test "$no_cache" != 1; then
8522             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8523           fi
8524
8525           if test "$wxUSE_PCX" = yes; then
8526             echo "$ac_t""yes" 1>&6
8527           else
8528             echo "$ac_t""no" 1>&6
8529           fi
8530         
8531
8532           enablestring=
8533           echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8534 echo "configure:8535: checking for --${enablestring:-enable}-iff" >&5
8535           no_cache=0
8536           # Check whether --enable-iff or --disable-iff was given.
8537 if test "${enable_iff+set}" = set; then
8538   enableval="$enable_iff"
8539   
8540                           if test "$enableval" = yes; then
8541                             ac_cv_use_iff='wxUSE_IFF=yes'
8542                           else
8543                             ac_cv_use_iff='wxUSE_IFF=no'
8544                           fi
8545                         
8546 else
8547   
8548                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8549                           if test "x$LINE" != x ; then
8550                             eval "DEFAULT_$LINE"
8551                           else
8552                             no_cache=1
8553                           fi
8554
8555                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8556                         
8557 fi
8558
8559
8560           eval "$ac_cv_use_iff"
8561           if test "$no_cache" != 1; then
8562             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8563           fi
8564
8565           if test "$wxUSE_IFF" = yes; then
8566             echo "$ac_t""yes" 1>&6
8567           else
8568             echo "$ac_t""no" 1>&6
8569           fi
8570         
8571
8572           enablestring=
8573           echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8574 echo "configure:8575: checking for --${enablestring:-enable}-pnm" >&5
8575           no_cache=0
8576           # Check whether --enable-pnm or --disable-pnm was given.
8577 if test "${enable_pnm+set}" = set; then
8578   enableval="$enable_pnm"
8579   
8580                           if test "$enableval" = yes; then
8581                             ac_cv_use_pnm='wxUSE_PNM=yes'
8582                           else
8583                             ac_cv_use_pnm='wxUSE_PNM=no'
8584                           fi
8585                         
8586 else
8587   
8588                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8589                           if test "x$LINE" != x ; then
8590                             eval "DEFAULT_$LINE"
8591                           else
8592                             no_cache=1
8593                           fi
8594
8595                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8596                         
8597 fi
8598
8599
8600           eval "$ac_cv_use_pnm"
8601           if test "$no_cache" != 1; then
8602             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8603           fi
8604
8605           if test "$wxUSE_PNM" = yes; then
8606             echo "$ac_t""yes" 1>&6
8607           else
8608             echo "$ac_t""no" 1>&6
8609           fi
8610         
8611
8612           enablestring=
8613           echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8614 echo "configure:8615: checking for --${enablestring:-enable}-xpm" >&5
8615           no_cache=0
8616           # Check whether --enable-xpm or --disable-xpm was given.
8617 if test "${enable_xpm+set}" = set; then
8618   enableval="$enable_xpm"
8619   
8620                           if test "$enableval" = yes; then
8621                             ac_cv_use_xpm='wxUSE_XPM=yes'
8622                           else
8623                             ac_cv_use_xpm='wxUSE_XPM=no'
8624                           fi
8625                         
8626 else
8627   
8628                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8629                           if test "x$LINE" != x ; then
8630                             eval "DEFAULT_$LINE"
8631                           else
8632                             no_cache=1
8633                           fi
8634
8635                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8636                         
8637 fi
8638
8639
8640           eval "$ac_cv_use_xpm"
8641           if test "$no_cache" != 1; then
8642             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8643           fi
8644
8645           if test "$wxUSE_XPM" = yes; then
8646             echo "$ac_t""yes" 1>&6
8647           else
8648             echo "$ac_t""no" 1>&6
8649           fi
8650         
8651
8652           enablestring=
8653           echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8654 echo "configure:8655: checking for --${enablestring:-enable}-ico_cur" >&5
8655           no_cache=0
8656           # Check whether --enable-ico_cur or --disable-ico_cur was given.
8657 if test "${enable_ico_cur+set}" = set; then
8658   enableval="$enable_ico_cur"
8659   
8660                           if test "$enableval" = yes; then
8661                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8662                           else
8663                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8664                           fi
8665                         
8666 else
8667   
8668                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8669                           if test "x$LINE" != x ; then
8670                             eval "DEFAULT_$LINE"
8671                           else
8672                             no_cache=1
8673                           fi
8674
8675                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8676                         
8677 fi
8678
8679
8680           eval "$ac_cv_use_ico_cur"
8681           if test "$no_cache" != 1; then
8682             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8683           fi
8684
8685           if test "$wxUSE_ICO_CUR" = yes; then
8686             echo "$ac_t""yes" 1>&6
8687           else
8688             echo "$ac_t""no" 1>&6
8689           fi
8690         
8691
8692 fi
8693
8694 case "${host}" in
8695   *-pc-os2_emx | *-pc-os2-emx )
8696     PATH_IFS=';'
8697     LEX_STEM="lexyy"
8698   ;;
8699   *)
8700     PATH_IFS=':'
8701     LEX_STEM="lex.yy"
8702   ;;
8703 esac
8704
8705
8706
8707           echo "saving argument cache $wx_arg_cache_file"
8708           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8709         
8710
8711
8712 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8713 echo "configure:8714: checking for toolkit" >&5
8714
8715 # In Wine, we need to default to MSW, not GTK or MOTIF
8716 if test "$wxUSE_WINE" = "yes"; then
8717     DEFAULT_DEFAULT_wxUSE_GTK=0
8718     DEFAULT_DEFAULT_wxUSE_MOTIF=0
8719     DEFAULT_DEFAULT_wxUSE_MSW=1
8720 fi
8721
8722 if test "$wxUSE_GUI" = "yes"; then
8723
8724     if test "$USE_BEOS" = 1; then
8725         { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8726     fi
8727
8728     if test "$TOOLKIT_GIVEN" = 1; then
8729             for toolkit in `echo $ALL_TOOLKITS`; do
8730         var=wxUSE_$toolkit
8731         eval "value=\$${var}"
8732         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8733       done
8734     else
8735             for toolkit in `echo $ALL_TOOLKITS`; do
8736         if test "$has_toolkit_in_cache" != 1; then
8737           var=DEFAULT_DEFAULT_wxUSE_$toolkit
8738         else
8739           var=DEFAULT_wxUSE_$toolkit
8740         fi
8741         eval "wxUSE_$toolkit=\$${var}"
8742       done
8743     fi
8744
8745             NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0}  \
8746                   + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8747
8748         case "${host}" in
8749       *-pc-os2_emx | *-pc-os2-emx )
8750         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8751     esac
8752
8753     case "$NUM_TOOLKITS" in
8754       1)
8755       ;;
8756       0)
8757         { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8758       ;;
8759       *)
8760         { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8761     esac
8762
8763         for toolkit in `echo $ALL_TOOLKITS`; do
8764       var=wxUSE_$toolkit
8765       eval "value=\$${var}"
8766       if test "x$value" != x; then
8767         cache_var=CACHE_$toolkit
8768         eval "cache=\$${cache_var}"
8769         if test "$cache" = 1; then
8770           echo "$var=$value" >> ${wx_arg_cache_file}
8771         fi
8772         if test "$value" = 1; then
8773           toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8774           echo "$ac_t""$toolkit_echo" 1>&6
8775         fi
8776       fi
8777     done
8778 else
8779     echo "$ac_t""base ($host_alias hosted) only" 1>&6
8780 fi
8781
8782 wants_win32=0
8783 doesnt_want_win32=0
8784 case "${host}" in
8785   *-*-cygwin*)
8786       if test "$wxUSE_MSW" = 1 ; then
8787         wants_win32=1
8788       else
8789         doesnt_want_win32=1
8790       fi
8791   ;;
8792   *-*-mingw*)
8793       wants_win32=1
8794   ;;
8795 esac
8796
8797 if test "$wxUSE_WINE" = "yes"; then
8798     wants_win32=1
8799         CC=winegcc
8800     CXX=wineg++
8801     RESCOMP=wrc
8802 fi
8803
8804 if test "$wants_win32" = 1 ; then
8805     USE_UNIX=0
8806     USE_WIN32=1
8807     cat >> confdefs.h <<\EOF
8808 #define __WIN32__ 1
8809 EOF
8810
8811     cat >> confdefs.h <<\EOF
8812 #define __WIN95__ 1
8813 EOF
8814
8815     cat >> confdefs.h <<\EOF
8816 #define __WINDOWS__ 1
8817 EOF
8818
8819     cat >> confdefs.h <<\EOF
8820 #define __GNUWIN32__ 1
8821 EOF
8822
8823     cat >> confdefs.h <<\EOF
8824 #define STRICT 1
8825 EOF
8826
8827     cat >> confdefs.h <<\EOF
8828 #define WINVER 0x0400
8829 EOF
8830
8831 fi
8832 if test "$doesnt_want_win32" = 1 ; then
8833     USE_UNIX=1
8834     USE_WIN32=0
8835 fi
8836
8837 if test "$USE_UNIX" = 1 ; then
8838     wxUSE_UNIX=yes
8839     cat >> confdefs.h <<\EOF
8840 #define __UNIX__ 1
8841 EOF
8842
8843 fi
8844
8845
8846 cat > confcache <<\EOF
8847 # This file is a shell script that caches the results of configure
8848 # tests run on this system so they can be shared between configure
8849 # scripts and configure runs.  It is not useful on other systems.
8850 # If it contains results you don't want to keep, you may remove or edit it.
8851 #
8852 # By default, configure uses ./config.cache as the cache file,
8853 # creating it if it does not exist already.  You can give configure
8854 # the --cache-file=FILE option to use a different cache file; that is
8855 # what configure does when it calls configure scripts in
8856 # subdirectories, so they share the cache.
8857 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8858 # config.status only pays attention to the cache file if you give it the
8859 # --recheck option to rerun configure.
8860 #
8861 EOF
8862 # The following way of writing the cache mishandles newlines in values,
8863 # but we know of no workaround that is simple, portable, and efficient.
8864 # So, don't put newlines in cache variables' values.
8865 # Ultrix sh set writes to stderr and can't be redirected directly,
8866 # and sets the high bit in the cache file unless we assign to the vars.
8867 (set) 2>&1 |
8868   case `(ac_space=' '; set | grep ac_space) 2>&1` in
8869   *ac_space=\ *)
8870     # `set' does not quote correctly, so add quotes (double-quote substitution
8871     # turns \\\\ into \\, and sed turns \\ into \).
8872     sed -n \
8873       -e "s/'/'\\\\''/g" \
8874       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8875     ;;
8876   *)
8877     # `set' quotes correctly as required by POSIX, so do not add quotes.
8878     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8879     ;;
8880   esac >> confcache
8881 if cmp -s $cache_file confcache; then
8882   :
8883 else
8884   if test -w $cache_file; then
8885     echo "updating cache $cache_file"
8886     cat confcache > $cache_file
8887   else
8888     echo "not updating unwritable cache $cache_file"
8889   fi
8890 fi
8891 rm -f confcache
8892
8893
8894 if test "$build" != "$host" ; then
8895     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8896         CC=$host_alias-gcc
8897         CXX=$host_alias-c++
8898         AR=$host_alias-ar
8899         RANLIB=$host_alias-ranlib
8900         DLLTOOL=$host_alias-dlltool
8901         RESCOMP=$host_alias-windres
8902         LD=$host_alias-ld
8903         NM=$host_alias-nm
8904         STRIP=$host_alias-strip
8905     else
8906         { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8907     fi
8908 fi
8909
8910 CFLAGS=${CFLAGS:=}
8911 # Extract the first word of "gcc", so it can be a program name with args.
8912 set dummy gcc; ac_word=$2
8913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8914 echo "configure:8915: checking for $ac_word" >&5
8915 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8916   echo $ac_n "(cached) $ac_c" 1>&6
8917 else
8918   if test -n "$CC"; then
8919   ac_cv_prog_CC="$CC" # Let the user override the test.
8920 else
8921   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8922   ac_dummy="$PATH"
8923   for ac_dir in $ac_dummy; do
8924     test -z "$ac_dir" && ac_dir=.
8925     if test -f $ac_dir/$ac_word; then
8926       ac_cv_prog_CC="gcc"
8927       break
8928     fi
8929   done
8930   IFS="$ac_save_ifs"
8931 fi
8932 fi
8933 CC="$ac_cv_prog_CC"
8934 if test -n "$CC"; then
8935   echo "$ac_t""$CC" 1>&6
8936 else
8937   echo "$ac_t""no" 1>&6
8938 fi
8939
8940 if test -z "$CC"; then
8941   # Extract the first word of "cc", so it can be a program name with args.
8942 set dummy cc; ac_word=$2
8943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8944 echo "configure:8945: checking for $ac_word" >&5
8945 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8946   echo $ac_n "(cached) $ac_c" 1>&6
8947 else
8948   if test -n "$CC"; then
8949   ac_cv_prog_CC="$CC" # Let the user override the test.
8950 else
8951   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8952   ac_prog_rejected=no
8953   ac_dummy="$PATH"
8954   for ac_dir in $ac_dummy; do
8955     test -z "$ac_dir" && ac_dir=.
8956     if test -f $ac_dir/$ac_word; then
8957       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8958         ac_prog_rejected=yes
8959         continue
8960       fi
8961       ac_cv_prog_CC="cc"
8962       break
8963     fi
8964   done
8965   IFS="$ac_save_ifs"
8966 if test $ac_prog_rejected = yes; then
8967   # We found a bogon in the path, so make sure we never use it.
8968   set dummy $ac_cv_prog_CC
8969   shift
8970   if test $# -gt 0; then
8971     # We chose a different compiler from the bogus one.
8972     # However, it has the same basename, so the bogon will be chosen
8973     # first if we set CC to just the basename; use the full file name.
8974     shift
8975     set dummy "$ac_dir/$ac_word" "$@"
8976     shift
8977     ac_cv_prog_CC="$@"
8978   fi
8979 fi
8980 fi
8981 fi
8982 CC="$ac_cv_prog_CC"
8983 if test -n "$CC"; then
8984   echo "$ac_t""$CC" 1>&6
8985 else
8986   echo "$ac_t""no" 1>&6
8987 fi
8988
8989   if test -z "$CC"; then
8990     case "`uname -s`" in
8991     *win32* | *WIN32*)
8992       # Extract the first word of "cl", so it can be a program name with args.
8993 set dummy cl; ac_word=$2
8994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8995 echo "configure:8996: checking for $ac_word" >&5
8996 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8997   echo $ac_n "(cached) $ac_c" 1>&6
8998 else
8999   if test -n "$CC"; then
9000   ac_cv_prog_CC="$CC" # Let the user override the test.
9001 else
9002   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9003   ac_dummy="$PATH"
9004   for ac_dir in $ac_dummy; do
9005     test -z "$ac_dir" && ac_dir=.
9006     if test -f $ac_dir/$ac_word; then
9007       ac_cv_prog_CC="cl"
9008       break
9009     fi
9010   done
9011   IFS="$ac_save_ifs"
9012 fi
9013 fi
9014 CC="$ac_cv_prog_CC"
9015 if test -n "$CC"; then
9016   echo "$ac_t""$CC" 1>&6
9017 else
9018   echo "$ac_t""no" 1>&6
9019 fi
9020  ;;
9021     esac
9022   fi
9023   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9024 fi
9025
9026 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9027 echo "configure:9028: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9028
9029 ac_ext=c
9030 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9031 ac_cpp='$CPP $CPPFLAGS'
9032 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9033 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9034 cross_compiling=$ac_cv_prog_cc_cross
9035
9036 cat > conftest.$ac_ext << EOF
9037
9038 #line 9039 "configure"
9039 #include "confdefs.h"
9040
9041 main(){return(0);}
9042 EOF
9043 if { (eval echo configure:9044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9044   ac_cv_prog_cc_works=yes
9045   # If we can't run a trivial program, we are probably using a cross compiler.
9046   if (./conftest; exit) 2>/dev/null; then
9047     ac_cv_prog_cc_cross=no
9048   else
9049     ac_cv_prog_cc_cross=yes
9050   fi
9051 else
9052   echo "configure: failed program was:" >&5
9053   cat conftest.$ac_ext >&5
9054   ac_cv_prog_cc_works=no
9055 fi
9056 rm -fr conftest*
9057 ac_ext=c
9058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9059 ac_cpp='$CPP $CPPFLAGS'
9060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9062 cross_compiling=$ac_cv_prog_cc_cross
9063
9064 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9065 if test $ac_cv_prog_cc_works = no; then
9066   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9067 fi
9068 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9069 echo "configure:9070: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9070 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9071 cross_compiling=$ac_cv_prog_cc_cross
9072
9073 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9074 echo "configure:9075: checking whether we are using GNU C" >&5
9075 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9076   echo $ac_n "(cached) $ac_c" 1>&6
9077 else
9078   cat > conftest.c <<EOF
9079 #ifdef __GNUC__
9080   yes;
9081 #endif
9082 EOF
9083 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9084   ac_cv_prog_gcc=yes
9085 else
9086   ac_cv_prog_gcc=no
9087 fi
9088 fi
9089
9090 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9091
9092 if test $ac_cv_prog_gcc = yes; then
9093   GCC=yes
9094 else
9095   GCC=
9096 fi
9097
9098 ac_test_CFLAGS="${CFLAGS+set}"
9099 ac_save_CFLAGS="$CFLAGS"
9100 CFLAGS=
9101 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9102 echo "configure:9103: checking whether ${CC-cc} accepts -g" >&5
9103 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9104   echo $ac_n "(cached) $ac_c" 1>&6
9105 else
9106   echo 'void f(){}' > conftest.c
9107 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9108   ac_cv_prog_cc_g=yes
9109 else
9110   ac_cv_prog_cc_g=no
9111 fi
9112 rm -f conftest*
9113
9114 fi
9115
9116 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9117 if test "$ac_test_CFLAGS" = set; then
9118   CFLAGS="$ac_save_CFLAGS"
9119 elif test $ac_cv_prog_cc_g = yes; then
9120   if test "$GCC" = yes; then
9121     CFLAGS="-g -O2"
9122   else
9123     CFLAGS="-g"
9124   fi
9125 else
9126   if test "$GCC" = yes; then
9127     CFLAGS="-O2"
9128   else
9129     CFLAGS=
9130   fi
9131 fi
9132
9133
9134 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9135 echo "configure:9136: checking how to run the C preprocessor" >&5
9136 # On Suns, sometimes $CPP names a directory.
9137 if test -n "$CPP" && test -d "$CPP"; then
9138   CPP=
9139 fi
9140 if test -z "$CPP"; then
9141 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9142   echo $ac_n "(cached) $ac_c" 1>&6
9143 else
9144     # This must be in double quotes, not single quotes, because CPP may get
9145   # substituted into the Makefile and "${CC-cc}" will confuse make.
9146   CPP="${CC-cc} -E"
9147   # On the NeXT, cc -E runs the code through the compiler's parser,
9148   # not just through cpp.
9149   cat > conftest.$ac_ext <<EOF
9150 #line 9151 "configure"
9151 #include "confdefs.h"
9152 #include <assert.h>
9153 Syntax Error
9154 EOF
9155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9156 { (eval echo configure:9157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9158 if test -z "$ac_err"; then
9159   :
9160 else
9161   echo "$ac_err" >&5
9162   echo "configure: failed program was:" >&5
9163   cat conftest.$ac_ext >&5
9164   rm -rf conftest*
9165   CPP="${CC-cc} -E -traditional-cpp"
9166   cat > conftest.$ac_ext <<EOF
9167 #line 9168 "configure"
9168 #include "confdefs.h"
9169 #include <assert.h>
9170 Syntax Error
9171 EOF
9172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9173 { (eval echo configure:9174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9175 if test -z "$ac_err"; then
9176   :
9177 else
9178   echo "$ac_err" >&5
9179   echo "configure: failed program was:" >&5
9180   cat conftest.$ac_ext >&5
9181   rm -rf conftest*
9182   CPP="${CC-cc} -nologo -E"
9183   cat > conftest.$ac_ext <<EOF
9184 #line 9185 "configure"
9185 #include "confdefs.h"
9186 #include <assert.h>
9187 Syntax Error
9188 EOF
9189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9190 { (eval echo configure:9191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9192 if test -z "$ac_err"; then
9193   :
9194 else
9195   echo "$ac_err" >&5
9196   echo "configure: failed program was:" >&5
9197   cat conftest.$ac_ext >&5
9198   rm -rf conftest*
9199   CPP=/lib/cpp
9200 fi
9201 rm -f conftest*
9202 fi
9203 rm -f conftest*
9204 fi
9205 rm -f conftest*
9206   ac_cv_prog_CPP="$CPP"
9207 fi
9208   CPP="$ac_cv_prog_CPP"
9209 else
9210   ac_cv_prog_CPP="$CPP"
9211 fi
9212 echo "$ac_t""$CPP" 1>&6
9213
9214 if test $ac_cv_prog_gcc = yes; then
9215     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9216 echo "configure:9217: checking whether ${CC-cc} needs -traditional" >&5
9217 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9218   echo $ac_n "(cached) $ac_c" 1>&6
9219 else
9220     ac_pattern="Autoconf.*'x'"
9221   cat > conftest.$ac_ext <<EOF
9222 #line 9223 "configure"
9223 #include "confdefs.h"
9224 #include <sgtty.h>
9225 Autoconf TIOCGETP
9226 EOF
9227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9228   egrep "$ac_pattern" >/dev/null 2>&1; then
9229   rm -rf conftest*
9230   ac_cv_prog_gcc_traditional=yes
9231 else
9232   rm -rf conftest*
9233   ac_cv_prog_gcc_traditional=no
9234 fi
9235 rm -f conftest*
9236
9237
9238   if test $ac_cv_prog_gcc_traditional = no; then
9239     cat > conftest.$ac_ext <<EOF
9240 #line 9241 "configure"
9241 #include "confdefs.h"
9242 #include <termio.h>
9243 Autoconf TCGETA
9244 EOF
9245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9246   egrep "$ac_pattern" >/dev/null 2>&1; then
9247   rm -rf conftest*
9248   ac_cv_prog_gcc_traditional=yes
9249 fi
9250 rm -f conftest*
9251
9252   fi
9253 fi
9254
9255 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9256   if test $ac_cv_prog_gcc_traditional = yes; then
9257     CC="$CC -traditional"
9258   fi
9259 fi
9260
9261
9262
9263 ac_ext=C
9264 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9265 ac_cpp='$CXXCPP $CPPFLAGS'
9266 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9267 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9268 cross_compiling=$ac_cv_prog_cxx_cross
9269
9270
9271 CXXFLAGS=${CXXFLAGS:=}
9272 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9273 do
9274 # Extract the first word of "$ac_prog", so it can be a program name with args.
9275 set dummy $ac_prog; ac_word=$2
9276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9277 echo "configure:9278: checking for $ac_word" >&5
9278 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9279   echo $ac_n "(cached) $ac_c" 1>&6
9280 else
9281   if test -n "$CXX"; then
9282   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9283 else
9284   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9285   ac_dummy="$PATH"
9286   for ac_dir in $ac_dummy; do
9287     test -z "$ac_dir" && ac_dir=.
9288     if test -f $ac_dir/$ac_word; then
9289       ac_cv_prog_CXX="$ac_prog"
9290       break
9291     fi
9292   done
9293   IFS="$ac_save_ifs"
9294 fi
9295 fi
9296 CXX="$ac_cv_prog_CXX"
9297 if test -n "$CXX"; then
9298   echo "$ac_t""$CXX" 1>&6
9299 else
9300   echo "$ac_t""no" 1>&6
9301 fi
9302
9303 test -n "$CXX" && break
9304 done
9305 test -n "$CXX" || CXX="gcc"
9306
9307
9308 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9309 echo "configure:9310: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9310
9311 ac_ext=C
9312 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9313 ac_cpp='$CXXCPP $CPPFLAGS'
9314 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9315 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9316 cross_compiling=$ac_cv_prog_cxx_cross
9317
9318 cat > conftest.$ac_ext << EOF
9319
9320 #line 9321 "configure"
9321 #include "confdefs.h"
9322
9323 int main(){return(0);}
9324 EOF
9325 if { (eval echo configure:9326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9326   ac_cv_prog_cxx_works=yes
9327   # If we can't run a trivial program, we are probably using a cross compiler.
9328   if (./conftest; exit) 2>/dev/null; then
9329     ac_cv_prog_cxx_cross=no
9330   else
9331     ac_cv_prog_cxx_cross=yes
9332   fi
9333 else
9334   echo "configure: failed program was:" >&5
9335   cat conftest.$ac_ext >&5
9336   ac_cv_prog_cxx_works=no
9337 fi
9338 rm -fr conftest*
9339 ac_ext=C
9340 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9341 ac_cpp='$CXXCPP $CPPFLAGS'
9342 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9343 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9344 cross_compiling=$ac_cv_prog_cxx_cross
9345
9346 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9347 if test $ac_cv_prog_cxx_works = no; then
9348   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9349 fi
9350 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9351 echo "configure:9352: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9352 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9353 cross_compiling=$ac_cv_prog_cxx_cross
9354
9355 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9356 echo "configure:9357: checking whether we are using GNU C++" >&5
9357 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9358   echo $ac_n "(cached) $ac_c" 1>&6
9359 else
9360   cat > conftest.C <<EOF
9361 #ifdef __GNUC__
9362   yes;
9363 #endif
9364 EOF
9365 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9366   ac_cv_prog_gxx=yes
9367 else
9368   ac_cv_prog_gxx=no
9369 fi
9370 fi
9371
9372 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9373
9374 if test $ac_cv_prog_gxx = yes; then
9375   GXX=yes
9376 else
9377   GXX=
9378 fi
9379
9380 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9381 ac_save_CXXFLAGS="$CXXFLAGS"
9382 CXXFLAGS=
9383 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9384 echo "configure:9385: checking whether ${CXX-g++} accepts -g" >&5
9385 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9386   echo $ac_n "(cached) $ac_c" 1>&6
9387 else
9388   echo 'void f(){}' > conftest.cc
9389 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9390   ac_cv_prog_cxx_g=yes
9391 else
9392   ac_cv_prog_cxx_g=no
9393 fi
9394 rm -f conftest*
9395
9396 fi
9397
9398 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9399 if test "$ac_test_CXXFLAGS" = set; then
9400   CXXFLAGS="$ac_save_CXXFLAGS"
9401 elif test $ac_cv_prog_cxx_g = yes; then
9402   if test "$GXX" = yes; then
9403     CXXFLAGS="-g -O2"
9404   else
9405     CXXFLAGS="-g"
9406   fi
9407 else
9408   if test "$GXX" = yes; then
9409     CXXFLAGS="-O2"
9410   else
9411     CXXFLAGS=
9412   fi
9413 fi
9414
9415
9416 ac_ext=c
9417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9418 ac_cpp='$CPP $CPPFLAGS'
9419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9421 cross_compiling=$ac_cv_prog_cc_cross
9422
9423
9424 # Extract the first word of "ranlib", so it can be a program name with args.
9425 set dummy ranlib; ac_word=$2
9426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9427 echo "configure:9428: checking for $ac_word" >&5
9428 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9429   echo $ac_n "(cached) $ac_c" 1>&6
9430 else
9431   if test -n "$RANLIB"; then
9432   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9433 else
9434   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9435   ac_dummy="$PATH"
9436   for ac_dir in $ac_dummy; do
9437     test -z "$ac_dir" && ac_dir=.
9438     if test -f $ac_dir/$ac_word; then
9439       ac_cv_prog_RANLIB="ranlib"
9440       break
9441     fi
9442   done
9443   IFS="$ac_save_ifs"
9444   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9445 fi
9446 fi
9447 RANLIB="$ac_cv_prog_RANLIB"
9448 if test -n "$RANLIB"; then
9449   echo "$ac_t""$RANLIB" 1>&6
9450 else
9451   echo "$ac_t""no" 1>&6
9452 fi
9453
9454
9455 # Extract the first word of "ar", so it can be a program name with args.
9456 set dummy ar; ac_word=$2
9457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9458 echo "configure:9459: checking for $ac_word" >&5
9459 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9460   echo $ac_n "(cached) $ac_c" 1>&6
9461 else
9462   if test -n "$AR"; then
9463   ac_cv_prog_AR="$AR" # Let the user override the test.
9464 else
9465   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9466   ac_dummy="$PATH"
9467   for ac_dir in $ac_dummy; do
9468     test -z "$ac_dir" && ac_dir=.
9469     if test -f $ac_dir/$ac_word; then
9470       ac_cv_prog_AR="ar"
9471       break
9472     fi
9473   done
9474   IFS="$ac_save_ifs"
9475   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9476 fi
9477 fi
9478 AR="$ac_cv_prog_AR"
9479 if test -n "$AR"; then
9480   echo "$ac_t""$AR" 1>&6
9481 else
9482   echo "$ac_t""no" 1>&6
9483 fi
9484
9485
9486 # Find a good install program.  We prefer a C program (faster),
9487 # so one script is as good as another.  But avoid the broken or
9488 # incompatible versions:
9489 # SysV /etc/install, /usr/sbin/install
9490 # SunOS /usr/etc/install
9491 # IRIX /sbin/install
9492 # AIX /bin/install
9493 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9496 # ./install, which can be erroneously created by make from ./install.sh.
9497 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9498 echo "configure:9499: checking for a BSD compatible install" >&5
9499 if test -z "$INSTALL"; then
9500 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9501   echo $ac_n "(cached) $ac_c" 1>&6
9502 else
9503     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
9504   for ac_dir in $PATH; do
9505     # Account for people who put trailing slashes in PATH elements.
9506     case "$ac_dir/" in
9507     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9508     *)
9509       # OSF1 and SCO ODT 3.0 have their own names for install.
9510       # Don't use installbsd from OSF since it installs stuff as root
9511       # by default.
9512       for ac_prog in ginstall scoinst install; do
9513         if test -f $ac_dir/$ac_prog; then
9514           if test $ac_prog = install &&
9515             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9516             # AIX install.  It has an incompatible calling convention.
9517             :
9518           else
9519             ac_cv_path_install="$ac_dir/$ac_prog -c"
9520             break 2
9521           fi
9522         fi
9523       done
9524       ;;
9525     esac
9526   done
9527   IFS="$ac_save_IFS"
9528
9529 fi
9530   if test "${ac_cv_path_install+set}" = set; then
9531     INSTALL="$ac_cv_path_install"
9532   else
9533     # As a last resort, use the slow shell script.  We don't cache a
9534     # path for INSTALL within a source directory, because that will
9535     # break other packages using the cache if that directory is
9536     # removed, or if the path is relative.
9537     INSTALL="$ac_install_sh"
9538   fi
9539 fi
9540 echo "$ac_t""$INSTALL" 1>&6
9541
9542 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9543 # It thinks the first close brace ends the variable substitution.
9544 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9545
9546 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9547
9548 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9549
9550
9551 case ${INSTALL} in
9552   /* ) # Absolute
9553      ;;
9554   *)
9555      INSTALL=`pwd`/${INSTALL} ;;
9556 esac
9557
9558
9559 case "${host}" in
9560
9561                 powerpc-*-darwin* )
9562         INSTALL_PROGRAM="cp -fp"
9563         INSTALL_DATA="cp -fp"
9564         ;;
9565     *)
9566         ;;
9567 esac
9568
9569 # Extract the first word of "strip", so it can be a program name with args.
9570 set dummy strip; ac_word=$2
9571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9572 echo "configure:9573: checking for $ac_word" >&5
9573 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9574   echo $ac_n "(cached) $ac_c" 1>&6
9575 else
9576   if test -n "$STRIP"; then
9577   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9578 else
9579   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9580   ac_dummy="$PATH"
9581   for ac_dir in $ac_dummy; do
9582     test -z "$ac_dir" && ac_dir=.
9583     if test -f $ac_dir/$ac_word; then
9584       ac_cv_prog_STRIP="strip"
9585       break
9586     fi
9587   done
9588   IFS="$ac_save_ifs"
9589   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9590 fi
9591 fi
9592 STRIP="$ac_cv_prog_STRIP"
9593 if test -n "$STRIP"; then
9594   echo "$ac_t""$STRIP" 1>&6
9595 else
9596   echo "$ac_t""no" 1>&6
9597 fi
9598
9599
9600 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9601 echo "configure:9602: checking if make is GNU make" >&5
9602 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9603   echo $ac_n "(cached) $ac_c" 1>&6
9604 else
9605   
9606     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9607             egrep -s GNU > /dev/null); then
9608         wx_cv_prog_makeisgnu="yes"
9609     else
9610         wx_cv_prog_makeisgnu="no"
9611     fi
9612
9613 fi
9614
9615 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9616
9617 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9618     IF_GNU_MAKE=""
9619 else
9620     IF_GNU_MAKE="#"
9621 fi
9622
9623
9624
9625 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9626 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9627 echo "configure:9628: checking if make supports VPATH" >&5
9628 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9629   echo $ac_n "(cached) $ac_c" 1>&6
9630 else
9631   
9632 cat - << EOF > confMake
9633 check : file
9634         cp \$? \$@
9635         cp \$? final_file
9636 EOF
9637
9638 if test ! -d sub ; then
9639   mkdir sub
9640 fi
9641 echo dummy > sub/file
9642 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9643 RESULT=$?
9644 rm -f sub/file check final_file confMake
9645 rmdir sub
9646 if test "$RESULT" = 0; then
9647   wx_cv_prog_makevpath="yes"
9648 else
9649   wx_cv_prog_makevpath="no"
9650 fi
9651
9652 fi
9653
9654 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9655
9656 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9657 { echo "configure: error: 
9658 You need a make-utility that is able to use the variable
9659 VPATH correctly.
9660 If your version of make does not support VPATH correctly,
9661 please install GNU-make (possibly as gmake), and start
9662 configure with the following command:
9663 export MAKE=gmake; ./configure  for sh-type shells
9664 setenv MAKE gmake; ./configure  for csh-type shells
9665 Also please do remember to use gmake in this case every time
9666 you are trying to compile.
9667 " 1>&2; exit 1; }
9668 fi fi 
9669 for ac_prog in 'bison -y' byacc
9670 do
9671 # Extract the first word of "$ac_prog", so it can be a program name with args.
9672 set dummy $ac_prog; ac_word=$2
9673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9674 echo "configure:9675: checking for $ac_word" >&5
9675 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9676   echo $ac_n "(cached) $ac_c" 1>&6
9677 else
9678   if test -n "$YACC"; then
9679   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9680 else
9681   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9682   ac_dummy="$PATH"
9683   for ac_dir in $ac_dummy; do
9684     test -z "$ac_dir" && ac_dir=.
9685     if test -f $ac_dir/$ac_word; then
9686       ac_cv_prog_YACC="$ac_prog"
9687       break
9688     fi
9689   done
9690   IFS="$ac_save_ifs"
9691 fi
9692 fi
9693 YACC="$ac_cv_prog_YACC"
9694 if test -n "$YACC"; then
9695   echo "$ac_t""$YACC" 1>&6
9696 else
9697   echo "$ac_t""no" 1>&6
9698 fi
9699
9700 test -n "$YACC" && break
9701 done
9702 test -n "$YACC" || YACC="yacc"
9703
9704
9705 # Extract the first word of "flex", so it can be a program name with args.
9706 set dummy flex; ac_word=$2
9707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9708 echo "configure:9709: checking for $ac_word" >&5
9709 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9710   echo $ac_n "(cached) $ac_c" 1>&6
9711 else
9712   if test -n "$LEX"; then
9713   ac_cv_prog_LEX="$LEX" # Let the user override the test.
9714 else
9715   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9716   ac_dummy="$PATH"
9717   for ac_dir in $ac_dummy; do
9718     test -z "$ac_dir" && ac_dir=.
9719     if test -f $ac_dir/$ac_word; then
9720       ac_cv_prog_LEX="flex"
9721       break
9722     fi
9723   done
9724   IFS="$ac_save_ifs"
9725   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9726 fi
9727 fi
9728 LEX="$ac_cv_prog_LEX"
9729 if test -n "$LEX"; then
9730   echo "$ac_t""$LEX" 1>&6
9731 else
9732   echo "$ac_t""no" 1>&6
9733 fi
9734
9735 if test -z "$LEXLIB"
9736 then
9737   case "$LEX" in
9738   flex*) ac_lib=fl ;;
9739   *) ac_lib=l ;;
9740   esac
9741   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9742 echo "configure:9743: checking for yywrap in -l$ac_lib" >&5
9743 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9745   echo $ac_n "(cached) $ac_c" 1>&6
9746 else
9747   ac_save_LIBS="$LIBS"
9748 LIBS="-l$ac_lib  $LIBS"
9749 cat > conftest.$ac_ext <<EOF
9750 #line 9751 "configure"
9751 #include "confdefs.h"
9752 /* Override any gcc2 internal prototype to avoid an error.  */
9753 /* We use char because int might match the return type of a gcc2
9754     builtin and then its argument prototype would still apply.  */
9755 char yywrap();
9756
9757 int main() {
9758 yywrap()
9759 ; return 0; }
9760 EOF
9761 if { (eval echo configure:9762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9762   rm -rf conftest*
9763   eval "ac_cv_lib_$ac_lib_var=yes"
9764 else
9765   echo "configure: failed program was:" >&5
9766   cat conftest.$ac_ext >&5
9767   rm -rf conftest*
9768   eval "ac_cv_lib_$ac_lib_var=no"
9769 fi
9770 rm -f conftest*
9771 LIBS="$ac_save_LIBS"
9772
9773 fi
9774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9775   echo "$ac_t""yes" 1>&6
9776   LEXLIB="-l$ac_lib"
9777 else
9778   echo "$ac_t""no" 1>&6
9779 fi
9780
9781 fi
9782
9783
9784 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9785 echo "configure:9786: checking whether ln -s works" >&5
9786 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9787   echo $ac_n "(cached) $ac_c" 1>&6
9788 else
9789   rm -f conftestdata
9790 if ln -s X conftestdata 2>/dev/null
9791 then
9792   rm -f conftestdata
9793   ac_cv_prog_LN_S="ln -s"
9794 else
9795   ac_cv_prog_LN_S=ln
9796 fi
9797 fi
9798 LN_S="$ac_cv_prog_LN_S"
9799 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9800   echo "$ac_t""yes" 1>&6
9801 else
9802   echo "$ac_t""no" 1>&6
9803 fi
9804
9805
9806 case "${host}" in
9807   *-pc-os2_emx | *-pc-os2-emx )
9808             LIBS="$LIBS -lstdcpp"
9809       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9810                               echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9811 echo "configure:9812: checking for drand48 in -lcExt" >&5
9812 ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9814   echo $ac_n "(cached) $ac_c" 1>&6
9815 else
9816   ac_save_LIBS="$LIBS"
9817 LIBS="-lcExt  $LIBS"
9818 cat > conftest.$ac_ext <<EOF
9819 #line 9820 "configure"
9820 #include "confdefs.h"
9821 /* Override any gcc2 internal prototype to avoid an error.  */
9822 /* We use char because int might match the return type of a gcc2
9823     builtin and then its argument prototype would still apply.  */
9824 char drand48();
9825
9826 int main() {
9827 drand48()
9828 ; return 0; }
9829 EOF
9830 if { (eval echo configure:9831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9831   rm -rf conftest*
9832   eval "ac_cv_lib_$ac_lib_var=yes"
9833 else
9834   echo "configure: failed program was:" >&5
9835   cat conftest.$ac_ext >&5
9836   rm -rf conftest*
9837   eval "ac_cv_lib_$ac_lib_var=no"
9838 fi
9839 rm -f conftest*
9840 LIBS="$ac_save_LIBS"
9841
9842 fi
9843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9844   echo "$ac_t""yes" 1>&6
9845   LIBS="$LIBS -lcExt"
9846 else
9847   echo "$ac_t""no" 1>&6
9848 fi
9849
9850       else
9851                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9852       fi
9853   ;;
9854 esac
9855
9856
9857 if test "$wxUSE_MAC" != 1; then
9858     for ac_hdr in strings.h
9859 do
9860 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9861 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9862 echo "configure:9863: checking for $ac_hdr" >&5
9863 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9864   echo $ac_n "(cached) $ac_c" 1>&6
9865 else
9866   cat > conftest.$ac_ext <<EOF
9867 #line 9868 "configure"
9868 #include "confdefs.h"
9869 #include <$ac_hdr>
9870 EOF
9871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9872 { (eval echo configure:9873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9874 if test -z "$ac_err"; then
9875   rm -rf conftest*
9876   eval "ac_cv_header_$ac_safe=yes"
9877 else
9878   echo "$ac_err" >&5
9879   echo "configure: failed program was:" >&5
9880   cat conftest.$ac_ext >&5
9881   rm -rf conftest*
9882   eval "ac_cv_header_$ac_safe=no"
9883 fi
9884 rm -f conftest*
9885 fi
9886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9887   echo "$ac_t""yes" 1>&6
9888     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9889   cat >> confdefs.h <<EOF
9890 #define $ac_tr_hdr 1
9891 EOF
9892  
9893 else
9894   echo "$ac_t""no" 1>&6
9895 fi
9896 done
9897
9898 fi
9899
9900 for ac_hdr in stdlib.h
9901 do
9902 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9903 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9904 echo "configure:9905: checking for $ac_hdr" >&5
9905 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9906   echo $ac_n "(cached) $ac_c" 1>&6
9907 else
9908   cat > conftest.$ac_ext <<EOF
9909 #line 9910 "configure"
9910 #include "confdefs.h"
9911 #include <$ac_hdr>
9912 EOF
9913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9914 { (eval echo configure:9915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9916 if test -z "$ac_err"; then
9917   rm -rf conftest*
9918   eval "ac_cv_header_$ac_safe=yes"
9919 else
9920   echo "$ac_err" >&5
9921   echo "configure: failed program was:" >&5
9922   cat conftest.$ac_ext >&5
9923   rm -rf conftest*
9924   eval "ac_cv_header_$ac_safe=no"
9925 fi
9926 rm -f conftest*
9927 fi
9928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9929   echo "$ac_t""yes" 1>&6
9930     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9931   cat >> confdefs.h <<EOF
9932 #define $ac_tr_hdr 1
9933 EOF
9934  
9935 else
9936   echo "$ac_t""no" 1>&6
9937 fi
9938 done
9939
9940 for ac_hdr in malloc.h
9941 do
9942 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9943 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9944 echo "configure:9945: checking for $ac_hdr" >&5
9945 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9946   echo $ac_n "(cached) $ac_c" 1>&6
9947 else
9948   cat > conftest.$ac_ext <<EOF
9949 #line 9950 "configure"
9950 #include "confdefs.h"
9951 #include <$ac_hdr>
9952 EOF
9953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9954 { (eval echo configure:9955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9956 if test -z "$ac_err"; then
9957   rm -rf conftest*
9958   eval "ac_cv_header_$ac_safe=yes"
9959 else
9960   echo "$ac_err" >&5
9961   echo "configure: failed program was:" >&5
9962   cat conftest.$ac_ext >&5
9963   rm -rf conftest*
9964   eval "ac_cv_header_$ac_safe=no"
9965 fi
9966 rm -f conftest*
9967 fi
9968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9969   echo "$ac_t""yes" 1>&6
9970     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9971   cat >> confdefs.h <<EOF
9972 #define $ac_tr_hdr 1
9973 EOF
9974  
9975 else
9976   echo "$ac_t""no" 1>&6
9977 fi
9978 done
9979
9980 for ac_hdr in unistd.h
9981 do
9982 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9983 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9984 echo "configure:9985: checking for $ac_hdr" >&5
9985 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9986   echo $ac_n "(cached) $ac_c" 1>&6
9987 else
9988   cat > conftest.$ac_ext <<EOF
9989 #line 9990 "configure"
9990 #include "confdefs.h"
9991 #include <$ac_hdr>
9992 EOF
9993 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9994 { (eval echo configure:9995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9995 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9996 if test -z "$ac_err"; then
9997   rm -rf conftest*
9998   eval "ac_cv_header_$ac_safe=yes"
9999 else
10000   echo "$ac_err" >&5
10001   echo "configure: failed program was:" >&5
10002   cat conftest.$ac_ext >&5
10003   rm -rf conftest*
10004   eval "ac_cv_header_$ac_safe=no"
10005 fi
10006 rm -f conftest*
10007 fi
10008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10009   echo "$ac_t""yes" 1>&6
10010     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10011   cat >> confdefs.h <<EOF
10012 #define $ac_tr_hdr 1
10013 EOF
10014  
10015 else
10016   echo "$ac_t""no" 1>&6
10017 fi
10018 done
10019
10020 for ac_hdr in wchar.h
10021 do
10022 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10023 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10024 echo "configure:10025: checking for $ac_hdr" >&5
10025 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10026   echo $ac_n "(cached) $ac_c" 1>&6
10027 else
10028   cat > conftest.$ac_ext <<EOF
10029 #line 10030 "configure"
10030 #include "confdefs.h"
10031 #include <$ac_hdr>
10032 EOF
10033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10034 { (eval echo configure:10035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10036 if test -z "$ac_err"; then
10037   rm -rf conftest*
10038   eval "ac_cv_header_$ac_safe=yes"
10039 else
10040   echo "$ac_err" >&5
10041   echo "configure: failed program was:" >&5
10042   cat conftest.$ac_ext >&5
10043   rm -rf conftest*
10044   eval "ac_cv_header_$ac_safe=no"
10045 fi
10046 rm -f conftest*
10047 fi
10048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10049   echo "$ac_t""yes" 1>&6
10050     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10051   cat >> confdefs.h <<EOF
10052 #define $ac_tr_hdr 1
10053 EOF
10054  
10055 else
10056   echo "$ac_t""no" 1>&6
10057 fi
10058 done
10059
10060
10061 if test "$ac_cv_header_wchar_h" != "yes"; then
10062         for ac_hdr in wcstr.h
10063 do
10064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10066 echo "configure:10067: checking for $ac_hdr" >&5
10067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10068   echo $ac_n "(cached) $ac_c" 1>&6
10069 else
10070   cat > conftest.$ac_ext <<EOF
10071 #line 10072 "configure"
10072 #include "confdefs.h"
10073 #include <$ac_hdr>
10074 EOF
10075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10076 { (eval echo configure:10077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10078 if test -z "$ac_err"; then
10079   rm -rf conftest*
10080   eval "ac_cv_header_$ac_safe=yes"
10081 else
10082   echo "$ac_err" >&5
10083   echo "configure: failed program was:" >&5
10084   cat conftest.$ac_ext >&5
10085   rm -rf conftest*
10086   eval "ac_cv_header_$ac_safe=no"
10087 fi
10088 rm -f conftest*
10089 fi
10090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10091   echo "$ac_t""yes" 1>&6
10092     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10093   cat >> confdefs.h <<EOF
10094 #define $ac_tr_hdr 1
10095 EOF
10096  
10097 else
10098   echo "$ac_t""no" 1>&6
10099 fi
10100 done
10101
10102 fi
10103
10104 for ac_hdr in fnmatch.h
10105 do
10106 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10107 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10108 echo "configure:10109: checking for $ac_hdr" >&5
10109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10110   echo $ac_n "(cached) $ac_c" 1>&6
10111 else
10112   cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 #include <$ac_hdr>
10116 EOF
10117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10118 { (eval echo configure:10119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10120 if test -z "$ac_err"; then
10121   rm -rf conftest*
10122   eval "ac_cv_header_$ac_safe=yes"
10123 else
10124   echo "$ac_err" >&5
10125   echo "configure: failed program was:" >&5
10126   cat conftest.$ac_ext >&5
10127   rm -rf conftest*
10128   eval "ac_cv_header_$ac_safe=no"
10129 fi
10130 rm -f conftest*
10131 fi
10132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10133   echo "$ac_t""yes" 1>&6
10134     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10135   cat >> confdefs.h <<EOF
10136 #define $ac_tr_hdr 1
10137 EOF
10138  
10139 else
10140   echo "$ac_t""no" 1>&6
10141 fi
10142 done
10143
10144
10145 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10146     for ac_func in fnmatch
10147 do
10148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10149 echo "configure:10150: checking for $ac_func" >&5
10150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10151   echo $ac_n "(cached) $ac_c" 1>&6
10152 else
10153   cat > conftest.$ac_ext <<EOF
10154 #line 10155 "configure"
10155 #include "confdefs.h"
10156 /* System header to define __stub macros and hopefully few prototypes,
10157     which can conflict with char $ac_func(); below.  */
10158 #include <assert.h>
10159 /* Override any gcc2 internal prototype to avoid an error.  */
10160 /* We use char because int might match the return type of a gcc2
10161     builtin and then its argument prototype would still apply.  */
10162 char $ac_func();
10163
10164 int main() {
10165
10166 /* The GNU C library defines this for functions which it implements
10167     to always fail with ENOSYS.  Some functions are actually named
10168     something starting with __ and the normal name is an alias.  */
10169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10170 choke me
10171 #else
10172 $ac_func();
10173 #endif
10174
10175 ; return 0; }
10176 EOF
10177 if { (eval echo configure:10178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10178   rm -rf conftest*
10179   eval "ac_cv_func_$ac_func=yes"
10180 else
10181   echo "configure: failed program was:" >&5
10182   cat conftest.$ac_ext >&5
10183   rm -rf conftest*
10184   eval "ac_cv_func_$ac_func=no"
10185 fi
10186 rm -f conftest*
10187 fi
10188
10189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10190   echo "$ac_t""yes" 1>&6
10191     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10192   cat >> confdefs.h <<EOF
10193 #define $ac_tr_func 1
10194 EOF
10195  
10196 else
10197   echo "$ac_t""no" 1>&6
10198 fi
10199 done
10200
10201 fi
10202
10203 for ac_hdr in langinfo.h
10204 do
10205 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10206 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10207 echo "configure:10208: checking for $ac_hdr" >&5
10208 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10209   echo $ac_n "(cached) $ac_c" 1>&6
10210 else
10211   cat > conftest.$ac_ext <<EOF
10212 #line 10213 "configure"
10213 #include "confdefs.h"
10214 #include <$ac_hdr>
10215 EOF
10216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10217 { (eval echo configure:10218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10219 if test -z "$ac_err"; then
10220   rm -rf conftest*
10221   eval "ac_cv_header_$ac_safe=yes"
10222 else
10223   echo "$ac_err" >&5
10224   echo "configure: failed program was:" >&5
10225   cat conftest.$ac_ext >&5
10226   rm -rf conftest*
10227   eval "ac_cv_header_$ac_safe=no"
10228 fi
10229 rm -f conftest*
10230 fi
10231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10232   echo "$ac_t""yes" 1>&6
10233     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10234   cat >> confdefs.h <<EOF
10235 #define $ac_tr_hdr 1
10236 EOF
10237  
10238 else
10239   echo "$ac_t""no" 1>&6
10240 fi
10241 done
10242
10243
10244 if test "$wxUSE_GUI" = "yes"; then
10245     if test "$wxUSE_UNIX" = "yes"; then
10246                 for ac_hdr in X11/XKBlib.h
10247 do
10248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10250 echo "configure:10251: checking for $ac_hdr" >&5
10251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10252   echo $ac_n "(cached) $ac_c" 1>&6
10253 else
10254   cat > conftest.$ac_ext <<EOF
10255 #line 10256 "configure"
10256 #include "confdefs.h"
10257 #include <$ac_hdr>
10258 EOF
10259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10260 { (eval echo configure:10261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10262 if test -z "$ac_err"; then
10263   rm -rf conftest*
10264   eval "ac_cv_header_$ac_safe=yes"
10265 else
10266   echo "$ac_err" >&5
10267   echo "configure: failed program was:" >&5
10268   cat conftest.$ac_ext >&5
10269   rm -rf conftest*
10270   eval "ac_cv_header_$ac_safe=no"
10271 fi
10272 rm -f conftest*
10273 fi
10274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10275   echo "$ac_t""yes" 1>&6
10276     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10277   cat >> confdefs.h <<EOF
10278 #define $ac_tr_hdr 1
10279 EOF
10280  
10281 else
10282   echo "$ac_t""no" 1>&6
10283 fi
10284 done
10285
10286     fi
10287 fi
10288
10289
10290 echo $ac_n "checking for working const""... $ac_c" 1>&6
10291 echo "configure:10292: checking for working const" >&5
10292 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10293   echo $ac_n "(cached) $ac_c" 1>&6
10294 else
10295   cat > conftest.$ac_ext <<EOF
10296 #line 10297 "configure"
10297 #include "confdefs.h"
10298
10299 int main() {
10300
10301 /* Ultrix mips cc rejects this.  */
10302 typedef int charset[2]; const charset x;
10303 /* SunOS 4.1.1 cc rejects this.  */
10304 char const *const *ccp;
10305 char **p;
10306 /* NEC SVR4.0.2 mips cc rejects this.  */
10307 struct point {int x, y;};
10308 static struct point const zero = {0,0};
10309 /* AIX XL C 1.02.0.0 rejects this.
10310    It does not let you subtract one const X* pointer from another in an arm
10311    of an if-expression whose if-part is not a constant expression */
10312 const char *g = "string";
10313 ccp = &g + (g ? g-g : 0);
10314 /* HPUX 7.0 cc rejects these. */
10315 ++ccp;
10316 p = (char**) ccp;
10317 ccp = (char const *const *) p;
10318 { /* SCO 3.2v4 cc rejects this.  */
10319   char *t;
10320   char const *s = 0 ? (char *) 0 : (char const *) 0;
10321
10322   *t++ = 0;
10323 }
10324 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10325   int x[] = {25, 17};
10326   const int *foo = &x[0];
10327   ++foo;
10328 }
10329 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10330   typedef const int *iptr;
10331   iptr p = 0;
10332   ++p;
10333 }
10334 { /* AIX XL C 1.02.0.0 rejects this saying
10335      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10336   struct s { int j; const int *ap[3]; };
10337   struct s *b; b->j = 5;
10338 }
10339 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10340   const int foo = 10;
10341 }
10342
10343 ; return 0; }
10344 EOF
10345 if { (eval echo configure:10346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10346   rm -rf conftest*
10347   ac_cv_c_const=yes
10348 else
10349   echo "configure: failed program was:" >&5
10350   cat conftest.$ac_ext >&5
10351   rm -rf conftest*
10352   ac_cv_c_const=no
10353 fi
10354 rm -f conftest*
10355 fi
10356
10357 echo "$ac_t""$ac_cv_c_const" 1>&6
10358 if test $ac_cv_c_const = no; then
10359   cat >> confdefs.h <<\EOF
10360 #define const 
10361 EOF
10362
10363 fi
10364
10365 echo $ac_n "checking for inline""... $ac_c" 1>&6
10366 echo "configure:10367: checking for inline" >&5
10367 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10368   echo $ac_n "(cached) $ac_c" 1>&6
10369 else
10370   ac_cv_c_inline=no
10371 for ac_kw in inline __inline__ __inline; do
10372   cat > conftest.$ac_ext <<EOF
10373 #line 10374 "configure"
10374 #include "confdefs.h"
10375
10376 int main() {
10377 } $ac_kw foo() {
10378 ; return 0; }
10379 EOF
10380 if { (eval echo configure:10381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10381   rm -rf conftest*
10382   ac_cv_c_inline=$ac_kw; break
10383 else
10384   echo "configure: failed program was:" >&5
10385   cat conftest.$ac_ext >&5
10386 fi
10387 rm -f conftest*
10388 done
10389
10390 fi
10391
10392 echo "$ac_t""$ac_cv_c_inline" 1>&6
10393 case "$ac_cv_c_inline" in
10394   inline | yes) ;;
10395   no) cat >> confdefs.h <<\EOF
10396 #define inline 
10397 EOF
10398  ;;
10399   *)  cat >> confdefs.h <<EOF
10400 #define inline $ac_cv_c_inline
10401 EOF
10402  ;;
10403 esac
10404
10405
10406 echo $ac_n "checking size of char""... $ac_c" 1>&6
10407 echo "configure:10408: checking size of char" >&5
10408 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10409   echo $ac_n "(cached) $ac_c" 1>&6
10410 else
10411   if test "$cross_compiling" = yes; then
10412   ac_cv_sizeof_char=1
10413 else
10414   cat > conftest.$ac_ext <<EOF
10415 #line 10416 "configure"
10416 #include "confdefs.h"
10417 #include <stdio.h>
10418 #include <sys/types.h>
10419 main()
10420 {
10421   FILE *f=fopen("conftestval", "w");
10422   if (!f) exit(1);
10423   fprintf(f, "%d\n", sizeof(char));
10424   exit(0);
10425 }
10426 EOF
10427 if { (eval echo configure:10428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10428 then
10429   ac_cv_sizeof_char=`cat conftestval`
10430 else
10431   echo "configure: failed program was:" >&5
10432   cat conftest.$ac_ext >&5
10433   rm -fr conftest*
10434   ac_cv_sizeof_char=0
10435 fi
10436 rm -fr conftest*
10437 fi
10438
10439 fi
10440 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10441 cat >> confdefs.h <<EOF
10442 #define SIZEOF_CHAR $ac_cv_sizeof_char
10443 EOF
10444
10445
10446 echo $ac_n "checking size of short""... $ac_c" 1>&6
10447 echo "configure:10448: checking size of short" >&5
10448 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10449   echo $ac_n "(cached) $ac_c" 1>&6
10450 else
10451   if test "$cross_compiling" = yes; then
10452   ac_cv_sizeof_short=2
10453 else
10454   cat > conftest.$ac_ext <<EOF
10455 #line 10456 "configure"
10456 #include "confdefs.h"
10457 #include <stdio.h>
10458 #include <sys/types.h>
10459 main()
10460 {
10461   FILE *f=fopen("conftestval", "w");
10462   if (!f) exit(1);
10463   fprintf(f, "%d\n", sizeof(short));
10464   exit(0);
10465 }
10466 EOF
10467 if { (eval echo configure:10468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10468 then
10469   ac_cv_sizeof_short=`cat conftestval`
10470 else
10471   echo "configure: failed program was:" >&5
10472   cat conftest.$ac_ext >&5
10473   rm -fr conftest*
10474   ac_cv_sizeof_short=0
10475 fi
10476 rm -fr conftest*
10477 fi
10478
10479 fi
10480 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10481 cat >> confdefs.h <<EOF
10482 #define SIZEOF_SHORT $ac_cv_sizeof_short
10483 EOF
10484
10485
10486 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10487 echo "configure:10488: checking size of void *" >&5
10488 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10489   echo $ac_n "(cached) $ac_c" 1>&6
10490 else
10491   if test "$cross_compiling" = yes; then
10492   ac_cv_sizeof_void_p=4
10493 else
10494   cat > conftest.$ac_ext <<EOF
10495 #line 10496 "configure"
10496 #include "confdefs.h"
10497 #include <stdio.h>
10498 #include <sys/types.h>
10499 main()
10500 {
10501   FILE *f=fopen("conftestval", "w");
10502   if (!f) exit(1);
10503   fprintf(f, "%d\n", sizeof(void *));
10504   exit(0);
10505 }
10506 EOF
10507 if { (eval echo configure:10508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10508 then
10509   ac_cv_sizeof_void_p=`cat conftestval`
10510 else
10511   echo "configure: failed program was:" >&5
10512   cat conftest.$ac_ext >&5
10513   rm -fr conftest*
10514   ac_cv_sizeof_void_p=0
10515 fi
10516 rm -fr conftest*
10517 fi
10518
10519 fi
10520 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10521 cat >> confdefs.h <<EOF
10522 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10523 EOF
10524
10525
10526 echo $ac_n "checking size of int""... $ac_c" 1>&6
10527 echo "configure:10528: checking size of int" >&5
10528 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10529   echo $ac_n "(cached) $ac_c" 1>&6
10530 else
10531   if test "$cross_compiling" = yes; then
10532   ac_cv_sizeof_int=4
10533 else
10534   cat > conftest.$ac_ext <<EOF
10535 #line 10536 "configure"
10536 #include "confdefs.h"
10537 #include <stdio.h>
10538 #include <sys/types.h>
10539 main()
10540 {
10541   FILE *f=fopen("conftestval", "w");
10542   if (!f) exit(1);
10543   fprintf(f, "%d\n", sizeof(int));
10544   exit(0);
10545 }
10546 EOF
10547 if { (eval echo configure:10548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10548 then
10549   ac_cv_sizeof_int=`cat conftestval`
10550 else
10551   echo "configure: failed program was:" >&5
10552   cat conftest.$ac_ext >&5
10553   rm -fr conftest*
10554   ac_cv_sizeof_int=0
10555 fi
10556 rm -fr conftest*
10557 fi
10558
10559 fi
10560 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10561 cat >> confdefs.h <<EOF
10562 #define SIZEOF_INT $ac_cv_sizeof_int
10563 EOF
10564
10565
10566 echo $ac_n "checking size of long""... $ac_c" 1>&6
10567 echo "configure:10568: checking size of long" >&5
10568 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10569   echo $ac_n "(cached) $ac_c" 1>&6
10570 else
10571   if test "$cross_compiling" = yes; then
10572   ac_cv_sizeof_long=4
10573 else
10574   cat > conftest.$ac_ext <<EOF
10575 #line 10576 "configure"
10576 #include "confdefs.h"
10577 #include <stdio.h>
10578 #include <sys/types.h>
10579 main()
10580 {
10581   FILE *f=fopen("conftestval", "w");
10582   if (!f) exit(1);
10583   fprintf(f, "%d\n", sizeof(long));
10584   exit(0);
10585 }
10586 EOF
10587 if { (eval echo configure:10588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10588 then
10589   ac_cv_sizeof_long=`cat conftestval`
10590 else
10591   echo "configure: failed program was:" >&5
10592   cat conftest.$ac_ext >&5
10593   rm -fr conftest*
10594   ac_cv_sizeof_long=0
10595 fi
10596 rm -fr conftest*
10597 fi
10598
10599 fi
10600 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10601 cat >> confdefs.h <<EOF
10602 #define SIZEOF_LONG $ac_cv_sizeof_long
10603 EOF
10604
10605
10606
10607 case "${host}" in
10608     arm-*-linux* )
10609         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10610 echo "configure:10611: checking size of long long" >&5
10611 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10612   echo $ac_n "(cached) $ac_c" 1>&6
10613 else
10614   if test "$cross_compiling" = yes; then
10615   ac_cv_sizeof_long_long=8
10616 else
10617   cat > conftest.$ac_ext <<EOF
10618 #line 10619 "configure"
10619 #include "confdefs.h"
10620 #include <stdio.h>
10621 #include <sys/types.h>
10622 main()
10623 {
10624   FILE *f=fopen("conftestval", "w");
10625   if (!f) exit(1);
10626   fprintf(f, "%d\n", sizeof(long long));
10627   exit(0);
10628 }
10629 EOF
10630 if { (eval echo configure:10631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10631 then
10632   ac_cv_sizeof_long_long=`cat conftestval`
10633 else
10634   echo "configure: failed program was:" >&5
10635   cat conftest.$ac_ext >&5
10636   rm -fr conftest*
10637   ac_cv_sizeof_long_long=0
10638 fi
10639 rm -fr conftest*
10640 fi
10641
10642 fi
10643 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10644 cat >> confdefs.h <<EOF
10645 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10646 EOF
10647
10648
10649     ;;
10650     *-hp-hpux* )
10651         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10652 echo "configure:10653: checking size of long long" >&5
10653 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10654   echo $ac_n "(cached) $ac_c" 1>&6
10655 else
10656   if test "$cross_compiling" = yes; then
10657   ac_cv_sizeof_long_long=0
10658 else
10659   cat > conftest.$ac_ext <<EOF
10660 #line 10661 "configure"
10661 #include "confdefs.h"
10662 #include <stdio.h>
10663 #include <sys/types.h>
10664 main()
10665 {
10666   FILE *f=fopen("conftestval", "w");
10667   if (!f) exit(1);
10668   fprintf(f, "%d\n", sizeof(long long));
10669   exit(0);
10670 }
10671 EOF
10672 if { (eval echo configure:10673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10673 then
10674   ac_cv_sizeof_long_long=`cat conftestval`
10675 else
10676   echo "configure: failed program was:" >&5
10677   cat conftest.$ac_ext >&5
10678   rm -fr conftest*
10679   ac_cv_sizeof_long_long=0
10680 fi
10681 rm -fr conftest*
10682 fi
10683
10684 fi
10685 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10686 cat >> confdefs.h <<EOF
10687 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10688 EOF
10689
10690
10691         if test "$ac_cv_sizeof_long_long" != "0"; then
10692                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10693         fi
10694     ;;
10695     * )
10696         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10697 echo "configure:10698: checking size of long long" >&5
10698 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10699   echo $ac_n "(cached) $ac_c" 1>&6
10700 else
10701   if test "$cross_compiling" = yes; then
10702   ac_cv_sizeof_long_long=0
10703 else
10704   cat > conftest.$ac_ext <<EOF
10705 #line 10706 "configure"
10706 #include "confdefs.h"
10707 #include <stdio.h>
10708 #include <sys/types.h>
10709 main()
10710 {
10711   FILE *f=fopen("conftestval", "w");
10712   if (!f) exit(1);
10713   fprintf(f, "%d\n", sizeof(long long));
10714   exit(0);
10715 }
10716 EOF
10717 if { (eval echo configure:10718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10718 then
10719   ac_cv_sizeof_long_long=`cat conftestval`
10720 else
10721   echo "configure: failed program was:" >&5
10722   cat conftest.$ac_ext >&5
10723   rm -fr conftest*
10724   ac_cv_sizeof_long_long=0
10725 fi
10726 rm -fr conftest*
10727 fi
10728
10729 fi
10730 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10731 cat >> confdefs.h <<EOF
10732 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10733 EOF
10734
10735
10736 esac
10737
10738 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10739 echo "configure:10740: checking size of wchar_t" >&5
10740 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10741   echo $ac_n "(cached) $ac_c" 1>&6
10742 else
10743   
10744     if test "$cross_compiling" = yes; then
10745   
10746             case "${host}" in
10747               *-pc-msdosdjgpp )
10748                 wx_cv_sizeof_wchar_t=0
10749                 ;;
10750               * )
10751                 wx_cv_sizeof_wchar_t=4
10752                 ;;
10753             esac
10754         
10755     
10756 else
10757   cat > conftest.$ac_ext <<EOF
10758 #line 10759 "configure"
10759 #include "confdefs.h"
10760
10761             /* DJGPP only has fake wchar_t: */
10762             #ifdef __DJGPP__
10763             #  error "fake wchar_t"
10764             #endif
10765             #ifdef HAVE_WCHAR_H
10766             #  ifdef __CYGWIN__
10767             #    include <stddef.h>
10768             #  endif
10769             #  include <wchar.h>
10770             #endif
10771             #ifdef HAVE_STDLIB_H
10772             #  include <stdlib.h>
10773             #endif
10774             #include <stdio.h>
10775             int main()
10776             {
10777                 FILE *f=fopen("conftestval", "w");
10778                 if (!f) exit(1);
10779                 fprintf(f, "%i", sizeof(wchar_t));
10780                 exit(0);
10781             }
10782         
10783 EOF
10784 if { (eval echo configure:10785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10785 then
10786   wx_cv_sizeof_wchar_t=`cat conftestval`
10787 else
10788   echo "configure: failed program was:" >&5
10789   cat conftest.$ac_ext >&5
10790   rm -fr conftest*
10791   wx_cv_sizeof_wchar_t=0
10792 fi
10793 rm -fr conftest*
10794 fi
10795
10796
10797 fi
10798
10799 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10800
10801 cat >> confdefs.h <<EOF
10802 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10803 EOF
10804
10805
10806 # Check whether --enable-largefile or --disable-largefile was given.
10807 if test "${enable_largefile+set}" = set; then
10808   enableval="$enable_largefile"
10809   :
10810 fi
10811
10812 if test "$enable_largefile" != no; then
10813             wx_largefile=no
10814     
10815     echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10816 echo "configure:10817: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10817 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10818   echo $ac_n "(cached) $ac_c" 1>&6
10819 else
10820   
10821           cat > conftest.$ac_ext <<EOF
10822 #line 10823 "configure"
10823 #include "confdefs.h"
10824 #define _FILE_OFFSET_BITS 64
10825                           #include <sys/types.h>
10826 int main() {
10827 typedef struct {
10828     unsigned int field: sizeof(off_t) == 8;
10829 } wxlf;
10830
10831 ; return 0; }
10832 EOF
10833 if { (eval echo configure:10834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10834   rm -rf conftest*
10835   ac_cv_sys_file_offset_bits=64
10836 else
10837   echo "configure: failed program was:" >&5
10838   cat conftest.$ac_ext >&5
10839   rm -rf conftest*
10840   ac_cv_sys_file_offset_bits=no
10841 fi
10842 rm -f conftest*
10843         
10844     
10845 fi
10846
10847 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10848
10849     if test "$ac_cv_sys_file_offset_bits" != no; then
10850         wx_largefile=yes
10851         cat >> confdefs.h <<EOF
10852 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10853 EOF
10854
10855     fi
10856
10857     if test "x$wx_largefile" != "xyes"; then
10858         
10859     echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10860 echo "configure:10861: checking for _LARGE_FILES value needed for large files" >&5
10861 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10862   echo $ac_n "(cached) $ac_c" 1>&6
10863 else
10864   
10865           cat > conftest.$ac_ext <<EOF
10866 #line 10867 "configure"
10867 #include "confdefs.h"
10868 #define _LARGE_FILES 1
10869                           #include <sys/types.h>
10870 int main() {
10871 typedef struct {
10872     unsigned int field: sizeof(off_t) == 8;
10873 } wxlf;
10874
10875 ; return 0; }
10876 EOF
10877 if { (eval echo configure:10878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10878   rm -rf conftest*
10879   ac_cv_sys_large_files=1
10880 else
10881   echo "configure: failed program was:" >&5
10882   cat conftest.$ac_ext >&5
10883   rm -rf conftest*
10884   ac_cv_sys_large_files=no
10885 fi
10886 rm -f conftest*
10887         
10888     
10889 fi
10890
10891 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10892
10893     if test "$ac_cv_sys_large_files" != no; then
10894         wx_largefile=yes
10895         cat >> confdefs.h <<EOF
10896 #define _LARGE_FILES $ac_cv_sys_large_files
10897 EOF
10898
10899     fi
10900
10901     fi
10902
10903     echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10904 echo "configure:10905: checking if large file support is available" >&5
10905     if test "x$wx_largefile" = "xyes"; then
10906         cat >> confdefs.h <<\EOF
10907 #define HAVE_LARGEFILE_SUPPORT 1
10908 EOF
10909
10910     fi
10911     echo "$ac_t""$wx_largefile" 1>&6
10912 fi
10913
10914
10915 if test "x$wx_largefile" = "xyes"; then
10916     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10917         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10918     else
10919         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10920     fi
10921     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10922 fi
10923
10924 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10925 echo "configure:10926: checking whether byte ordering is bigendian" >&5
10926 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10927   echo $ac_n "(cached) $ac_c" 1>&6
10928 else
10929   ac_cv_c_bigendian=unknown
10930 # See if sys/param.h defines the BYTE_ORDER macro.
10931 cat > conftest.$ac_ext <<EOF
10932 #line 10933 "configure"
10933 #include "confdefs.h"
10934 #include <sys/types.h>
10935 #include <sys/param.h>
10936 int main() {
10937
10938 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10939  bogus endian macros
10940 #endif
10941 ; return 0; }
10942 EOF
10943 if { (eval echo configure:10944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10944   rm -rf conftest*
10945   # It does; now see whether it defined to BIG_ENDIAN or not.
10946 cat > conftest.$ac_ext <<EOF
10947 #line 10948 "configure"
10948 #include "confdefs.h"
10949 #include <sys/types.h>
10950 #include <sys/param.h>
10951 int main() {
10952
10953 #if BYTE_ORDER != BIG_ENDIAN
10954  not big endian
10955 #endif
10956 ; return 0; }
10957 EOF
10958 if { (eval echo configure:10959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10959   rm -rf conftest*
10960   ac_cv_c_bigendian=yes
10961 else
10962   echo "configure: failed program was:" >&5
10963   cat conftest.$ac_ext >&5
10964   rm -rf conftest*
10965   ac_cv_c_bigendian=no
10966 fi
10967 rm -f conftest*
10968 else
10969   echo "configure: failed program was:" >&5
10970   cat conftest.$ac_ext >&5
10971 fi
10972 rm -f conftest*
10973 if test $ac_cv_c_bigendian = unknown; then
10974 if test "$cross_compiling" = yes; then
10975   ac_cv_c_bigendian=unknown
10976 else
10977   cat > conftest.$ac_ext <<EOF
10978 #line 10979 "configure"
10979 #include "confdefs.h"
10980 main () {
10981   /* Are we little or big endian?  From Harbison&Steele.  */
10982   union
10983   {
10984     long l;
10985     char c[sizeof (long)];
10986   } u;
10987   u.l = 1;
10988   exit (u.c[sizeof (long) - 1] == 1);
10989 }
10990 EOF
10991 if { (eval echo configure:10992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10992 then
10993   ac_cv_c_bigendian=no
10994 else
10995   echo "configure: failed program was:" >&5
10996   cat conftest.$ac_ext >&5
10997   rm -fr conftest*
10998   ac_cv_c_bigendian=yes
10999 fi
11000 rm -fr conftest*
11001 fi
11002
11003 fi
11004 fi
11005
11006 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11007 if test $ac_cv_c_bigendian = unknown; then
11008   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
11009 fi
11010 if test $ac_cv_c_bigendian = yes; then
11011   cat >> confdefs.h <<\EOF
11012 #define WORDS_BIGENDIAN 1
11013 EOF
11014
11015 fi
11016
11017
11018 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
11019 echo "configure:11020: checking how to run the C++ preprocessor" >&5
11020 if test -z "$CXXCPP"; then
11021 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11022   echo $ac_n "(cached) $ac_c" 1>&6
11023 else
11024   ac_ext=C
11025 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11026 ac_cpp='$CXXCPP $CPPFLAGS'
11027 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11028 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11029 cross_compiling=$ac_cv_prog_cxx_cross
11030   CXXCPP="${CXX-g++} -E"
11031   cat > conftest.$ac_ext <<EOF
11032 #line 11033 "configure"
11033 #include "confdefs.h"
11034 #include <stdlib.h>
11035 EOF
11036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11037 { (eval echo configure:11038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11039 if test -z "$ac_err"; then
11040   :
11041 else
11042   echo "$ac_err" >&5
11043   echo "configure: failed program was:" >&5
11044   cat conftest.$ac_ext >&5
11045   rm -rf conftest*
11046   CXXCPP=/lib/cpp
11047 fi
11048 rm -f conftest*
11049   ac_cv_prog_CXXCPP="$CXXCPP"
11050 ac_ext=C
11051 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11052 ac_cpp='$CXXCPP $CPPFLAGS'
11053 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11054 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11055 cross_compiling=$ac_cv_prog_cxx_cross
11056 fi
11057 fi
11058 CXXCPP="$ac_cv_prog_CXXCPP"
11059 echo "$ac_t""$CXXCPP" 1>&6
11060
11061
11062   if test "$cross_compiling" = "yes"; then
11063     cat >> confdefs.h <<\EOF
11064 #define wxUSE_IOSTREAMH 1
11065 EOF
11066
11067   else
11068     
11069     ac_ext=C
11070 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11071 ac_cpp='$CXXCPP $CPPFLAGS'
11072 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11073 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11074 cross_compiling=$ac_cv_prog_cxx_cross
11075
11076
11077     for ac_hdr in iostream
11078 do
11079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11081 echo "configure:11082: checking for $ac_hdr" >&5
11082 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11083   echo $ac_n "(cached) $ac_c" 1>&6
11084 else
11085   cat > conftest.$ac_ext <<EOF
11086 #line 11087 "configure"
11087 #include "confdefs.h"
11088 #include <$ac_hdr>
11089 EOF
11090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11091 { (eval echo configure:11092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11093 if test -z "$ac_err"; then
11094   rm -rf conftest*
11095   eval "ac_cv_header_$ac_safe=yes"
11096 else
11097   echo "$ac_err" >&5
11098   echo "configure: failed program was:" >&5
11099   cat conftest.$ac_ext >&5
11100   rm -rf conftest*
11101   eval "ac_cv_header_$ac_safe=no"
11102 fi
11103 rm -f conftest*
11104 fi
11105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11106   echo "$ac_t""yes" 1>&6
11107     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11108   cat >> confdefs.h <<EOF
11109 #define $ac_tr_hdr 1
11110 EOF
11111  
11112 else
11113   echo "$ac_t""no" 1>&6
11114 fi
11115 done
11116
11117
11118     if test "$ac_cv_header_iostream" = "yes" ; then
11119       :
11120     else
11121       cat >> confdefs.h <<\EOF
11122 #define wxUSE_IOSTREAMH 1
11123 EOF
11124
11125     fi
11126
11127     ac_ext=c
11128 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11129 ac_cpp='$CPP $CPPFLAGS'
11130 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11131 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11132 cross_compiling=$ac_cv_prog_cc_cross
11133
11134   fi
11135
11136
11137
11138   echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11139 echo "configure:11140: checking if C++ compiler supports bool" >&5
11140 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11141   echo $ac_n "(cached) $ac_c" 1>&6
11142 else
11143   
11144     
11145     ac_ext=C
11146 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11147 ac_cpp='$CXXCPP $CPPFLAGS'
11148 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11149 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11150 cross_compiling=$ac_cv_prog_cxx_cross
11151
11152
11153     cat > conftest.$ac_ext <<EOF
11154 #line 11155 "configure"
11155 #include "confdefs.h"
11156
11157       
11158 int main() {
11159
11160         bool b = true;
11161
11162         return 0;
11163       
11164 ; return 0; }
11165 EOF
11166 if { (eval echo configure:11167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11167   rm -rf conftest*
11168   
11169         wx_cv_cpp_bool=yes
11170       
11171 else
11172   echo "configure: failed program was:" >&5
11173   cat conftest.$ac_ext >&5
11174   rm -rf conftest*
11175   
11176         wx_cv_cpp_bool=no
11177       
11178     
11179 fi
11180 rm -f conftest*
11181
11182     ac_ext=c
11183 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11184 ac_cpp='$CPP $CPPFLAGS'
11185 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11186 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11187 cross_compiling=$ac_cv_prog_cc_cross
11188
11189   
11190 fi
11191
11192 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11193
11194   if test "$wx_cv_cpp_bool" = "yes"; then
11195     cat >> confdefs.h <<\EOF
11196 #define HAVE_BOOL 1
11197 EOF
11198
11199   fi
11200
11201
11202
11203   echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11204 echo "configure:11205: checking if C++ compiler supports the explicit keyword" >&5
11205 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11206   echo $ac_n "(cached) $ac_c" 1>&6
11207 else
11208   
11209     
11210     ac_ext=C
11211 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11212 ac_cpp='$CXXCPP $CPPFLAGS'
11213 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11214 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11215 cross_compiling=$ac_cv_prog_cxx_cross
11216
11217
11218             cat > conftest.$ac_ext <<EOF
11219 #line 11220 "configure"
11220 #include "confdefs.h"
11221
11222         class Foo { public: explicit Foo(int) {} };
11223       
11224 int main() {
11225
11226         return 0;
11227       
11228 ; return 0; }
11229 EOF
11230 if { (eval echo configure:11231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11231   rm -rf conftest*
11232   
11233         cat > conftest.$ac_ext <<EOF
11234 #line 11235 "configure"
11235 #include "confdefs.h"
11236
11237                 class Foo { public: explicit Foo(int) {} };
11238                 static void TakeFoo(const Foo& foo) { }
11239             
11240 int main() {
11241
11242                 TakeFoo(17);
11243                 return 0;
11244             
11245 ; return 0; }
11246 EOF
11247 if { (eval echo configure:11248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11248   rm -rf conftest*
11249   wx_cv_explicit=no
11250 else
11251   echo "configure: failed program was:" >&5
11252   cat conftest.$ac_ext >&5
11253   rm -rf conftest*
11254   wx_cv_explicit=yes
11255         
11256 fi
11257 rm -f conftest*
11258       
11259 else
11260   echo "configure: failed program was:" >&5
11261   cat conftest.$ac_ext >&5
11262   rm -rf conftest*
11263   wx_cv_explicit=no
11264     
11265 fi
11266 rm -f conftest*
11267
11268     ac_ext=c
11269 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11270 ac_cpp='$CPP $CPPFLAGS'
11271 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11272 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11273 cross_compiling=$ac_cv_prog_cc_cross
11274
11275   
11276 fi
11277
11278 echo "$ac_t""$wx_cv_explicit" 1>&6
11279
11280   if test "$wx_cv_explicit" = "yes"; then
11281     cat >> confdefs.h <<\EOF
11282 #define HAVE_EXPLICIT 1
11283 EOF
11284
11285   fi
11286
11287
11288
11289 SEARCH_INCLUDE="\
11290     /usr/local/include        \
11291                               \
11292     /usr/Motif-1.2/include    \
11293     /usr/Motif-2.1/include    \
11294                               \
11295     /usr/include/Motif1.2     \
11296     /opt/xpm/include/X11      \
11297     /opt/GBxpm/include/       \
11298     /opt/GBxpm/X11/include/   \
11299                               \
11300     /usr/Motif1.2/include     \
11301     /usr/dt/include           \
11302     /usr/openwin/include      \
11303                               \
11304     /usr/include/Xm           \
11305                               \
11306     /usr/X11R6/include        \
11307     /usr/X11R6.4/include      \
11308     /usr/X11R5/include        \
11309     /usr/X11R4/include        \
11310                               \
11311     /usr/include/X11R6        \
11312     /usr/include/X11R5        \
11313     /usr/include/X11R4        \
11314                               \
11315     /usr/local/X11R6/include  \
11316     /usr/local/X11R5/include  \
11317     /usr/local/X11R4/include  \
11318                               \
11319     /usr/local/include/X11R6  \
11320     /usr/local/include/X11R5  \
11321     /usr/local/include/X11R4  \
11322                               \
11323     /usr/X11/include          \
11324     /usr/include/X11          \
11325     /usr/local/X11/include    \
11326     /usr/local/include/X11    \
11327                               \
11328     /usr/X386/include         \
11329     /usr/x386/include         \
11330     /usr/XFree86/include/X11  \
11331                               \
11332     X:/XFree86/include        \
11333     X:/XFree86/include/X11    \
11334                               \
11335     /usr/include/gtk          \
11336     /usr/local/include/gtk    \
11337     /usr/include/glib         \
11338     /usr/local/include/glib   \
11339                               \
11340     /usr/include/qt           \
11341     /usr/local/include/qt     \
11342                               \
11343     /usr/include/windows      \
11344     /usr/include/wine         \
11345     /usr/local/include/wine   \
11346                               \
11347     /usr/unsupported/include  \
11348     /usr/athena/include       \
11349     /usr/local/x11r5/include  \
11350     /usr/lpp/Xamples/include  \
11351                               \
11352     /usr/openwin/share/include"
11353
11354 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11355
11356
11357 cat > confcache <<\EOF
11358 # This file is a shell script that caches the results of configure
11359 # tests run on this system so they can be shared between configure
11360 # scripts and configure runs.  It is not useful on other systems.
11361 # If it contains results you don't want to keep, you may remove or edit it.
11362 #
11363 # By default, configure uses ./config.cache as the cache file,
11364 # creating it if it does not exist already.  You can give configure
11365 # the --cache-file=FILE option to use a different cache file; that is
11366 # what configure does when it calls configure scripts in
11367 # subdirectories, so they share the cache.
11368 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11369 # config.status only pays attention to the cache file if you give it the
11370 # --recheck option to rerun configure.
11371 #
11372 EOF
11373 # The following way of writing the cache mishandles newlines in values,
11374 # but we know of no workaround that is simple, portable, and efficient.
11375 # So, don't put newlines in cache variables' values.
11376 # Ultrix sh set writes to stderr and can't be redirected directly,
11377 # and sets the high bit in the cache file unless we assign to the vars.
11378 (set) 2>&1 |
11379   case `(ac_space=' '; set | grep ac_space) 2>&1` in
11380   *ac_space=\ *)
11381     # `set' does not quote correctly, so add quotes (double-quote substitution
11382     # turns \\\\ into \\, and sed turns \\ into \).
11383     sed -n \
11384       -e "s/'/'\\\\''/g" \
11385       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11386     ;;
11387   *)
11388     # `set' quotes correctly as required by POSIX, so do not add quotes.
11389     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11390     ;;
11391   esac >> confcache
11392 if cmp -s $cache_file confcache; then
11393   :
11394 else
11395   if test -w $cache_file; then
11396     echo "updating cache $cache_file"
11397     cat confcache > $cache_file
11398   else
11399     echo "not updating unwritable cache $cache_file"
11400   fi
11401 fi
11402 rm -f confcache
11403
11404
11405 if test "$USE_LINUX" = 1; then
11406     echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11407 echo "configure:11408: checking for glibc 2.1 or later" >&5
11408 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11409   echo $ac_n "(cached) $ac_c" 1>&6
11410 else
11411   
11412         cat > conftest.$ac_ext <<EOF
11413 #line 11414 "configure"
11414 #include "confdefs.h"
11415 #include <features.h>
11416 int main() {
11417
11418                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11419                     #error not glibc2.1
11420                 #endif
11421             
11422 ; return 0; }
11423 EOF
11424 if { (eval echo configure:11425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11425   rm -rf conftest*
11426   
11427                 wx_cv_lib_glibc21=yes
11428             
11429 else
11430   echo "configure: failed program was:" >&5
11431   cat conftest.$ac_ext >&5
11432   rm -rf conftest*
11433   
11434                 wx_cv_lib_glibc21=no
11435             
11436         
11437 fi
11438 rm -f conftest*
11439     
11440 fi
11441
11442 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11443     if test "$wx_cv_lib_glibc21" = "yes"; then
11444         cat >> confdefs.h <<\EOF
11445 #define wxHAVE_GLIBC2 1
11446 EOF
11447
11448     fi
11449 fi
11450
11451 if test "x$wx_cv_lib_glibc21" = "xyes"; then
11452     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11453         cat >> confdefs.h <<\EOF
11454 #define _GNU_SOURCE 1
11455 EOF
11456
11457     fi
11458 fi
11459
11460
11461
11462 REGEX_INCLUDE=
11463 if test "$wxUSE_REGEX" != "no"; then
11464     cat >> confdefs.h <<\EOF
11465 #define wxUSE_REGEX 1
11466 EOF
11467
11468
11469     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11470                         ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11471 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11472 echo "configure:11473: checking for regex.h" >&5
11473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11474   echo $ac_n "(cached) $ac_c" 1>&6
11475 else
11476   cat > conftest.$ac_ext <<EOF
11477 #line 11478 "configure"
11478 #include "confdefs.h"
11479 #include <regex.h>
11480 EOF
11481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11482 { (eval echo configure:11483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11484 if test -z "$ac_err"; then
11485   rm -rf conftest*
11486   eval "ac_cv_header_$ac_safe=yes"
11487 else
11488   echo "$ac_err" >&5
11489   echo "configure: failed program was:" >&5
11490   cat conftest.$ac_ext >&5
11491   rm -rf conftest*
11492   eval "ac_cv_header_$ac_safe=no"
11493 fi
11494 rm -f conftest*
11495 fi
11496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11497   echo "$ac_t""yes" 1>&6
11498   for ac_func in regcomp
11499 do
11500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11501 echo "configure:11502: checking for $ac_func" >&5
11502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11503   echo $ac_n "(cached) $ac_c" 1>&6
11504 else
11505   cat > conftest.$ac_ext <<EOF
11506 #line 11507 "configure"
11507 #include "confdefs.h"
11508 /* System header to define __stub macros and hopefully few prototypes,
11509     which can conflict with char $ac_func(); below.  */
11510 #include <assert.h>
11511 /* Override any gcc2 internal prototype to avoid an error.  */
11512 /* We use char because int might match the return type of a gcc2
11513     builtin and then its argument prototype would still apply.  */
11514 char $ac_func();
11515
11516 int main() {
11517
11518 /* The GNU C library defines this for functions which it implements
11519     to always fail with ENOSYS.  Some functions are actually named
11520     something starting with __ and the normal name is an alias.  */
11521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11522 choke me
11523 #else
11524 $ac_func();
11525 #endif
11526
11527 ; return 0; }
11528 EOF
11529 if { (eval echo configure:11530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11530   rm -rf conftest*
11531   eval "ac_cv_func_$ac_func=yes"
11532 else
11533   echo "configure: failed program was:" >&5
11534   cat conftest.$ac_ext >&5
11535   rm -rf conftest*
11536   eval "ac_cv_func_$ac_func=no"
11537 fi
11538 rm -f conftest*
11539 fi
11540
11541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11542   echo "$ac_t""yes" 1>&6
11543     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11544   cat >> confdefs.h <<EOF
11545 #define $ac_tr_func 1
11546 EOF
11547  
11548 else
11549   echo "$ac_t""no" 1>&6
11550 fi
11551 done
11552
11553 else
11554   echo "$ac_t""no" 1>&6
11555 fi
11556
11557
11558         if test "x$ac_cv_func_regcomp" != "xyes"; then
11559             if test "$wxUSE_REGEX" = "sys" ; then
11560                 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11561             else
11562                 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11563                 wxUSE_REGEX=builtin
11564             fi
11565         else
11566                         wxUSE_REGEX=sys
11567         fi
11568     fi
11569
11570     if test "$wxUSE_REGEX" = "builtin" ; then
11571         REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11572     fi
11573 fi
11574
11575
11576 ZLIB_INCLUDE=
11577 ZLIB_LINK=
11578 if test "$wxUSE_ZLIB" != "no" ; then
11579     cat >> confdefs.h <<\EOF
11580 #define wxUSE_ZLIB 1
11581 EOF
11582
11583
11584     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11585                                                 if test "$USE_DARWIN" = 1; then
11586             system_zlib_h_ok="yes"
11587         else
11588                                                                                     echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11589 echo "configure:11590: checking for zlib.h >= 1.1.4" >&5
11590 if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11591   echo $ac_n "(cached) $ac_c" 1>&6
11592 else
11593   if test "$cross_compiling" = yes; then
11594                       unset ac_cv_header_zlib_h
11595                 
11596 else
11597   cat > conftest.$ac_ext <<EOF
11598 #line 11599 "configure"
11599 #include "confdefs.h"
11600
11601                                                 #include <zlib.h>
11602                         #include <stdio.h>
11603
11604                                                 
11605                         int main()
11606                         {
11607                             FILE *f=fopen("conftestval", "w");
11608                             if (!f) exit(1);
11609                             fprintf(f, "%s",
11610                                     ZLIB_VERSION[0] == '1' &&
11611                                     (ZLIB_VERSION[2] > '1' ||
11612                                     (ZLIB_VERSION[2] == '1' &&
11613                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11614                             exit(0);
11615                         }
11616                         
11617                     
11618 EOF
11619 if { (eval echo configure:11620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11620 then
11621   ac_cv_header_zlib_h=`cat conftestval`
11622 else
11623   echo "configure: failed program was:" >&5
11624   cat conftest.$ac_ext >&5
11625   rm -fr conftest*
11626   ac_cv_header_zlib_h=no
11627 fi
11628 rm -fr conftest*
11629 fi
11630
11631             
11632 fi
11633
11634 echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11635                                     ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11636 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11637 echo "configure:11638: checking for zlib.h" >&5
11638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11639   echo $ac_n "(cached) $ac_c" 1>&6
11640 else
11641   cat > conftest.$ac_ext <<EOF
11642 #line 11643 "configure"
11643 #include "confdefs.h"
11644 #include <zlib.h>
11645 EOF
11646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11647 { (eval echo configure:11648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11649 if test -z "$ac_err"; then
11650   rm -rf conftest*
11651   eval "ac_cv_header_$ac_safe=yes"
11652 else
11653   echo "$ac_err" >&5
11654   echo "configure: failed program was:" >&5
11655   cat conftest.$ac_ext >&5
11656   rm -rf conftest*
11657   eval "ac_cv_header_$ac_safe=no"
11658 fi
11659 rm -f conftest*
11660 fi
11661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11662   echo "$ac_t""yes" 1>&6
11663   :
11664 else
11665   echo "$ac_t""no" 1>&6
11666 fi
11667
11668
11669             system_zlib_h_ok=$ac_cv_header_zlib_h
11670         fi
11671
11672         if test "$system_zlib_h_ok" = "yes"; then
11673             echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11674 echo "configure:11675: checking for deflate in -lz" >&5
11675 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11677   echo $ac_n "(cached) $ac_c" 1>&6
11678 else
11679   ac_save_LIBS="$LIBS"
11680 LIBS="-lz  $LIBS"
11681 cat > conftest.$ac_ext <<EOF
11682 #line 11683 "configure"
11683 #include "confdefs.h"
11684 /* Override any gcc2 internal prototype to avoid an error.  */
11685 /* We use char because int might match the return type of a gcc2
11686     builtin and then its argument prototype would still apply.  */
11687 char deflate();
11688
11689 int main() {
11690 deflate()
11691 ; return 0; }
11692 EOF
11693 if { (eval echo configure:11694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11694   rm -rf conftest*
11695   eval "ac_cv_lib_$ac_lib_var=yes"
11696 else
11697   echo "configure: failed program was:" >&5
11698   cat conftest.$ac_ext >&5
11699   rm -rf conftest*
11700   eval "ac_cv_lib_$ac_lib_var=no"
11701 fi
11702 rm -f conftest*
11703 LIBS="$ac_save_LIBS"
11704
11705 fi
11706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11707   echo "$ac_t""yes" 1>&6
11708   ZLIB_LINK=" -lz"
11709 else
11710   echo "$ac_t""no" 1>&6
11711 fi
11712
11713         fi
11714
11715         if test "x$ZLIB_LINK" = "x" ; then
11716             if test "$wxUSE_ZLIB" = "sys" ; then
11717                 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11718             else
11719                 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11720                 wxUSE_ZLIB=builtin
11721             fi
11722         else
11723                         wxUSE_ZLIB=sys
11724         fi
11725     fi
11726
11727     if test "$wxUSE_ZLIB" = "builtin" ; then
11728         ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11729     fi
11730 fi
11731
11732
11733 PNG_INCLUDE=
11734 PNG_LINK=
11735 if test "$wxUSE_LIBPNG" != "no" ; then
11736     cat >> confdefs.h <<\EOF
11737 #define wxUSE_LIBPNG 1
11738 EOF
11739
11740
11741     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11742         echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11743         wxUSE_LIBPNG=sys
11744     fi
11745
11746                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11747         echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11748         wxUSE_LIBPNG=builtin
11749     fi
11750
11751     if test "$wxUSE_MGL" != 1 ; then
11752                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11753                                     echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11754 echo "configure:11755: checking for png.h > 0.90" >&5
11755 if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11756   echo $ac_n "(cached) $ac_c" 1>&6
11757 else
11758   if test "$cross_compiling" = yes; then
11759                       unset ac_cv_header_png_h
11760                 
11761 else
11762   cat > conftest.$ac_ext <<EOF
11763 #line 11764 "configure"
11764 #include "confdefs.h"
11765
11766                                                 #include <png.h>
11767                         #include <stdio.h>
11768
11769                         int main()
11770                         {
11771                             FILE *f=fopen("conftestval", "w");
11772                             if (!f) exit(1);
11773                             fprintf(f, "%s",
11774                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
11775                             exit(0);
11776                         }
11777                     
11778 EOF
11779 if { (eval echo configure:11780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11780 then
11781   ac_cv_header_png_h=`cat conftestval`
11782 else
11783   echo "configure: failed program was:" >&5
11784   cat conftest.$ac_ext >&5
11785   rm -fr conftest*
11786   ac_cv_header_png_h=no
11787 fi
11788 rm -fr conftest*
11789 fi
11790
11791             
11792 fi
11793
11794 echo "$ac_t""$ac_cv_header_png_h" 1>&6
11795             ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11796 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11797 echo "configure:11798: checking for png.h" >&5
11798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11799   echo $ac_n "(cached) $ac_c" 1>&6
11800 else
11801   cat > conftest.$ac_ext <<EOF
11802 #line 11803 "configure"
11803 #include "confdefs.h"
11804 #include <png.h>
11805 EOF
11806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11807 { (eval echo configure:11808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11809 if test -z "$ac_err"; then
11810   rm -rf conftest*
11811   eval "ac_cv_header_$ac_safe=yes"
11812 else
11813   echo "$ac_err" >&5
11814   echo "configure: failed program was:" >&5
11815   cat conftest.$ac_ext >&5
11816   rm -rf conftest*
11817   eval "ac_cv_header_$ac_safe=no"
11818 fi
11819 rm -f conftest*
11820 fi
11821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11822   echo "$ac_t""yes" 1>&6
11823   :
11824 else
11825   echo "$ac_t""no" 1>&6
11826 fi
11827
11828
11829             if test "$ac_cv_header_png_h" = "yes"; then
11830                 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11831 echo "configure:11832: checking for png_check_sig in -lpng" >&5
11832 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11834   echo $ac_n "(cached) $ac_c" 1>&6
11835 else
11836   ac_save_LIBS="$LIBS"
11837 LIBS="-lpng -lz -lm $LIBS"
11838 cat > conftest.$ac_ext <<EOF
11839 #line 11840 "configure"
11840 #include "confdefs.h"
11841 /* Override any gcc2 internal prototype to avoid an error.  */
11842 /* We use char because int might match the return type of a gcc2
11843     builtin and then its argument prototype would still apply.  */
11844 char png_check_sig();
11845
11846 int main() {
11847 png_check_sig()
11848 ; return 0; }
11849 EOF
11850 if { (eval echo configure:11851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11851   rm -rf conftest*
11852   eval "ac_cv_lib_$ac_lib_var=yes"
11853 else
11854   echo "configure: failed program was:" >&5
11855   cat conftest.$ac_ext >&5
11856   rm -rf conftest*
11857   eval "ac_cv_lib_$ac_lib_var=no"
11858 fi
11859 rm -f conftest*
11860 LIBS="$ac_save_LIBS"
11861
11862 fi
11863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11864   echo "$ac_t""yes" 1>&6
11865   PNG_LINK=" -lpng"
11866 else
11867   echo "$ac_t""no" 1>&6
11868 fi
11869
11870             fi
11871
11872             if test "x$PNG_LINK" = "x" ; then
11873                 if test "$wxUSE_LIBPNG" = "sys" ; then
11874                     { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11875                 else
11876                     echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
11877                     wxUSE_LIBPNG=builtin
11878                 fi
11879             else
11880                                 wxUSE_LIBPNG=sys
11881             fi
11882         fi
11883     fi
11884
11885     if test "$wxUSE_LIBPNG" = "builtin" ; then
11886         PNG_INCLUDE="-I\${top_srcdir}/src/png"
11887     fi
11888
11889     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11890 fi
11891
11892
11893 JPEG_INCLUDE=
11894 JPEG_LINK=
11895 if test "$wxUSE_LIBJPEG" != "no" ; then
11896     cat >> confdefs.h <<\EOF
11897 #define wxUSE_LIBJPEG 1
11898 EOF
11899
11900
11901     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11902         echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11903         wxUSE_LIBJPEG=sys
11904     fi
11905
11906     if test "$wxUSE_MGL" != 1 ; then
11907                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11908                                                 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11909 echo "configure:11910: checking for jpeglib.h" >&5
11910             if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11911   echo $ac_n "(cached) $ac_c" 1>&6
11912 else
11913   cat > conftest.$ac_ext <<EOF
11914 #line 11915 "configure"
11915 #include "confdefs.h"
11916
11917                         #undef HAVE_STDLIB_H
11918                         #include <stdio.h>
11919                         #include <jpeglib.h>
11920                     
11921 int main() {
11922
11923                     
11924 ; return 0; }
11925 EOF
11926 if { (eval echo configure:11927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11927   rm -rf conftest*
11928   ac_cv_header_jpeglib_h=yes
11929 else
11930   echo "configure: failed program was:" >&5
11931   cat conftest.$ac_ext >&5
11932   rm -rf conftest*
11933   ac_cv_header_jpeglib_h=no
11934                 
11935 fi
11936 rm -f conftest*
11937             
11938 fi
11939
11940             echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11941
11942             if test "$ac_cv_header_jpeglib_h" = "yes"; then
11943                 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11944 echo "configure:11945: checking for jpeg_read_header in -ljpeg" >&5
11945 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11947   echo $ac_n "(cached) $ac_c" 1>&6
11948 else
11949   ac_save_LIBS="$LIBS"
11950 LIBS="-ljpeg  $LIBS"
11951 cat > conftest.$ac_ext <<EOF
11952 #line 11953 "configure"
11953 #include "confdefs.h"
11954 /* Override any gcc2 internal prototype to avoid an error.  */
11955 /* We use char because int might match the return type of a gcc2
11956     builtin and then its argument prototype would still apply.  */
11957 char jpeg_read_header();
11958
11959 int main() {
11960 jpeg_read_header()
11961 ; return 0; }
11962 EOF
11963 if { (eval echo configure:11964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11964   rm -rf conftest*
11965   eval "ac_cv_lib_$ac_lib_var=yes"
11966 else
11967   echo "configure: failed program was:" >&5
11968   cat conftest.$ac_ext >&5
11969   rm -rf conftest*
11970   eval "ac_cv_lib_$ac_lib_var=no"
11971 fi
11972 rm -f conftest*
11973 LIBS="$ac_save_LIBS"
11974
11975 fi
11976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11977   echo "$ac_t""yes" 1>&6
11978   JPEG_LINK=" -ljpeg"
11979 else
11980   echo "$ac_t""no" 1>&6
11981 fi
11982
11983             fi
11984
11985             if test "x$JPEG_LINK" = "x" ; then
11986                 if test "$wxUSE_LIBJPEG" = "sys" ; then
11987                     { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11988                 else
11989                     echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11990                     wxUSE_LIBJPEG=builtin
11991                 fi
11992             else
11993                                 wxUSE_LIBJPEG=sys
11994             fi
11995         fi
11996     fi
11997
11998     if test "$wxUSE_LIBJPEG" = "builtin" ; then
11999         JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12000     fi
12001 fi
12002
12003
12004 TIFF_INCLUDE=
12005 TIFF_LINK=
12006 TIFF_PREREQ_LINKS=-lm
12007 if test "$wxUSE_LIBTIFF" != "no" ; then
12008     cat >> confdefs.h <<\EOF
12009 #define wxUSE_LIBTIFF 1
12010 EOF
12011
12012
12013     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
12014                         if test "$wxUSE_LIBJPEG" = "sys"; then
12015             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12016         fi
12017         if test "$wxUSE_ZLIB" = "sys"; then
12018             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12019         fi
12020         ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12021 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12022 echo "configure:12023: checking for tiffio.h" >&5
12023 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12024   echo $ac_n "(cached) $ac_c" 1>&6
12025 else
12026   cat > conftest.$ac_ext <<EOF
12027 #line 12028 "configure"
12028 #include "confdefs.h"
12029 #include <tiffio.h>
12030 EOF
12031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12032 { (eval echo configure:12033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12034 if test -z "$ac_err"; then
12035   rm -rf conftest*
12036   eval "ac_cv_header_$ac_safe=yes"
12037 else
12038   echo "$ac_err" >&5
12039   echo "configure: failed program was:" >&5
12040   cat conftest.$ac_ext >&5
12041   rm -rf conftest*
12042   eval "ac_cv_header_$ac_safe=no"
12043 fi
12044 rm -f conftest*
12045 fi
12046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12047   echo "$ac_t""yes" 1>&6
12048   echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12049 echo "configure:12050: checking for TIFFError in -ltiff" >&5
12050 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12052   echo $ac_n "(cached) $ac_c" 1>&6
12053 else
12054   ac_save_LIBS="$LIBS"
12055 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12056 cat > conftest.$ac_ext <<EOF
12057 #line 12058 "configure"
12058 #include "confdefs.h"
12059 /* Override any gcc2 internal prototype to avoid an error.  */
12060 /* We use char because int might match the return type of a gcc2
12061     builtin and then its argument prototype would still apply.  */
12062 char TIFFError();
12063
12064 int main() {
12065 TIFFError()
12066 ; return 0; }
12067 EOF
12068 if { (eval echo configure:12069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12069   rm -rf conftest*
12070   eval "ac_cv_lib_$ac_lib_var=yes"
12071 else
12072   echo "configure: failed program was:" >&5
12073   cat conftest.$ac_ext >&5
12074   rm -rf conftest*
12075   eval "ac_cv_lib_$ac_lib_var=no"
12076 fi
12077 rm -f conftest*
12078 LIBS="$ac_save_LIBS"
12079
12080 fi
12081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12082   echo "$ac_t""yes" 1>&6
12083   TIFF_LINK=" -ltiff"
12084 else
12085   echo "$ac_t""no" 1>&6
12086 fi
12087
12088                        
12089 else
12090   echo "$ac_t""no" 1>&6
12091 fi
12092
12093
12094         if test "x$TIFF_LINK" = "x" ; then
12095             if test "$wxUSE_LIBTIFF" = "sys" ; then
12096                 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12097             else
12098                 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12099                 wxUSE_LIBTIFF=builtin
12100             fi
12101         else
12102                         wxUSE_LIBTIFF=sys
12103         fi
12104     fi
12105
12106     if test "$wxUSE_LIBTIFF" = "builtin" ; then
12107         TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12108     fi
12109 fi
12110
12111
12112 AFMINSTALL=
12113 WIN32INSTALL=
12114
12115 TOOLKIT=
12116 TOOLKIT_INCLUDE=
12117 WIDGET_SET=
12118
12119 if test "$USE_WIN32" = 1 ; then
12120     for ac_hdr in w32api.h
12121 do
12122 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12123 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12124 echo "configure:12125: checking for $ac_hdr" >&5
12125 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12126   echo $ac_n "(cached) $ac_c" 1>&6
12127 else
12128   cat > conftest.$ac_ext <<EOF
12129 #line 12130 "configure"
12130 #include "confdefs.h"
12131 #include <$ac_hdr>
12132 EOF
12133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12134 { (eval echo configure:12135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12136 if test -z "$ac_err"; then
12137   rm -rf conftest*
12138   eval "ac_cv_header_$ac_safe=yes"
12139 else
12140   echo "$ac_err" >&5
12141   echo "configure: failed program was:" >&5
12142   cat conftest.$ac_ext >&5
12143   rm -rf conftest*
12144   eval "ac_cv_header_$ac_safe=no"
12145 fi
12146 rm -f conftest*
12147 fi
12148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12149   echo "$ac_t""yes" 1>&6
12150     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12151   cat >> confdefs.h <<EOF
12152 #define $ac_tr_hdr 1
12153 EOF
12154  
12155 else
12156   echo "$ac_t""no" 1>&6
12157 fi
12158 done
12159
12160     ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12161 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12162 echo "configure:12163: checking for windows.h" >&5
12163 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12164   echo $ac_n "(cached) $ac_c" 1>&6
12165 else
12166   cat > conftest.$ac_ext <<EOF
12167 #line 12168 "configure"
12168 #include "confdefs.h"
12169 #include <windows.h>
12170 EOF
12171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12172 { (eval echo configure:12173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12174 if test -z "$ac_err"; then
12175   rm -rf conftest*
12176   eval "ac_cv_header_$ac_safe=yes"
12177 else
12178   echo "$ac_err" >&5
12179   echo "configure: failed program was:" >&5
12180   cat conftest.$ac_ext >&5
12181   rm -rf conftest*
12182   eval "ac_cv_header_$ac_safe=no"
12183 fi
12184 rm -f conftest*
12185 fi
12186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12187   echo "$ac_t""yes" 1>&6
12188   :
12189 else
12190   echo "$ac_t""no" 1>&6
12191
12192         { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12193     
12194 fi
12195
12196
12197         echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12198 echo "configure:12199: checking if w32api has good enough MSIE support" >&5
12199 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12200   echo $ac_n "(cached) $ac_c" 1>&6
12201 else
12202   
12203       cat > conftest.$ac_ext <<EOF
12204 #line 12205 "configure"
12205 #include "confdefs.h"
12206 #include <w32api.h>
12207 int main() {
12208
12209                        #define wxCHECK_W32API_VERSION( major, minor ) \
12210                        ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12211                        && ( ( __W32API_MAJOR_VERSION > (major) ) \
12212                        || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12213
12214                        #if !wxCHECK_W32API_VERSION(1,1)
12215                        #error You need w32api 1.1 or newer
12216                        #endif
12217                      
12218 ; return 0; }
12219 EOF
12220 if { (eval echo configure:12221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12221   rm -rf conftest*
12222   
12223                         wx_cv_w32api_win32_ie=yes
12224                      
12225 else
12226   echo "configure: failed program was:" >&5
12227   cat conftest.$ac_ext >&5
12228   rm -rf conftest*
12229   
12230                         wx_cv_w32api_win32_ie=no
12231                      
12232 fi
12233 rm -f conftest*
12234     
12235 fi
12236
12237 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12238     if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12239         CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12240     fi
12241
12242             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12243
12244     case "${host}" in
12245         *-*-cygwin* )
12246                         LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12247             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12248     esac
12249
12250         if test "$wxUSE_ODBC" = "yes" ; then
12251         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12252     fi
12253
12254     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12255     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12256
12257         WIN32INSTALL=win32install
12258 fi
12259
12260 if test "$USE_DARWIN" = 1; then
12261             if test "$wxUSE_PRECOMP" = "yes"; then
12262         CPPFLAGS="$CPPFLAGS -cpp-precomp"
12263     else
12264         CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12265     fi
12266 fi
12267
12268 if test "$wxUSE_GUI" = "yes"; then
12269     USE_GUI=1
12270
12271     GUI_TK_LIBRARY=
12272
12273     WXGTK12=
12274     WXGTK127=
12275     WXGTK20=
12276
12277     if test "$wxUSE_MSW" = 1 ; then
12278         TOOLKIT=MSW
12279         GUIDIST=MSW_DIST
12280
12281                         LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12282     fi
12283
12284     if test "$wxUSE_GTK" = 1; then
12285         echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12286 echo "configure:12287: checking for GTK+ version" >&5
12287
12288         gtk_version_cached=1
12289         if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12290   echo $ac_n "(cached) $ac_c" 1>&6
12291 else
12292   
12293                                                 gtk_version_cached=0
12294                 echo "$ac_t""" 1>&6
12295
12296                                                 GTK_MODULES=
12297                 if test "$wxUSE_THREADS" = "yes"; then
12298                     GTK_MODULES=gthread
12299                 fi
12300
12301                                                 wx_cv_lib_gtk=
12302                 if test "x$wxUSE_GTK2" = "xyes"; then
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   pkg_config_args=gtk+-2.0
12313   for module in . $GTK_MODULES
12314   do
12315       case "$module" in
12316          gthread) 
12317              pkg_config_args="$pkg_config_args gthread-2.0"
12318          ;;
12319       esac
12320   done
12321
12322   no_gtk=""
12323
12324   # Extract the first word of "pkg-config", so it can be a program name with args.
12325 set dummy pkg-config; ac_word=$2
12326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12327 echo "configure:12328: checking for $ac_word" >&5
12328 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12329   echo $ac_n "(cached) $ac_c" 1>&6
12330 else
12331   case "$PKG_CONFIG" in
12332   /*)
12333   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12334   ;;
12335   ?:/*)                  
12336   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12337   ;;
12338   *)
12339   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12340   ac_dummy="$PATH"
12341   for ac_dir in $ac_dummy; do 
12342     test -z "$ac_dir" && ac_dir=.
12343     if test -f $ac_dir/$ac_word; then
12344       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12345       break
12346     fi
12347   done
12348   IFS="$ac_save_ifs"
12349   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12350   ;;
12351 esac
12352 fi
12353 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12354 if test -n "$PKG_CONFIG"; then
12355   echo "$ac_t""$PKG_CONFIG" 1>&6
12356 else
12357   echo "$ac_t""no" 1>&6
12358 fi
12359
12360
12361   if test x$PKG_CONFIG != xno ; then
12362     if pkg-config --atleast-pkgconfig-version 0.7 ; then
12363       :
12364     else
12365       echo *** pkg-config too old; version 0.7 or better required.
12366       no_gtk=yes
12367       PKG_CONFIG=no
12368     fi
12369   else
12370     no_gtk=yes
12371   fi
12372
12373   min_gtk_version=2.0.0
12374   echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12375 echo "configure:12376: checking for GTK+ - version >= $min_gtk_version" >&5
12376
12377   if test x$PKG_CONFIG != xno ; then
12378     ## don't try to run the test against uninstalled libtool libs
12379     if $PKG_CONFIG --uninstalled $pkg_config_args; then
12380           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12381           enable_gtktest=no
12382     fi
12383
12384     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12385           :
12386     else
12387           no_gtk=yes
12388     fi
12389   fi
12390
12391   if test x"$no_gtk" = x ; then
12392     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12393     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12394     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12395            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12396     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12397            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12398     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12399            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12400     if test "x$enable_gtktest" = "xyes" ; then
12401       ac_save_CFLAGS="$CFLAGS"
12402       ac_save_LIBS="$LIBS"
12403       CFLAGS="$CFLAGS $GTK_CFLAGS"
12404       LIBS="$GTK_LIBS $LIBS"
12405       rm -f conf.gtktest
12406       if test "$cross_compiling" = yes; then
12407   echo $ac_n "cross compiling; assumed OK... $ac_c"
12408 else
12409   cat > conftest.$ac_ext <<EOF
12410 #line 12411 "configure"
12411 #include "confdefs.h"
12412
12413 #include <gtk/gtk.h>
12414 #include <stdio.h>
12415 #include <stdlib.h>
12416
12417 int 
12418 main ()
12419 {
12420   int major, minor, micro;
12421   char *tmp_version;
12422
12423   system ("touch conf.gtktest");
12424
12425   /* HP/UX 9 (%@#!) writes to sscanf strings */
12426   tmp_version = g_strdup("$min_gtk_version");
12427   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12428      printf("%s, bad version string\n", "$min_gtk_version");
12429      exit(1);
12430    }
12431
12432   if ((gtk_major_version != $gtk_config_major_version) ||
12433       (gtk_minor_version != $gtk_config_minor_version) ||
12434       (gtk_micro_version != $gtk_config_micro_version))
12435     {
12436       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12437              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12438              gtk_major_version, gtk_minor_version, gtk_micro_version);
12439       printf ("*** was found! If pkg-config was correct, then it is best\n");
12440       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12441       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12442       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12443       printf("*** required on your system.\n");
12444       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12445       printf("*** to point to the correct configuration files\n");
12446     } 
12447   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12448            (gtk_minor_version != GTK_MINOR_VERSION) ||
12449            (gtk_micro_version != GTK_MICRO_VERSION))
12450     {
12451       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12452              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12453       printf("*** library (version %d.%d.%d)\n",
12454              gtk_major_version, gtk_minor_version, gtk_micro_version);
12455     }
12456   else
12457     {
12458       if ((gtk_major_version > major) ||
12459         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12460         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12461       {
12462         return 0;
12463        }
12464      else
12465       {
12466         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12467                gtk_major_version, gtk_minor_version, gtk_micro_version);
12468         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12469                major, minor, micro);
12470         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12471         printf("***\n");
12472         printf("*** If you have already installed a sufficiently new version, this error\n");
12473         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12474         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12475         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12476         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12477         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12478         printf("*** so that the correct libraries are found at run-time))\n");
12479       }
12480     }
12481   return 1;
12482 }
12483
12484 EOF
12485 if { (eval echo configure:12486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12486 then
12487   :
12488 else
12489   echo "configure: failed program was:" >&5
12490   cat conftest.$ac_ext >&5
12491   rm -fr conftest*
12492   no_gtk=yes
12493 fi
12494 rm -fr conftest*
12495 fi
12496
12497        CFLAGS="$ac_save_CFLAGS"
12498        LIBS="$ac_save_LIBS"
12499      fi
12500   fi
12501   if test "x$no_gtk" = x ; then
12502      echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12503      wx_cv_lib_gtk=2.0     
12504   else
12505      echo "$ac_t""no" 1>&6
12506      if test "$PKG_CONFIG" = "no" ; then
12507        echo "*** A new enough version of pkg-config was not found."
12508        echo "*** See http://pkgconfig.sourceforge.net"
12509      else
12510        if test -f conf.gtktest ; then
12511         :
12512        else
12513           echo "*** Could not run GTK+ test program, checking why..."
12514           ac_save_CFLAGS="$CFLAGS"
12515           ac_save_LIBS="$LIBS"
12516           CFLAGS="$CFLAGS $GTK_CFLAGS"
12517           LIBS="$LIBS $GTK_LIBS"
12518           cat > conftest.$ac_ext <<EOF
12519 #line 12520 "configure"
12520 #include "confdefs.h"
12521
12522 #include <gtk/gtk.h>
12523 #include <stdio.h>
12524
12525 int main() {
12526  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12527 ; return 0; }
12528 EOF
12529 if { (eval echo configure:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12530   rm -rf conftest*
12531    echo "*** The test program compiled, but did not run. This usually means"
12532           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12533           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12534           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12535           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12536           echo "*** is required on your system"
12537           echo "***"
12538           echo "*** If you have an old version installed, it is best to remove it, although"
12539           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 
12540 else
12541   echo "configure: failed program was:" >&5
12542   cat conftest.$ac_ext >&5
12543   rm -rf conftest*
12544    echo "*** The test program failed to compile or link. See the file config.log for the"
12545           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12546 fi
12547 rm -f conftest*
12548           CFLAGS="$ac_save_CFLAGS"
12549           LIBS="$ac_save_LIBS"
12550        fi
12551      fi
12552      GTK_CFLAGS=""
12553      GTK_LIBS=""
12554      :
12555   fi
12556   
12557   
12558   rm -f conf.gtktest
12559
12560                 else
12561                     # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12562 if test "${with_gtk_prefix+set}" = set; then
12563   withval="$with_gtk_prefix"
12564   gtk_config_prefix="$withval"
12565 else
12566   gtk_config_prefix=""
12567 fi
12568
12569 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12570 if test "${with_gtk_exec_prefix+set}" = set; then
12571   withval="$with_gtk_exec_prefix"
12572   gtk_config_exec_prefix="$withval"
12573 else
12574   gtk_config_exec_prefix=""
12575 fi
12576
12577 # Check whether --enable-gtktest or --disable-gtktest was given.
12578 if test "${enable_gtktest+set}" = set; then
12579   enableval="$enable_gtktest"
12580   :
12581 else
12582   enable_gtktest=yes
12583 fi
12584
12585
12586   for module in . $GTK_MODULES
12587   do
12588       case "$module" in
12589          gthread) 
12590              gtk_config_args="$gtk_config_args gthread"
12591          ;;
12592       esac
12593   done
12594
12595   if test x$gtk_config_exec_prefix != x ; then
12596      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12597      if test x${GTK_CONFIG+set} != xset ; then
12598         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12599      fi
12600   fi
12601   if test x$gtk_config_prefix != x ; then
12602      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12603      if test x${GTK_CONFIG+set} != xset ; then
12604         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12605      fi
12606   fi
12607
12608   # Extract the first word of "gtk-config", so it can be a program name with args.
12609 set dummy gtk-config; ac_word=$2
12610 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12611 echo "configure:12612: checking for $ac_word" >&5
12612 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12613   echo $ac_n "(cached) $ac_c" 1>&6
12614 else
12615   case "$GTK_CONFIG" in
12616   /*)
12617   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12618   ;;
12619   ?:/*)                  
12620   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12621   ;;
12622   *)
12623   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12624   ac_dummy="$PATH"
12625   for ac_dir in $ac_dummy; do 
12626     test -z "$ac_dir" && ac_dir=.
12627     if test -f $ac_dir/$ac_word; then
12628       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12629       break
12630     fi
12631   done
12632   IFS="$ac_save_ifs"
12633   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12634   ;;
12635 esac
12636 fi
12637 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12638 if test -n "$GTK_CONFIG"; then
12639   echo "$ac_t""$GTK_CONFIG" 1>&6
12640 else
12641   echo "$ac_t""no" 1>&6
12642 fi
12643
12644   min_gtk_version=1.2.7
12645   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12646 echo "configure:12647: checking for GTK - version >= $min_gtk_version" >&5
12647   no_gtk=""
12648   if test "$GTK_CONFIG" = "no" ; then
12649     no_gtk=yes
12650   else
12651     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12652     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12653     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12654            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12655     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12656            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12657     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12658            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12659     if test "x$enable_gtktest" = "xyes" ; then
12660       ac_save_CFLAGS="$CFLAGS"
12661       ac_save_LIBS="$LIBS"
12662       CFLAGS="$CFLAGS $GTK_CFLAGS"
12663       LIBS="$GTK_LIBS $LIBS"
12664       rm -f conf.gtktest
12665       if test "$cross_compiling" = yes; then
12666   echo $ac_n "cross compiling; assumed OK... $ac_c"
12667 else
12668   cat > conftest.$ac_ext <<EOF
12669 #line 12670 "configure"
12670 #include "confdefs.h"
12671
12672 #include <gtk/gtk.h>
12673 #include <stdio.h>
12674 #include <stdlib.h>
12675
12676 int 
12677 main ()
12678 {
12679   int major, minor, micro;
12680   char *tmp_version;
12681
12682   system ("touch conf.gtktest");
12683
12684   /* HP/UX 9 (%@#!) writes to sscanf strings */
12685   tmp_version = g_strdup("$min_gtk_version");
12686   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12687      printf("%s, bad version string\n", "$min_gtk_version");
12688      exit(1);
12689    }
12690
12691   if ((gtk_major_version != $gtk_config_major_version) ||
12692       (gtk_minor_version != $gtk_config_minor_version) ||
12693       (gtk_micro_version != $gtk_config_micro_version))
12694     {
12695       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12696              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12697              gtk_major_version, gtk_minor_version, gtk_micro_version);
12698       printf ("*** was found! If gtk-config was correct, then it is best\n");
12699       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12700       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12701       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12702       printf("*** required on your system.\n");
12703       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12704       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12705       printf("*** before re-running configure\n");
12706     } 
12707 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12708   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12709            (gtk_minor_version != GTK_MINOR_VERSION) ||
12710            (gtk_micro_version != GTK_MICRO_VERSION))
12711     {
12712       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12713              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12714       printf("*** library (version %d.%d.%d)\n",
12715              gtk_major_version, gtk_minor_version, gtk_micro_version);
12716     }
12717 #endif /* defined (GTK_MAJOR_VERSION) ... */
12718   else
12719     {
12720       if ((gtk_major_version > major) ||
12721         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12722         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12723       {
12724         return 0;
12725        }
12726      else
12727       {
12728         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12729                gtk_major_version, gtk_minor_version, gtk_micro_version);
12730         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12731                major, minor, micro);
12732         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12733         printf("***\n");
12734         printf("*** If you have already installed a sufficiently new version, this error\n");
12735         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12736         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12737         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12738         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12739         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12740         printf("*** so that the correct libraries are found at run-time))\n");
12741       }
12742     }
12743   return 1;
12744 }
12745
12746 EOF
12747 if { (eval echo configure:12748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12748 then
12749   :
12750 else
12751   echo "configure: failed program was:" >&5
12752   cat conftest.$ac_ext >&5
12753   rm -fr conftest*
12754   no_gtk=yes
12755 fi
12756 rm -fr conftest*
12757 fi
12758
12759        CFLAGS="$ac_save_CFLAGS"
12760        LIBS="$ac_save_LIBS"
12761      fi
12762   fi
12763   if test "x$no_gtk" = x ; then
12764      echo "$ac_t""yes" 1>&6
12765      wx_cv_lib_gtk=1.2.7     
12766   else
12767      echo "$ac_t""no" 1>&6
12768      if test "$GTK_CONFIG" = "no" ; then
12769        echo "*** The gtk-config script installed by GTK could not be found"
12770        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12771        echo "*** your path, or set the GTK_CONFIG environment variable to the"
12772        echo "*** full path to gtk-config."
12773      else
12774        if test -f conf.gtktest ; then
12775         :
12776        else
12777           echo "*** Could not run GTK test program, checking why..."
12778           CFLAGS="$CFLAGS $GTK_CFLAGS"
12779           LIBS="$LIBS $GTK_LIBS"
12780           cat > conftest.$ac_ext <<EOF
12781 #line 12782 "configure"
12782 #include "confdefs.h"
12783
12784 #include <gtk/gtk.h>
12785 #include <stdio.h>
12786
12787 int main() {
12788  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12789 ; return 0; }
12790 EOF
12791 if { (eval echo configure:12792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12792   rm -rf conftest*
12793    echo "*** The test program compiled, but did not run. This usually means"
12794           echo "*** that the run-time linker is not finding GTK or finding the wrong"
12795           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12796           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12797           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12798           echo "*** is required on your system"
12799           echo "***"
12800           echo "*** If you have an old version installed, it is best to remove it, although"
12801           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12802           echo "***"
12803           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12804           echo "*** came with the system with the command"
12805           echo "***"
12806           echo "***    rpm --erase --nodeps gtk gtk-devel" 
12807 else
12808   echo "configure: failed program was:" >&5
12809   cat conftest.$ac_ext >&5
12810   rm -rf conftest*
12811    echo "*** The test program failed to compile or link. See the file config.log for the"
12812           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12813           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12814           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
12815 fi
12816 rm -f conftest*
12817           CFLAGS="$ac_save_CFLAGS"
12818           LIBS="$ac_save_LIBS"
12819        fi
12820      fi
12821      GTK_CFLAGS=""
12822      GTK_LIBS=""
12823      :
12824   fi
12825   
12826   
12827   rm -f conf.gtktest
12828
12829
12830                     if test -z "$wx_cv_lib_gtk"; then
12831                         # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12832 if test "${with_gtk_prefix+set}" = set; then
12833   withval="$with_gtk_prefix"
12834   gtk_config_prefix="$withval"
12835 else
12836   gtk_config_prefix=""
12837 fi
12838
12839 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12840 if test "${with_gtk_exec_prefix+set}" = set; then
12841   withval="$with_gtk_exec_prefix"
12842   gtk_config_exec_prefix="$withval"
12843 else
12844   gtk_config_exec_prefix=""
12845 fi
12846
12847 # Check whether --enable-gtktest or --disable-gtktest was given.
12848 if test "${enable_gtktest+set}" = set; then
12849   enableval="$enable_gtktest"
12850   :
12851 else
12852   enable_gtktest=yes
12853 fi
12854
12855
12856   for module in . $GTK_MODULES
12857   do
12858       case "$module" in
12859          gthread) 
12860              gtk_config_args="$gtk_config_args gthread"
12861          ;;
12862       esac
12863   done
12864
12865   if test x$gtk_config_exec_prefix != x ; then
12866      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12867      if test x${GTK_CONFIG+set} != xset ; then
12868         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12869      fi
12870   fi
12871   if test x$gtk_config_prefix != x ; then
12872      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12873      if test x${GTK_CONFIG+set} != xset ; then
12874         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12875      fi
12876   fi
12877
12878   # Extract the first word of "gtk-config", so it can be a program name with args.
12879 set dummy gtk-config; ac_word=$2
12880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12881 echo "configure:12882: checking for $ac_word" >&5
12882 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12883   echo $ac_n "(cached) $ac_c" 1>&6
12884 else
12885   case "$GTK_CONFIG" in
12886   /*)
12887   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12888   ;;
12889   ?:/*)                  
12890   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12891   ;;
12892   *)
12893   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12894   ac_dummy="$PATH"
12895   for ac_dir in $ac_dummy; do 
12896     test -z "$ac_dir" && ac_dir=.
12897     if test -f $ac_dir/$ac_word; then
12898       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12899       break
12900     fi
12901   done
12902   IFS="$ac_save_ifs"
12903   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12904   ;;
12905 esac
12906 fi
12907 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12908 if test -n "$GTK_CONFIG"; then
12909   echo "$ac_t""$GTK_CONFIG" 1>&6
12910 else
12911   echo "$ac_t""no" 1>&6
12912 fi
12913
12914   min_gtk_version=1.2.3
12915   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12916 echo "configure:12917: checking for GTK - version >= $min_gtk_version" >&5
12917   no_gtk=""
12918   if test "$GTK_CONFIG" = "no" ; then
12919     no_gtk=yes
12920   else
12921     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12922     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12923     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12924            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12925     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12926            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12927     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12928            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12929     if test "x$enable_gtktest" = "xyes" ; then
12930       ac_save_CFLAGS="$CFLAGS"
12931       ac_save_LIBS="$LIBS"
12932       CFLAGS="$CFLAGS $GTK_CFLAGS"
12933       LIBS="$GTK_LIBS $LIBS"
12934       rm -f conf.gtktest
12935       if test "$cross_compiling" = yes; then
12936   echo $ac_n "cross compiling; assumed OK... $ac_c"
12937 else
12938   cat > conftest.$ac_ext <<EOF
12939 #line 12940 "configure"
12940 #include "confdefs.h"
12941
12942 #include <gtk/gtk.h>
12943 #include <stdio.h>
12944 #include <stdlib.h>
12945
12946 int 
12947 main ()
12948 {
12949   int major, minor, micro;
12950   char *tmp_version;
12951
12952   system ("touch conf.gtktest");
12953
12954   /* HP/UX 9 (%@#!) writes to sscanf strings */
12955   tmp_version = g_strdup("$min_gtk_version");
12956   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12957      printf("%s, bad version string\n", "$min_gtk_version");
12958      exit(1);
12959    }
12960
12961   if ((gtk_major_version != $gtk_config_major_version) ||
12962       (gtk_minor_version != $gtk_config_minor_version) ||
12963       (gtk_micro_version != $gtk_config_micro_version))
12964     {
12965       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12966              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12967              gtk_major_version, gtk_minor_version, gtk_micro_version);
12968       printf ("*** was found! If gtk-config was correct, then it is best\n");
12969       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12970       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12971       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12972       printf("*** required on your system.\n");
12973       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12974       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12975       printf("*** before re-running configure\n");
12976     } 
12977 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12978   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12979            (gtk_minor_version != GTK_MINOR_VERSION) ||
12980            (gtk_micro_version != GTK_MICRO_VERSION))
12981     {
12982       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12983              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12984       printf("*** library (version %d.%d.%d)\n",
12985              gtk_major_version, gtk_minor_version, gtk_micro_version);
12986     }
12987 #endif /* defined (GTK_MAJOR_VERSION) ... */
12988   else
12989     {
12990       if ((gtk_major_version > major) ||
12991         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12992         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12993       {
12994         return 0;
12995        }
12996      else
12997       {
12998         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12999                gtk_major_version, gtk_minor_version, gtk_micro_version);
13000         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13001                major, minor, micro);
13002         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13003         printf("***\n");
13004         printf("*** If you have already installed a sufficiently new version, this error\n");
13005         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13006         printf("*** being found. The easiest way to fix this is to remove the old version\n");
13007         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13008         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13009         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13010         printf("*** so that the correct libraries are found at run-time))\n");
13011       }
13012     }
13013   return 1;
13014 }
13015
13016 EOF
13017 if { (eval echo configure:13018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13018 then
13019   :
13020 else
13021   echo "configure: failed program was:" >&5
13022   cat conftest.$ac_ext >&5
13023   rm -fr conftest*
13024   no_gtk=yes
13025 fi
13026 rm -fr conftest*
13027 fi
13028
13029        CFLAGS="$ac_save_CFLAGS"
13030        LIBS="$ac_save_LIBS"
13031      fi
13032   fi
13033   if test "x$no_gtk" = x ; then
13034      echo "$ac_t""yes" 1>&6
13035      wx_cv_lib_gtk=1.2.3     
13036   else
13037      echo "$ac_t""no" 1>&6
13038      if test "$GTK_CONFIG" = "no" ; then
13039        echo "*** The gtk-config script installed by GTK could not be found"
13040        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13041        echo "*** your path, or set the GTK_CONFIG environment variable to the"
13042        echo "*** full path to gtk-config."
13043      else
13044        if test -f conf.gtktest ; then
13045         :
13046        else
13047           echo "*** Could not run GTK test program, checking why..."
13048           CFLAGS="$CFLAGS $GTK_CFLAGS"
13049           LIBS="$LIBS $GTK_LIBS"
13050           cat > conftest.$ac_ext <<EOF
13051 #line 13052 "configure"
13052 #include "confdefs.h"
13053
13054 #include <gtk/gtk.h>
13055 #include <stdio.h>
13056
13057 int main() {
13058  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
13059 ; return 0; }
13060 EOF
13061 if { (eval echo configure:13062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13062   rm -rf conftest*
13063    echo "*** The test program compiled, but did not run. This usually means"
13064           echo "*** that the run-time linker is not finding GTK or finding the wrong"
13065           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13066           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13067           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13068           echo "*** is required on your system"
13069           echo "***"
13070           echo "*** If you have an old version installed, it is best to remove it, although"
13071           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13072           echo "***"
13073           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13074           echo "*** came with the system with the command"
13075           echo "***"
13076           echo "***    rpm --erase --nodeps gtk gtk-devel" 
13077 else
13078   echo "configure: failed program was:" >&5
13079   cat conftest.$ac_ext >&5
13080   rm -rf conftest*
13081    echo "*** The test program failed to compile or link. See the file config.log for the"
13082           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13083           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13084           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
13085 fi
13086 rm -f conftest*
13087           CFLAGS="$ac_save_CFLAGS"
13088           LIBS="$ac_save_LIBS"
13089        fi
13090      fi
13091      GTK_CFLAGS=""
13092      GTK_LIBS=""
13093      :
13094   fi
13095   
13096   
13097   rm -f conf.gtktest
13098
13099                     fi
13100                 fi
13101
13102                 if test -z "$wx_cv_lib_gtk"; then
13103                                         wx_cv_lib_gtk=none
13104                 else
13105                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
13106                     wx_cv_libs_gtk=$GTK_LIBS
13107                 fi
13108             
13109         
13110 fi
13111
13112
13113                         if test "$gtk_version_cached" = 1; then
13114             echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13115         fi
13116
13117         case "$wx_cv_lib_gtk" in
13118             2.0)    WXGTK20=1
13119                     TOOLKIT_VERSION=2
13120                     ;;
13121             1.2.7)  WXGTK127=1
13122                     WXGTK12=1
13123                     ;;
13124             1.2.3)  WXGTK12=1
13125                     ;;
13126             *)      { echo "configure: error: 
13127 Please check that gtk-config is in path, the directory
13128 where GTK+ libraries are installed (returned by
13129 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13130 equivalent variable and GTK+ is version 1.2.3 or above.
13131                             " 1>&2; exit 1; }
13132                     ;;
13133         esac
13134
13135         if test "$WXGTK20" = 1; then
13136             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13137                 
13138   succeeded=no
13139
13140   if test -z "$PKG_CONFIG"; then
13141     # Extract the first word of "pkg-config", so it can be a program name with args.
13142 set dummy pkg-config; ac_word=$2
13143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13144 echo "configure:13145: checking for $ac_word" >&5
13145 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13146   echo $ac_n "(cached) $ac_c" 1>&6
13147 else
13148   case "$PKG_CONFIG" in
13149   /*)
13150   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13151   ;;
13152   ?:/*)                  
13153   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13154   ;;
13155   *)
13156   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
13157   ac_dummy="$PATH"
13158   for ac_dir in $ac_dummy; do 
13159     test -z "$ac_dir" && ac_dir=.
13160     if test -f $ac_dir/$ac_word; then
13161       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13162       break
13163     fi
13164   done
13165   IFS="$ac_save_ifs"
13166   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13167   ;;
13168 esac
13169 fi
13170 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13171 if test -n "$PKG_CONFIG"; then
13172   echo "$ac_t""$PKG_CONFIG" 1>&6
13173 else
13174   echo "$ac_t""no" 1>&6
13175 fi
13176
13177   fi
13178
13179   if test "$PKG_CONFIG" = "no" ; then
13180      echo "*** The pkg-config script could not be found. Make sure it is"
13181      echo "*** in your path, or set the PKG_CONFIG environment variable"
13182      echo "*** to the full path to pkg-config."
13183      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13184   else
13185      PKG_CONFIG_MIN_VERSION=0.9.0
13186      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13187         echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13188 echo "configure:13189: checking for pangoft2" >&5
13189
13190         if $PKG_CONFIG --exists "pangoft2" ; then
13191             echo "$ac_t""yes" 1>&6
13192             succeeded=yes
13193
13194             echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13195 echo "configure:13196: checking PANGOFT2_CFLAGS" >&5
13196             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13197             echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13198
13199             echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13200 echo "configure:13201: checking PANGOFT2_LIBS" >&5
13201             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13202             echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13203         else
13204             PANGOFT2_CFLAGS=""
13205             PANGOFT2_LIBS=""
13206             ## If we have a custom action on failure, don't print errors, but 
13207             ## do set a variable so people can do so.
13208             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13209             
13210         fi
13211
13212         
13213         
13214      else
13215         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13216         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13217      fi
13218   fi
13219
13220   if test $succeeded = yes; then
13221      
13222                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13223                         LIBS="$LIBS $PANGOFT2_LIBS"
13224                     
13225   else
13226      
13227                         echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13228                         wxUSE_PRINTING_ARCHITECTURE="no"
13229                     
13230                 
13231   fi
13232
13233             fi
13234         else
13235             if test "$wxUSE_UNICODE" = "yes"; then
13236                 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13237                 wxUSE_UNICODE=no
13238             fi
13239         fi
13240
13241                         if test "$USE_DARWIN" != 1; then
13242             for ac_func in poll
13243 do
13244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13245 echo "configure:13246: checking for $ac_func" >&5
13246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13247   echo $ac_n "(cached) $ac_c" 1>&6
13248 else
13249   cat > conftest.$ac_ext <<EOF
13250 #line 13251 "configure"
13251 #include "confdefs.h"
13252 /* System header to define __stub macros and hopefully few prototypes,
13253     which can conflict with char $ac_func(); below.  */
13254 #include <assert.h>
13255 /* Override any gcc2 internal prototype to avoid an error.  */
13256 /* We use char because int might match the return type of a gcc2
13257     builtin and then its argument prototype would still apply.  */
13258 char $ac_func();
13259
13260 int main() {
13261
13262 /* The GNU C library defines this for functions which it implements
13263     to always fail with ENOSYS.  Some functions are actually named
13264     something starting with __ and the normal name is an alias.  */
13265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13266 choke me
13267 #else
13268 $ac_func();
13269 #endif
13270
13271 ; return 0; }
13272 EOF
13273 if { (eval echo configure:13274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13274   rm -rf conftest*
13275   eval "ac_cv_func_$ac_func=yes"
13276 else
13277   echo "configure: failed program was:" >&5
13278   cat conftest.$ac_ext >&5
13279   rm -rf conftest*
13280   eval "ac_cv_func_$ac_func=no"
13281 fi
13282 rm -f conftest*
13283 fi
13284
13285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13286   echo "$ac_t""yes" 1>&6
13287     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13288   cat >> confdefs.h <<EOF
13289 #define $ac_tr_func 1
13290 EOF
13291  
13292 else
13293   echo "$ac_t""no" 1>&6
13294 fi
13295 done
13296
13297         fi
13298
13299         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13300         GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13301
13302         AFMINSTALL=afminstall
13303         TOOLKIT=GTK
13304         GUIDIST=GTK_DIST
13305
13306                 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13307 echo "configure:13308: checking for gdk_im_open in -lgdk" >&5
13308 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13310   echo $ac_n "(cached) $ac_c" 1>&6
13311 else
13312   ac_save_LIBS="$LIBS"
13313 LIBS="-lgdk  $LIBS"
13314 cat > conftest.$ac_ext <<EOF
13315 #line 13316 "configure"
13316 #include "confdefs.h"
13317 /* Override any gcc2 internal prototype to avoid an error.  */
13318 /* We use char because int might match the return type of a gcc2
13319     builtin and then its argument prototype would still apply.  */
13320 char gdk_im_open();
13321
13322 int main() {
13323 gdk_im_open()
13324 ; return 0; }
13325 EOF
13326 if { (eval echo configure:13327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13327   rm -rf conftest*
13328   eval "ac_cv_lib_$ac_lib_var=yes"
13329 else
13330   echo "configure: failed program was:" >&5
13331   cat conftest.$ac_ext >&5
13332   rm -rf conftest*
13333   eval "ac_cv_lib_$ac_lib_var=no"
13334 fi
13335 rm -f conftest*
13336 LIBS="$ac_save_LIBS"
13337
13338 fi
13339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13340   echo "$ac_t""yes" 1>&6
13341   cat >> confdefs.h <<\EOF
13342 #define HAVE_XIM 1
13343 EOF
13344
13345 else
13346   echo "$ac_t""no" 1>&6
13347 fi
13348
13349     fi
13350
13351     if test "$wxUSE_MGL" = 1; then
13352         echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13353 echo "configure:13354: checking for SciTech MGL library" >&5
13354         if test "x$MGL_ROOT" = x ; then
13355             echo "$ac_t""not found" 1>&6
13356             { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13357         else
13358             echo "$ac_t""$MGL_ROOT" 1>&6
13359         fi
13360
13361                         case "${host}" in
13362             *-*-linux* )
13363               mgl_os="linux/gcc/glibc*"
13364               ;;
13365             *-pc-msdosdjgpp )
13366               mgl_os=dos32/dj2
13367               ;;
13368             *)
13369               { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13370         esac
13371
13372         mgl_lib_type=""
13373
13374         if test "$wxUSE_DEBUG_FLAG" = yes ; then
13375             if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
13376                     -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
13377                 mgl_lib_type=debug
13378             fi
13379         fi
13380         if test "x$mgl_lib_type" = x ; then
13381             if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
13382                     -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
13383                 mgl_lib_type=release
13384             else
13385                 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13386             fi
13387         fi
13388
13389         wxUSE_UNIVERSAL="yes"
13390
13391         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13392         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13393
13394         AFMINSTALL=afminstall
13395         TOOLKIT=MGL
13396         GUIDIST=MGL_DIST
13397     fi
13398
13399     if test "$wxUSE_MICROWIN" = 1; then
13400         echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13401 echo "configure:13402: checking for MicroWindows" >&5
13402         if test "x$MICROWINDOWS" = x ; then
13403             echo "$ac_t""not found" 1>&6
13404             { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13405         else
13406             echo "$ac_t""$MICROWINDOWS" 1>&6
13407         fi
13408
13409         if test -f $MICROWINDOWS/lib/libmwin.a; then
13410             echo "$ac_t""MicroWindows' libraries found." 1>&6
13411         else
13412             { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13413         fi
13414
13415         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13416         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13417
13418         wxUSE_UNIVERSAL="yes"
13419
13420         AFMINSTALL=afminstall
13421         TOOLKIT=MICROWIN
13422         GUIDIST=MICROWIN_DIST
13423
13424         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13425     fi
13426
13427     if test "$wxUSE_X11" = 1; then
13428                         # If we find X, set shell vars x_includes and x_libraries to the
13429 # paths, otherwise set no_x=yes.
13430 # Uses ac_ vars as temps to allow command line to override cache and checks.
13431 # --without-x overrides everything else, but does not touch the cache.
13432 echo $ac_n "checking for X""... $ac_c" 1>&6
13433 echo "configure:13434: checking for X" >&5
13434
13435 # Check whether --with-x or --without-x was given.
13436 if test "${with_x+set}" = set; then
13437   withval="$with_x"
13438   :
13439 fi
13440
13441 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13442 if test "x$with_x" = xno; then
13443   # The user explicitly disabled X.
13444   have_x=disabled
13445 else
13446   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13447     # Both variables are already set.
13448     have_x=yes
13449   else
13450 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13451   echo $ac_n "(cached) $ac_c" 1>&6
13452 else
13453   # One or both of the vars are not set, and there is no cached value.
13454 ac_x_includes=NO ac_x_libraries=NO
13455 rm -fr conftestdir
13456 if mkdir conftestdir; then
13457   cd conftestdir
13458   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13459   cat > Imakefile <<'EOF'
13460 acfindx:
13461         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13462 EOF
13463   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13464     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13465     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13466     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13467     for ac_extension in a so sl; do
13468       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13469         test -f $ac_im_libdir/libX11.$ac_extension; then
13470         ac_im_usrlibdir=$ac_im_libdir; break
13471       fi
13472     done
13473     # Screen out bogus values from the imake configuration.  They are
13474     # bogus both because they are the default anyway, and because
13475     # using them would break gcc on systems where it needs fixed includes.
13476     case "$ac_im_incroot" in
13477         /usr/include) ;;
13478         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13479     esac
13480     case "$ac_im_usrlibdir" in
13481         /usr/lib | /lib) ;;
13482         *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13483     esac
13484   fi
13485   cd ..
13486   rm -fr conftestdir
13487 fi
13488
13489 if test "$ac_x_includes" = NO; then
13490   # Guess where to find include files, by looking for this one X11 .h file.
13491   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13492
13493   # First, try using that file with no special directory specified.
13494 cat > conftest.$ac_ext <<EOF
13495 #line 13496 "configure"
13496 #include "confdefs.h"
13497 #include <$x_direct_test_include>
13498 EOF
13499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13500 { (eval echo configure:13501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13502 if test -z "$ac_err"; then
13503   rm -rf conftest*
13504   # We can compile using X headers with no special include directory.
13505 ac_x_includes=
13506 else
13507   echo "$ac_err" >&5
13508   echo "configure: failed program was:" >&5
13509   cat conftest.$ac_ext >&5
13510   rm -rf conftest*
13511   # Look for the header file in a standard set of common directories.
13512 # Check X11 before X11Rn because it is often a symlink to the current release.
13513   for ac_dir in               \
13514     /usr/X11/include          \
13515     /usr/X11R6/include        \
13516     /usr/X11R5/include        \
13517     /usr/X11R4/include        \
13518                               \
13519     /usr/include/X11          \
13520     /usr/include/X11R6        \
13521     /usr/include/X11R5        \
13522     /usr/include/X11R4        \
13523                               \
13524     /usr/local/X11/include    \
13525     /usr/local/X11R6/include  \
13526     /usr/local/X11R5/include  \
13527     /usr/local/X11R4/include  \
13528                               \
13529     /usr/local/include/X11    \
13530     /usr/local/include/X11R6  \
13531     /usr/local/include/X11R5  \
13532     /usr/local/include/X11R4  \
13533                               \
13534     /usr/X386/include         \
13535     /usr/x386/include         \
13536     /usr/XFree86/include/X11  \
13537                               \
13538     /usr/include              \
13539     /usr/local/include        \
13540     /usr/unsupported/include  \
13541     /usr/athena/include       \
13542     /usr/local/x11r5/include  \
13543     /usr/lpp/Xamples/include  \
13544                               \
13545     /usr/openwin/include      \
13546     /usr/openwin/share/include \
13547     ; \
13548   do
13549     if test -r "$ac_dir/$x_direct_test_include"; then
13550       ac_x_includes=$ac_dir
13551       break
13552     fi
13553   done
13554 fi
13555 rm -f conftest*
13556 fi # $ac_x_includes = NO
13557
13558 if test "$ac_x_libraries" = NO; then
13559   # Check for the libraries.
13560
13561   test -z "$x_direct_test_library" && x_direct_test_library=Xt
13562   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13563
13564   # See if we find them without any special options.
13565   # Don't add to $LIBS permanently.
13566   ac_save_LIBS="$LIBS"
13567   LIBS="-l$x_direct_test_library $LIBS"
13568 cat > conftest.$ac_ext <<EOF
13569 #line 13570 "configure"
13570 #include "confdefs.h"
13571
13572 int main() {
13573 ${x_direct_test_function}()
13574 ; return 0; }
13575 EOF
13576 if { (eval echo configure:13577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13577   rm -rf conftest*
13578   LIBS="$ac_save_LIBS"
13579 # We can link X programs with no special library path.
13580 ac_x_libraries=
13581 else
13582   echo "configure: failed program was:" >&5
13583   cat conftest.$ac_ext >&5
13584   rm -rf conftest*
13585   LIBS="$ac_save_LIBS"
13586 # First see if replacing the include by lib works.
13587 # Check X11 before X11Rn because it is often a symlink to the current release.
13588 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13589     /usr/X11/lib          \
13590     /usr/X11R6/lib        \
13591     /usr/X11R5/lib        \
13592     /usr/X11R4/lib        \
13593                           \
13594     /usr/lib/X11          \
13595     /usr/lib/X11R6        \
13596     /usr/lib/X11R5        \
13597     /usr/lib/X11R4        \
13598                           \
13599     /usr/local/X11/lib    \
13600     /usr/local/X11R6/lib  \
13601     /usr/local/X11R5/lib  \
13602     /usr/local/X11R4/lib  \
13603                           \
13604     /usr/local/lib/X11    \
13605     /usr/local/lib/X11R6  \
13606     /usr/local/lib/X11R5  \
13607     /usr/local/lib/X11R4  \
13608                           \
13609     /usr/X386/lib         \
13610     /usr/x386/lib         \
13611     /usr/XFree86/lib/X11  \
13612                           \
13613     /usr/lib              \
13614     /usr/local/lib        \
13615     /usr/unsupported/lib  \
13616     /usr/athena/lib       \
13617     /usr/local/x11r5/lib  \
13618     /usr/lpp/Xamples/lib  \
13619     /lib/usr/lib/X11      \
13620                           \
13621     /usr/openwin/lib      \
13622     /usr/openwin/share/lib \
13623     ; \
13624 do
13625   for ac_extension in a so sl; do
13626     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13627       ac_x_libraries=$ac_dir
13628       break 2
13629     fi
13630   done
13631 done
13632 fi
13633 rm -f conftest*
13634 fi # $ac_x_libraries = NO
13635
13636 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13637   # Didn't find X anywhere.  Cache the known absence of X.
13638   ac_cv_have_x="have_x=no"
13639 else
13640   # Record where we found X for the cache.
13641   ac_cv_have_x="have_x=yes \
13642                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13643 fi
13644 fi
13645   fi
13646   eval "$ac_cv_have_x"
13647 fi # $with_x != no
13648
13649 if test "$have_x" != yes; then
13650   echo "$ac_t""$have_x" 1>&6
13651   no_x=yes
13652 else
13653   # If each of the values was on the command line, it overrides each guess.
13654   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13655   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13656   # Update the cache value to reflect the command line values.
13657   ac_cv_have_x="have_x=yes \
13658                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13659   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13660 fi
13661
13662 if test "$no_x" = yes; then
13663   # Not all programs may use this symbol, but it does not hurt to define it.
13664   cat >> confdefs.h <<\EOF
13665 #define X_DISPLAY_MISSING 1
13666 EOF
13667
13668   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13669 else
13670   if test -n "$x_includes"; then
13671     X_CFLAGS="$X_CFLAGS -I$x_includes"
13672   fi
13673
13674   # It would also be nice to do this for all -L options, not just this one.
13675   if test -n "$x_libraries"; then
13676     X_LIBS="$X_LIBS -L$x_libraries"
13677     # For Solaris; some versions of Sun CC require a space after -R and
13678     # others require no space.  Words are not sufficient . . . .
13679     case "`(uname -sr) 2>/dev/null`" in
13680     "SunOS 5"*)
13681       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13682 echo "configure:13683: checking whether -R must be followed by a space" >&5
13683       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13684       cat > conftest.$ac_ext <<EOF
13685 #line 13686 "configure"
13686 #include "confdefs.h"
13687
13688 int main() {
13689
13690 ; return 0; }
13691 EOF
13692 if { (eval echo configure:13693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13693   rm -rf conftest*
13694   ac_R_nospace=yes
13695 else
13696   echo "configure: failed program was:" >&5
13697   cat conftest.$ac_ext >&5
13698   rm -rf conftest*
13699   ac_R_nospace=no
13700 fi
13701 rm -f conftest*
13702       if test $ac_R_nospace = yes; then
13703         echo "$ac_t""no" 1>&6
13704         X_LIBS="$X_LIBS -R$x_libraries"
13705       else
13706         LIBS="$ac_xsave_LIBS -R $x_libraries"
13707         cat > conftest.$ac_ext <<EOF
13708 #line 13709 "configure"
13709 #include "confdefs.h"
13710
13711 int main() {
13712
13713 ; return 0; }
13714 EOF
13715 if { (eval echo configure:13716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13716   rm -rf conftest*
13717   ac_R_space=yes
13718 else
13719   echo "configure: failed program was:" >&5
13720   cat conftest.$ac_ext >&5
13721   rm -rf conftest*
13722   ac_R_space=no
13723 fi
13724 rm -f conftest*
13725         if test $ac_R_space = yes; then
13726           echo "$ac_t""yes" 1>&6
13727           X_LIBS="$X_LIBS -R $x_libraries"
13728         else
13729           echo "$ac_t""neither works" 1>&6
13730         fi
13731       fi
13732       LIBS="$ac_xsave_LIBS"
13733     esac
13734   fi
13735
13736   # Check for system-dependent libraries X programs must link with.
13737   # Do this before checking for the system-independent R6 libraries
13738   # (-lICE), since we may need -lsocket or whatever for X linking.
13739
13740   if test "$ISC" = yes; then
13741     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13742   else
13743     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13744     # libraries were built with DECnet support.  And karl@cs.umb.edu says
13745     # the Alpha needs dnet_stub (dnet does not exist).
13746     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13747 echo "configure:13748: checking for dnet_ntoa in -ldnet" >&5
13748 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13750   echo $ac_n "(cached) $ac_c" 1>&6
13751 else
13752   ac_save_LIBS="$LIBS"
13753 LIBS="-ldnet  $LIBS"
13754 cat > conftest.$ac_ext <<EOF
13755 #line 13756 "configure"
13756 #include "confdefs.h"
13757 /* Override any gcc2 internal prototype to avoid an error.  */
13758 /* We use char because int might match the return type of a gcc2
13759     builtin and then its argument prototype would still apply.  */
13760 char dnet_ntoa();
13761
13762 int main() {
13763 dnet_ntoa()
13764 ; return 0; }
13765 EOF
13766 if { (eval echo configure:13767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13767   rm -rf conftest*
13768   eval "ac_cv_lib_$ac_lib_var=yes"
13769 else
13770   echo "configure: failed program was:" >&5
13771   cat conftest.$ac_ext >&5
13772   rm -rf conftest*
13773   eval "ac_cv_lib_$ac_lib_var=no"
13774 fi
13775 rm -f conftest*
13776 LIBS="$ac_save_LIBS"
13777
13778 fi
13779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13780   echo "$ac_t""yes" 1>&6
13781   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13782 else
13783   echo "$ac_t""no" 1>&6
13784 fi
13785
13786     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13787       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13788 echo "configure:13789: checking for dnet_ntoa in -ldnet_stub" >&5
13789 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13791   echo $ac_n "(cached) $ac_c" 1>&6
13792 else
13793   ac_save_LIBS="$LIBS"
13794 LIBS="-ldnet_stub  $LIBS"
13795 cat > conftest.$ac_ext <<EOF
13796 #line 13797 "configure"
13797 #include "confdefs.h"
13798 /* Override any gcc2 internal prototype to avoid an error.  */
13799 /* We use char because int might match the return type of a gcc2
13800     builtin and then its argument prototype would still apply.  */
13801 char dnet_ntoa();
13802
13803 int main() {
13804 dnet_ntoa()
13805 ; return 0; }
13806 EOF
13807 if { (eval echo configure:13808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13808   rm -rf conftest*
13809   eval "ac_cv_lib_$ac_lib_var=yes"
13810 else
13811   echo "configure: failed program was:" >&5
13812   cat conftest.$ac_ext >&5
13813   rm -rf conftest*
13814   eval "ac_cv_lib_$ac_lib_var=no"
13815 fi
13816 rm -f conftest*
13817 LIBS="$ac_save_LIBS"
13818
13819 fi
13820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13821   echo "$ac_t""yes" 1>&6
13822   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13823 else
13824   echo "$ac_t""no" 1>&6
13825 fi
13826
13827     fi
13828
13829     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13830     # to get the SysV transport functions.
13831     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13832     # needs -lnsl.
13833     # The nsl library prevents programs from opening the X display
13834     # on Irix 5.2, according to dickey@clark.net.
13835     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13836 echo "configure:13837: checking for gethostbyname" >&5
13837 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13838   echo $ac_n "(cached) $ac_c" 1>&6
13839 else
13840   cat > conftest.$ac_ext <<EOF
13841 #line 13842 "configure"
13842 #include "confdefs.h"
13843 /* System header to define __stub macros and hopefully few prototypes,
13844     which can conflict with char gethostbyname(); below.  */
13845 #include <assert.h>
13846 /* Override any gcc2 internal prototype to avoid an error.  */
13847 /* We use char because int might match the return type of a gcc2
13848     builtin and then its argument prototype would still apply.  */
13849 char gethostbyname();
13850
13851 int main() {
13852
13853 /* The GNU C library defines this for functions which it implements
13854     to always fail with ENOSYS.  Some functions are actually named
13855     something starting with __ and the normal name is an alias.  */
13856 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13857 choke me
13858 #else
13859 gethostbyname();
13860 #endif
13861
13862 ; return 0; }
13863 EOF
13864 if { (eval echo configure:13865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13865   rm -rf conftest*
13866   eval "ac_cv_func_gethostbyname=yes"
13867 else
13868   echo "configure: failed program was:" >&5
13869   cat conftest.$ac_ext >&5
13870   rm -rf conftest*
13871   eval "ac_cv_func_gethostbyname=no"
13872 fi
13873 rm -f conftest*
13874 fi
13875
13876 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13877   echo "$ac_t""yes" 1>&6
13878   :
13879 else
13880   echo "$ac_t""no" 1>&6
13881 fi
13882
13883     if test $ac_cv_func_gethostbyname = no; then
13884       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13885 echo "configure:13886: checking for gethostbyname in -lnsl" >&5
13886 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13888   echo $ac_n "(cached) $ac_c" 1>&6
13889 else
13890   ac_save_LIBS="$LIBS"
13891 LIBS="-lnsl  $LIBS"
13892 cat > conftest.$ac_ext <<EOF
13893 #line 13894 "configure"
13894 #include "confdefs.h"
13895 /* Override any gcc2 internal prototype to avoid an error.  */
13896 /* We use char because int might match the return type of a gcc2
13897     builtin and then its argument prototype would still apply.  */
13898 char gethostbyname();
13899
13900 int main() {
13901 gethostbyname()
13902 ; return 0; }
13903 EOF
13904 if { (eval echo configure:13905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13905   rm -rf conftest*
13906   eval "ac_cv_lib_$ac_lib_var=yes"
13907 else
13908   echo "configure: failed program was:" >&5
13909   cat conftest.$ac_ext >&5
13910   rm -rf conftest*
13911   eval "ac_cv_lib_$ac_lib_var=no"
13912 fi
13913 rm -f conftest*
13914 LIBS="$ac_save_LIBS"
13915
13916 fi
13917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13918   echo "$ac_t""yes" 1>&6
13919   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13920 else
13921   echo "$ac_t""no" 1>&6
13922 fi
13923
13924     fi
13925
13926     # lieder@skyler.mavd.honeywell.com says without -lsocket,
13927     # socket/setsockopt and other routines are undefined under SCO ODT
13928     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
13929     # on later versions), says simon@lia.di.epfl.ch: it contains
13930     # gethostby* variants that don't use the nameserver (or something).
13931     # -lsocket must be given before -lnsl if both are needed.
13932     # We assume that if connect needs -lnsl, so does gethostbyname.
13933     echo $ac_n "checking for connect""... $ac_c" 1>&6
13934 echo "configure:13935: checking for connect" >&5
13935 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13936   echo $ac_n "(cached) $ac_c" 1>&6
13937 else
13938   cat > conftest.$ac_ext <<EOF
13939 #line 13940 "configure"
13940 #include "confdefs.h"
13941 /* System header to define __stub macros and hopefully few prototypes,
13942     which can conflict with char connect(); below.  */
13943 #include <assert.h>
13944 /* Override any gcc2 internal prototype to avoid an error.  */
13945 /* We use char because int might match the return type of a gcc2
13946     builtin and then its argument prototype would still apply.  */
13947 char connect();
13948
13949 int main() {
13950
13951 /* The GNU C library defines this for functions which it implements
13952     to always fail with ENOSYS.  Some functions are actually named
13953     something starting with __ and the normal name is an alias.  */
13954 #if defined (__stub_connect) || defined (__stub___connect)
13955 choke me
13956 #else
13957 connect();
13958 #endif
13959
13960 ; return 0; }
13961 EOF
13962 if { (eval echo configure:13963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13963   rm -rf conftest*
13964   eval "ac_cv_func_connect=yes"
13965 else
13966   echo "configure: failed program was:" >&5
13967   cat conftest.$ac_ext >&5
13968   rm -rf conftest*
13969   eval "ac_cv_func_connect=no"
13970 fi
13971 rm -f conftest*
13972 fi
13973
13974 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13975   echo "$ac_t""yes" 1>&6
13976   :
13977 else
13978   echo "$ac_t""no" 1>&6
13979 fi
13980
13981     if test $ac_cv_func_connect = no; then
13982       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13983 echo "configure:13984: checking for connect in -lsocket" >&5
13984 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13985 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13986   echo $ac_n "(cached) $ac_c" 1>&6
13987 else
13988   ac_save_LIBS="$LIBS"
13989 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13990 cat > conftest.$ac_ext <<EOF
13991 #line 13992 "configure"
13992 #include "confdefs.h"
13993 /* Override any gcc2 internal prototype to avoid an error.  */
13994 /* We use char because int might match the return type of a gcc2
13995     builtin and then its argument prototype would still apply.  */
13996 char connect();
13997
13998 int main() {
13999 connect()
14000 ; return 0; }
14001 EOF
14002 if { (eval echo configure:14003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14003   rm -rf conftest*
14004   eval "ac_cv_lib_$ac_lib_var=yes"
14005 else
14006   echo "configure: failed program was:" >&5
14007   cat conftest.$ac_ext >&5
14008   rm -rf conftest*
14009   eval "ac_cv_lib_$ac_lib_var=no"
14010 fi
14011 rm -f conftest*
14012 LIBS="$ac_save_LIBS"
14013
14014 fi
14015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14016   echo "$ac_t""yes" 1>&6
14017   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14018 else
14019   echo "$ac_t""no" 1>&6
14020 fi
14021
14022     fi
14023
14024     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14025     echo $ac_n "checking for remove""... $ac_c" 1>&6
14026 echo "configure:14027: checking for remove" >&5
14027 if eval "test \"`echo '$''{'ac_cv_func_remove'+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 remove(); 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 remove();
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_remove) || defined (__stub___remove)
14047 choke me
14048 #else
14049 remove();
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${ac_exeext}; then
14055   rm -rf conftest*
14056   eval "ac_cv_func_remove=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_remove=no"
14062 fi
14063 rm -f conftest*
14064 fi
14065
14066 if eval "test \"`echo '$ac_cv_func_'remove`\" = 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_remove = no; then
14074       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14075 echo "configure:14076: checking for remove in -lposix" >&5
14076 ac_lib_var=`echo posix'_'remove | 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="-lposix  $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 remove();
14089
14090 int main() {
14091 remove()
14092 ; return 0; }
14093 EOF
14094 if { (eval echo configure:14095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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="$X_EXTRA_LIBS -lposix"
14110 else
14111   echo "$ac_t""no" 1>&6
14112 fi
14113
14114     fi
14115
14116     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14117     echo $ac_n "checking for shmat""... $ac_c" 1>&6
14118 echo "configure:14119: checking for shmat" >&5
14119 if eval "test \"`echo '$''{'ac_cv_func_shmat'+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 shmat(); 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 shmat();
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_shmat) || defined (__stub___shmat)
14139 choke me
14140 #else
14141 shmat();
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${ac_exeext}; then
14147   rm -rf conftest*
14148   eval "ac_cv_func_shmat=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_shmat=no"
14154 fi
14155 rm -f conftest*
14156 fi
14157
14158 if eval "test \"`echo '$ac_cv_func_'shmat`\" = 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_shmat = no; then
14166       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14167 echo "configure:14168: checking for shmat in -lipc" >&5
14168 ac_lib_var=`echo ipc'_'shmat | 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="-lipc  $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 shmat();
14181
14182 int main() {
14183 shmat()
14184 ; return 0; }
14185 EOF
14186 if { (eval echo configure:14187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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 -lipc"
14202 else
14203   echo "$ac_t""no" 1>&6
14204 fi
14205
14206     fi
14207   fi
14208
14209   # Check for libraries that X11R6 Xt/Xaw programs need.
14210   ac_save_LDFLAGS="$LDFLAGS"
14211   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14212   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14213   # check for ICE first), but we must link in the order -lSM -lICE or
14214   # we get undefined symbols.  So assume we have SM if we have ICE.
14215   # These have to be linked with before -lX11, unlike the other
14216   # libraries we check for below, so use a different variable.
14217   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14218   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14219 echo "configure:14220: checking for IceConnectionNumber in -lICE" >&5
14220 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14222   echo $ac_n "(cached) $ac_c" 1>&6
14223 else
14224   ac_save_LIBS="$LIBS"
14225 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14226 cat > conftest.$ac_ext <<EOF
14227 #line 14228 "configure"
14228 #include "confdefs.h"
14229 /* Override any gcc2 internal prototype to avoid an error.  */
14230 /* We use char because int might match the return type of a gcc2
14231     builtin and then its argument prototype would still apply.  */
14232 char IceConnectionNumber();
14233
14234 int main() {
14235 IceConnectionNumber()
14236 ; return 0; }
14237 EOF
14238 if { (eval echo configure:14239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14239   rm -rf conftest*
14240   eval "ac_cv_lib_$ac_lib_var=yes"
14241 else
14242   echo "configure: failed program was:" >&5
14243   cat conftest.$ac_ext >&5
14244   rm -rf conftest*
14245   eval "ac_cv_lib_$ac_lib_var=no"
14246 fi
14247 rm -f conftest*
14248 LIBS="$ac_save_LIBS"
14249
14250 fi
14251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14252   echo "$ac_t""yes" 1>&6
14253   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14254 else
14255   echo "$ac_t""no" 1>&6
14256 fi
14257
14258   LDFLAGS="$ac_save_LDFLAGS"
14259
14260 fi
14261
14262
14263         if test "$no_x" = "yes"; then
14264           { echo "configure: error: X11 not found" 1>&2; exit 1; }
14265         fi
14266
14267         GUI_TK_LIBRARY="$X_LIBS"
14268         TOOLKIT_INCLUDE="$X_CFLAGS"
14269         AFMINSTALL=afminstall
14270         COMPILED_X_PROGRAM=0
14271
14272         if test "$wxUSE_NANOX" = "yes"; then
14273             echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14274 echo "configure:14275: checking for MicroWindows/NanoX distribution" >&5
14275             if test "x$MICROWIN" = x ; then
14276                 echo "$ac_t""not found" 1>&6
14277                 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14278             else
14279                 echo "$ac_t""$MICROWIN" 1>&6
14280                 cat >> confdefs.h <<\EOF
14281 #define wxUSE_NANOX 1
14282 EOF
14283
14284             fi
14285         fi
14286
14287         xpm_link=
14288         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14289 echo "configure:14290: checking for Xpm library" >&5
14290         
14291 ac_find_libraries=
14292 for ac_dir in $SEARCH_LIB /usr/lib;
14293   do
14294     for ac_extension in a so sl dylib; do
14295       if test -f "$ac_dir/libXpm.$ac_extension"; then
14296         ac_find_libraries=$ac_dir
14297         break 2
14298       fi
14299     done
14300   done
14301
14302         if test "$ac_find_libraries" != "" ; then
14303             
14304   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14305   result=$?
14306   if test $result = 0; then
14307     ac_path_to_link=""
14308   else
14309     ac_path_to_link=" -L$ac_find_libraries"
14310   fi
14311
14312             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14313             xpm_link=" -lXpm"
14314             cat >> confdefs.h <<\EOF
14315 #define wxHAVE_LIB_XPM 1
14316 EOF
14317
14318             echo "$ac_t""found at $ac_find_libraries" 1>&6
14319         else
14320             cat > conftest.$ac_ext <<EOF
14321 #line 14322 "configure"
14322 #include "confdefs.h"
14323
14324                     #include <X11/xpm.h>
14325                 
14326 int main() {
14327
14328                     int version;
14329                     version = XpmLibraryVersion();
14330                 
14331 ; return 0; }
14332 EOF
14333 if { (eval echo configure:14334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14334   rm -rf conftest*
14335   
14336                     xpm_link=" -lXpm"
14337                     cat >> confdefs.h <<\EOF
14338 #define wxHAVE_LIB_XPM 1
14339 EOF
14340
14341                     echo "$ac_t""found in default search path" 1>&6
14342                     COMPILED_X_PROGRAM=0
14343                 
14344 else
14345   echo "configure: failed program was:" >&5
14346   cat conftest.$ac_ext >&5
14347   rm -rf conftest*
14348   
14349                     echo "$ac_t""no" 1>&6
14350                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14351                 
14352             
14353 fi
14354 rm -f conftest*
14355         fi
14356
14357         if test "$wxUSE_UNICODE" = "yes"; then
14358                 
14359   succeeded=no
14360
14361   if test -z "$PKG_CONFIG"; then
14362     # Extract the first word of "pkg-config", so it can be a program name with args.
14363 set dummy pkg-config; ac_word=$2
14364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14365 echo "configure:14366: checking for $ac_word" >&5
14366 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14367   echo $ac_n "(cached) $ac_c" 1>&6
14368 else
14369   case "$PKG_CONFIG" in
14370   /*)
14371   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14372   ;;
14373   ?:/*)                  
14374   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14375   ;;
14376   *)
14377   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
14378   ac_dummy="$PATH"
14379   for ac_dir in $ac_dummy; do 
14380     test -z "$ac_dir" && ac_dir=.
14381     if test -f $ac_dir/$ac_word; then
14382       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14383       break
14384     fi
14385   done
14386   IFS="$ac_save_ifs"
14387   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14388   ;;
14389 esac
14390 fi
14391 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14392 if test -n "$PKG_CONFIG"; then
14393   echo "$ac_t""$PKG_CONFIG" 1>&6
14394 else
14395   echo "$ac_t""no" 1>&6
14396 fi
14397
14398   fi
14399
14400   if test "$PKG_CONFIG" = "no" ; then
14401      echo "*** The pkg-config script could not be found. Make sure it is"
14402      echo "*** in your path, or set the PKG_CONFIG environment variable"
14403      echo "*** to the full path to pkg-config."
14404      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14405   else
14406      PKG_CONFIG_MIN_VERSION=0.9.0
14407      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14408         echo $ac_n "checking for pangox""... $ac_c" 1>&6
14409 echo "configure:14410: checking for pangox" >&5
14410
14411         if $PKG_CONFIG --exists "pangox" ; then
14412             echo "$ac_t""yes" 1>&6
14413             succeeded=yes
14414
14415             echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14416 echo "configure:14417: checking PANGOX_CFLAGS" >&5
14417             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14418             echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14419
14420             echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14421 echo "configure:14422: checking PANGOX_LIBS" >&5
14422             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14423             echo "$ac_t""$PANGOX_LIBS" 1>&6
14424         else
14425             PANGOX_CFLAGS=""
14426             PANGOX_LIBS=""
14427             ## If we have a custom action on failure, don't print errors, but 
14428             ## do set a variable so people can do so.
14429             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14430             
14431         fi
14432
14433         
14434         
14435      else
14436         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14437         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14438      fi
14439   fi
14440
14441   if test $succeeded = yes; then
14442      
14443                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14444                         LIBS="$LIBS $PANGOX_LIBS"
14445                     
14446   else
14447      
14448                         { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14449                     
14450                 
14451   fi
14452
14453                 
14454   succeeded=no
14455
14456   if test -z "$PKG_CONFIG"; then
14457     # Extract the first word of "pkg-config", so it can be a program name with args.
14458 set dummy pkg-config; ac_word=$2
14459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14460 echo "configure:14461: checking for $ac_word" >&5
14461 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14462   echo $ac_n "(cached) $ac_c" 1>&6
14463 else
14464   case "$PKG_CONFIG" in
14465   /*)
14466   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14467   ;;
14468   ?:/*)                  
14469   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14470   ;;
14471   *)
14472   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
14473   ac_dummy="$PATH"
14474   for ac_dir in $ac_dummy; do 
14475     test -z "$ac_dir" && ac_dir=.
14476     if test -f $ac_dir/$ac_word; then
14477       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14478       break
14479     fi
14480   done
14481   IFS="$ac_save_ifs"
14482   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14483   ;;
14484 esac
14485 fi
14486 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14487 if test -n "$PKG_CONFIG"; then
14488   echo "$ac_t""$PKG_CONFIG" 1>&6
14489 else
14490   echo "$ac_t""no" 1>&6
14491 fi
14492
14493   fi
14494
14495   if test "$PKG_CONFIG" = "no" ; then
14496      echo "*** The pkg-config script could not be found. Make sure it is"
14497      echo "*** in your path, or set the PKG_CONFIG environment variable"
14498      echo "*** to the full path to pkg-config."
14499      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14500   else
14501      PKG_CONFIG_MIN_VERSION=0.9.0
14502      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14503         echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14504 echo "configure:14505: checking for pangoft2" >&5
14505
14506         if $PKG_CONFIG --exists "pangoft2" ; then
14507             echo "$ac_t""yes" 1>&6
14508             succeeded=yes
14509
14510             echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14511 echo "configure:14512: checking PANGOFT2_CFLAGS" >&5
14512             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14513             echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14514
14515             echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14516 echo "configure:14517: checking PANGOFT2_LIBS" >&5
14517             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14518             echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14519         else
14520             PANGOFT2_CFLAGS=""
14521             PANGOFT2_LIBS=""
14522             ## If we have a custom action on failure, don't print errors, but 
14523             ## do set a variable so people can do so.
14524             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14525             
14526         fi
14527
14528         
14529         
14530      else
14531         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14532         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14533      fi
14534   fi
14535
14536   if test $succeeded = yes; then
14537      
14538                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14539                         LIBS="$LIBS $PANGOFT2_LIBS"
14540                     
14541   else
14542      
14543                         echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14544                         wxUSE_PRINTING_ARCHITECTURE="no"
14545                     
14546                 
14547   fi
14548
14549                 
14550   succeeded=no
14551
14552   if test -z "$PKG_CONFIG"; then
14553     # Extract the first word of "pkg-config", so it can be a program name with args.
14554 set dummy pkg-config; ac_word=$2
14555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14556 echo "configure:14557: checking for $ac_word" >&5
14557 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14558   echo $ac_n "(cached) $ac_c" 1>&6
14559 else
14560   case "$PKG_CONFIG" in
14561   /*)
14562   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14563   ;;
14564   ?:/*)                  
14565   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14566   ;;
14567   *)
14568   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
14569   ac_dummy="$PATH"
14570   for ac_dir in $ac_dummy; do 
14571     test -z "$ac_dir" && ac_dir=.
14572     if test -f $ac_dir/$ac_word; then
14573       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14574       break
14575     fi
14576   done
14577   IFS="$ac_save_ifs"
14578   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14579   ;;
14580 esac
14581 fi
14582 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14583 if test -n "$PKG_CONFIG"; then
14584   echo "$ac_t""$PKG_CONFIG" 1>&6
14585 else
14586   echo "$ac_t""no" 1>&6
14587 fi
14588
14589   fi
14590
14591   if test "$PKG_CONFIG" = "no" ; then
14592      echo "*** The pkg-config script could not be found. Make sure it is"
14593      echo "*** in your path, or set the PKG_CONFIG environment variable"
14594      echo "*** to the full path to pkg-config."
14595      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14596   else
14597      PKG_CONFIG_MIN_VERSION=0.9.0
14598      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14599         echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14600 echo "configure:14601: checking for pangoxft" >&5
14601
14602         if $PKG_CONFIG --exists "pangoxft" ; then
14603             echo "$ac_t""yes" 1>&6
14604             succeeded=yes
14605
14606             echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14607 echo "configure:14608: checking PANGOXFT_CFLAGS" >&5
14608             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14609             echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14610
14611             echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14612 echo "configure:14613: checking PANGOXFT_LIBS" >&5
14613             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14614             echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14615         else
14616             PANGOXFT_CFLAGS=""
14617             PANGOXFT_LIBS=""
14618             ## If we have a custom action on failure, don't print errors, but 
14619             ## do set a variable so people can do so.
14620             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14621             
14622         fi
14623
14624         
14625         
14626      else
14627         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14628         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14629      fi
14630   fi
14631
14632   if test $succeeded = yes; then
14633      
14634                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14635                         LIBS="$LIBS $PANGOXFT_LIBS"
14636                     
14637   else
14638      
14639                         echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14640                     
14641                 
14642   fi
14643
14644         fi
14645
14646         wxUSE_UNIVERSAL="yes"
14647
14648         if test "$wxUSE_NANOX" = "yes"; then
14649             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14650             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"
14651             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14652         else
14653             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14654         fi
14655
14656         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14657         TOOLKIT=X11
14658         GUIDIST=X11_DIST
14659     fi
14660
14661     if test "$wxUSE_MOTIF" = 1; then
14662                         if test "$no_x" = yes; then
14663   # Not all programs may use this symbol, but it does not hurt to define it.
14664   cat >> confdefs.h <<\EOF
14665 #define X_DISPLAY_MISSING 1
14666 EOF
14667
14668   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14669 else
14670   if test -n "$x_includes"; then
14671     X_CFLAGS="$X_CFLAGS -I$x_includes"
14672   fi
14673
14674   # It would also be nice to do this for all -L options, not just this one.
14675   if test -n "$x_libraries"; then
14676     X_LIBS="$X_LIBS -L$x_libraries"
14677     # For Solaris; some versions of Sun CC require a space after -R and
14678     # others require no space.  Words are not sufficient . . . .
14679     case "`(uname -sr) 2>/dev/null`" in
14680     "SunOS 5"*)
14681       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14682 echo "configure:14683: checking whether -R must be followed by a space" >&5
14683       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14684       cat > conftest.$ac_ext <<EOF
14685 #line 14686 "configure"
14686 #include "confdefs.h"
14687
14688 int main() {
14689
14690 ; return 0; }
14691 EOF
14692 if { (eval echo configure:14693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14693   rm -rf conftest*
14694   ac_R_nospace=yes
14695 else
14696   echo "configure: failed program was:" >&5
14697   cat conftest.$ac_ext >&5
14698   rm -rf conftest*
14699   ac_R_nospace=no
14700 fi
14701 rm -f conftest*
14702       if test $ac_R_nospace = yes; then
14703         echo "$ac_t""no" 1>&6
14704         X_LIBS="$X_LIBS -R$x_libraries"
14705       else
14706         LIBS="$ac_xsave_LIBS -R $x_libraries"
14707         cat > conftest.$ac_ext <<EOF
14708 #line 14709 "configure"
14709 #include "confdefs.h"
14710
14711 int main() {
14712
14713 ; return 0; }
14714 EOF
14715 if { (eval echo configure:14716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14716   rm -rf conftest*
14717   ac_R_space=yes
14718 else
14719   echo "configure: failed program was:" >&5
14720   cat conftest.$ac_ext >&5
14721   rm -rf conftest*
14722   ac_R_space=no
14723 fi
14724 rm -f conftest*
14725         if test $ac_R_space = yes; then
14726           echo "$ac_t""yes" 1>&6
14727           X_LIBS="$X_LIBS -R $x_libraries"
14728         else
14729           echo "$ac_t""neither works" 1>&6
14730         fi
14731       fi
14732       LIBS="$ac_xsave_LIBS"
14733     esac
14734   fi
14735
14736   # Check for system-dependent libraries X programs must link with.
14737   # Do this before checking for the system-independent R6 libraries
14738   # (-lICE), since we may need -lsocket or whatever for X linking.
14739
14740   if test "$ISC" = yes; then
14741     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14742   else
14743     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14744     # libraries were built with DECnet support.  And karl@cs.umb.edu says
14745     # the Alpha needs dnet_stub (dnet does not exist).
14746     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14747 echo "configure:14748: checking for dnet_ntoa in -ldnet" >&5
14748 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14750   echo $ac_n "(cached) $ac_c" 1>&6
14751 else
14752   ac_save_LIBS="$LIBS"
14753 LIBS="-ldnet  $LIBS"
14754 cat > conftest.$ac_ext <<EOF
14755 #line 14756 "configure"
14756 #include "confdefs.h"
14757 /* Override any gcc2 internal prototype to avoid an error.  */
14758 /* We use char because int might match the return type of a gcc2
14759     builtin and then its argument prototype would still apply.  */
14760 char dnet_ntoa();
14761
14762 int main() {
14763 dnet_ntoa()
14764 ; return 0; }
14765 EOF
14766 if { (eval echo configure:14767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14767   rm -rf conftest*
14768   eval "ac_cv_lib_$ac_lib_var=yes"
14769 else
14770   echo "configure: failed program was:" >&5
14771   cat conftest.$ac_ext >&5
14772   rm -rf conftest*
14773   eval "ac_cv_lib_$ac_lib_var=no"
14774 fi
14775 rm -f conftest*
14776 LIBS="$ac_save_LIBS"
14777
14778 fi
14779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14780   echo "$ac_t""yes" 1>&6
14781   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14782 else
14783   echo "$ac_t""no" 1>&6
14784 fi
14785
14786     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14787       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14788 echo "configure:14789: checking for dnet_ntoa in -ldnet_stub" >&5
14789 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14791   echo $ac_n "(cached) $ac_c" 1>&6
14792 else
14793   ac_save_LIBS="$LIBS"
14794 LIBS="-ldnet_stub  $LIBS"
14795 cat > conftest.$ac_ext <<EOF
14796 #line 14797 "configure"
14797 #include "confdefs.h"
14798 /* Override any gcc2 internal prototype to avoid an error.  */
14799 /* We use char because int might match the return type of a gcc2
14800     builtin and then its argument prototype would still apply.  */
14801 char dnet_ntoa();
14802
14803 int main() {
14804 dnet_ntoa()
14805 ; return 0; }
14806 EOF
14807 if { (eval echo configure:14808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14808   rm -rf conftest*
14809   eval "ac_cv_lib_$ac_lib_var=yes"
14810 else
14811   echo "configure: failed program was:" >&5
14812   cat conftest.$ac_ext >&5
14813   rm -rf conftest*
14814   eval "ac_cv_lib_$ac_lib_var=no"
14815 fi
14816 rm -f conftest*
14817 LIBS="$ac_save_LIBS"
14818
14819 fi
14820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14821   echo "$ac_t""yes" 1>&6
14822   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14823 else
14824   echo "$ac_t""no" 1>&6
14825 fi
14826
14827     fi
14828
14829     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14830     # to get the SysV transport functions.
14831     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14832     # needs -lnsl.
14833     # The nsl library prevents programs from opening the X display
14834     # on Irix 5.2, according to dickey@clark.net.
14835     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14836 echo "configure:14837: checking for gethostbyname" >&5
14837 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14838   echo $ac_n "(cached) $ac_c" 1>&6
14839 else
14840   cat > conftest.$ac_ext <<EOF
14841 #line 14842 "configure"
14842 #include "confdefs.h"
14843 /* System header to define __stub macros and hopefully few prototypes,
14844     which can conflict with char gethostbyname(); below.  */
14845 #include <assert.h>
14846 /* Override any gcc2 internal prototype to avoid an error.  */
14847 /* We use char because int might match the return type of a gcc2
14848     builtin and then its argument prototype would still apply.  */
14849 char gethostbyname();
14850
14851 int main() {
14852
14853 /* The GNU C library defines this for functions which it implements
14854     to always fail with ENOSYS.  Some functions are actually named
14855     something starting with __ and the normal name is an alias.  */
14856 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14857 choke me
14858 #else
14859 gethostbyname();
14860 #endif
14861
14862 ; return 0; }
14863 EOF
14864 if { (eval echo configure:14865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14865   rm -rf conftest*
14866   eval "ac_cv_func_gethostbyname=yes"
14867 else
14868   echo "configure: failed program was:" >&5
14869   cat conftest.$ac_ext >&5
14870   rm -rf conftest*
14871   eval "ac_cv_func_gethostbyname=no"
14872 fi
14873 rm -f conftest*
14874 fi
14875
14876 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14877   echo "$ac_t""yes" 1>&6
14878   :
14879 else
14880   echo "$ac_t""no" 1>&6
14881 fi
14882
14883     if test $ac_cv_func_gethostbyname = no; then
14884       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14885 echo "configure:14886: checking for gethostbyname in -lnsl" >&5
14886 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14888   echo $ac_n "(cached) $ac_c" 1>&6
14889 else
14890   ac_save_LIBS="$LIBS"
14891 LIBS="-lnsl  $LIBS"
14892 cat > conftest.$ac_ext <<EOF
14893 #line 14894 "configure"
14894 #include "confdefs.h"
14895 /* Override any gcc2 internal prototype to avoid an error.  */
14896 /* We use char because int might match the return type of a gcc2
14897     builtin and then its argument prototype would still apply.  */
14898 char gethostbyname();
14899
14900 int main() {
14901 gethostbyname()
14902 ; return 0; }
14903 EOF
14904 if { (eval echo configure:14905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14905   rm -rf conftest*
14906   eval "ac_cv_lib_$ac_lib_var=yes"
14907 else
14908   echo "configure: failed program was:" >&5
14909   cat conftest.$ac_ext >&5
14910   rm -rf conftest*
14911   eval "ac_cv_lib_$ac_lib_var=no"
14912 fi
14913 rm -f conftest*
14914 LIBS="$ac_save_LIBS"
14915
14916 fi
14917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14918   echo "$ac_t""yes" 1>&6
14919   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14920 else
14921   echo "$ac_t""no" 1>&6
14922 fi
14923
14924     fi
14925
14926     # lieder@skyler.mavd.honeywell.com says without -lsocket,
14927     # socket/setsockopt and other routines are undefined under SCO ODT
14928     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
14929     # on later versions), says simon@lia.di.epfl.ch: it contains
14930     # gethostby* variants that don't use the nameserver (or something).
14931     # -lsocket must be given before -lnsl if both are needed.
14932     # We assume that if connect needs -lnsl, so does gethostbyname.
14933     echo $ac_n "checking for connect""... $ac_c" 1>&6
14934 echo "configure:14935: checking for connect" >&5
14935 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14936   echo $ac_n "(cached) $ac_c" 1>&6
14937 else
14938   cat > conftest.$ac_ext <<EOF
14939 #line 14940 "configure"
14940 #include "confdefs.h"
14941 /* System header to define __stub macros and hopefully few prototypes,
14942     which can conflict with char connect(); below.  */
14943 #include <assert.h>
14944 /* Override any gcc2 internal prototype to avoid an error.  */
14945 /* We use char because int might match the return type of a gcc2
14946     builtin and then its argument prototype would still apply.  */
14947 char connect();
14948
14949 int main() {
14950
14951 /* The GNU C library defines this for functions which it implements
14952     to always fail with ENOSYS.  Some functions are actually named
14953     something starting with __ and the normal name is an alias.  */
14954 #if defined (__stub_connect) || defined (__stub___connect)
14955 choke me
14956 #else
14957 connect();
14958 #endif
14959
14960 ; return 0; }
14961 EOF
14962 if { (eval echo configure:14963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14963   rm -rf conftest*
14964   eval "ac_cv_func_connect=yes"
14965 else
14966   echo "configure: failed program was:" >&5
14967   cat conftest.$ac_ext >&5
14968   rm -rf conftest*
14969   eval "ac_cv_func_connect=no"
14970 fi
14971 rm -f conftest*
14972 fi
14973
14974 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14975   echo "$ac_t""yes" 1>&6
14976   :
14977 else
14978   echo "$ac_t""no" 1>&6
14979 fi
14980
14981     if test $ac_cv_func_connect = no; then
14982       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14983 echo "configure:14984: checking for connect in -lsocket" >&5
14984 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14985 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14986   echo $ac_n "(cached) $ac_c" 1>&6
14987 else
14988   ac_save_LIBS="$LIBS"
14989 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14990 cat > conftest.$ac_ext <<EOF
14991 #line 14992 "configure"
14992 #include "confdefs.h"
14993 /* Override any gcc2 internal prototype to avoid an error.  */
14994 /* We use char because int might match the return type of a gcc2
14995     builtin and then its argument prototype would still apply.  */
14996 char connect();
14997
14998 int main() {
14999 connect()
15000 ; return 0; }
15001 EOF
15002 if { (eval echo configure:15003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15003   rm -rf conftest*
15004   eval "ac_cv_lib_$ac_lib_var=yes"
15005 else
15006   echo "configure: failed program was:" >&5
15007   cat conftest.$ac_ext >&5
15008   rm -rf conftest*
15009   eval "ac_cv_lib_$ac_lib_var=no"
15010 fi
15011 rm -f conftest*
15012 LIBS="$ac_save_LIBS"
15013
15014 fi
15015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15016   echo "$ac_t""yes" 1>&6
15017   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15018 else
15019   echo "$ac_t""no" 1>&6
15020 fi
15021
15022     fi
15023
15024     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15025     echo $ac_n "checking for remove""... $ac_c" 1>&6
15026 echo "configure:15027: checking for remove" >&5
15027 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15028   echo $ac_n "(cached) $ac_c" 1>&6
15029 else
15030   cat > conftest.$ac_ext <<EOF
15031 #line 15032 "configure"
15032 #include "confdefs.h"
15033 /* System header to define __stub macros and hopefully few prototypes,
15034     which can conflict with char remove(); below.  */
15035 #include <assert.h>
15036 /* Override any gcc2 internal prototype to avoid an error.  */
15037 /* We use char because int might match the return type of a gcc2
15038     builtin and then its argument prototype would still apply.  */
15039 char remove();
15040
15041 int main() {
15042
15043 /* The GNU C library defines this for functions which it implements
15044     to always fail with ENOSYS.  Some functions are actually named
15045     something starting with __ and the normal name is an alias.  */
15046 #if defined (__stub_remove) || defined (__stub___remove)
15047 choke me
15048 #else
15049 remove();
15050 #endif
15051
15052 ; return 0; }
15053 EOF
15054 if { (eval echo configure:15055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15055   rm -rf conftest*
15056   eval "ac_cv_func_remove=yes"
15057 else
15058   echo "configure: failed program was:" >&5
15059   cat conftest.$ac_ext >&5
15060   rm -rf conftest*
15061   eval "ac_cv_func_remove=no"
15062 fi
15063 rm -f conftest*
15064 fi
15065
15066 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15067   echo "$ac_t""yes" 1>&6
15068   :
15069 else
15070   echo "$ac_t""no" 1>&6
15071 fi
15072
15073     if test $ac_cv_func_remove = no; then
15074       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15075 echo "configure:15076: checking for remove in -lposix" >&5
15076 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15078   echo $ac_n "(cached) $ac_c" 1>&6
15079 else
15080   ac_save_LIBS="$LIBS"
15081 LIBS="-lposix  $LIBS"
15082 cat > conftest.$ac_ext <<EOF
15083 #line 15084 "configure"
15084 #include "confdefs.h"
15085 /* Override any gcc2 internal prototype to avoid an error.  */
15086 /* We use char because int might match the return type of a gcc2
15087     builtin and then its argument prototype would still apply.  */
15088 char remove();
15089
15090 int main() {
15091 remove()
15092 ; return 0; }
15093 EOF
15094 if { (eval echo configure:15095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15095   rm -rf conftest*
15096   eval "ac_cv_lib_$ac_lib_var=yes"
15097 else
15098   echo "configure: failed program was:" >&5
15099   cat conftest.$ac_ext >&5
15100   rm -rf conftest*
15101   eval "ac_cv_lib_$ac_lib_var=no"
15102 fi
15103 rm -f conftest*
15104 LIBS="$ac_save_LIBS"
15105
15106 fi
15107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15108   echo "$ac_t""yes" 1>&6
15109   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15110 else
15111   echo "$ac_t""no" 1>&6
15112 fi
15113
15114     fi
15115
15116     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15117     echo $ac_n "checking for shmat""... $ac_c" 1>&6
15118 echo "configure:15119: checking for shmat" >&5
15119 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15120   echo $ac_n "(cached) $ac_c" 1>&6
15121 else
15122   cat > conftest.$ac_ext <<EOF
15123 #line 15124 "configure"
15124 #include "confdefs.h"
15125 /* System header to define __stub macros and hopefully few prototypes,
15126     which can conflict with char shmat(); below.  */
15127 #include <assert.h>
15128 /* Override any gcc2 internal prototype to avoid an error.  */
15129 /* We use char because int might match the return type of a gcc2
15130     builtin and then its argument prototype would still apply.  */
15131 char shmat();
15132
15133 int main() {
15134
15135 /* The GNU C library defines this for functions which it implements
15136     to always fail with ENOSYS.  Some functions are actually named
15137     something starting with __ and the normal name is an alias.  */
15138 #if defined (__stub_shmat) || defined (__stub___shmat)
15139 choke me
15140 #else
15141 shmat();
15142 #endif
15143
15144 ; return 0; }
15145 EOF
15146 if { (eval echo configure:15147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15147   rm -rf conftest*
15148   eval "ac_cv_func_shmat=yes"
15149 else
15150   echo "configure: failed program was:" >&5
15151   cat conftest.$ac_ext >&5
15152   rm -rf conftest*
15153   eval "ac_cv_func_shmat=no"
15154 fi
15155 rm -f conftest*
15156 fi
15157
15158 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15159   echo "$ac_t""yes" 1>&6
15160   :
15161 else
15162   echo "$ac_t""no" 1>&6
15163 fi
15164
15165     if test $ac_cv_func_shmat = no; then
15166       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15167 echo "configure:15168: checking for shmat in -lipc" >&5
15168 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15170   echo $ac_n "(cached) $ac_c" 1>&6
15171 else
15172   ac_save_LIBS="$LIBS"
15173 LIBS="-lipc  $LIBS"
15174 cat > conftest.$ac_ext <<EOF
15175 #line 15176 "configure"
15176 #include "confdefs.h"
15177 /* Override any gcc2 internal prototype to avoid an error.  */
15178 /* We use char because int might match the return type of a gcc2
15179     builtin and then its argument prototype would still apply.  */
15180 char shmat();
15181
15182 int main() {
15183 shmat()
15184 ; return 0; }
15185 EOF
15186 if { (eval echo configure:15187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15187   rm -rf conftest*
15188   eval "ac_cv_lib_$ac_lib_var=yes"
15189 else
15190   echo "configure: failed program was:" >&5
15191   cat conftest.$ac_ext >&5
15192   rm -rf conftest*
15193   eval "ac_cv_lib_$ac_lib_var=no"
15194 fi
15195 rm -f conftest*
15196 LIBS="$ac_save_LIBS"
15197
15198 fi
15199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15200   echo "$ac_t""yes" 1>&6
15201   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15202 else
15203   echo "$ac_t""no" 1>&6
15204 fi
15205
15206     fi
15207   fi
15208
15209   # Check for libraries that X11R6 Xt/Xaw programs need.
15210   ac_save_LDFLAGS="$LDFLAGS"
15211   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15212   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15213   # check for ICE first), but we must link in the order -lSM -lICE or
15214   # we get undefined symbols.  So assume we have SM if we have ICE.
15215   # These have to be linked with before -lX11, unlike the other
15216   # libraries we check for below, so use a different variable.
15217   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15218   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15219 echo "configure:15220: checking for IceConnectionNumber in -lICE" >&5
15220 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15222   echo $ac_n "(cached) $ac_c" 1>&6
15223 else
15224   ac_save_LIBS="$LIBS"
15225 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15226 cat > conftest.$ac_ext <<EOF
15227 #line 15228 "configure"
15228 #include "confdefs.h"
15229 /* Override any gcc2 internal prototype to avoid an error.  */
15230 /* We use char because int might match the return type of a gcc2
15231     builtin and then its argument prototype would still apply.  */
15232 char IceConnectionNumber();
15233
15234 int main() {
15235 IceConnectionNumber()
15236 ; return 0; }
15237 EOF
15238 if { (eval echo configure:15239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15239   rm -rf conftest*
15240   eval "ac_cv_lib_$ac_lib_var=yes"
15241 else
15242   echo "configure: failed program was:" >&5
15243   cat conftest.$ac_ext >&5
15244   rm -rf conftest*
15245   eval "ac_cv_lib_$ac_lib_var=no"
15246 fi
15247 rm -f conftest*
15248 LIBS="$ac_save_LIBS"
15249
15250 fi
15251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15252   echo "$ac_t""yes" 1>&6
15253   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15254 else
15255   echo "$ac_t""no" 1>&6
15256 fi
15257
15258   LDFLAGS="$ac_save_LDFLAGS"
15259
15260 fi
15261
15262
15263         if test "$no_x" = "yes"; then
15264           { echo "configure: error: X11 not found" 1>&2; exit 1; }
15265         fi
15266
15267                         GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15268         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15269         AFMINSTALL=afminstall
15270         COMPILED_X_PROGRAM=0
15271
15272         echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15273 echo "configure:15274: checking for Motif/Lesstif headers" >&5
15274         
15275 ac_find_includes=
15276 for ac_dir in $SEARCH_INCLUDE /usr/include;
15277   do
15278     if test -f "$ac_dir/Xm/Xm.h"; then
15279       ac_find_includes=$ac_dir
15280       break
15281     fi
15282   done
15283
15284         if test "$ac_find_includes" != "" ; then
15285             echo "$ac_t""found in $ac_find_includes" 1>&6
15286             
15287     if test "x$ac_find_includes" = "x/usr/include"; then
15288     ac_path_to_include=""
15289   else
15290     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15291     result=$?
15292     if test $result = 0; then
15293       ac_path_to_include=""
15294     else
15295       ac_path_to_include=" -I$ac_find_includes"
15296     fi
15297   fi
15298
15299             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15300         else
15301             cat > conftest.$ac_ext <<EOF
15302 #line 15303 "configure"
15303 #include "confdefs.h"
15304
15305                     #include <Xm/Xm.h>
15306                 
15307 int main() {
15308
15309                     int version;
15310                     version = xmUseVersion;
15311                 
15312 ; return 0; }
15313 EOF
15314 if { (eval echo configure:15315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15315   rm -rf conftest*
15316   
15317                     echo "$ac_t""found in default search path" 1>&6
15318                     COMPILED_X_PROGRAM=1
15319                 
15320 else
15321   echo "configure: failed program was:" >&5
15322   cat conftest.$ac_ext >&5
15323   rm -rf conftest*
15324   
15325                     echo "$ac_t""no" 1>&6
15326                     { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15327                 
15328             
15329 fi
15330 rm -f conftest*
15331         fi
15332
15333         if test "$COMPILED_X_PROGRAM" = 0; then
15334             echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15335 echo "configure:15336: checking for Motif/Lesstif library" >&5
15336             
15337 ac_find_libraries=
15338 for ac_dir in $SEARCH_LIB /usr/lib;
15339   do
15340     for ac_extension in a so sl dylib; do
15341       if test -f "$ac_dir/libXm.$ac_extension"; then
15342         ac_find_libraries=$ac_dir
15343         break 2
15344       fi
15345     done
15346   done
15347
15348             if test "$ac_find_libraries" != "" ; then
15349                 echo "$ac_t""found at $ac_find_libraries" 1>&6
15350
15351                 
15352   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15353   result=$?
15354   if test $result = 0; then
15355     ac_path_to_link=""
15356   else
15357     ac_path_to_link=" -L$ac_find_libraries"
15358   fi
15359
15360                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15361             else
15362                                                                 save_CFLAGS=$CFLAGS
15363                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15364
15365                 cat > conftest.$ac_ext <<EOF
15366 #line 15367 "configure"
15367 #include "confdefs.h"
15368
15369                         #include <Xm/Xm.h>
15370                     
15371 int main() {
15372
15373                         int version;
15374                         version = xmUseVersion;
15375                     
15376 ; return 0; }
15377 EOF
15378 if { (eval echo configure:15379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15379   rm -rf conftest*
15380   
15381                         echo "$ac_t""found in default search path" 1>&6
15382                         COMPILED_X_PROGRAM=1
15383                     
15384 else
15385   echo "configure: failed program was:" >&5
15386   cat conftest.$ac_ext >&5
15387   rm -rf conftest*
15388   
15389                         echo "$ac_t""no" 1>&6
15390                         { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15391                     
15392                 
15393 fi
15394 rm -f conftest*
15395
15396                 CFLAGS=$save_CFLAGS
15397             fi
15398         fi
15399
15400         xpm_link=
15401         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15402 echo "configure:15403: checking for Xpm library" >&5
15403         
15404 ac_find_libraries=
15405 for ac_dir in $SEARCH_LIB /usr/lib;
15406   do
15407     for ac_extension in a so sl dylib; do
15408       if test -f "$ac_dir/libXpm.$ac_extension"; then
15409         ac_find_libraries=$ac_dir
15410         break 2
15411       fi
15412     done
15413   done
15414
15415         if test "$ac_find_libraries" != "" ; then
15416             
15417   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15418   result=$?
15419   if test $result = 0; then
15420     ac_path_to_link=""
15421   else
15422     ac_path_to_link=" -L$ac_find_libraries"
15423   fi
15424
15425             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15426
15427             xpm_link=" -lXpm"
15428             cat >> confdefs.h <<\EOF
15429 #define wxHAVE_LIB_XPM 1
15430 EOF
15431
15432             echo "$ac_t""found at $ac_find_libraries" 1>&6
15433         else
15434             save_CFLAGS=$CFLAGS
15435             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15436
15437             cat > conftest.$ac_ext <<EOF
15438 #line 15439 "configure"
15439 #include "confdefs.h"
15440
15441                     #include <X11/xpm.h>
15442                 
15443 int main() {
15444
15445                     int version;
15446                     version = XpmLibraryVersion();
15447                 
15448 ; return 0; }
15449 EOF
15450 if { (eval echo configure:15451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15451   rm -rf conftest*
15452   
15453                     xpm_link=" -lXpm"
15454                     cat >> confdefs.h <<\EOF
15455 #define wxHAVE_LIB_XPM 1
15456 EOF
15457
15458                     echo "$ac_t""found in default search path" 1>&6
15459                     COMPILED_X_PROGRAM=0
15460                 
15461 else
15462   echo "configure: failed program was:" >&5
15463   cat conftest.$ac_ext >&5
15464   rm -rf conftest*
15465   
15466                     echo "$ac_t""no" 1>&6
15467                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15468                 
15469             
15470 fi
15471 rm -f conftest*
15472
15473             CFLAGS=$save_CFLAGS
15474         fi
15475
15476         echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15477 echo "configure:15478: checking if we need -lXp and/or -lSM -lICE" >&5
15478         libp_link=""
15479         libsm_ice_link=""
15480         libs_found=0
15481         for libp in "" " -lXp"; do
15482             if test "$libs_found" = "0"; then
15483                 for libsm_ice in " -lSM -lICE"; do
15484                     if test "$libs_found" = "0"; then
15485                         save_LIBS="$LIBS"
15486                         LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15487                         save_CFLAGS=$CFLAGS
15488                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15489
15490                         cat > conftest.$ac_ext <<EOF
15491 #line 15492 "configure"
15492 #include "confdefs.h"
15493
15494                                 #include <Xm/Xm.h>
15495                                 #include <Xm/List.h>
15496                             
15497 int main() {
15498
15499                                 XmString string = NULL;
15500                                 Widget w = NULL;
15501                                 int position = 0;
15502                                 XmListAddItem(w, string, position);
15503                             
15504 ; return 0; }
15505 EOF
15506 if { (eval echo configure:15507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15507   rm -rf conftest*
15508   
15509                                 libp_link="$libp"
15510                                 libsm_ice_link="$libsm_ice"
15511                                 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15512                                 libs_found=1
15513                             
15514 else
15515   echo "configure: failed program was:" >&5
15516   cat conftest.$ac_ext >&5
15517   rm -rf conftest*
15518   
15519                         
15520 fi
15521 rm -f conftest*
15522
15523                         LIBS="$save_LIBS"
15524                         CFLAGS=$save_CFLAGS
15525                     fi
15526                 done
15527             fi
15528         done
15529
15530         if test "$libs_found" = "0"; then
15531             echo "$ac_t""can't find the right libraries" 1>&6
15532             { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15533         fi
15534
15535         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15536         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
15537         TOOLKIT=MOTIF
15538         GUIDIST=MOTIF_DIST
15539     fi
15540
15541     if test "$wxUSE_MAC" = 1; then
15542         CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15543
15544         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15545         TOOLKIT=MAC
15546                 GUIDIST=MACX_DIST
15547     fi
15548
15549     if test "$wxUSE_PM" = 1; then
15550         TOOLKIT=PM
15551         GUIDIST=GTK_DIST
15552         echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2
15553         wxUSE_PROLOGIO="yes"
15554         wxUSE_RESOURCES="yes"
15555         echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15556         wxUSE_THREADS="no"
15557     fi
15558
15559         if test "$TOOLKIT" = "PM" ; then
15560         TOOLKIT_DIR="os2"
15561     else
15562         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15563     fi
15564
15565         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15566
15567     if test "$wxUSE_UNIVERSAL" = "yes"; then
15568         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15569
15570                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15571         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15572
15573         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15574         if test "$wxUSE_X11" = 1; then
15575             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15576         else
15577             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15578         fi
15579         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15580         WIDGET_SET=univ
15581     else
15582         ALL_OBJECTS="\$(GUIOBJS)"
15583         ALL_SOURCES="\$(ALL_SOURCES)"
15584         ALL_HEADERS="\$(ALL_HEADERS)"
15585     fi
15586
15587     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15588
15589     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15590         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15591     fi
15592
15593     if test "$wxUSE_HTML" = "yes"; then
15594         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15595     fi
15596
15597     if test "$wxUSE_LIBJPEG" = "builtin" ; then
15598         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15599     fi
15600     if test "$wxUSE_LIBTIFF" = "builtin" ; then
15601         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15602     fi
15603     if test "$wxUSE_LIBPNG" = "builtin" ; then
15604         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15605     fi
15606
15607         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15608     DISTDIR="wx\$(TOOLKIT)"
15609 else
15610     USE_GUI=0
15611
15612             TOOLKIT_DIR="base"
15613
15614         if test "$USE_WIN32" = 1 ; then
15615         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15616         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15617
15618                         TOOLKIT="MSW"
15619     else
15620         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15621         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15622     fi
15623
15624     ALL_SOURCES="\$(ALL_SOURCES)"
15625     ALL_HEADERS="\$(ALL_HEADERS)"
15626
15627     PORT_FILES="\${top_srcdir}/src/files.lst"
15628
15629         GUIDIST="BASE_DIST"
15630     DISTDIR="wxBase"
15631 fi
15632
15633
15634 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15635     ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15636 fi
15637
15638 if test "$wxUSE_REGEX" = "builtin" ; then
15639     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15640 fi
15641 if test "$wxUSE_ZLIB" = "builtin" ; then
15642     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15643 fi
15644
15645
15646 if test "$wxUSE_OPENGL" = "yes"; then
15647     if test "$wxUSE_MAC" = 1; then
15648         OPENGL_LIBS="-framework OpenGL -framework AGL"
15649     elif test "$wxUSE_MSW" = 1; then
15650         OPENGL_LIBS="-lopengl32 -lglu32"
15651     else
15652         ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15653 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15654 echo "configure:15655: checking for GL/gl.h" >&5
15655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15656   echo $ac_n "(cached) $ac_c" 1>&6
15657 else
15658   cat > conftest.$ac_ext <<EOF
15659 #line 15660 "configure"
15660 #include "confdefs.h"
15661 #include <GL/gl.h>
15662 EOF
15663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15664 { (eval echo configure:15665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15666 if test -z "$ac_err"; then
15667   rm -rf conftest*
15668   eval "ac_cv_header_$ac_safe=yes"
15669 else
15670   echo "$ac_err" >&5
15671   echo "configure: failed program was:" >&5
15672   cat conftest.$ac_ext >&5
15673   rm -rf conftest*
15674   eval "ac_cv_header_$ac_safe=no"
15675 fi
15676 rm -f conftest*
15677 fi
15678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15679   echo "$ac_t""yes" 1>&6
15680   
15681                 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
15682 echo "configure:15683: checking for -lGL" >&5
15683                 
15684 ac_find_libraries=
15685 for ac_dir in $SEARCH_LIB /usr/lib;
15686   do
15687     for ac_extension in a so sl dylib; do
15688       if test -f "$ac_dir/libGL.$ac_extension"; then
15689         ac_find_libraries=$ac_dir
15690         break 2
15691       fi
15692     done
15693   done
15694
15695                 if test "$ac_find_libraries" != "" ; then
15696                     
15697   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15698   result=$?
15699   if test $result = 0; then
15700     ac_path_to_link=""
15701   else
15702     ac_path_to_link=" -L$ac_find_libraries"
15703   fi
15704
15705                     if test "$ac_path_to_link" = " -L/usr/lib" ; then
15706                         LDFLAGS_GL="$LDFLAGS"
15707                     else
15708                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15709                     fi
15710                     OPENGL_LIBS="-lGL -lGLU"
15711                     echo "$ac_t""yes" 1>&6
15712                 else
15713                     echo "$ac_t""no" 1>&6
15714                     echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15715 echo "configure:15716: checking for -lMesaGL" >&5
15716                     
15717 ac_find_libraries=
15718 for ac_dir in $SEARCH_LIB /usr/lib;
15719   do
15720     for ac_extension in a so sl dylib; do
15721       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15722         ac_find_libraries=$ac_dir
15723         break 2
15724       fi
15725     done
15726   done
15727
15728                     if test "$ac_find_libraries" != "" ; then
15729                         
15730   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15731   result=$?
15732   if test $result = 0; then
15733     ac_path_to_link=""
15734   else
15735     ac_path_to_link=" -L$ac_find_libraries"
15736   fi
15737
15738                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15739                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
15740                         echo "$ac_t""yes" 1>&6
15741                     else
15742                         echo "$ac_t""no" 1>&6
15743                     fi
15744                 fi
15745             
15746 else
15747   echo "$ac_t""no" 1>&6
15748 fi
15749
15750
15751         if test "x$OPENGL_LIBS" = "x"; then
15752                                                 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
15753         fi
15754     fi
15755
15756     if test "$wxUSE_OPENGL" = "yes"; then
15757         cat >> confdefs.h <<\EOF
15758 #define wxUSE_OPENGL 1
15759 EOF
15760
15761         cat >> confdefs.h <<\EOF
15762 #define wxUSE_GLCANVAS 1
15763 EOF
15764
15765         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15766     fi
15767 fi
15768
15769 if test -z "$TOOLKIT_VPATH" ; then
15770     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
15771 fi
15772
15773 if test -n "$TOOLKIT" ; then
15774     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15775 fi
15776
15777 lib_unicode_suffix=
15778 if test "$wxUSE_UNICODE" = "yes"; then
15779     lib_unicode_suffix=u
15780 fi
15781
15782 lib_debug_suffix=
15783 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15784     lib_debug_suffix=d
15785 fi
15786
15787 WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15788
15789 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15790 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15791
15792 if test "$cross_compiling" = "yes"; then
15793     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15794     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15795 fi
15796
15797 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15798 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15799 WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
15800
15801 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15802 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15803
15804 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15805 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15806 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15807 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15808
15809 case "${host}" in
15810     *-*-cygwin* | *-*-mingw32* )
15811
15812                         
15813         
15814         if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
15815             WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15816             WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15817             WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15818             WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15819         else
15820             WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15821             WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15822         fi
15823         ;;
15824
15825     *-*-darwin* )
15826                         
15827         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15828         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15829
15830         WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
15831         WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15832         WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
15833         WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15834
15835                         if test "$wxUSE_MAC" = 1; then
15836                                     WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
15837             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
15838         fi
15839         ;;
15840 esac
15841
15842 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15843 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15844
15845 WXCONFIG_LIBS="-l${WX_LIBRARY}"
15846 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15847
15848 if test "$wxUSE_OPENGL" = "yes"; then
15849     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15850     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15851 fi
15852
15853
15854
15855 if test "$wxUSE_SHARED" = "yes"; then
15856     case "${host}" in
15857       *-pc-os2_emx | *-pc-os2-emx | \
15858       *-pc-msdosdjgpp )
15859                 wxUSE_SHARED=no
15860         echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
15861       ;;
15862     esac
15863 fi
15864
15865 if test "$wxUSE_SHARED" = "yes"; then
15866
15867         if test "$wxUSE_OPENGL" = "yes"; then
15868         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15869         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15870     else
15871         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15872         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15873     fi
15874
15875         if test "$GCC" = "yes"; then
15876                 PIC_FLAG="-fPIC"
15877     fi
15878
15879
15880         
15881   found_versioning=no
15882
15883                         
15884     if test $found_versioning = no ; then
15885       echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
15886 echo "configure:15887: checking if the linker accepts --version-script" >&5
15887 if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
15888   echo $ac_n "(cached) $ac_c" 1>&6
15889 else
15890   
15891         echo "VER_1 { *; };" >conftest.sym
15892         echo "int main() { return 0; }" >conftest.cpp
15893   
15894         if { ac_try='
15895                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
15896                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:15897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
15897           if test -s conftest.stderr ; then
15898               wx_cv_version_script=no
15899           else
15900               wx_cv_version_script=yes
15901           fi
15902         else
15903           wx_cv_version_script=no
15904         fi
15905         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
15906       
15907 fi
15908
15909 echo "$ac_t""$wx_cv_version_script" 1>&6
15910       if test $wx_cv_version_script = yes ; then
15911         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
15912       fi
15913   fi
15914
15915
15916         SHARED_LD="${CXX} -shared -o"
15917
15918     case "${host}" in
15919       *-hp-hpux* )
15920                 if test "$GCC" = "yes"; then
15921                         SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
15922         else
15923                         LDFLAGS="$LDFLAGS -L/usr/lib"
15924
15925             SHARED_LD="${CXX} -b -o"
15926             PIC_FLAG="+Z"
15927         fi
15928
15929                 if test "$wxUSE_OPENGL" = "yes"; then
15930             WX_ALL_INSTALLED="preinstall_gl"
15931             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15932         else
15933             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15934         fi
15935       ;;
15936
15937       *-*-linux* )
15938         if test "$GCC" != "yes"; then
15939             echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
15940 echo "configure:15941: checking for Intel compiler" >&5
15941 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
15942   echo $ac_n "(cached) $ac_c" 1>&6
15943 else
15944   
15945                 cat > conftest.$ac_ext <<EOF
15946 #line 15947 "configure"
15947 #include "confdefs.h"
15948
15949 int main() {
15950
15951                         #ifndef __INTEL_COMPILER
15952                         #error Not icc
15953                         #endif
15954                     
15955 ; return 0; }
15956 EOF
15957 if { (eval echo configure:15958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15958   rm -rf conftest*
15959   wx_cv_prog_icc=yes
15960 else
15961   echo "configure: failed program was:" >&5
15962   cat conftest.$ac_ext >&5
15963   rm -rf conftest*
15964   wx_cv_prog_icc=no
15965                 
15966 fi
15967 rm -f conftest*
15968             
15969 fi
15970
15971 echo "$ac_t""$wx_cv_prog_icc" 1>&6
15972             if test "$wx_cv_prog_icc" = "yes"; then
15973                 PIC_FLAG="-KPIC"
15974             fi
15975         fi
15976
15977         if test "$wxUSE_SONAME" = "yes" ; then
15978             SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
15979             SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
15980                         WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
15981         fi
15982       ;;
15983
15984       *-*-solaris2* )
15985         if test "$GCC" = yes ; then
15986                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
15987         else
15988             SHARED_LD="${CXX} -G -o"
15989             PIC_FLAG="-KPIC"
15990             SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
15991             SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
15992         fi
15993       ;;
15994
15995       *-*-darwin* )
15996                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
15997         CFLAGS="$CFLAGS -fno-common"
15998         CXXFLAGS="$CXXFLAGS -fno-common"
15999                                         SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16000         PIC_FLAG="-dynamic -fPIC"
16001                                 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16002         SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16003       ;;
16004
16005       *-*-aix* )
16006                 if test "$GCC" != "yes"; then
16007                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16008 set dummy makeC++SharedLib; ac_word=$2
16009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16010 echo "configure:16011: checking for $ac_word" >&5
16011 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16012   echo $ac_n "(cached) $ac_c" 1>&6
16013 else
16014   if test -n "$AIX_CXX_LD"; then
16015   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16016 else
16017   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16018   ac_dummy="$PATH"
16019   for ac_dir in $ac_dummy; do
16020     test -z "$ac_dir" && ac_dir=.
16021     if test -f $ac_dir/$ac_word; then
16022       ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16023       break
16024     fi
16025   done
16026   IFS="$ac_save_ifs"
16027   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16028 fi
16029 fi
16030 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16031 if test -n "$AIX_CXX_LD"; then
16032   echo "$ac_t""$AIX_CXX_LD" 1>&6
16033 else
16034   echo "$ac_t""no" 1>&6
16035 fi
16036
16037
16038             SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16039         fi
16040       ;;
16041
16042       *-*-cygwin* | *-*-mingw32* )
16043         WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16044
16045         SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16046         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16047
16048         PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16049
16050                 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16051         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16052
16053         if test "$wxUSE_OPENGL" = "yes"; then
16054             LIBS="${LIBS} ${OPENGL_LIBS}"
16055         fi
16056       ;;
16057
16058       *-*-beos* )
16059                         SHARED_LD="${LD} -shared -o"
16060       ;;
16061
16062       *-*-irix* )
16063                 if test "$GCC" != "yes"; then
16064             PIC_FLAG="-KPIC"
16065         fi
16066       ;;
16067
16068       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16069       *-*-sunos4* | \
16070       *-*-osf* | \
16071       *-*-dgux5* | \
16072       *-*-sysv5* )
16073               ;;
16074
16075       *)
16076         { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16077     esac
16078
16079         if test "x$WX_TARGET_LIBRARY" = "x"; then
16080         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16081         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16082     fi
16083
16084         WX_TARGET_LIBRARY_TYPE="so"
16085     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16086 fi
16087
16088 if test "$wxUSE_SHARED" = "no"; then
16089
16090         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16091                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16092     fi
16093
16094     if test "$wxUSE_MAC" = 1; then
16095         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16096     fi
16097
16098     if test "$wxUSE_OPENGL" = "yes"; then
16099         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16100         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16101     else
16102         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16103     fi
16104
16105     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16106     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16107
16108     WX_TARGET_LIBRARY_TYPE="a"
16109     INSTALL_LIBRARY='$(INSTALL_DATA)'
16110
16111             STATIC_FLAG="yes"
16112 else
16113     STATIC_FLAG="no"
16114 fi
16115
16116 if test "$wxUSE_MAC" = 1; then
16117         LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16118     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16119     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16120     # Extract the first word of "Rez", so it can be a program name with args.
16121 set dummy Rez; ac_word=$2
16122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16123 echo "configure:16124: checking for $ac_word" >&5
16124 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16125   echo $ac_n "(cached) $ac_c" 1>&6
16126 else
16127   if test -n "$RESCOMP"; then
16128   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16129 else
16130   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16131   ac_dummy="$PATH"
16132   for ac_dir in $ac_dummy; do
16133     test -z "$ac_dir" && ac_dir=.
16134     if test -f $ac_dir/$ac_word; then
16135       ac_cv_prog_RESCOMP="Rez"
16136       break
16137     fi
16138   done
16139   IFS="$ac_save_ifs"
16140   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16141 fi
16142 fi
16143 RESCOMP="$ac_cv_prog_RESCOMP"
16144 if test -n "$RESCOMP"; then
16145   echo "$ac_t""$RESCOMP" 1>&6
16146 else
16147   echo "$ac_t""no" 1>&6
16148 fi
16149
16150     # Extract the first word of "DeRez", so it can be a program name with args.
16151 set dummy DeRez; ac_word=$2
16152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16153 echo "configure:16154: checking for $ac_word" >&5
16154 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16155   echo $ac_n "(cached) $ac_c" 1>&6
16156 else
16157   if test -n "$DEREZ"; then
16158   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16159 else
16160   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16161   ac_dummy="$PATH"
16162   for ac_dir in $ac_dummy; do
16163     test -z "$ac_dir" && ac_dir=.
16164     if test -f $ac_dir/$ac_word; then
16165       ac_cv_prog_DEREZ="DeRez"
16166       break
16167     fi
16168   done
16169   IFS="$ac_save_ifs"
16170   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16171 fi
16172 fi
16173 DEREZ="$ac_cv_prog_DEREZ"
16174 if test -n "$DEREZ"; then
16175   echo "$ac_t""$DEREZ" 1>&6
16176 else
16177   echo "$ac_t""no" 1>&6
16178 fi
16179
16180     MACOSX_BUNDLE="bundle"
16181             LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
16182     LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
16183 else
16184     if test "$wxUSE_PM" = 1; then
16185         LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
16186     fi
16187 fi
16188
16189
16190 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16191 echo "configure:16192: checking for ANSI C header files" >&5
16192 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16193   echo $ac_n "(cached) $ac_c" 1>&6
16194 else
16195   cat > conftest.$ac_ext <<EOF
16196 #line 16197 "configure"
16197 #include "confdefs.h"
16198 #include <stdlib.h>
16199 #include <stdarg.h>
16200 #include <string.h>
16201 #include <float.h>
16202 EOF
16203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16204 { (eval echo configure:16205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16206 if test -z "$ac_err"; then
16207   rm -rf conftest*
16208   ac_cv_header_stdc=yes
16209 else
16210   echo "$ac_err" >&5
16211   echo "configure: failed program was:" >&5
16212   cat conftest.$ac_ext >&5
16213   rm -rf conftest*
16214   ac_cv_header_stdc=no
16215 fi
16216 rm -f conftest*
16217
16218 if test $ac_cv_header_stdc = yes; then
16219   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16220 cat > conftest.$ac_ext <<EOF
16221 #line 16222 "configure"
16222 #include "confdefs.h"
16223 #include <string.h>
16224 EOF
16225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16226   egrep "memchr" >/dev/null 2>&1; then
16227   :
16228 else
16229   rm -rf conftest*
16230   ac_cv_header_stdc=no
16231 fi
16232 rm -f conftest*
16233
16234 fi
16235
16236 if test $ac_cv_header_stdc = yes; then
16237   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16238 cat > conftest.$ac_ext <<EOF
16239 #line 16240 "configure"
16240 #include "confdefs.h"
16241 #include <stdlib.h>
16242 EOF
16243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16244   egrep "free" >/dev/null 2>&1; then
16245   :
16246 else
16247   rm -rf conftest*
16248   ac_cv_header_stdc=no
16249 fi
16250 rm -f conftest*
16251
16252 fi
16253
16254 if test $ac_cv_header_stdc = yes; then
16255   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16256 if test "$cross_compiling" = yes; then
16257   :
16258 else
16259   cat > conftest.$ac_ext <<EOF
16260 #line 16261 "configure"
16261 #include "confdefs.h"
16262 #include <ctype.h>
16263 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16264 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16265 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16266 int main () { int i; for (i = 0; i < 256; i++)
16267 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16268 exit (0); }
16269
16270 EOF
16271 if { (eval echo configure:16272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16272 then
16273   :
16274 else
16275   echo "configure: failed program was:" >&5
16276   cat conftest.$ac_ext >&5
16277   rm -fr conftest*
16278   ac_cv_header_stdc=no
16279 fi
16280 rm -fr conftest*
16281 fi
16282
16283 fi
16284 fi
16285
16286 echo "$ac_t""$ac_cv_header_stdc" 1>&6
16287 if test $ac_cv_header_stdc = yes; then
16288   cat >> confdefs.h <<\EOF
16289 #define STDC_HEADERS 1
16290 EOF
16291
16292 fi
16293
16294 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16295 echo "configure:16296: checking for mode_t" >&5
16296 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16297   echo $ac_n "(cached) $ac_c" 1>&6
16298 else
16299   cat > conftest.$ac_ext <<EOF
16300 #line 16301 "configure"
16301 #include "confdefs.h"
16302 #include <sys/types.h>
16303 #if STDC_HEADERS
16304 #include <stdlib.h>
16305 #include <stddef.h>
16306 #endif
16307 EOF
16308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16309   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16310   rm -rf conftest*
16311   ac_cv_type_mode_t=yes
16312 else
16313   rm -rf conftest*
16314   ac_cv_type_mode_t=no
16315 fi
16316 rm -f conftest*
16317
16318 fi
16319 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16320 if test $ac_cv_type_mode_t = no; then
16321   cat >> confdefs.h <<\EOF
16322 #define mode_t int
16323 EOF
16324
16325 fi
16326
16327 echo $ac_n "checking for off_t""... $ac_c" 1>&6
16328 echo "configure:16329: checking for off_t" >&5
16329 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16330   echo $ac_n "(cached) $ac_c" 1>&6
16331 else
16332   cat > conftest.$ac_ext <<EOF
16333 #line 16334 "configure"
16334 #include "confdefs.h"
16335 #include <sys/types.h>
16336 #if STDC_HEADERS
16337 #include <stdlib.h>
16338 #include <stddef.h>
16339 #endif
16340 EOF
16341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16342   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16343   rm -rf conftest*
16344   ac_cv_type_off_t=yes
16345 else
16346   rm -rf conftest*
16347   ac_cv_type_off_t=no
16348 fi
16349 rm -f conftest*
16350
16351 fi
16352 echo "$ac_t""$ac_cv_type_off_t" 1>&6
16353 if test $ac_cv_type_off_t = no; then
16354   cat >> confdefs.h <<\EOF
16355 #define off_t long
16356 EOF
16357
16358 fi
16359
16360 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16361 echo "configure:16362: checking for pid_t" >&5
16362 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16363   echo $ac_n "(cached) $ac_c" 1>&6
16364 else
16365   cat > conftest.$ac_ext <<EOF
16366 #line 16367 "configure"
16367 #include "confdefs.h"
16368 #include <sys/types.h>
16369 #if STDC_HEADERS
16370 #include <stdlib.h>
16371 #include <stddef.h>
16372 #endif
16373 EOF
16374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16375   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16376   rm -rf conftest*
16377   ac_cv_type_pid_t=yes
16378 else
16379   rm -rf conftest*
16380   ac_cv_type_pid_t=no
16381 fi
16382 rm -f conftest*
16383
16384 fi
16385 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16386 if test $ac_cv_type_pid_t = no; then
16387   cat >> confdefs.h <<\EOF
16388 #define pid_t int
16389 EOF
16390
16391 fi
16392
16393 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16394 echo "configure:16395: checking for size_t" >&5
16395 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16396   echo $ac_n "(cached) $ac_c" 1>&6
16397 else
16398   cat > conftest.$ac_ext <<EOF
16399 #line 16400 "configure"
16400 #include "confdefs.h"
16401 #include <sys/types.h>
16402 #if STDC_HEADERS
16403 #include <stdlib.h>
16404 #include <stddef.h>
16405 #endif
16406 EOF
16407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16408   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16409   rm -rf conftest*
16410   ac_cv_type_size_t=yes
16411 else
16412   rm -rf conftest*
16413   ac_cv_type_size_t=no
16414 fi
16415 rm -f conftest*
16416
16417 fi
16418 echo "$ac_t""$ac_cv_type_size_t" 1>&6
16419 if test $ac_cv_type_size_t = no; then
16420   cat >> confdefs.h <<\EOF
16421 #define size_t unsigned
16422 EOF
16423
16424 fi
16425
16426 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16427 echo "configure:16428: checking for uid_t in sys/types.h" >&5
16428 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16429   echo $ac_n "(cached) $ac_c" 1>&6
16430 else
16431   cat > conftest.$ac_ext <<EOF
16432 #line 16433 "configure"
16433 #include "confdefs.h"
16434 #include <sys/types.h>
16435 EOF
16436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16437   egrep "uid_t" >/dev/null 2>&1; then
16438   rm -rf conftest*
16439   ac_cv_type_uid_t=yes
16440 else
16441   rm -rf conftest*
16442   ac_cv_type_uid_t=no
16443 fi
16444 rm -f conftest*
16445
16446 fi
16447
16448 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16449 if test $ac_cv_type_uid_t = no; then
16450   cat >> confdefs.h <<\EOF
16451 #define uid_t int
16452 EOF
16453
16454   cat >> confdefs.h <<\EOF
16455 #define gid_t int
16456 EOF
16457
16458 fi
16459
16460
16461
16462 ac_ext=C
16463 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16464 ac_cpp='$CXXCPP $CPPFLAGS'
16465 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16466 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16467 cross_compiling=$ac_cv_prog_cxx_cross
16468
16469 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16470 echo "configure:16471: checking if size_t is unsigned int" >&5
16471 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16472   echo $ac_n "(cached) $ac_c" 1>&6
16473 else
16474                           cat > conftest.$ac_ext <<EOF
16475 #line 16476 "configure"
16476 #include "confdefs.h"
16477 #include <stddef.h>
16478 int main() {
16479
16480             return 0; }
16481
16482             struct Foo { void foo(size_t); void foo(unsigned int); };
16483
16484             int bar() {
16485         
16486 ; return 0; }
16487 EOF
16488 if { (eval echo configure:16489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16489   rm -rf conftest*
16490   wx_cv_size_t_is_uint=no
16491 else
16492   echo "configure: failed program was:" >&5
16493   cat conftest.$ac_ext >&5
16494   rm -rf conftest*
16495   wx_cv_size_t_is_uint=yes
16496     
16497 fi
16498 rm -f conftest*
16499
16500 fi
16501
16502 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16503
16504 if test "$wx_cv_size_t_is_uint" = "yes"; then
16505     cat >> confdefs.h <<\EOF
16506 #define wxSIZE_T_IS_UINT 1
16507 EOF
16508
16509 else
16510     echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16511 echo "configure:16512: checking if size_t is unsigned long" >&5
16512 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16513   echo $ac_n "(cached) $ac_c" 1>&6
16514 else
16515   cat > conftest.$ac_ext <<EOF
16516 #line 16517 "configure"
16517 #include "confdefs.h"
16518 #include <stddef.h>
16519 int main() {
16520
16521                 return 0; }
16522
16523                 struct Foo { void foo(size_t); void foo(unsigned long); };
16524
16525                 int bar() {
16526             
16527 ; return 0; }
16528 EOF
16529 if { (eval echo configure:16530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16530   rm -rf conftest*
16531   wx_cv_size_t_is_ulong=no
16532 else
16533   echo "configure: failed program was:" >&5
16534   cat conftest.$ac_ext >&5
16535   rm -rf conftest*
16536   wx_cv_size_t_is_ulong=yes
16537         
16538 fi
16539 rm -f conftest*
16540     
16541 fi
16542
16543 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
16544
16545     if test "$wx_cv_size_t_is_ulong" = "yes"; then
16546         cat >> confdefs.h <<\EOF
16547 #define wxSIZE_T_IS_ULONG 1
16548 EOF
16549
16550     fi
16551 fi
16552
16553 ac_ext=c
16554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16555 ac_cpp='$CPP $CPPFLAGS'
16556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16558 cross_compiling=$ac_cv_prog_cc_cross
16559
16560
16561
16562 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
16563 echo "configure:16564: checking for pw_gecos in struct passwd" >&5
16564 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16565   echo $ac_n "(cached) $ac_c" 1>&6
16566 else
16567   
16568         cat > conftest.$ac_ext <<EOF
16569 #line 16570 "configure"
16570 #include "confdefs.h"
16571 #include <pwd.h>
16572 int main() {
16573
16574                 char *p;
16575                 struct passwd *pw;
16576                 p = pw->pw_gecos;
16577              
16578 ; return 0; }
16579 EOF
16580 if { (eval echo configure:16581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16581   rm -rf conftest*
16582   
16583                 wx_cv_struct_pw_gecos=yes
16584              
16585 else
16586   echo "configure: failed program was:" >&5
16587   cat conftest.$ac_ext >&5
16588   rm -rf conftest*
16589   
16590                 wx_cv_struct_pw_gecos=no
16591              
16592         
16593 fi
16594 rm -f conftest*
16595     
16596
16597 fi
16598
16599 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
16600
16601 if test "$wx_cv_struct_pw_gecos" = "yes"; then
16602     cat >> confdefs.h <<\EOF
16603 #define HAVE_PW_GECOS 1
16604 EOF
16605
16606 fi
16607
16608
16609 if test "$wx_cv_sizeof_wchar_t" != "0"; then
16610     cat >> confdefs.h <<\EOF
16611 #define wxUSE_WCHAR_T 1
16612 EOF
16613
16614
16615         WCSLEN_FOUND=0
16616     WCHAR_LINK=
16617     for ac_func in wcslen
16618 do
16619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16620 echo "configure:16621: checking for $ac_func" >&5
16621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16622   echo $ac_n "(cached) $ac_c" 1>&6
16623 else
16624   cat > conftest.$ac_ext <<EOF
16625 #line 16626 "configure"
16626 #include "confdefs.h"
16627 /* System header to define __stub macros and hopefully few prototypes,
16628     which can conflict with char $ac_func(); below.  */
16629 #include <assert.h>
16630 /* Override any gcc2 internal prototype to avoid an error.  */
16631 /* We use char because int might match the return type of a gcc2
16632     builtin and then its argument prototype would still apply.  */
16633 char $ac_func();
16634
16635 int main() {
16636
16637 /* The GNU C library defines this for functions which it implements
16638     to always fail with ENOSYS.  Some functions are actually named
16639     something starting with __ and the normal name is an alias.  */
16640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16641 choke me
16642 #else
16643 $ac_func();
16644 #endif
16645
16646 ; return 0; }
16647 EOF
16648 if { (eval echo configure:16649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16649   rm -rf conftest*
16650   eval "ac_cv_func_$ac_func=yes"
16651 else
16652   echo "configure: failed program was:" >&5
16653   cat conftest.$ac_ext >&5
16654   rm -rf conftest*
16655   eval "ac_cv_func_$ac_func=no"
16656 fi
16657 rm -f conftest*
16658 fi
16659
16660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16661   echo "$ac_t""yes" 1>&6
16662     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16663   cat >> confdefs.h <<EOF
16664 #define $ac_tr_func 1
16665 EOF
16666  WCSLEN_FOUND=1
16667 else
16668   echo "$ac_t""no" 1>&6
16669 fi
16670 done
16671
16672
16673     if test "$WCSLEN_FOUND" = 0; then
16674         if test "$TOOLKIT" = "MSW"; then
16675             echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
16676 echo "configure:16677: checking for wcslen in -lmsvcrt" >&5
16677 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16679   echo $ac_n "(cached) $ac_c" 1>&6
16680 else
16681   ac_save_LIBS="$LIBS"
16682 LIBS="-lmsvcrt  $LIBS"
16683 cat > conftest.$ac_ext <<EOF
16684 #line 16685 "configure"
16685 #include "confdefs.h"
16686 /* Override any gcc2 internal prototype to avoid an error.  */
16687 /* We use char because int might match the return type of a gcc2
16688     builtin and then its argument prototype would still apply.  */
16689 char wcslen();
16690
16691 int main() {
16692 wcslen()
16693 ; return 0; }
16694 EOF
16695 if { (eval echo configure:16696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16696   rm -rf conftest*
16697   eval "ac_cv_lib_$ac_lib_var=yes"
16698 else
16699   echo "configure: failed program was:" >&5
16700   cat conftest.$ac_ext >&5
16701   rm -rf conftest*
16702   eval "ac_cv_lib_$ac_lib_var=no"
16703 fi
16704 rm -f conftest*
16705 LIBS="$ac_save_LIBS"
16706
16707 fi
16708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16709   echo "$ac_t""yes" 1>&6
16710   WCHAR_OK=1
16711 else
16712   echo "$ac_t""no" 1>&6
16713 fi
16714
16715         else
16716             echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
16717 echo "configure:16718: checking for wcslen in -lw" >&5
16718 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16719 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16720   echo $ac_n "(cached) $ac_c" 1>&6
16721 else
16722   ac_save_LIBS="$LIBS"
16723 LIBS="-lw  $LIBS"
16724 cat > conftest.$ac_ext <<EOF
16725 #line 16726 "configure"
16726 #include "confdefs.h"
16727 /* Override any gcc2 internal prototype to avoid an error.  */
16728 /* We use char because int might match the return type of a gcc2
16729     builtin and then its argument prototype would still apply.  */
16730 char wcslen();
16731
16732 int main() {
16733 wcslen()
16734 ; return 0; }
16735 EOF
16736 if { (eval echo configure:16737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16737   rm -rf conftest*
16738   eval "ac_cv_lib_$ac_lib_var=yes"
16739 else
16740   echo "configure: failed program was:" >&5
16741   cat conftest.$ac_ext >&5
16742   rm -rf conftest*
16743   eval "ac_cv_lib_$ac_lib_var=no"
16744 fi
16745 rm -f conftest*
16746 LIBS="$ac_save_LIBS"
16747
16748 fi
16749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16750   echo "$ac_t""yes" 1>&6
16751   
16752                             WCHAR_LINK=" -lw"
16753                             WCSLEN_FOUND=1
16754                         
16755 else
16756   echo "$ac_t""no" 1>&6
16757 fi
16758
16759         fi
16760     fi
16761
16762     if test "$WCSLEN_FOUND" = 1; then
16763         cat >> confdefs.h <<\EOF
16764 #define HAVE_WCSLEN 1
16765 EOF
16766
16767     fi
16768
16769             for ac_func in wcsrtombs
16770 do
16771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16772 echo "configure:16773: checking for $ac_func" >&5
16773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16774   echo $ac_n "(cached) $ac_c" 1>&6
16775 else
16776   cat > conftest.$ac_ext <<EOF
16777 #line 16778 "configure"
16778 #include "confdefs.h"
16779 /* System header to define __stub macros and hopefully few prototypes,
16780     which can conflict with char $ac_func(); below.  */
16781 #include <assert.h>
16782 /* Override any gcc2 internal prototype to avoid an error.  */
16783 /* We use char because int might match the return type of a gcc2
16784     builtin and then its argument prototype would still apply.  */
16785 char $ac_func();
16786
16787 int main() {
16788
16789 /* The GNU C library defines this for functions which it implements
16790     to always fail with ENOSYS.  Some functions are actually named
16791     something starting with __ and the normal name is an alias.  */
16792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16793 choke me
16794 #else
16795 $ac_func();
16796 #endif
16797
16798 ; return 0; }
16799 EOF
16800 if { (eval echo configure:16801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16801   rm -rf conftest*
16802   eval "ac_cv_func_$ac_func=yes"
16803 else
16804   echo "configure: failed program was:" >&5
16805   cat conftest.$ac_ext >&5
16806   rm -rf conftest*
16807   eval "ac_cv_func_$ac_func=no"
16808 fi
16809 rm -f conftest*
16810 fi
16811
16812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16813   echo "$ac_t""yes" 1>&6
16814     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16815   cat >> confdefs.h <<EOF
16816 #define $ac_tr_func 1
16817 EOF
16818  
16819 else
16820   echo "$ac_t""no" 1>&6
16821 fi
16822 done
16823
16824 else
16825     echo "configure: warning: Wide character support is unavailable" 1>&2
16826 fi
16827
16828
16829 ac_ext=C
16830 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16831 ac_cpp='$CXXCPP $CPPFLAGS'
16832 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16833 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16834 cross_compiling=$ac_cv_prog_cxx_cross
16835
16836
16837 for ac_func in vsnprintf
16838 do
16839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16840 echo "configure:16841: checking for $ac_func" >&5
16841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16842   echo $ac_n "(cached) $ac_c" 1>&6
16843 else
16844   cat > conftest.$ac_ext <<EOF
16845 #line 16846 "configure"
16846 #include "confdefs.h"
16847 /* System header to define __stub macros and hopefully few prototypes,
16848     which can conflict with char $ac_func(); below.  */
16849 #include <assert.h>
16850 /* Override any gcc2 internal prototype to avoid an error.  */
16851 #ifdef __cplusplus
16852 extern "C"
16853 #endif
16854 /* We use char because int might match the return type of a gcc2
16855     builtin and then its argument prototype would still apply.  */
16856 char $ac_func();
16857
16858 int main() {
16859
16860 /* The GNU C library defines this for functions which it implements
16861     to always fail with ENOSYS.  Some functions are actually named
16862     something starting with __ and the normal name is an alias.  */
16863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16864 choke me
16865 #else
16866 $ac_func();
16867 #endif
16868
16869 ; return 0; }
16870 EOF
16871 if { (eval echo configure:16872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16872   rm -rf conftest*
16873   eval "ac_cv_func_$ac_func=yes"
16874 else
16875   echo "configure: failed program was:" >&5
16876   cat conftest.$ac_ext >&5
16877   rm -rf conftest*
16878   eval "ac_cv_func_$ac_func=no"
16879 fi
16880 rm -f conftest*
16881 fi
16882
16883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16884   echo "$ac_t""yes" 1>&6
16885     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16886   cat >> confdefs.h <<EOF
16887 #define $ac_tr_func 1
16888 EOF
16889  
16890 else
16891   echo "$ac_t""no" 1>&6
16892 fi
16893 done
16894
16895
16896 if test "$wxUSE_UNICODE" = yes; then
16897         for ac_func in fputwc wprintf vswprintf
16898 do
16899 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16900 echo "configure:16901: checking for $ac_func" >&5
16901 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16902   echo $ac_n "(cached) $ac_c" 1>&6
16903 else
16904   cat > conftest.$ac_ext <<EOF
16905 #line 16906 "configure"
16906 #include "confdefs.h"
16907 /* System header to define __stub macros and hopefully few prototypes,
16908     which can conflict with char $ac_func(); below.  */
16909 #include <assert.h>
16910 /* Override any gcc2 internal prototype to avoid an error.  */
16911 #ifdef __cplusplus
16912 extern "C"
16913 #endif
16914 /* We use char because int might match the return type of a gcc2
16915     builtin and then its argument prototype would still apply.  */
16916 char $ac_func();
16917
16918 int main() {
16919
16920 /* The GNU C library defines this for functions which it implements
16921     to always fail with ENOSYS.  Some functions are actually named
16922     something starting with __ and the normal name is an alias.  */
16923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16924 choke me
16925 #else
16926 $ac_func();
16927 #endif
16928
16929 ; return 0; }
16930 EOF
16931 if { (eval echo configure:16932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16932   rm -rf conftest*
16933   eval "ac_cv_func_$ac_func=yes"
16934 else
16935   echo "configure: failed program was:" >&5
16936   cat conftest.$ac_ext >&5
16937   rm -rf conftest*
16938   eval "ac_cv_func_$ac_func=no"
16939 fi
16940 rm -f conftest*
16941 fi
16942
16943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16944   echo "$ac_t""yes" 1>&6
16945     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16946   cat >> confdefs.h <<EOF
16947 #define $ac_tr_func 1
16948 EOF
16949  
16950 else
16951   echo "$ac_t""no" 1>&6
16952 fi
16953 done
16954
16955                 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
16956 echo "configure:16957: checking for _vsnwprintf" >&5
16957     cat > conftest.$ac_ext <<EOF
16958 #line 16959 "configure"
16959 #include "confdefs.h"
16960 #include <wchar.h>
16961 int main() {
16962 &_vsnwprintf;
16963 ; return 0; }
16964 EOF
16965 if { (eval echo configure:16966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16966   rm -rf conftest*
16967   echo "$ac_t""yes" 1>&6
16968                     cat >> confdefs.h <<\EOF
16969 #define HAVE__VSNWPRINTF 1
16970 EOF
16971
16972 else
16973   echo "configure: failed program was:" >&5
16974   cat conftest.$ac_ext >&5
16975   rm -rf conftest*
16976   echo "$ac_t""no" 1>&6
16977 fi
16978 rm -f conftest*;
16979 fi
16980
16981 ac_ext=c
16982 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16983 ac_cpp='$CPP $CPPFLAGS'
16984 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16985 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16986 cross_compiling=$ac_cv_prog_cc_cross
16987
16988
16989
16990
16991 if test "$TOOLKIT" != "MSW"; then
16992
16993
16994
16995 ac_ext=C
16996 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16997 ac_cpp='$CXXCPP $CPPFLAGS'
16998 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16999 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17000 cross_compiling=$ac_cv_prog_cxx_cross
17001
17002
17003     
17004   # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17005 if test "${with_libiconv_prefix+set}" = set; then
17006   withval="$with_libiconv_prefix"
17007   
17008     for dir in `echo "$withval" | tr : ' '`; do
17009       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17010       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17011     done
17012    
17013 fi
17014
17015
17016   echo $ac_n "checking for iconv""... $ac_c" 1>&6
17017 echo "configure:17018: checking for iconv" >&5
17018 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17019   echo $ac_n "(cached) $ac_c" 1>&6
17020 else
17021   
17022     am_cv_func_iconv="no, consider installing GNU libiconv"
17023     am_cv_lib_iconv=no
17024     cat > conftest.$ac_ext <<EOF
17025 #line 17026 "configure"
17026 #include "confdefs.h"
17027 #include <stdlib.h>
17028 #include <iconv.h>
17029 int main() {
17030 iconv_t cd = iconv_open("","");
17031        iconv(cd,NULL,NULL,NULL,NULL);
17032        iconv_close(cd);
17033 ; return 0; }
17034 EOF
17035 if { (eval echo configure:17036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17036   rm -rf conftest*
17037   am_cv_func_iconv=yes
17038 else
17039   echo "configure: failed program was:" >&5
17040   cat conftest.$ac_ext >&5
17041 fi
17042 rm -f conftest*
17043     if test "$am_cv_func_iconv" != yes; then
17044       am_save_LIBS="$LIBS"
17045       LIBS="$LIBS -liconv"
17046       cat > conftest.$ac_ext <<EOF
17047 #line 17048 "configure"
17048 #include "confdefs.h"
17049 #include <stdlib.h>
17050 #include <iconv.h>
17051 int main() {
17052 iconv_t cd = iconv_open("","");
17053          iconv(cd,NULL,NULL,NULL,NULL);
17054          iconv_close(cd);
17055 ; return 0; }
17056 EOF
17057 if { (eval echo configure:17058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17058   rm -rf conftest*
17059   am_cv_lib_iconv=yes
17060         am_cv_func_iconv=yes
17061 else
17062   echo "configure: failed program was:" >&5
17063   cat conftest.$ac_ext >&5
17064 fi
17065 rm -f conftest*
17066       LIBS="$am_save_LIBS"
17067     fi
17068   
17069 fi
17070
17071 echo "$ac_t""$am_cv_func_iconv" 1>&6
17072   if test "$am_cv_func_iconv" = yes; then
17073     cat >> confdefs.h <<\EOF
17074 #define HAVE_ICONV 1
17075 EOF
17076
17077     echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17078 echo "configure:17079: checking if iconv needs const" >&5
17079 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17080   echo $ac_n "(cached) $ac_c" 1>&6
17081 else
17082   cat > conftest.$ac_ext <<EOF
17083 #line 17084 "configure"
17084 #include "confdefs.h"
17085
17086 #include <stdlib.h>
17087 #include <iconv.h>
17088 extern
17089 #ifdef __cplusplus
17090 "C"
17091 #endif
17092 #if defined(__STDC__) || defined(__cplusplus)
17093 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17094 #else
17095 size_t iconv();
17096 #endif
17097         
17098 int main() {
17099
17100 ; return 0; }
17101 EOF
17102 if { (eval echo configure:17103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17103   rm -rf conftest*
17104   wx_cv_func_iconv_const="no"
17105 else
17106   echo "configure: failed program was:" >&5
17107   cat conftest.$ac_ext >&5
17108   rm -rf conftest*
17109   wx_cv_func_iconv_const="yes"
17110       
17111 fi
17112 rm -f conftest*
17113     
17114 fi
17115
17116 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17117
17118     iconv_const=
17119     if test "x$wx_cv_func_iconv_const" = "xyes"; then
17120         iconv_const="const"
17121     fi
17122
17123     cat >> confdefs.h <<EOF
17124 #define ICONV_CONST $iconv_const
17125 EOF
17126
17127   fi
17128   LIBICONV=
17129   if test "$am_cv_lib_iconv" = yes; then
17130     LIBICONV="-liconv"
17131   fi
17132   
17133
17134 LIBS="$LIBICONV $LIBS"
17135 ac_ext=c
17136 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17137 ac_cpp='$CPP $CPPFLAGS'
17138 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17139 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17140 cross_compiling=$ac_cv_prog_cc_cross
17141
17142
17143 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17144     for ac_func in sigaction
17145 do
17146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17147 echo "configure:17148: checking for $ac_func" >&5
17148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17149   echo $ac_n "(cached) $ac_c" 1>&6
17150 else
17151   cat > conftest.$ac_ext <<EOF
17152 #line 17153 "configure"
17153 #include "confdefs.h"
17154 /* System header to define __stub macros and hopefully few prototypes,
17155     which can conflict with char $ac_func(); below.  */
17156 #include <assert.h>
17157 /* Override any gcc2 internal prototype to avoid an error.  */
17158 /* We use char because int might match the return type of a gcc2
17159     builtin and then its argument prototype would still apply.  */
17160 char $ac_func();
17161
17162 int main() {
17163
17164 /* The GNU C library defines this for functions which it implements
17165     to always fail with ENOSYS.  Some functions are actually named
17166     something starting with __ and the normal name is an alias.  */
17167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17168 choke me
17169 #else
17170 $ac_func();
17171 #endif
17172
17173 ; return 0; }
17174 EOF
17175 if { (eval echo configure:17176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17176   rm -rf conftest*
17177   eval "ac_cv_func_$ac_func=yes"
17178 else
17179   echo "configure: failed program was:" >&5
17180   cat conftest.$ac_ext >&5
17181   rm -rf conftest*
17182   eval "ac_cv_func_$ac_func=no"
17183 fi
17184 rm -f conftest*
17185 fi
17186
17187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17188   echo "$ac_t""yes" 1>&6
17189     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17190   cat >> confdefs.h <<EOF
17191 #define $ac_tr_func 1
17192 EOF
17193  
17194 else
17195   echo "$ac_t""no" 1>&6
17196 fi
17197 done
17198
17199
17200     if test "$ac_cv_func_sigaction" = "no"; then
17201         echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17202         wxUSE_ON_FATAL_EXCEPTION=no
17203     fi
17204
17205     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17206       
17207       ac_ext=C
17208 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17209 ac_cpp='$CXXCPP $CPPFLAGS'
17210 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17211 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17212 cross_compiling=$ac_cv_prog_cxx_cross
17213
17214
17215       echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17216 echo "configure:17217: checking for sa_handler type" >&5
17217 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17218   echo $ac_n "(cached) $ac_c" 1>&6
17219 else
17220   
17221         cat > conftest.$ac_ext <<EOF
17222 #line 17223 "configure"
17223 #include "confdefs.h"
17224 #include <signal.h>
17225 int main() {
17226
17227                         extern void testSigHandler(int);
17228
17229                         struct sigaction sa;
17230                         sa.sa_handler = testSigHandler;
17231                      
17232 ; return 0; }
17233 EOF
17234 if { (eval echo configure:17235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17235   rm -rf conftest*
17236   
17237                         wx_cv_type_sa_handler=int
17238                      
17239 else
17240   echo "configure: failed program was:" >&5
17241   cat conftest.$ac_ext >&5
17242   rm -rf conftest*
17243   
17244                         wx_cv_type_sa_handler=void
17245                      
17246 fi
17247 rm -f conftest*
17248       
17249 fi
17250
17251 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17252
17253       ac_ext=c
17254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17255 ac_cpp='$CPP $CPPFLAGS'
17256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17258 cross_compiling=$ac_cv_prog_cc_cross
17259
17260
17261       cat >> confdefs.h <<EOF
17262 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17263 EOF
17264
17265     fi
17266 fi
17267
17268 for ac_func in mkstemp mktemp
17269 do
17270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17271 echo "configure:17272: checking for $ac_func" >&5
17272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17273   echo $ac_n "(cached) $ac_c" 1>&6
17274 else
17275   cat > conftest.$ac_ext <<EOF
17276 #line 17277 "configure"
17277 #include "confdefs.h"
17278 /* System header to define __stub macros and hopefully few prototypes,
17279     which can conflict with char $ac_func(); below.  */
17280 #include <assert.h>
17281 /* Override any gcc2 internal prototype to avoid an error.  */
17282 /* We use char because int might match the return type of a gcc2
17283     builtin and then its argument prototype would still apply.  */
17284 char $ac_func();
17285
17286 int main() {
17287
17288 /* The GNU C library defines this for functions which it implements
17289     to always fail with ENOSYS.  Some functions are actually named
17290     something starting with __ and the normal name is an alias.  */
17291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17292 choke me
17293 #else
17294 $ac_func();
17295 #endif
17296
17297 ; return 0; }
17298 EOF
17299 if { (eval echo configure:17300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17300   rm -rf conftest*
17301   eval "ac_cv_func_$ac_func=yes"
17302 else
17303   echo "configure: failed program was:" >&5
17304   cat conftest.$ac_ext >&5
17305   rm -rf conftest*
17306   eval "ac_cv_func_$ac_func=no"
17307 fi
17308 rm -f conftest*
17309 fi
17310
17311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17312   echo "$ac_t""yes" 1>&6
17313     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17314   cat >> confdefs.h <<EOF
17315 #define $ac_tr_func 1
17316 EOF
17317  break
17318 else
17319   echo "$ac_t""no" 1>&6
17320 fi
17321 done
17322
17323
17324 echo $ac_n "checking for statfs""... $ac_c" 1>&6
17325 echo "configure:17326: checking for statfs" >&5
17326 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17327   echo $ac_n "(cached) $ac_c" 1>&6
17328 else
17329   cat > conftest.$ac_ext <<EOF
17330 #line 17331 "configure"
17331 #include "confdefs.h"
17332
17333              #if defined(__BSD__)
17334                #include <sys/param.h>
17335                #include <sys/mount.h>
17336              #else
17337                #include <sys/vfs.h>
17338              #endif
17339         
17340 int main() {
17341
17342              long l;
17343              struct statfs fs;
17344              statfs("/", &fs);
17345              l = fs.f_bsize;
17346              l += fs.f_blocks;
17347              l += fs.f_bavail;
17348         
17349 ; return 0; }
17350 EOF
17351 if { (eval echo configure:17352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17352   rm -rf conftest*
17353   
17354              wx_cv_func_statfs=yes
17355         
17356 else
17357   echo "configure: failed program was:" >&5
17358   cat conftest.$ac_ext >&5
17359   rm -rf conftest*
17360   
17361              wx_cv_func_statfs=no
17362         
17363     
17364 fi
17365 rm -f conftest*
17366
17367 fi
17368
17369 echo "$ac_t""$wx_cv_func_statfs" 1>&6
17370
17371 if test "$wx_cv_func_statfs" = "yes"; then
17372     wx_cv_type_statvfs_t="struct statfs"
17373     cat >> confdefs.h <<\EOF
17374 #define HAVE_STATFS 1
17375 EOF
17376
17377 else
17378     echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17379 echo "configure:17380: checking for statvfs" >&5
17380 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17381   echo $ac_n "(cached) $ac_c" 1>&6
17382 else
17383   cat > conftest.$ac_ext <<EOF
17384 #line 17385 "configure"
17385 #include "confdefs.h"
17386
17387                 #include <stddef.h>
17388                 #include <sys/statvfs.h>
17389             
17390 int main() {
17391
17392                 statvfs("/", NULL);
17393             
17394 ; return 0; }
17395 EOF
17396 if { (eval echo configure:17397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17397   rm -rf conftest*
17398   wx_cv_func_statvfs=yes
17399 else
17400   echo "configure: failed program was:" >&5
17401   cat conftest.$ac_ext >&5
17402   rm -rf conftest*
17403   wx_cv_func_statvfs=no
17404         
17405 fi
17406 rm -f conftest*
17407     
17408 fi
17409
17410 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17411
17412     if test "$wx_cv_func_statvfs" = "yes"; then
17413                                                                 
17414         ac_ext=C
17415 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17416 ac_cpp='$CXXCPP $CPPFLAGS'
17417 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17418 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17419 cross_compiling=$ac_cv_prog_cxx_cross
17420
17421
17422         echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17423 echo "configure:17424: checking for statvfs argument type" >&5
17424 if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17425   echo $ac_n "(cached) $ac_c" 1>&6
17426 else
17427   cat > conftest.$ac_ext <<EOF
17428 #line 17429 "configure"
17429 #include "confdefs.h"
17430
17431                     #include <sys/statvfs.h>
17432                 
17433 int main() {
17434
17435                     long l;
17436                     statvfs_t fs;
17437                     statvfs("/", &fs);
17438                     l = fs.f_bsize;
17439                     l += fs.f_blocks;
17440                     l += fs.f_bavail;
17441                 
17442 ; return 0; }
17443 EOF
17444 if { (eval echo configure:17445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17445   rm -rf conftest*
17446   wx_cv_type_statvfs_t=statvfs_t
17447 else
17448   echo "configure: failed program was:" >&5
17449   cat conftest.$ac_ext >&5
17450   rm -rf conftest*
17451   
17452                     cat > conftest.$ac_ext <<EOF
17453 #line 17454 "configure"
17454 #include "confdefs.h"
17455
17456                             #include <sys/statvfs.h>
17457                         
17458 int main() {
17459
17460                             long l;
17461                             statvfs_t fs;
17462                             statvfs("/", &fs);
17463                             l = fs.f_bsize;
17464                             l += fs.f_blocks;
17465                             l += fs.f_bavail;
17466                         
17467 ; return 0; }
17468 EOF
17469 if { (eval echo configure:17470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17470   rm -rf conftest*
17471   wx_cv_type_statvfs_t="struct statvfs"
17472 else
17473   echo "configure: failed program was:" >&5
17474   cat conftest.$ac_ext >&5
17475   rm -rf conftest*
17476   wx_cv_type_statvfs_t="unknown"
17477                     
17478 fi
17479 rm -f conftest*
17480                 
17481             
17482 fi
17483 rm -f conftest*
17484         
17485 fi
17486
17487 echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17488
17489         ac_ext=c
17490 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17491 ac_cpp='$CPP $CPPFLAGS'
17492 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17493 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17494 cross_compiling=$ac_cv_prog_cc_cross
17495
17496
17497         if test "$wx_cv_type_statvfs_t" != "unknown"; then
17498             cat >> confdefs.h <<\EOF
17499 #define HAVE_STATVFS 1
17500 EOF
17501
17502         fi
17503     else
17504                 wx_cv_type_statvfs_t="unknown"
17505     fi
17506 fi
17507
17508 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17509     cat >> confdefs.h <<EOF
17510 #define WX_STATFS_T $wx_cv_type_statvfs_t
17511 EOF
17512
17513 else
17514     echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17515 fi
17516
17517 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17518     for ac_func in fcntl flock
17519 do
17520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17521 echo "configure:17522: checking for $ac_func" >&5
17522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17523   echo $ac_n "(cached) $ac_c" 1>&6
17524 else
17525   cat > conftest.$ac_ext <<EOF
17526 #line 17527 "configure"
17527 #include "confdefs.h"
17528 /* System header to define __stub macros and hopefully few prototypes,
17529     which can conflict with char $ac_func(); below.  */
17530 #include <assert.h>
17531 /* Override any gcc2 internal prototype to avoid an error.  */
17532 /* We use char because int might match the return type of a gcc2
17533     builtin and then its argument prototype would still apply.  */
17534 char $ac_func();
17535
17536 int main() {
17537
17538 /* The GNU C library defines this for functions which it implements
17539     to always fail with ENOSYS.  Some functions are actually named
17540     something starting with __ and the normal name is an alias.  */
17541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17542 choke me
17543 #else
17544 $ac_func();
17545 #endif
17546
17547 ; return 0; }
17548 EOF
17549 if { (eval echo configure:17550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17550   rm -rf conftest*
17551   eval "ac_cv_func_$ac_func=yes"
17552 else
17553   echo "configure: failed program was:" >&5
17554   cat conftest.$ac_ext >&5
17555   rm -rf conftest*
17556   eval "ac_cv_func_$ac_func=no"
17557 fi
17558 rm -f conftest*
17559 fi
17560
17561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17562   echo "$ac_t""yes" 1>&6
17563     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17564   cat >> confdefs.h <<EOF
17565 #define $ac_tr_func 1
17566 EOF
17567  break
17568 else
17569   echo "$ac_t""no" 1>&6
17570 fi
17571 done
17572
17573
17574     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
17575         echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
17576         wxUSE_SNGLINST_CHECKER=no
17577     fi
17578 fi
17579
17580 for ac_func in timegm
17581 do
17582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17583 echo "configure:17584: checking for $ac_func" >&5
17584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17585   echo $ac_n "(cached) $ac_c" 1>&6
17586 else
17587   cat > conftest.$ac_ext <<EOF
17588 #line 17589 "configure"
17589 #include "confdefs.h"
17590 /* System header to define __stub macros and hopefully few prototypes,
17591     which can conflict with char $ac_func(); below.  */
17592 #include <assert.h>
17593 /* Override any gcc2 internal prototype to avoid an error.  */
17594 /* We use char because int might match the return type of a gcc2
17595     builtin and then its argument prototype would still apply.  */
17596 char $ac_func();
17597
17598 int main() {
17599
17600 /* The GNU C library defines this for functions which it implements
17601     to always fail with ENOSYS.  Some functions are actually named
17602     something starting with __ and the normal name is an alias.  */
17603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17604 choke me
17605 #else
17606 $ac_func();
17607 #endif
17608
17609 ; return 0; }
17610 EOF
17611 if { (eval echo configure:17612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17612   rm -rf conftest*
17613   eval "ac_cv_func_$ac_func=yes"
17614 else
17615   echo "configure: failed program was:" >&5
17616   cat conftest.$ac_ext >&5
17617   rm -rf conftest*
17618   eval "ac_cv_func_$ac_func=no"
17619 fi
17620 rm -f conftest*
17621 fi
17622
17623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17624   echo "$ac_t""yes" 1>&6
17625     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17626   cat >> confdefs.h <<EOF
17627 #define $ac_tr_func 1
17628 EOF
17629  
17630 else
17631   echo "$ac_t""no" 1>&6
17632 fi
17633 done
17634
17635
17636 for ac_func in putenv setenv
17637 do
17638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17639 echo "configure:17640: checking for $ac_func" >&5
17640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17641   echo $ac_n "(cached) $ac_c" 1>&6
17642 else
17643   cat > conftest.$ac_ext <<EOF
17644 #line 17645 "configure"
17645 #include "confdefs.h"
17646 /* System header to define __stub macros and hopefully few prototypes,
17647     which can conflict with char $ac_func(); below.  */
17648 #include <assert.h>
17649 /* Override any gcc2 internal prototype to avoid an error.  */
17650 /* We use char because int might match the return type of a gcc2
17651     builtin and then its argument prototype would still apply.  */
17652 char $ac_func();
17653
17654 int main() {
17655
17656 /* The GNU C library defines this for functions which it implements
17657     to always fail with ENOSYS.  Some functions are actually named
17658     something starting with __ and the normal name is an alias.  */
17659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17660 choke me
17661 #else
17662 $ac_func();
17663 #endif
17664
17665 ; return 0; }
17666 EOF
17667 if { (eval echo configure:17668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17668   rm -rf conftest*
17669   eval "ac_cv_func_$ac_func=yes"
17670 else
17671   echo "configure: failed program was:" >&5
17672   cat conftest.$ac_ext >&5
17673   rm -rf conftest*
17674   eval "ac_cv_func_$ac_func=no"
17675 fi
17676 rm -f conftest*
17677 fi
17678
17679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17680   echo "$ac_t""yes" 1>&6
17681     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17682   cat >> confdefs.h <<EOF
17683 #define $ac_tr_func 1
17684 EOF
17685  break
17686 else
17687   echo "$ac_t""no" 1>&6
17688 fi
17689 done
17690
17691
17692 HAVE_SOME_SLEEP_FUNC=0
17693 if test "$USE_BEOS" = 1; then
17694             cat >> confdefs.h <<\EOF
17695 #define HAVE_SLEEP 1
17696 EOF
17697
17698     HAVE_SOME_SLEEP_FUNC=1
17699 fi
17700
17701 if test "$USE_DARWIN" = 1; then
17702             cat >> confdefs.h <<\EOF
17703 #define HAVE_USLEEP 1
17704 EOF
17705
17706     HAVE_SOME_SLEEP_FUNC=1
17707 fi
17708
17709 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
17710         POSIX4_LINK=
17711     for ac_func in nanosleep
17712 do
17713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17714 echo "configure:17715: checking for $ac_func" >&5
17715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17716   echo $ac_n "(cached) $ac_c" 1>&6
17717 else
17718   cat > conftest.$ac_ext <<EOF
17719 #line 17720 "configure"
17720 #include "confdefs.h"
17721 /* System header to define __stub macros and hopefully few prototypes,
17722     which can conflict with char $ac_func(); below.  */
17723 #include <assert.h>
17724 /* Override any gcc2 internal prototype to avoid an error.  */
17725 /* We use char because int might match the return type of a gcc2
17726     builtin and then its argument prototype would still apply.  */
17727 char $ac_func();
17728
17729 int main() {
17730
17731 /* The GNU C library defines this for functions which it implements
17732     to always fail with ENOSYS.  Some functions are actually named
17733     something starting with __ and the normal name is an alias.  */
17734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17735 choke me
17736 #else
17737 $ac_func();
17738 #endif
17739
17740 ; return 0; }
17741 EOF
17742 if { (eval echo configure:17743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17743   rm -rf conftest*
17744   eval "ac_cv_func_$ac_func=yes"
17745 else
17746   echo "configure: failed program was:" >&5
17747   cat conftest.$ac_ext >&5
17748   rm -rf conftest*
17749   eval "ac_cv_func_$ac_func=no"
17750 fi
17751 rm -f conftest*
17752 fi
17753
17754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17755   echo "$ac_t""yes" 1>&6
17756     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17757   cat >> confdefs.h <<EOF
17758 #define $ac_tr_func 1
17759 EOF
17760  cat >> confdefs.h <<\EOF
17761 #define HAVE_NANOSLEEP 1
17762 EOF
17763
17764 else
17765   echo "$ac_t""no" 1>&6
17766 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
17767 echo "configure:17768: checking for nanosleep in -lposix4" >&5
17768 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
17769 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17770   echo $ac_n "(cached) $ac_c" 1>&6
17771 else
17772   ac_save_LIBS="$LIBS"
17773 LIBS="-lposix4  $LIBS"
17774 cat > conftest.$ac_ext <<EOF
17775 #line 17776 "configure"
17776 #include "confdefs.h"
17777 /* Override any gcc2 internal prototype to avoid an error.  */
17778 /* We use char because int might match the return type of a gcc2
17779     builtin and then its argument prototype would still apply.  */
17780 char nanosleep();
17781
17782 int main() {
17783 nanosleep()
17784 ; return 0; }
17785 EOF
17786 if { (eval echo configure:17787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17787   rm -rf conftest*
17788   eval "ac_cv_lib_$ac_lib_var=yes"
17789 else
17790   echo "configure: failed program was:" >&5
17791   cat conftest.$ac_ext >&5
17792   rm -rf conftest*
17793   eval "ac_cv_lib_$ac_lib_var=no"
17794 fi
17795 rm -f conftest*
17796 LIBS="$ac_save_LIBS"
17797
17798 fi
17799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17800   echo "$ac_t""yes" 1>&6
17801   
17802                     cat >> confdefs.h <<\EOF
17803 #define HAVE_NANOSLEEP 1
17804 EOF
17805
17806                     POSIX4_LINK=" -lposix4"
17807                 
17808 else
17809   echo "$ac_t""no" 1>&6
17810
17811                     for ac_func in usleep
17812 do
17813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17814 echo "configure:17815: checking for $ac_func" >&5
17815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17816   echo $ac_n "(cached) $ac_c" 1>&6
17817 else
17818   cat > conftest.$ac_ext <<EOF
17819 #line 17820 "configure"
17820 #include "confdefs.h"
17821 /* System header to define __stub macros and hopefully few prototypes,
17822     which can conflict with char $ac_func(); below.  */
17823 #include <assert.h>
17824 /* Override any gcc2 internal prototype to avoid an error.  */
17825 /* We use char because int might match the return type of a gcc2
17826     builtin and then its argument prototype would still apply.  */
17827 char $ac_func();
17828
17829 int main() {
17830
17831 /* The GNU C library defines this for functions which it implements
17832     to always fail with ENOSYS.  Some functions are actually named
17833     something starting with __ and the normal name is an alias.  */
17834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17835 choke me
17836 #else
17837 $ac_func();
17838 #endif
17839
17840 ; return 0; }
17841 EOF
17842 if { (eval echo configure:17843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17843   rm -rf conftest*
17844   eval "ac_cv_func_$ac_func=yes"
17845 else
17846   echo "configure: failed program was:" >&5
17847   cat conftest.$ac_ext >&5
17848   rm -rf conftest*
17849   eval "ac_cv_func_$ac_func=no"
17850 fi
17851 rm -f conftest*
17852 fi
17853
17854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17855   echo "$ac_t""yes" 1>&6
17856     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17857   cat >> confdefs.h <<EOF
17858 #define $ac_tr_func 1
17859 EOF
17860  cat >> confdefs.h <<\EOF
17861 #define HAVE_USLEEP 1
17862 EOF
17863
17864 else
17865   echo "$ac_t""no" 1>&6
17866 echo "configure: warning: wxSleep() function will not work" 1>&2
17867                     
17868 fi
17869 done
17870
17871                 
17872             
17873 fi
17874
17875         
17876     
17877 fi
17878 done
17879
17880 fi
17881
17882 for ac_func in uname gethostname
17883 do
17884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17885 echo "configure:17886: checking for $ac_func" >&5
17886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17887   echo $ac_n "(cached) $ac_c" 1>&6
17888 else
17889   cat > conftest.$ac_ext <<EOF
17890 #line 17891 "configure"
17891 #include "confdefs.h"
17892 /* System header to define __stub macros and hopefully few prototypes,
17893     which can conflict with char $ac_func(); below.  */
17894 #include <assert.h>
17895 /* Override any gcc2 internal prototype to avoid an error.  */
17896 /* We use char because int might match the return type of a gcc2
17897     builtin and then its argument prototype would still apply.  */
17898 char $ac_func();
17899
17900 int main() {
17901
17902 /* The GNU C library defines this for functions which it implements
17903     to always fail with ENOSYS.  Some functions are actually named
17904     something starting with __ and the normal name is an alias.  */
17905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17906 choke me
17907 #else
17908 $ac_func();
17909 #endif
17910
17911 ; return 0; }
17912 EOF
17913 if { (eval echo configure:17914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17914   rm -rf conftest*
17915   eval "ac_cv_func_$ac_func=yes"
17916 else
17917   echo "configure: failed program was:" >&5
17918   cat conftest.$ac_ext >&5
17919   rm -rf conftest*
17920   eval "ac_cv_func_$ac_func=no"
17921 fi
17922 rm -f conftest*
17923 fi
17924
17925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17926   echo "$ac_t""yes" 1>&6
17927     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17928   cat >> confdefs.h <<EOF
17929 #define $ac_tr_func 1
17930 EOF
17931  break
17932 else
17933   echo "$ac_t""no" 1>&6
17934 fi
17935 done
17936
17937
17938
17939 ac_ext=C
17940 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17941 ac_cpp='$CXXCPP $CPPFLAGS'
17942 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17943 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17944 cross_compiling=$ac_cv_prog_cxx_cross
17945
17946
17947 for ac_func in strtok_r
17948 do
17949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17950 echo "configure:17951: checking for $ac_func" >&5
17951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17952   echo $ac_n "(cached) $ac_c" 1>&6
17953 else
17954   cat > conftest.$ac_ext <<EOF
17955 #line 17956 "configure"
17956 #include "confdefs.h"
17957 /* System header to define __stub macros and hopefully few prototypes,
17958     which can conflict with char $ac_func(); below.  */
17959 #include <assert.h>
17960 /* Override any gcc2 internal prototype to avoid an error.  */
17961 #ifdef __cplusplus
17962 extern "C"
17963 #endif
17964 /* We use char because int might match the return type of a gcc2
17965     builtin and then its argument prototype would still apply.  */
17966 char $ac_func();
17967
17968 int main() {
17969
17970 /* The GNU C library defines this for functions which it implements
17971     to always fail with ENOSYS.  Some functions are actually named
17972     something starting with __ and the normal name is an alias.  */
17973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17974 choke me
17975 #else
17976 $ac_func();
17977 #endif
17978
17979 ; return 0; }
17980 EOF
17981 if { (eval echo configure:17982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17982   rm -rf conftest*
17983   eval "ac_cv_func_$ac_func=yes"
17984 else
17985   echo "configure: failed program was:" >&5
17986   cat conftest.$ac_ext >&5
17987   rm -rf conftest*
17988   eval "ac_cv_func_$ac_func=no"
17989 fi
17990 rm -f conftest*
17991 fi
17992
17993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17994   echo "$ac_t""yes" 1>&6
17995     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17996   cat >> confdefs.h <<EOF
17997 #define $ac_tr_func 1
17998 EOF
17999  
18000 else
18001   echo "$ac_t""no" 1>&6
18002 fi
18003 done
18004
18005
18006 ac_ext=c
18007 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18008 ac_cpp='$CPP $CPPFLAGS'
18009 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18010 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18011 cross_compiling=$ac_cv_prog_cc_cross
18012
18013
18014 INET_LINK=
18015 for ac_func in inet_addr
18016 do
18017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18018 echo "configure:18019: checking for $ac_func" >&5
18019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18020   echo $ac_n "(cached) $ac_c" 1>&6
18021 else
18022   cat > conftest.$ac_ext <<EOF
18023 #line 18024 "configure"
18024 #include "confdefs.h"
18025 /* System header to define __stub macros and hopefully few prototypes,
18026     which can conflict with char $ac_func(); below.  */
18027 #include <assert.h>
18028 /* Override any gcc2 internal prototype to avoid an error.  */
18029 /* We use char because int might match the return type of a gcc2
18030     builtin and then its argument prototype would still apply.  */
18031 char $ac_func();
18032
18033 int main() {
18034
18035 /* The GNU C library defines this for functions which it implements
18036     to always fail with ENOSYS.  Some functions are actually named
18037     something starting with __ and the normal name is an alias.  */
18038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18039 choke me
18040 #else
18041 $ac_func();
18042 #endif
18043
18044 ; return 0; }
18045 EOF
18046 if { (eval echo configure:18047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18047   rm -rf conftest*
18048   eval "ac_cv_func_$ac_func=yes"
18049 else
18050   echo "configure: failed program was:" >&5
18051   cat conftest.$ac_ext >&5
18052   rm -rf conftest*
18053   eval "ac_cv_func_$ac_func=no"
18054 fi
18055 rm -f conftest*
18056 fi
18057
18058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18059   echo "$ac_t""yes" 1>&6
18060     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18061   cat >> confdefs.h <<EOF
18062 #define $ac_tr_func 1
18063 EOF
18064  cat >> confdefs.h <<\EOF
18065 #define HAVE_INET_ADDR 1
18066 EOF
18067
18068 else
18069   echo "$ac_t""no" 1>&6
18070 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18071 echo "configure:18072: checking for inet_addr in -lnsl" >&5
18072 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18074   echo $ac_n "(cached) $ac_c" 1>&6
18075 else
18076   ac_save_LIBS="$LIBS"
18077 LIBS="-lnsl  $LIBS"
18078 cat > conftest.$ac_ext <<EOF
18079 #line 18080 "configure"
18080 #include "confdefs.h"
18081 /* Override any gcc2 internal prototype to avoid an error.  */
18082 /* We use char because int might match the return type of a gcc2
18083     builtin and then its argument prototype would still apply.  */
18084 char inet_addr();
18085
18086 int main() {
18087 inet_addr()
18088 ; return 0; }
18089 EOF
18090 if { (eval echo configure:18091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18091   rm -rf conftest*
18092   eval "ac_cv_lib_$ac_lib_var=yes"
18093 else
18094   echo "configure: failed program was:" >&5
18095   cat conftest.$ac_ext >&5
18096   rm -rf conftest*
18097   eval "ac_cv_lib_$ac_lib_var=no"
18098 fi
18099 rm -f conftest*
18100 LIBS="$ac_save_LIBS"
18101
18102 fi
18103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18104   echo "$ac_t""yes" 1>&6
18105   INET_LINK="nsl"
18106 else
18107   echo "$ac_t""no" 1>&6
18108 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18109 echo "configure:18110: checking for inet_addr in -lresolv" >&5
18110 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18112   echo $ac_n "(cached) $ac_c" 1>&6
18113 else
18114   ac_save_LIBS="$LIBS"
18115 LIBS="-lresolv  $LIBS"
18116 cat > conftest.$ac_ext <<EOF
18117 #line 18118 "configure"
18118 #include "confdefs.h"
18119 /* Override any gcc2 internal prototype to avoid an error.  */
18120 /* We use char because int might match the return type of a gcc2
18121     builtin and then its argument prototype would still apply.  */
18122 char inet_addr();
18123
18124 int main() {
18125 inet_addr()
18126 ; return 0; }
18127 EOF
18128 if { (eval echo configure:18129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18129   rm -rf conftest*
18130   eval "ac_cv_lib_$ac_lib_var=yes"
18131 else
18132   echo "configure: failed program was:" >&5
18133   cat conftest.$ac_ext >&5
18134   rm -rf conftest*
18135   eval "ac_cv_lib_$ac_lib_var=no"
18136 fi
18137 rm -f conftest*
18138 LIBS="$ac_save_LIBS"
18139
18140 fi
18141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18142   echo "$ac_t""yes" 1>&6
18143   INET_LINK="resolv"
18144 else
18145   echo "$ac_t""no" 1>&6
18146 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18147 echo "configure:18148: checking for inet_addr in -lsocket" >&5
18148 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18150   echo $ac_n "(cached) $ac_c" 1>&6
18151 else
18152   ac_save_LIBS="$LIBS"
18153 LIBS="-lsocket  $LIBS"
18154 cat > conftest.$ac_ext <<EOF
18155 #line 18156 "configure"
18156 #include "confdefs.h"
18157 /* Override any gcc2 internal prototype to avoid an error.  */
18158 /* We use char because int might match the return type of a gcc2
18159     builtin and then its argument prototype would still apply.  */
18160 char inet_addr();
18161
18162 int main() {
18163 inet_addr()
18164 ; return 0; }
18165 EOF
18166 if { (eval echo configure:18167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18167   rm -rf conftest*
18168   eval "ac_cv_lib_$ac_lib_var=yes"
18169 else
18170   echo "configure: failed program was:" >&5
18171   cat conftest.$ac_ext >&5
18172   rm -rf conftest*
18173   eval "ac_cv_lib_$ac_lib_var=no"
18174 fi
18175 rm -f conftest*
18176 LIBS="$ac_save_LIBS"
18177
18178 fi
18179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18180   echo "$ac_t""yes" 1>&6
18181   INET_LINK="socket"
18182                 
18183 else
18184   echo "$ac_t""no" 1>&6
18185 fi
18186
18187             
18188 fi
18189
18190         
18191 fi
18192
18193     
18194
18195 fi
18196 done
18197
18198
18199 for ac_func in inet_aton
18200 do
18201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18202 echo "configure:18203: checking for $ac_func" >&5
18203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18204   echo $ac_n "(cached) $ac_c" 1>&6
18205 else
18206   cat > conftest.$ac_ext <<EOF
18207 #line 18208 "configure"
18208 #include "confdefs.h"
18209 /* System header to define __stub macros and hopefully few prototypes,
18210     which can conflict with char $ac_func(); below.  */
18211 #include <assert.h>
18212 /* Override any gcc2 internal prototype to avoid an error.  */
18213 /* We use char because int might match the return type of a gcc2
18214     builtin and then its argument prototype would still apply.  */
18215 char $ac_func();
18216
18217 int main() {
18218
18219 /* The GNU C library defines this for functions which it implements
18220     to always fail with ENOSYS.  Some functions are actually named
18221     something starting with __ and the normal name is an alias.  */
18222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18223 choke me
18224 #else
18225 $ac_func();
18226 #endif
18227
18228 ; return 0; }
18229 EOF
18230 if { (eval echo configure:18231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18231   rm -rf conftest*
18232   eval "ac_cv_func_$ac_func=yes"
18233 else
18234   echo "configure: failed program was:" >&5
18235   cat conftest.$ac_ext >&5
18236   rm -rf conftest*
18237   eval "ac_cv_func_$ac_func=no"
18238 fi
18239 rm -f conftest*
18240 fi
18241
18242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18243   echo "$ac_t""yes" 1>&6
18244     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18245   cat >> confdefs.h <<EOF
18246 #define $ac_tr_func 1
18247 EOF
18248  cat >> confdefs.h <<\EOF
18249 #define HAVE_INET_ATON 1
18250 EOF
18251
18252 else
18253   echo "$ac_t""no" 1>&6
18254             echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18255 echo "configure:18256: checking for inet_aton in -l$INET_LINK" >&5
18256 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18258   echo $ac_n "(cached) $ac_c" 1>&6
18259 else
18260   ac_save_LIBS="$LIBS"
18261 LIBS="-l$INET_LINK  $LIBS"
18262 cat > conftest.$ac_ext <<EOF
18263 #line 18264 "configure"
18264 #include "confdefs.h"
18265 /* Override any gcc2 internal prototype to avoid an error.  */
18266 /* We use char because int might match the return type of a gcc2
18267     builtin and then its argument prototype would still apply.  */
18268 char inet_aton();
18269
18270 int main() {
18271 inet_aton()
18272 ; return 0; }
18273 EOF
18274 if { (eval echo configure:18275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18275   rm -rf conftest*
18276   eval "ac_cv_lib_$ac_lib_var=yes"
18277 else
18278   echo "configure: failed program was:" >&5
18279   cat conftest.$ac_ext >&5
18280   rm -rf conftest*
18281   eval "ac_cv_lib_$ac_lib_var=no"
18282 fi
18283 rm -f conftest*
18284 LIBS="$ac_save_LIBS"
18285
18286 fi
18287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18288   echo "$ac_t""yes" 1>&6
18289   cat >> confdefs.h <<\EOF
18290 #define HAVE_INET_ATON 1
18291 EOF
18292
18293 else
18294   echo "$ac_t""no" 1>&6
18295 fi
18296
18297         
18298 fi
18299 done
18300
18301
18302 if test "x$INET_LINK" != "x"; then
18303     cat >> confdefs.h <<\EOF
18304 #define HAVE_INET_ADDR 1
18305 EOF
18306
18307     INET_LINK=" -l$INET_LINK"
18308 fi
18309
18310 fi
18311
18312
18313 cat > confcache <<\EOF
18314 # This file is a shell script that caches the results of configure
18315 # tests run on this system so they can be shared between configure
18316 # scripts and configure runs.  It is not useful on other systems.
18317 # If it contains results you don't want to keep, you may remove or edit it.
18318 #
18319 # By default, configure uses ./config.cache as the cache file,
18320 # creating it if it does not exist already.  You can give configure
18321 # the --cache-file=FILE option to use a different cache file; that is
18322 # what configure does when it calls configure scripts in
18323 # subdirectories, so they share the cache.
18324 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18325 # config.status only pays attention to the cache file if you give it the
18326 # --recheck option to rerun configure.
18327 #
18328 EOF
18329 # The following way of writing the cache mishandles newlines in values,
18330 # but we know of no workaround that is simple, portable, and efficient.
18331 # So, don't put newlines in cache variables' values.
18332 # Ultrix sh set writes to stderr and can't be redirected directly,
18333 # and sets the high bit in the cache file unless we assign to the vars.
18334 (set) 2>&1 |
18335   case `(ac_space=' '; set | grep ac_space) 2>&1` in
18336   *ac_space=\ *)
18337     # `set' does not quote correctly, so add quotes (double-quote substitution
18338     # turns \\\\ into \\, and sed turns \\ into \).
18339     sed -n \
18340       -e "s/'/'\\\\''/g" \
18341       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18342     ;;
18343   *)
18344     # `set' quotes correctly as required by POSIX, so do not add quotes.
18345     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18346     ;;
18347   esac >> confcache
18348 if cmp -s $cache_file confcache; then
18349   :
18350 else
18351   if test -w $cache_file; then
18352     echo "updating cache $cache_file"
18353     cat confcache > $cache_file
18354   else
18355     echo "not updating unwritable cache $cache_file"
18356   fi
18357 fi
18358 rm -f confcache
18359
18360
18361
18362 CPP_MT_FLAG=
18363 if test "$TOOLKIT" != "MSW"; then
18364
18365                             
18366     THREADS_LINK=
18367     THREADS_CFLAGS=
18368
18369     if test "$wxUSE_THREADS" = "yes" ; then
18370         if test "$USE_BEOS" = 1; then
18371             echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18372             wxUSE_THREADS="no"
18373         fi
18374     fi
18375
18376     if test "$wxUSE_THREADS" = "yes" ; then
18377                                                         
18378         
18379                                 THREAD_OPTS="-pthread"
18380         case "${host}" in
18381           *-*-solaris2* | *-*-sunos4* )
18382                 if test "x$GCC" = "xyes"; then
18383                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
18384                 else
18385                     THREAD_OPTS="-mt $THREAD_OPTS"
18386                 fi
18387                 ;;
18388           *-*-freebsd*)
18389                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18390                 ;;
18391           *-*-darwin* | *-*-cygwin* )
18392                                                 THREAD_OPTS=""
18393                 ;;
18394           *-*-aix*)
18395                                 THREAD_OPTS="pthreads"
18396                 ;;
18397         esac
18398
18399                                 THREAD_OPTS="$THREAD_OPTS pthread none"
18400
18401                 THREADS_OK=no
18402         for flag in $THREAD_OPTS; do
18403             case $flag in
18404                 none)
18405                     echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18406 echo "configure:18407: checking whether pthreads work without any flags" >&5
18407                     ;;
18408
18409                 -*)
18410                     echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18411 echo "configure:18412: checking whether pthreads work with $flag" >&5
18412                     THREADS_CFLAGS="$flag"
18413                     ;;
18414
18415                 *)
18416                     echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18417 echo "configure:18418: checking for the pthreads library -l$flag" >&5
18418                     THREADS_LINK="-l$flag"
18419                     ;;
18420               esac
18421
18422               save_LIBS="$LIBS"
18423               save_CFLAGS="$CFLAGS"
18424               LIBS="$THREADS_LINK $LIBS"
18425               CFLAGS="$THREADS_CFLAGS $CFLAGS"
18426
18427               cat > conftest.$ac_ext <<EOF
18428 #line 18429 "configure"
18429 #include "confdefs.h"
18430 #include <pthread.h>
18431 int main() {
18432 pthread_create(0,0,0,0);
18433 ; return 0; }
18434 EOF
18435 if { (eval echo configure:18436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18436   rm -rf conftest*
18437   THREADS_OK=yes
18438 else
18439   echo "configure: failed program was:" >&5
18440   cat conftest.$ac_ext >&5
18441 fi
18442 rm -f conftest*
18443
18444               LIBS="$save_LIBS"
18445               CFLAGS="$save_CFLAGS"
18446
18447               echo "$ac_t""$THREADS_OK" 1>&6
18448               if test "x$THREADS_OK" = "xyes"; then
18449                       break;
18450               fi
18451
18452               THREADS_LINK=""
18453               THREADS_CFLAGS=""
18454       done
18455
18456       if test "x$THREADS_OK" != "xyes"; then
18457           wxUSE_THREADS=no
18458           echo "configure: warning: No thread support on this system... disabled" 1>&2
18459       else
18460                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18461           LIBS="$THREADS_LINK $LIBS"
18462
18463           echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
18464 echo "configure:18465: checking if more special flags are required for pthreads" >&5
18465           flag=no
18466           case "${host}" in
18467             *-aix*)
18468                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18469                 flag="-D_THREAD_SAFE"
18470                 ;;
18471             *-freebsd*)
18472                 flag="-D_THREAD_SAFE"
18473                 ;;
18474             *-hp-hpux* )
18475                 flag="-D_REENTRANT"
18476                 ;;
18477             *solaris* | alpha*-osf*)
18478                 flag="-D_REENTRANT"
18479                 ;;
18480           esac
18481           echo "$ac_t""${flag}" 1>&6
18482           if test "x$flag" != xno; then
18483               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
18484           fi
18485
18486           if test "x$THREADS_CFLAGS" != "x"; then
18487                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
18488             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18489           fi
18490       fi
18491     fi
18492
18493         if test "$wxUSE_THREADS" = "yes" ; then
18494       for ac_func in thr_setconcurrency
18495 do
18496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18497 echo "configure:18498: checking for $ac_func" >&5
18498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18499   echo $ac_n "(cached) $ac_c" 1>&6
18500 else
18501   cat > conftest.$ac_ext <<EOF
18502 #line 18503 "configure"
18503 #include "confdefs.h"
18504 /* System header to define __stub macros and hopefully few prototypes,
18505     which can conflict with char $ac_func(); below.  */
18506 #include <assert.h>
18507 /* Override any gcc2 internal prototype to avoid an error.  */
18508 /* We use char because int might match the return type of a gcc2
18509     builtin and then its argument prototype would still apply.  */
18510 char $ac_func();
18511
18512 int main() {
18513
18514 /* The GNU C library defines this for functions which it implements
18515     to always fail with ENOSYS.  Some functions are actually named
18516     something starting with __ and the normal name is an alias.  */
18517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18518 choke me
18519 #else
18520 $ac_func();
18521 #endif
18522
18523 ; return 0; }
18524 EOF
18525 if { (eval echo configure:18526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18526   rm -rf conftest*
18527   eval "ac_cv_func_$ac_func=yes"
18528 else
18529   echo "configure: failed program was:" >&5
18530   cat conftest.$ac_ext >&5
18531   rm -rf conftest*
18532   eval "ac_cv_func_$ac_func=no"
18533 fi
18534 rm -f conftest*
18535 fi
18536
18537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18538   echo "$ac_t""yes" 1>&6
18539     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18540   cat >> confdefs.h <<EOF
18541 #define $ac_tr_func 1
18542 EOF
18543  
18544 else
18545   echo "$ac_t""no" 1>&6
18546 fi
18547 done
18548
18549
18550       for ac_hdr in sched.h
18551 do
18552 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18553 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18554 echo "configure:18555: checking for $ac_hdr" >&5
18555 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18556   echo $ac_n "(cached) $ac_c" 1>&6
18557 else
18558   cat > conftest.$ac_ext <<EOF
18559 #line 18560 "configure"
18560 #include "confdefs.h"
18561 #include <$ac_hdr>
18562 EOF
18563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18564 { (eval echo configure:18565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18566 if test -z "$ac_err"; then
18567   rm -rf conftest*
18568   eval "ac_cv_header_$ac_safe=yes"
18569 else
18570   echo "$ac_err" >&5
18571   echo "configure: failed program was:" >&5
18572   cat conftest.$ac_ext >&5
18573   rm -rf conftest*
18574   eval "ac_cv_header_$ac_safe=no"
18575 fi
18576 rm -f conftest*
18577 fi
18578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18579   echo "$ac_t""yes" 1>&6
18580     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18581   cat >> confdefs.h <<EOF
18582 #define $ac_tr_hdr 1
18583 EOF
18584  
18585 else
18586   echo "$ac_t""no" 1>&6
18587 fi
18588 done
18589
18590       if test "$ac_cv_header_sched_h" = "yes"; then
18591           echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
18592 echo "configure:18593: checking for sched_yield" >&5
18593 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18594   echo $ac_n "(cached) $ac_c" 1>&6
18595 else
18596   cat > conftest.$ac_ext <<EOF
18597 #line 18598 "configure"
18598 #include "confdefs.h"
18599 /* System header to define __stub macros and hopefully few prototypes,
18600     which can conflict with char sched_yield(); below.  */
18601 #include <assert.h>
18602 /* Override any gcc2 internal prototype to avoid an error.  */
18603 /* We use char because int might match the return type of a gcc2
18604     builtin and then its argument prototype would still apply.  */
18605 char sched_yield();
18606
18607 int main() {
18608
18609 /* The GNU C library defines this for functions which it implements
18610     to always fail with ENOSYS.  Some functions are actually named
18611     something starting with __ and the normal name is an alias.  */
18612 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18613 choke me
18614 #else
18615 sched_yield();
18616 #endif
18617
18618 ; return 0; }
18619 EOF
18620 if { (eval echo configure:18621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18621   rm -rf conftest*
18622   eval "ac_cv_func_sched_yield=yes"
18623 else
18624   echo "configure: failed program was:" >&5
18625   cat conftest.$ac_ext >&5
18626   rm -rf conftest*
18627   eval "ac_cv_func_sched_yield=no"
18628 fi
18629 rm -f conftest*
18630 fi
18631
18632 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18633   echo "$ac_t""yes" 1>&6
18634   cat >> confdefs.h <<\EOF
18635 #define HAVE_SCHED_YIELD 1
18636 EOF
18637
18638 else
18639   echo "$ac_t""no" 1>&6
18640
18641                 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
18642 echo "configure:18643: checking for sched_yield in -lposix4" >&5
18643 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18645   echo $ac_n "(cached) $ac_c" 1>&6
18646 else
18647   ac_save_LIBS="$LIBS"
18648 LIBS="-lposix4  $LIBS"
18649 cat > conftest.$ac_ext <<EOF
18650 #line 18651 "configure"
18651 #include "confdefs.h"
18652 /* Override any gcc2 internal prototype to avoid an error.  */
18653 /* We use char because int might match the return type of a gcc2
18654     builtin and then its argument prototype would still apply.  */
18655 char sched_yield();
18656
18657 int main() {
18658 sched_yield()
18659 ; return 0; }
18660 EOF
18661 if { (eval echo configure:18662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18662   rm -rf conftest*
18663   eval "ac_cv_lib_$ac_lib_var=yes"
18664 else
18665   echo "configure: failed program was:" >&5
18666   cat conftest.$ac_ext >&5
18667   rm -rf conftest*
18668   eval "ac_cv_lib_$ac_lib_var=no"
18669 fi
18670 rm -f conftest*
18671 LIBS="$ac_save_LIBS"
18672
18673 fi
18674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18675   echo "$ac_t""yes" 1>&6
18676   cat >> confdefs.h <<\EOF
18677 #define HAVE_SCHED_YIELD 1
18678 EOF
18679  POSIX4_LINK=" -lposix4"
18680 else
18681   echo "$ac_t""no" 1>&6
18682 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
18683                 
18684 fi
18685
18686             
18687           
18688 fi
18689
18690       fi
18691
18692                                           HAVE_PRIOR_FUNCS=0
18693       echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
18694 echo "configure:18695: checking for pthread_attr_getschedpolicy" >&5
18695 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
18696   echo $ac_n "(cached) $ac_c" 1>&6
18697 else
18698   cat > conftest.$ac_ext <<EOF
18699 #line 18700 "configure"
18700 #include "confdefs.h"
18701 /* System header to define __stub macros and hopefully few prototypes,
18702     which can conflict with char pthread_attr_getschedpolicy(); below.  */
18703 #include <assert.h>
18704 /* Override any gcc2 internal prototype to avoid an error.  */
18705 /* We use char because int might match the return type of a gcc2
18706     builtin and then its argument prototype would still apply.  */
18707 char pthread_attr_getschedpolicy();
18708
18709 int main() {
18710
18711 /* The GNU C library defines this for functions which it implements
18712     to always fail with ENOSYS.  Some functions are actually named
18713     something starting with __ and the normal name is an alias.  */
18714 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
18715 choke me
18716 #else
18717 pthread_attr_getschedpolicy();
18718 #endif
18719
18720 ; return 0; }
18721 EOF
18722 if { (eval echo configure:18723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18723   rm -rf conftest*
18724   eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
18725 else
18726   echo "configure: failed program was:" >&5
18727   cat conftest.$ac_ext >&5
18728   rm -rf conftest*
18729   eval "ac_cv_func_pthread_attr_getschedpolicy=no"
18730 fi
18731 rm -f conftest*
18732 fi
18733
18734 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
18735   echo "$ac_t""yes" 1>&6
18736   echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
18737 echo "configure:18738: checking for pthread_attr_setschedparam" >&5
18738 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
18739   echo $ac_n "(cached) $ac_c" 1>&6
18740 else
18741   cat > conftest.$ac_ext <<EOF
18742 #line 18743 "configure"
18743 #include "confdefs.h"
18744 /* System header to define __stub macros and hopefully few prototypes,
18745     which can conflict with char pthread_attr_setschedparam(); below.  */
18746 #include <assert.h>
18747 /* Override any gcc2 internal prototype to avoid an error.  */
18748 /* We use char because int might match the return type of a gcc2
18749     builtin and then its argument prototype would still apply.  */
18750 char pthread_attr_setschedparam();
18751
18752 int main() {
18753
18754 /* The GNU C library defines this for functions which it implements
18755     to always fail with ENOSYS.  Some functions are actually named
18756     something starting with __ and the normal name is an alias.  */
18757 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
18758 choke me
18759 #else
18760 pthread_attr_setschedparam();
18761 #endif
18762
18763 ; return 0; }
18764 EOF
18765 if { (eval echo configure:18766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18766   rm -rf conftest*
18767   eval "ac_cv_func_pthread_attr_setschedparam=yes"
18768 else
18769   echo "configure: failed program was:" >&5
18770   cat conftest.$ac_ext >&5
18771   rm -rf conftest*
18772   eval "ac_cv_func_pthread_attr_setschedparam=no"
18773 fi
18774 rm -f conftest*
18775 fi
18776
18777 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18778   echo "$ac_t""yes" 1>&6
18779   echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
18780 echo "configure:18781: checking for sched_get_priority_max" >&5
18781 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18782   echo $ac_n "(cached) $ac_c" 1>&6
18783 else
18784   cat > conftest.$ac_ext <<EOF
18785 #line 18786 "configure"
18786 #include "confdefs.h"
18787 /* System header to define __stub macros and hopefully few prototypes
18788 else
18789   echo "$ac_t""no" 1>&6
18790 which can conflict with char sched_get_priority_max(); below.  */
18791 #include <assert.h>
18792 /* Override any gcc2 internal prototype to avoid an error.  */
18793 /* We use char because int might match the return type of a gcc2
18794     builtin and then its argument prototype would still apply.  */
18795 char sched_get_priority_max();
18796
18797 int main() {
18798
18799 /* The GNU C library defines this for functions which it implements
18800     to always fail with ENOSYS.  Some functions are actually named
18801     something starting with __ and the normal name is an alias.  */
18802 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18803 choke me
18804 #else
18805 sched_get_priority_max();
18806 #endif
18807
18808 ; return 0; }
18809 EOF
18810 if { (eval echo configure:18811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18811   rm -rf conftest*
18812   eval "ac_cv_func_sched_get_priority_max=yes"
18813 else
18814   echo "configure: failed program was:" >&5
18815   cat conftest.$ac_ext >&5
18816   rm -rf conftest*
18817   eval "ac_cv_func_sched_get_priority_max=no"
18818 fi
18819 rm -f conftest*
18820 fi
18821
18822 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18823   echo "$ac_t""yes" 1>&6
18824   HAVE_PRIOR_FUNCS=1
18825 else
18826   echo "$ac_t""no" 1>&6
18827 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
18828 echo "configure:18829: checking for sched_get_priority_max in -lposix4" >&5
18829 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18831   echo $ac_n "(cached) $ac_c" 1>&6
18832 else
18833   ac_save_LIBS="$LIBS"
18834 LIBS="-lposix4  $LIBS"
18835 cat > conftest.$ac_ext <<EOF
18836 #line 18837 "configure"
18837 #include "confdefs.h"
18838 /* Override any gcc2 internal prototype to avoid an error.  */
18839 /* We use char because int might match the return type of a gcc2
18840     builtin and then its argument prototype would still apply.  */
18841 char sched_get_priority_max();
18842
18843 int main() {
18844 sched_get_priority_max()
18845 ; return 0; }
18846 EOF
18847 if { (eval echo configure:18848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18848   rm -rf conftest*
18849   eval "ac_cv_lib_$ac_lib_var=yes"
18850 else
18851   echo "configure: failed program was:" >&5
18852   cat conftest.$ac_ext >&5
18853   rm -rf conftest*
18854   eval "ac_cv_lib_$ac_lib_var=no"
18855 fi
18856 rm -f conftest*
18857 LIBS="$ac_save_LIBS"
18858
18859 fi
18860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18861   echo "$ac_t""yes" 1>&6
18862   
18863                                 HAVE_PRIOR_FUNCS=1
18864                                 POSIX4_LINK=" -lposix4"
18865                              
18866 else
18867   echo "$ac_t""no" 1>&6
18868 fi
18869
18870                        
18871 fi
18872
18873                      
18874 else
18875   echo "$ac_t""no" 1>&6
18876 fi
18877
18878                    
18879 fi
18880
18881
18882       if test "$HAVE_PRIOR_FUNCS" = 1; then
18883         cat >> confdefs.h <<\EOF
18884 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
18885 EOF
18886
18887       else
18888         echo "configure: warning: Setting thread priority will not work" 1>&2
18889       fi
18890
18891       echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
18892 echo "configure:18893: checking for pthread_cancel" >&5
18893 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
18894   echo $ac_n "(cached) $ac_c" 1>&6
18895 else
18896   cat > conftest.$ac_ext <<EOF
18897 #line 18898 "configure"
18898 #include "confdefs.h"
18899 /* System header to define __stub macros and hopefully few prototypes,
18900     which can conflict with char pthread_cancel(); below.  */
18901 #include <assert.h>
18902 /* Override any gcc2 internal prototype to avoid an error.  */
18903 /* We use char because int might match the return type of a gcc2
18904     builtin and then its argument prototype would still apply.  */
18905 char pthread_cancel();
18906
18907 int main() {
18908
18909 /* The GNU C library defines this for functions which it implements
18910     to always fail with ENOSYS.  Some functions are actually named
18911     something starting with __ and the normal name is an alias.  */
18912 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
18913 choke me
18914 #else
18915 pthread_cancel();
18916 #endif
18917
18918 ; return 0; }
18919 EOF
18920 if { (eval echo configure:18921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18921   rm -rf conftest*
18922   eval "ac_cv_func_pthread_cancel=yes"
18923 else
18924   echo "configure: failed program was:" >&5
18925   cat conftest.$ac_ext >&5
18926   rm -rf conftest*
18927   eval "ac_cv_func_pthread_cancel=no"
18928 fi
18929 rm -f conftest*
18930 fi
18931
18932 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
18933   echo "$ac_t""yes" 1>&6
18934   cat >> confdefs.h <<\EOF
18935 #define HAVE_PTHREAD_CANCEL 1
18936 EOF
18937
18938 else
18939   echo "$ac_t""no" 1>&6
18940 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
18941 fi
18942
18943
18944       echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
18945 echo "configure:18946: checking for pthread_cleanup_push/pop" >&5
18946 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18947   echo $ac_n "(cached) $ac_c" 1>&6
18948 else
18949   
18950         cat > conftest.$ac_ext <<EOF
18951 #line 18952 "configure"
18952 #include "confdefs.h"
18953 #include <pthread.h>
18954 int main() {
18955
18956                         pthread_cleanup_push(NULL, NULL);
18957                         pthread_cleanup_pop(0);
18958                      
18959 ; return 0; }
18960 EOF
18961 if { (eval echo configure:18962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18962   rm -rf conftest*
18963   
18964                         wx_cv_func_pthread_cleanup_push=yes
18965                      
18966 else
18967   echo "configure: failed program was:" >&5
18968   cat conftest.$ac_ext >&5
18969   rm -rf conftest*
18970   
18971                         wx_cv_func_pthread_cleanup_push=no
18972                      
18973 fi
18974 rm -f conftest*
18975       
18976 fi
18977
18978 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
18979
18980       if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18981           cat >> confdefs.h <<\EOF
18982 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
18983 EOF
18984
18985       fi
18986
18987                                                 
18988       echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
18989 echo "configure:18990: checking for pthread_mutexattr_t" >&5
18990 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18991   echo $ac_n "(cached) $ac_c" 1>&6
18992 else
18993   
18994         cat > conftest.$ac_ext <<EOF
18995 #line 18996 "configure"
18996 #include "confdefs.h"
18997 #include <pthread.h>
18998 int main() {
18999
19000                pthread_mutexattr_t attr;
19001                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
19002             
19003 ; return 0; }
19004 EOF
19005 if { (eval echo configure:19006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19006   rm -rf conftest*
19007   
19008                wx_cv_type_pthread_mutexattr_t=yes
19009             
19010 else
19011   echo "configure: failed program was:" >&5
19012   cat conftest.$ac_ext >&5
19013   rm -rf conftest*
19014   
19015                wx_cv_type_pthread_mutexattr_t=no
19016             
19017         
19018 fi
19019 rm -f conftest*
19020       
19021 fi
19022
19023 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19024
19025       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19026         cat >> confdefs.h <<\EOF
19027 #define HAVE_PTHREAD_MUTEXATTR_T 1
19028 EOF
19029
19030       else
19031                 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19032 echo "configure:19033: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19033 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19034   echo $ac_n "(cached) $ac_c" 1>&6
19035 else
19036   
19037             cat > conftest.$ac_ext <<EOF
19038 #line 19039 "configure"
19039 #include "confdefs.h"
19040 #include <pthread.h>
19041 int main() {
19042
19043                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19044                 
19045 ; return 0; }
19046 EOF
19047 if { (eval echo configure:19048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19048   rm -rf conftest*
19049   
19050                     wx_cv_type_pthread_rec_mutex_init=yes
19051                 
19052 else
19053   echo "configure: failed program was:" >&5
19054   cat conftest.$ac_ext >&5
19055   rm -rf conftest*
19056   
19057                     wx_cv_type_pthread_rec_mutex_init=no
19058                 
19059             
19060 fi
19061 rm -f conftest*
19062         
19063 fi
19064
19065 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19066         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19067           cat >> confdefs.h <<\EOF
19068 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19069 EOF
19070
19071         else
19072                     echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19073         fi
19074       fi
19075     fi
19076
19077 else
19078     if test "$wxUSE_THREADS" = "yes" ; then
19079       case "${host}" in
19080         *-*-mingw32* )
19081                         echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19082 echo "configure:19083: checking if compiler supports -mthreads" >&5
19083 if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19084   echo $ac_n "(cached) $ac_c" 1>&6
19085 else
19086   
19087                     CFLAGS_OLD="$CFLAGS"
19088                     CFLAGS="$CFLAGS -mthreads"
19089                     cat > conftest.$ac_ext <<EOF
19090 #line 19091 "configure"
19091 #include "confdefs.h"
19092
19093 int main() {
19094
19095 ; return 0; }
19096 EOF
19097 if { (eval echo configure:19098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19098   rm -rf conftest*
19099   wx_cv_cflags_mthread=yes
19100 else
19101   echo "configure: failed program was:" >&5
19102   cat conftest.$ac_ext >&5
19103   rm -rf conftest*
19104   wx_cv_cflags_mthread=no
19105                     
19106 fi
19107 rm -f conftest*
19108                 
19109             
19110 fi
19111
19112 echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19113
19114             if test "$wx_cv_cflags_mthread" = "yes"; then
19115                                 CXXFLAGS="$CXXFLAGS -mthreads"
19116                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19117                 LDFLAGS="$LDFLAGS -mthreads"
19118             else
19119                                 CFLAGS="$CFLAGS_OLD"
19120             fi
19121         ;;
19122       esac
19123     fi
19124 fi
19125
19126 if test "$wxUSE_THREADS" = "yes"; then
19127   cat >> confdefs.h <<\EOF
19128 #define wxUSE_THREADS 1
19129 EOF
19130
19131
19132   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19133 else
19134       if test "$ac_cv_func_strtok_r" = "yes"; then
19135     echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19136 echo "configure:19137: checking if -D_REENTRANT is needed" >&5
19137     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19138         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19139         echo "$ac_t""yes" 1>&6
19140     else
19141         echo "$ac_t""no" 1>&6
19142     fi
19143   fi
19144 fi
19145
19146 if test "$WXGTK20" = 1 ; then
19147   cat >> confdefs.h <<EOF
19148 #define __WXGTK20__ $WXGTK20
19149 EOF
19150
19151   WXGTK12=1
19152 fi
19153
19154 if test "$WXGTK12" = 1 ; then
19155   cat >> confdefs.h <<EOF
19156 #define __WXGTK12__ $WXGTK12
19157 EOF
19158
19159 fi
19160
19161 if test "$WXGTK127" = 1 ; then
19162   cat >> confdefs.h <<EOF
19163 #define __WXGTK127__ $WXGTK127
19164 EOF
19165
19166 fi
19167
19168 WXDEBUG=
19169
19170 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19171     WXDEBUG="-g"
19172     wxUSE_OPTIMISE=no
19173 fi
19174
19175 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19176     wxUSE_DEBUG_INFO=yes
19177     WXDEBUG="-ggdb"
19178 fi
19179
19180 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19181     cat >> confdefs.h <<\EOF
19182 #define WXDEBUG 1
19183 EOF
19184
19185     WXDEBUG_DEFINE="-D__WXDEBUG__"
19186 else
19187     if test "$wxUSE_GTK" = 1 ; then
19188         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19189     fi
19190 fi
19191
19192 if test "$wxUSE_MEM_TRACING" = "yes" ; then
19193     cat >> confdefs.h <<\EOF
19194 #define wxUSE_MEMORY_TRACING 1
19195 EOF
19196
19197     cat >> confdefs.h <<\EOF
19198 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19199 EOF
19200
19201     cat >> confdefs.h <<\EOF
19202 #define wxUSE_DEBUG_NEW_ALWAYS 1
19203 EOF
19204
19205     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19206 fi
19207
19208 if test "$wxUSE_DMALLOC" = "yes" ; then
19209     DMALLOC_LIBS="-ldmalloc"
19210 fi
19211
19212 PROFILE=
19213 if test "$wxUSE_PROFILE" = "yes" ; then
19214     PROFILE=" -pg"
19215 fi
19216
19217 CODE_GEN_FLAGS=
19218 CODE_GEN_FLAGS_CXX=
19219 if test "$GCC" = "yes" ; then
19220     if test "$wxUSE_NO_RTTI" = "yes" ; then
19221         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19222     fi
19223     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19224         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19225     fi
19226     if test "$wxUSE_PERMISSIVE" = "yes" ; then
19227         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19228     fi
19229     if test "$USE_WIN32" = 1 ; then
19230         # I'm not even really sure what this was ever added to solve,
19231         # but someone added it for mingw native builds, so I guess
19232         # they had a reason, right??
19233         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19234     fi
19235
19236                                                 case "${host}" in
19237       powerpc*-*-aix* )
19238         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19239         ;;
19240       *-hppa* )
19241         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19242         ;;
19243     esac
19244 fi
19245
19246 if test "$wxUSE_OPTIMISE" = "no" ; then
19247     OPTIMISE=
19248 else
19249     if test "$GCC" = yes ; then
19250         OPTIMISE="-O2"
19251         case "${host}" in
19252             i586-*-*|i686-*-* )
19253             OPTIMISE="${OPTIMISE} "
19254         ;;
19255         esac
19256     else
19257         OPTIMISE="-O"
19258     fi
19259 fi
19260
19261 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19262     cat >> confdefs.h <<\EOF
19263 #define WXWIN_COMPATIBILITY_2 1
19264 EOF
19265
19266
19267     WXWIN_COMPATIBILITY_2_2="yes"
19268 fi
19269
19270 if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
19271     cat >> confdefs.h <<\EOF
19272 #define WXWIN_COMPATIBILITY_2_2 1
19273 EOF
19274
19275 fi
19276
19277
19278 if test "$wxUSE_GUI" = "yes"; then
19279   cat >> confdefs.h <<\EOF
19280 #define wxUSE_GUI 1
19281 EOF
19282
19283
19284                       else
19285   cat >> confdefs.h <<\EOF
19286 #define wxUSE_NOGUI 1
19287 EOF
19288
19289 fi
19290
19291
19292 if test "$wxUSE_UNIX" = "yes"; then
19293   cat >> confdefs.h <<\EOF
19294 #define wxUSE_UNIX 1
19295 EOF
19296
19297 fi
19298
19299
19300 if test "$wxUSE_APPLE_IEEE" = "yes"; then
19301   cat >> confdefs.h <<\EOF
19302 #define wxUSE_APPLE_IEEE 1
19303 EOF
19304
19305 fi
19306
19307 if test "$wxUSE_TIMER" = "yes"; then
19308   cat >> confdefs.h <<\EOF
19309 #define wxUSE_TIMER 1
19310 EOF
19311
19312 fi
19313
19314 if test "$wxUSE_WAVE" = "yes"; then
19315   cat >> confdefs.h <<\EOF
19316 #define wxUSE_WAVE 1
19317 EOF
19318
19319 fi
19320
19321 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19322   cat >> confdefs.h <<\EOF
19323 #define wxUSE_CMDLINE_PARSER 1
19324 EOF
19325
19326 fi
19327
19328 if test "$wxUSE_STOPWATCH" = "yes"; then
19329   cat >> confdefs.h <<\EOF
19330 #define wxUSE_STOPWATCH 1
19331 EOF
19332
19333 fi
19334
19335 if test "$wxUSE_DATETIME" = "yes"; then
19336   cat >> confdefs.h <<\EOF
19337 #define wxUSE_DATETIME 1
19338 EOF
19339
19340 fi
19341
19342 if test "$wxUSE_TIMEDATE" = "yes"; then
19343   cat >> confdefs.h <<\EOF
19344 #define wxUSE_TIMEDATE 1
19345 EOF
19346
19347 fi
19348
19349 if test "$wxUSE_FILE" = "yes"; then
19350   cat >> confdefs.h <<\EOF
19351 #define wxUSE_FILE 1
19352 EOF
19353
19354 fi
19355
19356 if test "$wxUSE_FFILE" = "yes"; then
19357   cat >> confdefs.h <<\EOF
19358 #define wxUSE_FFILE 1
19359 EOF
19360
19361 fi
19362
19363 if test "$wxUSE_FILESYSTEM" = "yes"; then
19364   cat >> confdefs.h <<\EOF
19365 #define wxUSE_FILESYSTEM 1
19366 EOF
19367
19368 fi
19369
19370 if test "$wxUSE_FS_INET" = "yes"; then
19371   cat >> confdefs.h <<\EOF
19372 #define wxUSE_FS_INET 1
19373 EOF
19374
19375 fi
19376
19377 if test "$wxUSE_FS_ZIP" = "yes"; then
19378   cat >> confdefs.h <<\EOF
19379 #define wxUSE_FS_ZIP 1
19380 EOF
19381
19382 fi
19383
19384 if test "$wxUSE_ZIPSTREAM" = "yes"; then
19385   cat >> confdefs.h <<\EOF
19386 #define wxUSE_ZIPSTREAM 1
19387 EOF
19388
19389 fi
19390
19391 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19392   cat >> confdefs.h <<\EOF
19393 #define wxUSE_ON_FATAL_EXCEPTION 1
19394 EOF
19395
19396 fi
19397
19398 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19399   cat >> confdefs.h <<\EOF
19400 #define wxUSE_SNGLINST_CHECKER 1
19401 EOF
19402
19403 fi
19404
19405 if test "$wxUSE_BUSYINFO" = "yes"; then
19406   cat >> confdefs.h <<\EOF
19407 #define wxUSE_BUSYINFO 1
19408 EOF
19409
19410 fi
19411
19412 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19413   cat >> confdefs.h <<\EOF
19414 #define wxUSE_STD_IOSTREAM 1
19415 EOF
19416
19417 fi
19418
19419 if test "$wxUSE_TEXTBUFFER" = "yes"; then
19420     cat >> confdefs.h <<\EOF
19421 #define wxUSE_TEXTBUFFER 1
19422 EOF
19423
19424 fi
19425
19426 if test "$wxUSE_TEXTFILE" = "yes"; then
19427   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19428     echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19429   else
19430     cat >> confdefs.h <<\EOF
19431 #define wxUSE_TEXTFILE 1
19432 EOF
19433
19434   fi
19435 fi
19436
19437 if test "$wxUSE_CONFIG" = "yes" ; then
19438   if test "$wxUSE_TEXTFILE" != "yes"; then
19439     echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19440   else
19441     cat >> confdefs.h <<\EOF
19442 #define wxUSE_CONFIG 1
19443 EOF
19444
19445     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19446   fi
19447 fi
19448
19449 if test "$wxUSE_INTL" = "yes" ; then
19450   if test "$wxUSE_FILE" != "yes"; then
19451     echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
19452   else
19453     cat >> confdefs.h <<\EOF
19454 #define wxUSE_INTL 1
19455 EOF
19456
19457     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
19458     GUIDIST="$GUIDIST INTL_DIST"
19459   fi
19460 fi
19461
19462 if test "$wxUSE_LOG" = "yes"; then
19463   cat >> confdefs.h <<\EOF
19464 #define wxUSE_LOG 1
19465 EOF
19466
19467
19468     if test "$wxUSE_LOGGUI" = "yes"; then
19469       cat >> confdefs.h <<\EOF
19470 #define wxUSE_LOGGUI 1
19471 EOF
19472
19473     fi
19474
19475     if test "$wxUSE_LOGWINDOW" = "yes"; then
19476       cat >> confdefs.h <<\EOF
19477 #define wxUSE_LOGWINDOW 1
19478 EOF
19479
19480     fi
19481
19482     if test "$wxUSE_LOGDIALOG" = "yes"; then
19483       cat >> confdefs.h <<\EOF
19484 #define wxUSE_LOG_DIALOG 1
19485 EOF
19486
19487     fi
19488 fi
19489
19490 if test "$wxUSE_LONGLONG" = "yes"; then
19491   cat >> confdefs.h <<\EOF
19492 #define wxUSE_LONGLONG 1
19493 EOF
19494
19495 fi
19496
19497 if test "$wxUSE_GEOMETRY" = "yes"; then
19498   cat >> confdefs.h <<\EOF
19499 #define wxUSE_GEOMETRY 1
19500 EOF
19501
19502 fi
19503
19504 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
19505   cat >> confdefs.h <<\EOF
19506 #define wxUSE_DIALUP_MANAGER 1
19507 EOF
19508
19509   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
19510 fi
19511
19512 if test "$wxUSE_STREAMS" = "yes" ; then
19513   cat >> confdefs.h <<\EOF
19514 #define wxUSE_STREAMS 1
19515 EOF
19516
19517 fi
19518
19519
19520 if test "$wxUSE_DATETIME" = "yes"; then
19521         for ac_func in strptime
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${ac_exeext}; 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  
19571 else
19572   echo "$ac_t""no" 1>&6
19573 fi
19574 done
19575
19576
19577             echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
19578 echo "configure:19579: checking for timezone variable in <time.h>" >&5
19579 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19580   echo $ac_n "(cached) $ac_c" 1>&6
19581 else
19582   
19583                         cat > conftest.$ac_ext <<EOF
19584 #line 19585 "configure"
19585 #include "confdefs.h"
19586
19587                                 #include <time.h>
19588                             
19589 int main() {
19590
19591                                 int tz;
19592                                 tz = timezone;
19593                             
19594 ; return 0; }
19595 EOF
19596 if { (eval echo configure:19597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19597   rm -rf conftest*
19598   
19599                                 wx_cv_var_timezone=timezone
19600                             
19601 else
19602   echo "configure: failed program was:" >&5
19603   cat conftest.$ac_ext >&5
19604   rm -rf conftest*
19605   
19606                                 cat > conftest.$ac_ext <<EOF
19607 #line 19608 "configure"
19608 #include "confdefs.h"
19609
19610                                         #include <time.h>
19611                                     
19612 int main() {
19613
19614                                         int tz;
19615                                         tz = _timezone;
19616                                     
19617 ; return 0; }
19618 EOF
19619 if { (eval echo configure:19620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19620   rm -rf conftest*
19621   
19622                                         wx_cv_var_timezone=_timezone
19623                                     
19624 else
19625   echo "configure: failed program was:" >&5
19626   cat conftest.$ac_ext >&5
19627   rm -rf conftest*
19628   
19629                                         cat > conftest.$ac_ext <<EOF
19630 #line 19631 "configure"
19631 #include "confdefs.h"
19632
19633                                                 #include <time.h>
19634                                             
19635 int main() {
19636
19637                                                 int tz;
19638                                                 tz = __timezone;
19639                                             
19640 ; return 0; }
19641 EOF
19642 if { (eval echo configure:19643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19643   rm -rf conftest*
19644   
19645                                                 wx_cv_var_timezone=__timezone
19646                                             
19647 else
19648   echo "configure: failed program was:" >&5
19649   cat conftest.$ac_ext >&5
19650   rm -rf conftest*
19651   
19652                                                 if test "$USE_DOS" = 0 ; then
19653                                                     echo "configure: warning: no timezone variable" 1>&2
19654                                                 fi
19655                                             
19656                                         
19657 fi
19658 rm -f conftest*
19659                                     
19660                                 
19661 fi
19662 rm -f conftest*
19663                             
19664                         
19665 fi
19666 rm -f conftest*
19667                    
19668     
19669 fi
19670
19671 echo "$ac_t""$wx_cv_var_timezone" 1>&6
19672
19673         if test "x$wx_cv_var_timezone" != x ; then
19674         cat >> confdefs.h <<EOF
19675 #define WX_TIMEZONE $wx_cv_var_timezone
19676 EOF
19677
19678     fi
19679
19680         for ac_func in localtime
19681 do
19682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19683 echo "configure:19684: checking for $ac_func" >&5
19684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19685   echo $ac_n "(cached) $ac_c" 1>&6
19686 else
19687   cat > conftest.$ac_ext <<EOF
19688 #line 19689 "configure"
19689 #include "confdefs.h"
19690 /* System header to define __stub macros and hopefully few prototypes,
19691     which can conflict with char $ac_func(); below.  */
19692 #include <assert.h>
19693 /* Override any gcc2 internal prototype to avoid an error.  */
19694 /* We use char because int might match the return type of a gcc2
19695     builtin and then its argument prototype would still apply.  */
19696 char $ac_func();
19697
19698 int main() {
19699
19700 /* The GNU C library defines this for functions which it implements
19701     to always fail with ENOSYS.  Some functions are actually named
19702     something starting with __ and the normal name is an alias.  */
19703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19704 choke me
19705 #else
19706 $ac_func();
19707 #endif
19708
19709 ; return 0; }
19710 EOF
19711 if { (eval echo configure:19712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19712   rm -rf conftest*
19713   eval "ac_cv_func_$ac_func=yes"
19714 else
19715   echo "configure: failed program was:" >&5
19716   cat conftest.$ac_ext >&5
19717   rm -rf conftest*
19718   eval "ac_cv_func_$ac_func=no"
19719 fi
19720 rm -f conftest*
19721 fi
19722
19723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19724   echo "$ac_t""yes" 1>&6
19725     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19726   cat >> confdefs.h <<EOF
19727 #define $ac_tr_func 1
19728 EOF
19729  
19730 else
19731   echo "$ac_t""no" 1>&6
19732 fi
19733 done
19734
19735
19736     if test "$ac_cv_func_localtime" = "yes"; then
19737         echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
19738 echo "configure:19739: checking for tm_gmtoff in struct tm" >&5
19739 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
19740   echo $ac_n "(cached) $ac_c" 1>&6
19741 else
19742   
19743             cat > conftest.$ac_ext <<EOF
19744 #line 19745 "configure"
19745 #include "confdefs.h"
19746
19747                     #include <time.h>
19748                 
19749 int main() {
19750
19751                     struct tm tm;
19752                     tm.tm_gmtoff++;
19753                 
19754 ; return 0; }
19755 EOF
19756 if { (eval echo configure:19757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19757   rm -rf conftest*
19758   
19759                     wx_cv_struct_tm_has_gmtoff=yes
19760                 
19761 else
19762   echo "configure: failed program was:" >&5
19763   cat conftest.$ac_ext >&5
19764   rm -rf conftest*
19765   wx_cv_struct_tm_has_gmtoff=no
19766             
19767 fi
19768 rm -f conftest*
19769         
19770 fi
19771
19772 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
19773     fi
19774
19775     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
19776         cat >> confdefs.h <<\EOF
19777 #define WX_GMTOFF_IN_TM 1
19778 EOF
19779
19780     fi
19781
19782             for ac_func in gettimeofday ftime
19783 do
19784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19785 echo "configure:19786: checking for $ac_func" >&5
19786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19787   echo $ac_n "(cached) $ac_c" 1>&6
19788 else
19789   cat > conftest.$ac_ext <<EOF
19790 #line 19791 "configure"
19791 #include "confdefs.h"
19792 /* System header to define __stub macros and hopefully few prototypes,
19793     which can conflict with char $ac_func(); below.  */
19794 #include <assert.h>
19795 /* Override any gcc2 internal prototype to avoid an error.  */
19796 /* We use char because int might match the return type of a gcc2
19797     builtin and then its argument prototype would still apply.  */
19798 char $ac_func();
19799
19800 int main() {
19801
19802 /* The GNU C library defines this for functions which it implements
19803     to always fail with ENOSYS.  Some functions are actually named
19804     something starting with __ and the normal name is an alias.  */
19805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19806 choke me
19807 #else
19808 $ac_func();
19809 #endif
19810
19811 ; return 0; }
19812 EOF
19813 if { (eval echo configure:19814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19814   rm -rf conftest*
19815   eval "ac_cv_func_$ac_func=yes"
19816 else
19817   echo "configure: failed program was:" >&5
19818   cat conftest.$ac_ext >&5
19819   rm -rf conftest*
19820   eval "ac_cv_func_$ac_func=no"
19821 fi
19822 rm -f conftest*
19823 fi
19824
19825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19826   echo "$ac_t""yes" 1>&6
19827     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19828   cat >> confdefs.h <<EOF
19829 #define $ac_tr_func 1
19830 EOF
19831  break
19832 else
19833   echo "$ac_t""no" 1>&6
19834 fi
19835 done
19836
19837
19838     if test "$ac_cv_func_gettimeofday" = "yes"; then
19839         echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
19840 echo "configure:19841: checking whether gettimeofday takes two arguments" >&5
19841 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19842   echo $ac_n "(cached) $ac_c" 1>&6
19843 else
19844   
19845                         
19846             ac_ext=C
19847 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19848 ac_cpp='$CXXCPP $CPPFLAGS'
19849 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19850 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19851 cross_compiling=$ac_cv_prog_cxx_cross
19852
19853
19854             cat > conftest.$ac_ext <<EOF
19855 #line 19856 "configure"
19856 #include "confdefs.h"
19857
19858                     #include <sys/time.h>
19859                     #include <unistd.h>
19860                 
19861 int main() {
19862
19863                     struct timeval tv;
19864                     gettimeofday(&tv, NULL);
19865                 
19866 ; return 0; }
19867 EOF
19868 if { (eval echo configure:19869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19869   rm -rf conftest*
19870   wx_cv_func_gettimeofday_has_2_args=yes
19871 else
19872   echo "configure: failed program was:" >&5
19873   cat conftest.$ac_ext >&5
19874   rm -rf conftest*
19875   cat > conftest.$ac_ext <<EOF
19876 #line 19877 "configure"
19877 #include "confdefs.h"
19878
19879                         #include <sys/time.h>
19880                         #include <unistd.h>
19881                     
19882 int main() {
19883
19884                         struct timeval tv;
19885                         gettimeofday(&tv);
19886                     
19887 ; return 0; }
19888 EOF
19889 if { (eval echo configure:19890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19890   rm -rf conftest*
19891   wx_cv_func_gettimeofday_has_2_args=no
19892 else
19893   echo "configure: failed program was:" >&5
19894   cat conftest.$ac_ext >&5
19895   rm -rf conftest*
19896   
19897                         echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
19898                         wx_cv_func_gettimeofday_has_2_args=unknown
19899                     
19900                 
19901 fi
19902 rm -f conftest*
19903             
19904 fi
19905 rm -f conftest*
19906             ac_ext=c
19907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19908 ac_cpp='$CPP $CPPFLAGS'
19909 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19910 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19911 cross_compiling=$ac_cv_prog_cc_cross
19912
19913         
19914 fi
19915
19916 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
19917
19918         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
19919             cat >> confdefs.h <<\EOF
19920 #define WX_GETTIMEOFDAY_NO_TZ 1
19921 EOF
19922
19923         fi
19924     fi
19925
19926     cat >> confdefs.h <<\EOF
19927 #define wxUSE_TIMEDATE 1
19928 EOF
19929
19930     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
19931 fi
19932
19933
19934 if test "$wxUSE_SOCKETS" = "yes"; then
19935     if test "$wxUSE_MGL" = "1"; then
19936         echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
19937         wxUSE_SOCKETS="no"
19938     fi
19939 fi
19940
19941 if test "$wxUSE_SOCKETS" = "yes"; then
19942         if test "$TOOLKIT" != "MSW"; then
19943                 echo $ac_n "checking for socket""... $ac_c" 1>&6
19944 echo "configure:19945: checking for socket" >&5
19945 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
19946   echo $ac_n "(cached) $ac_c" 1>&6
19947 else
19948   cat > conftest.$ac_ext <<EOF
19949 #line 19950 "configure"
19950 #include "confdefs.h"
19951 /* System header to define __stub macros and hopefully few prototypes,
19952     which can conflict with char socket(); below.  */
19953 #include <assert.h>
19954 /* Override any gcc2 internal prototype to avoid an error.  */
19955 /* We use char because int might match the return type of a gcc2
19956     builtin and then its argument prototype would still apply.  */
19957 char socket();
19958
19959 int main() {
19960
19961 /* The GNU C library defines this for functions which it implements
19962     to always fail with ENOSYS.  Some functions are actually named
19963     something starting with __ and the normal name is an alias.  */
19964 #if defined (__stub_socket) || defined (__stub___socket)
19965 choke me
19966 #else
19967 socket();
19968 #endif
19969
19970 ; return 0; }
19971 EOF
19972 if { (eval echo configure:19973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19973   rm -rf conftest*
19974   eval "ac_cv_func_socket=yes"
19975 else
19976   echo "configure: failed program was:" >&5
19977   cat conftest.$ac_ext >&5
19978   rm -rf conftest*
19979   eval "ac_cv_func_socket=no"
19980 fi
19981 rm -f conftest*
19982 fi
19983
19984 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
19985   echo "$ac_t""yes" 1>&6
19986   :
19987 else
19988   echo "$ac_t""no" 1>&6
19989 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
19990 echo "configure:19991: checking for socket in -lsocket" >&5
19991 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19993   echo $ac_n "(cached) $ac_c" 1>&6
19994 else
19995   ac_save_LIBS="$LIBS"
19996 LIBS="-lsocket  $LIBS"
19997 cat > conftest.$ac_ext <<EOF
19998 #line 19999 "configure"
19999 #include "confdefs.h"
20000 /* Override any gcc2 internal prototype to avoid an error.  */
20001 /* We use char because int might match the return type of a gcc2
20002     builtin and then its argument prototype would still apply.  */
20003 char socket();
20004
20005 int main() {
20006 socket()
20007 ; return 0; }
20008 EOF
20009 if { (eval echo configure:20010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20010   rm -rf conftest*
20011   eval "ac_cv_lib_$ac_lib_var=yes"
20012 else
20013   echo "configure: failed program was:" >&5
20014   cat conftest.$ac_ext >&5
20015   rm -rf conftest*
20016   eval "ac_cv_lib_$ac_lib_var=no"
20017 fi
20018 rm -f conftest*
20019 LIBS="$ac_save_LIBS"
20020
20021 fi
20022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20023   echo "$ac_t""yes" 1>&6
20024   if test "$INET_LINK" != " -lsocket"; then
20025                     INET_LINK="$INET_LINK -lsocket"
20026                 fi
20027 else
20028   echo "$ac_t""no" 1>&6
20029
20030                     echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20031                     wxUSE_SOCKETS=no
20032                 
20033             
20034 fi
20035
20036         
20037 fi
20038
20039     fi
20040 fi
20041
20042 if test "$wxUSE_SOCKETS" = "yes" ; then
20043                 if test "$TOOLKIT" != "MSW"; then
20044                 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20045 echo "configure:20046: checking what is the type of the third argument of getsockname" >&5
20046 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20047   echo $ac_n "(cached) $ac_c" 1>&6
20048 else
20049   
20050                 
20051                 ac_ext=C
20052 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20053 ac_cpp='$CXXCPP $CPPFLAGS'
20054 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20055 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20056 cross_compiling=$ac_cv_prog_cxx_cross
20057
20058
20059                 cat > conftest.$ac_ext <<EOF
20060 #line 20061 "configure"
20061 #include "confdefs.h"
20062
20063                         #include <sys/types.h>
20064                         #include <sys/socket.h>
20065                     
20066 int main() {
20067
20068                         socklen_t len;
20069                         getsockname(0, 0, &len);
20070                     
20071 ; return 0; }
20072 EOF
20073 if { (eval echo configure:20074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20074   rm -rf conftest*
20075   wx_cv_type_getsockname3=socklen_t
20076 else
20077   echo "configure: failed program was:" >&5
20078   cat conftest.$ac_ext >&5
20079   rm -rf conftest*
20080   cat > conftest.$ac_ext <<EOF
20081 #line 20082 "configure"
20082 #include "confdefs.h"
20083
20084                             #include <sys/types.h>
20085                             #include <sys/socket.h>
20086                         
20087 int main() {
20088
20089                             size_t len;
20090                             getsockname(0, 0, &len);
20091                         
20092 ; return 0; }
20093 EOF
20094 if { (eval echo configure:20095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20095   rm -rf conftest*
20096   wx_cv_type_getsockname3=size_t
20097 else
20098   echo "configure: failed program was:" >&5
20099   cat conftest.$ac_ext >&5
20100   rm -rf conftest*
20101   cat > conftest.$ac_ext <<EOF
20102 #line 20103 "configure"
20103 #include "confdefs.h"
20104
20105                                 #include <sys/types.h>
20106                                 #include <sys/socket.h>
20107                             
20108 int main() {
20109
20110                                 int len;
20111                                 getsockname(0, 0, &len);
20112                             
20113 ; return 0; }
20114 EOF
20115 if { (eval echo configure:20116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20116   rm -rf conftest*
20117   wx_cv_type_getsockname3=int
20118 else
20119   echo "configure: failed program was:" >&5
20120   cat conftest.$ac_ext >&5
20121   rm -rf conftest*
20122   wx_cv_type_getsockname3=unknown
20123                         
20124 fi
20125 rm -f conftest*
20126                     
20127 fi
20128 rm -f conftest*
20129                 
20130 fi
20131 rm -f conftest*
20132
20133                 ac_ext=c
20134 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20135 ac_cpp='$CPP $CPPFLAGS'
20136 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20137 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20138 cross_compiling=$ac_cv_prog_cc_cross
20139
20140             
20141 fi
20142
20143 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20144
20145         if test "$wx_cv_type_getsockname3" = "unknown"; then
20146             wxUSE_SOCKETS=no
20147             echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20148         else
20149             cat >> confdefs.h <<EOF
20150 #define SOCKLEN_T $wx_cv_type_getsockname3
20151 EOF
20152
20153         fi
20154     fi
20155 fi
20156
20157 if test "$wxUSE_SOCKETS" = "yes" ; then
20158     cat >> confdefs.h <<\EOF
20159 #define wxUSE_SOCKETS 1
20160 EOF
20161
20162     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20163 fi
20164
20165
20166 if test "$wxUSE_GUI" = "yes"; then
20167
20168     if test "$TOOLKIT" = "MAC"; then
20169         echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20170         wxUSE_JOYSTICK=no
20171      fi
20172     if test "$TOOLKIT" = "MOTIF"; then
20173         echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20174         wxUSE_JOYSTICK=no
20175      fi
20176     if test "$TOOLKIT" = "X11"; then
20177         echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20178         wxUSE_JOYSTICK=no
20179      fi
20180
20181         if test "$TOOLKIT" != "MSW"; then
20182         if test "$wxUSE_JOYSTICK" = "yes"; then
20183                         for ac_hdr in linux/joystick.h
20184 do
20185 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20186 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20187 echo "configure:20188: checking for $ac_hdr" >&5
20188 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20189   echo $ac_n "(cached) $ac_c" 1>&6
20190 else
20191   cat > conftest.$ac_ext <<EOF
20192 #line 20193 "configure"
20193 #include "confdefs.h"
20194 #include <$ac_hdr>
20195 EOF
20196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20197 { (eval echo configure:20198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20199 if test -z "$ac_err"; then
20200   rm -rf conftest*
20201   eval "ac_cv_header_$ac_safe=yes"
20202 else
20203   echo "$ac_err" >&5
20204   echo "configure: failed program was:" >&5
20205   cat conftest.$ac_ext >&5
20206   rm -rf conftest*
20207   eval "ac_cv_header_$ac_safe=no"
20208 fi
20209 rm -f conftest*
20210 fi
20211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20212   echo "$ac_t""yes" 1>&6
20213     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20214   cat >> confdefs.h <<EOF
20215 #define $ac_tr_hdr 1
20216 EOF
20217  
20218 else
20219   echo "$ac_t""no" 1>&6
20220 fi
20221 done
20222
20223             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20224                 wxUSE_JOYSTICK=no
20225                 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20226             fi
20227         fi
20228     fi
20229
20230     if test "$wxUSE_JOYSTICK" = "yes"; then
20231         cat >> confdefs.h <<\EOF
20232 #define wxUSE_JOYSTICK 1
20233 EOF
20234
20235         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20236     fi
20237 fi
20238
20239
20240 if test "$TOOLKIT" != "MSW"; then
20241
20242     HAVE_DL_FUNCS=0
20243     HAVE_SHL_FUNCS=0
20244     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20245         if test "$USE_DARWIN" = 1; then
20246                         HAVE_DL_FUNCS=1
20247         else
20248                                                 for ac_func in dlopen
20249 do
20250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20251 echo "configure:20252: checking for $ac_func" >&5
20252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20253   echo $ac_n "(cached) $ac_c" 1>&6
20254 else
20255   cat > conftest.$ac_ext <<EOF
20256 #line 20257 "configure"
20257 #include "confdefs.h"
20258 /* System header to define __stub macros and hopefully few prototypes,
20259     which can conflict with char $ac_func(); below.  */
20260 #include <assert.h>
20261 /* Override any gcc2 internal prototype to avoid an error.  */
20262 /* We use char because int might match the return type of a gcc2
20263     builtin and then its argument prototype would still apply.  */
20264 char $ac_func();
20265
20266 int main() {
20267
20268 /* The GNU C library defines this for functions which it implements
20269     to always fail with ENOSYS.  Some functions are actually named
20270     something starting with __ and the normal name is an alias.  */
20271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20272 choke me
20273 #else
20274 $ac_func();
20275 #endif
20276
20277 ; return 0; }
20278 EOF
20279 if { (eval echo configure:20280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20280   rm -rf conftest*
20281   eval "ac_cv_func_$ac_func=yes"
20282 else
20283   echo "configure: failed program was:" >&5
20284   cat conftest.$ac_ext >&5
20285   rm -rf conftest*
20286   eval "ac_cv_func_$ac_func=no"
20287 fi
20288 rm -f conftest*
20289 fi
20290
20291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20292   echo "$ac_t""yes" 1>&6
20293     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20294   cat >> confdefs.h <<EOF
20295 #define $ac_tr_func 1
20296 EOF
20297  
20298                 cat >> confdefs.h <<\EOF
20299 #define HAVE_DLOPEN 1
20300 EOF
20301
20302                 HAVE_DL_FUNCS=1
20303             
20304 else
20305   echo "$ac_t""no" 1>&6
20306 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20307 echo "configure:20308: checking for dlopen in -ldl" >&5
20308 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20310   echo $ac_n "(cached) $ac_c" 1>&6
20311 else
20312   ac_save_LIBS="$LIBS"
20313 LIBS="-ldl  $LIBS"
20314 cat > conftest.$ac_ext <<EOF
20315 #line 20316 "configure"
20316 #include "confdefs.h"
20317 /* Override any gcc2 internal prototype to avoid an error.  */
20318 /* We use char because int might match the return type of a gcc2
20319     builtin and then its argument prototype would still apply.  */
20320 char dlopen();
20321
20322 int main() {
20323 dlopen()
20324 ; return 0; }
20325 EOF
20326 if { (eval echo configure:20327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20327   rm -rf conftest*
20328   eval "ac_cv_lib_$ac_lib_var=yes"
20329 else
20330   echo "configure: failed program was:" >&5
20331   cat conftest.$ac_ext >&5
20332   rm -rf conftest*
20333   eval "ac_cv_lib_$ac_lib_var=no"
20334 fi
20335 rm -f conftest*
20336 LIBS="$ac_save_LIBS"
20337
20338 fi
20339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20340   echo "$ac_t""yes" 1>&6
20341   
20342                                 cat >> confdefs.h <<\EOF
20343 #define HAVE_DLOPEN 1
20344 EOF
20345
20346                                 HAVE_DL_FUNCS=1
20347                                 DL_LINK=" -ldl$DL_LINK"
20348                             
20349 else
20350   echo "$ac_t""no" 1>&6
20351
20352                                 for ac_func in shl_load
20353 do
20354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20355 echo "configure:20356: checking for $ac_func" >&5
20356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20357   echo $ac_n "(cached) $ac_c" 1>&6
20358 else
20359   cat > conftest.$ac_ext <<EOF
20360 #line 20361 "configure"
20361 #include "confdefs.h"
20362 /* System header to define __stub macros and hopefully few prototypes,
20363     which can conflict with char $ac_func(); below.  */
20364 #include <assert.h>
20365 /* Override any gcc2 internal prototype to avoid an error.  */
20366 /* We use char because int might match the return type of a gcc2
20367     builtin and then its argument prototype would still apply.  */
20368 char $ac_func();
20369
20370 int main() {
20371
20372 /* The GNU C library defines this for functions which it implements
20373     to always fail with ENOSYS.  Some functions are actually named
20374     something starting with __ and the normal name is an alias.  */
20375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20376 choke me
20377 #else
20378 $ac_func();
20379 #endif
20380
20381 ; return 0; }
20382 EOF
20383 if { (eval echo configure:20384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20384   rm -rf conftest*
20385   eval "ac_cv_func_$ac_func=yes"
20386 else
20387   echo "configure: failed program was:" >&5
20388   cat conftest.$ac_ext >&5
20389   rm -rf conftest*
20390   eval "ac_cv_func_$ac_func=no"
20391 fi
20392 rm -f conftest*
20393 fi
20394
20395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20396   echo "$ac_t""yes" 1>&6
20397     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20398   cat >> confdefs.h <<EOF
20399 #define $ac_tr_func 1
20400 EOF
20401  
20402                                                 cat >> confdefs.h <<\EOF
20403 #define HAVE_SHL_LOAD 1
20404 EOF
20405
20406                                                 HAVE_SHL_FUNCS=1
20407                                               
20408 else
20409   echo "$ac_t""no" 1>&6
20410 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20411 echo "configure:20412: checking for dld in -lshl_load" >&5
20412 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20414   echo $ac_n "(cached) $ac_c" 1>&6
20415 else
20416   ac_save_LIBS="$LIBS"
20417 LIBS="-lshl_load  $LIBS"
20418 cat > conftest.$ac_ext <<EOF
20419 #line 20420 "configure"
20420 #include "confdefs.h"
20421 /* Override any gcc2 internal prototype to avoid an error.  */
20422 /* We use char because int might match the return type of a gcc2
20423     builtin and then its argument prototype would still apply.  */
20424 char dld();
20425
20426 int main() {
20427 dld()
20428 ; return 0; }
20429 EOF
20430 if { (eval echo configure:20431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20431   rm -rf conftest*
20432   eval "ac_cv_lib_$ac_lib_var=yes"
20433 else
20434   echo "configure: failed program was:" >&5
20435   cat conftest.$ac_ext >&5
20436   rm -rf conftest*
20437   eval "ac_cv_lib_$ac_lib_var=no"
20438 fi
20439 rm -f conftest*
20440 LIBS="$ac_save_LIBS"
20441
20442 fi
20443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20444   echo "$ac_t""yes" 1>&6
20445   
20446                                                                 HAVE_SHL_FUNCS=1
20447                                                                 DL_LINK=" -ldld$DL_LINK"
20448                                                              
20449 else
20450   echo "$ac_t""no" 1>&6
20451 fi
20452
20453                                               
20454 fi
20455 done
20456
20457                             
20458 fi
20459
20460             
20461 fi
20462 done
20463
20464
20465                 if test "$HAVE_DL_FUNCS" = 1; then
20466             for ac_func in dlerror
20467 do
20468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20469 echo "configure:20470: checking for $ac_func" >&5
20470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20471   echo $ac_n "(cached) $ac_c" 1>&6
20472 else
20473   cat > conftest.$ac_ext <<EOF
20474 #line 20475 "configure"
20475 #include "confdefs.h"
20476 /* System header to define __stub macros and hopefully few prototypes,
20477     which can conflict with char $ac_func(); below.  */
20478 #include <assert.h>
20479 /* Override any gcc2 internal prototype to avoid an error.  */
20480 /* We use char because int might match the return type of a gcc2
20481     builtin and then its argument prototype would still apply.  */
20482 char $ac_func();
20483
20484 int main() {
20485
20486 /* The GNU C library defines this for functions which it implements
20487     to always fail with ENOSYS.  Some functions are actually named
20488     something starting with __ and the normal name is an alias.  */
20489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20490 choke me
20491 #else
20492 $ac_func();
20493 #endif
20494
20495 ; return 0; }
20496 EOF
20497 if { (eval echo configure:20498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20498   rm -rf conftest*
20499   eval "ac_cv_func_$ac_func=yes"
20500 else
20501   echo "configure: failed program was:" >&5
20502   cat conftest.$ac_ext >&5
20503   rm -rf conftest*
20504   eval "ac_cv_func_$ac_func=no"
20505 fi
20506 rm -f conftest*
20507 fi
20508
20509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20510   echo "$ac_t""yes" 1>&6
20511     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20512   cat >> confdefs.h <<EOF
20513 #define $ac_tr_func 1
20514 EOF
20515  cat >> confdefs.h <<\EOF
20516 #define HAVE_DLERROR 1
20517 EOF
20518
20519 else
20520   echo "$ac_t""no" 1>&6
20521 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
20522 echo "configure:20523: checking for dlerror in -ldl" >&5
20523 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20525   echo $ac_n "(cached) $ac_c" 1>&6
20526 else
20527   ac_save_LIBS="$LIBS"
20528 LIBS="-ldl  $LIBS"
20529 cat > conftest.$ac_ext <<EOF
20530 #line 20531 "configure"
20531 #include "confdefs.h"
20532 /* Override any gcc2 internal prototype to avoid an error.  */
20533 /* We use char because int might match the return type of a gcc2
20534     builtin and then its argument prototype would still apply.  */
20535 char dlerror();
20536
20537 int main() {
20538 dlerror()
20539 ; return 0; }
20540 EOF
20541 if { (eval echo configure:20542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20542   rm -rf conftest*
20543   eval "ac_cv_lib_$ac_lib_var=yes"
20544 else
20545   echo "configure: failed program was:" >&5
20546   cat conftest.$ac_ext >&5
20547   rm -rf conftest*
20548   eval "ac_cv_lib_$ac_lib_var=no"
20549 fi
20550 rm -f conftest*
20551 LIBS="$ac_save_LIBS"
20552
20553 fi
20554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20555   echo "$ac_t""yes" 1>&6
20556   cat >> confdefs.h <<\EOF
20557 #define HAVE_DLERROR 1
20558 EOF
20559
20560 else
20561   echo "$ac_t""no" 1>&6
20562 fi
20563
20564 fi
20565 done
20566
20567         fi
20568         fi
20569
20570         if test "$HAVE_DL_FUNCS" = 0; then
20571             if test "$HAVE_SHL_FUNCS" = 0; then
20572               if test "$USE_UNIX" = 1; then
20573                   echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
20574                   wxUSE_DYNAMIC_LOADER=no
20575                   wxUSE_DYNLIB_CLASS=no
20576               else
20577                   echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
20578               fi
20579             fi
20580         fi
20581     fi
20582 fi
20583
20584 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
20585     cat >> confdefs.h <<\EOF
20586 #define wxUSE_DYNAMIC_LOADER 1
20587 EOF
20588
20589 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20590     cat >> confdefs.h <<\EOF
20591 #define wxUSE_DYNLIB_CLASS 1
20592 EOF
20593
20594 fi
20595
20596
20597 if test "$wxUSE_FONTMAP" = "yes" ; then
20598   cat >> confdefs.h <<\EOF
20599 #define wxUSE_FONTMAP 1
20600 EOF
20601
20602 fi
20603
20604 if test "$wxUSE_UNICODE" = "yes" ; then
20605   cat >> confdefs.h <<\EOF
20606 #define wxUSE_UNICODE 1
20607 EOF
20608
20609
20610   if test "$wxUSE_MSW" != 1; then
20611       wxUSE_UNICODE_MSLU=no
20612   fi
20613
20614   if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
20615         echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
20616 echo "configure:20617: checking for main in -lunicows" >&5
20617 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20619   echo $ac_n "(cached) $ac_c" 1>&6
20620 else
20621   ac_save_LIBS="$LIBS"
20622 LIBS="-lunicows  $LIBS"
20623 cat > conftest.$ac_ext <<EOF
20624 #line 20625 "configure"
20625 #include "confdefs.h"
20626
20627 int main() {
20628 main()
20629 ; return 0; }
20630 EOF
20631 if { (eval echo configure:20632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20632   rm -rf conftest*
20633   eval "ac_cv_lib_$ac_lib_var=yes"
20634 else
20635   echo "configure: failed program was:" >&5
20636   cat conftest.$ac_ext >&5
20637   rm -rf conftest*
20638   eval "ac_cv_lib_$ac_lib_var=no"
20639 fi
20640 rm -f conftest*
20641 LIBS="$ac_save_LIBS"
20642
20643 fi
20644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20645   echo "$ac_t""yes" 1>&6
20646   
20647                 cat >> confdefs.h <<\EOF
20648 #define wxUSE_UNICODE_MSLU 1
20649 EOF
20650
20651             
20652 else
20653   echo "$ac_t""no" 1>&6
20654
20655                 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
20656                              Applications will only run on Windows NT/2000/XP!" 1>&2
20657                 wxUSE_UNICODE_MSLU=no
20658             
20659 fi
20660
20661     fi
20662 fi
20663
20664 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
20665   cat >> confdefs.h <<\EOF
20666 #define wxUSE_EXPERIMENTAL_PRINTF 1
20667 EOF
20668
20669 fi
20670
20671
20672
20673 IODBC_C_SRC=""
20674 if test "$wxUSE_ODBC" = "yes" ; then
20675     cat >> confdefs.h <<\EOF
20676 #define wxUSE_ODBC 1
20677 EOF
20678
20679     WXODBCFLAG="-D_IODBC_"
20680     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
20681 fi
20682
20683
20684 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
20685   cat >> confdefs.h <<\EOF
20686 #define wxUSE_POSTSCRIPT 1
20687 EOF
20688
20689 fi
20690
20691 cat >> confdefs.h <<\EOF
20692 #define wxUSE_AFM_FOR_POSTSCRIPT 1
20693 EOF
20694
20695
20696 cat >> confdefs.h <<\EOF
20697 #define wxUSE_NORMALIZED_PS_FONTS 1
20698 EOF
20699
20700
20701
20702 if test "$wxUSE_CONSTRAINTS" = "yes"; then
20703     cat >> confdefs.h <<\EOF
20704 #define wxUSE_CONSTRAINTS 1
20705 EOF
20706
20707     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
20708 fi
20709
20710 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20711
20712
20713    if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20714        cat >> confdefs.h <<\EOF
20715 #define wxUSE_MDI_ARCHITECTURE 1
20716 EOF
20717
20718        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
20719    fi
20720 fi
20721
20722 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
20723     cat >> confdefs.h <<\EOF
20724 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
20725 EOF
20726
20727     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
20728     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20729         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
20730     fi
20731 fi
20732
20733 if test "$wxUSE_HELP" = "yes"; then
20734     cat >> confdefs.h <<\EOF
20735 #define wxUSE_HELP 1
20736 EOF
20737
20738     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
20739
20740     if test "$wxUSE_MSW" = 1; then
20741       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
20742         cat >> confdefs.h <<\EOF
20743 #define wxUSE_MS_HTML_HELP 1
20744 EOF
20745
20746       fi
20747     fi
20748
20749     if test "$wxUSE_WXHTML_HELP" = "yes"; then
20750       if test "$wxUSE_HTML" = "yes"; then
20751         cat >> confdefs.h <<\EOF
20752 #define wxUSE_WXHTML_HELP 1
20753 EOF
20754
20755       else
20756         echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
20757         wxUSE_WXHTML_HELP=no
20758       fi
20759     fi
20760 fi
20761
20762 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20763     if test "$wxUSE_CONSTRAINTS" != "yes"; then
20764         echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
20765     else
20766         cat >> confdefs.h <<\EOF
20767 #define wxUSE_PRINTING_ARCHITECTURE 1
20768 EOF
20769
20770     fi
20771     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
20772 fi
20773
20774 if test "$wxUSE_PROLOGIO" = "yes" ; then
20775     cat >> confdefs.h <<\EOF
20776 #define wxUSE_PROLOGIO 1
20777 EOF
20778
20779     ALL_OBJECTS="$ALL_OBJECTS parser.o"
20780 fi
20781
20782 if test "$wxUSE_RESOURCES" = "yes" ; then
20783     if test "$wxUSE_NANOX" = "yes"; then
20784         echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
20785     else
20786         cat >> confdefs.h <<\EOF
20787 #define wxUSE_RESOURCES 1
20788 EOF
20789
20790         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
20791     fi
20792     if test "$wxUSE_PROLOGIO" != "yes" ; then
20793         ALL_OBJECTS="$ALL_OBJECTS parser.o"
20794     fi
20795 fi
20796
20797 if test "$wxUSE_X_RESOURCES" = "yes"; then
20798     cat >> confdefs.h <<\EOF
20799 #define wxUSE_X_RESOURCES 1
20800 EOF
20801
20802 fi
20803
20804
20805 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
20806                           -o "$wxUSE_CLIPBOARD"     = "yes" \
20807                           -o "$wxUSE_OLE"     = "yes" \
20808                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
20809     for ac_hdr in ole2.h
20810 do
20811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20813 echo "configure:20814: checking for $ac_hdr" >&5
20814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20815   echo $ac_n "(cached) $ac_c" 1>&6
20816 else
20817   cat > conftest.$ac_ext <<EOF
20818 #line 20819 "configure"
20819 #include "confdefs.h"
20820 #include <$ac_hdr>
20821 EOF
20822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20823 { (eval echo configure:20824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20825 if test -z "$ac_err"; then
20826   rm -rf conftest*
20827   eval "ac_cv_header_$ac_safe=yes"
20828 else
20829   echo "$ac_err" >&5
20830   echo "configure: failed program was:" >&5
20831   cat conftest.$ac_ext >&5
20832   rm -rf conftest*
20833   eval "ac_cv_header_$ac_safe=no"
20834 fi
20835 rm -f conftest*
20836 fi
20837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20838   echo "$ac_t""yes" 1>&6
20839     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20840   cat >> confdefs.h <<EOF
20841 #define $ac_tr_hdr 1
20842 EOF
20843  
20844 else
20845   echo "$ac_t""no" 1>&6
20846 fi
20847 done
20848
20849
20850     if test "$ac_cv_header_ole2_h" = "yes" ; then
20851         if test "$GCC" = yes ; then
20852             
20853             ac_ext=C
20854 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20855 ac_cpp='$CXXCPP $CPPFLAGS'
20856 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20857 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20858 cross_compiling=$ac_cv_prog_cxx_cross
20859
20860
20861             echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
20862 echo "configure:20863: checking if g++ requires -fvtable-thunks" >&5
20863             cat > conftest.$ac_ext <<EOF
20864 #line 20865 "configure"
20865 #include "confdefs.h"
20866 #include <windows.h>
20867                             #include <ole2.h>
20868 int main() {
20869
20870 ; return 0; }
20871 EOF
20872 if { (eval echo configure:20873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20873   rm -rf conftest*
20874   echo "$ac_t""no" 1>&6
20875 else
20876   echo "configure: failed program was:" >&5
20877   cat conftest.$ac_ext >&5
20878   rm -rf conftest*
20879   echo "$ac_t""yes" 1>&6
20880                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20881 fi
20882 rm -f conftest*
20883             ac_ext=c
20884 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20885 ac_cpp='$CPP $CPPFLAGS'
20886 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20887 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20888 cross_compiling=$ac_cv_prog_cc_cross
20889
20890             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
20891             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
20892             cat >> confdefs.h <<\EOF
20893 #define wxUSE_OLE 1
20894 EOF
20895
20896
20897         fi
20898
20899                 cat >> confdefs.h <<\EOF
20900 #define wxUSE_DATAOBJ 1
20901 EOF
20902
20903     else
20904         echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
20905
20906         wxUSE_CLIPBOARD=no
20907         wxUSE_DRAG_AND_DROP=no
20908         wxUSE_DATAOBJ=no
20909         wxUSE_OLE=no
20910     fi
20911
20912     if test "$wxUSE_METAFILE" = "yes"; then
20913         cat >> confdefs.h <<\EOF
20914 #define wxUSE_METAFILE 1
20915 EOF
20916
20917
20918                 cat >> confdefs.h <<\EOF
20919 #define wxUSE_ENH_METAFILE 1
20920 EOF
20921
20922     fi
20923 fi
20924
20925 if test "$wxUSE_IPC" = "yes"; then
20926     if test "$wxUSE_SOCKETS" != "yes"; then
20927         echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
20928     fi
20929
20930     cat >> confdefs.h <<\EOF
20931 #define wxUSE_IPC 1
20932 EOF
20933
20934 fi
20935
20936 if test "$wxUSE_CLIPBOARD" = "yes"; then
20937     if test "$wxUSE_MGL" = 1; then
20938         echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
20939         wxUSE_CLIPBOARD=no
20940     fi
20941
20942     if test "$wxUSE_CLIPBOARD" = "yes"; then
20943         cat >> confdefs.h <<\EOF
20944 #define wxUSE_CLIPBOARD 1
20945 EOF
20946
20947
20948                 cat >> confdefs.h <<\EOF
20949 #define wxUSE_DATAOBJ 1
20950 EOF
20951
20952     fi
20953 fi
20954
20955 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
20956     if test "$wxUSE_GTK" = 1; then
20957         if test "$WXGTK12" != 1; then
20958             echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
20959             wxUSE_DRAG_AND_DROP=no
20960         fi
20961     fi
20962
20963     if test "$wxUSE_MOTIF" = 1; then
20964         echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
20965         wxUSE_DRAG_AND_DROP=no
20966     fi
20967
20968     if test "$wxUSE_X11" = 1; then
20969         echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
20970         wxUSE_DRAG_AND_DROP=no
20971     fi
20972
20973     if test "$wxUSE_MGL" = 1; then
20974         echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
20975         wxUSE_DRAG_AND_DROP=no
20976     fi
20977
20978     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
20979         cat >> confdefs.h <<\EOF
20980 #define wxUSE_DRAG_AND_DROP 1
20981 EOF
20982
20983         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
20984     fi
20985
20986 fi
20987
20988 if test "$wxUSE_SPLINES" = "yes" ; then
20989   cat >> confdefs.h <<\EOF
20990 #define wxUSE_SPLINES 1
20991 EOF
20992
20993 fi
20994
20995
20996 USES_CONTROLS=0
20997 if test "$wxUSE_CONTROLS" = "yes"; then
20998   USES_CONTROLS=1
20999 fi
21000
21001 if test "$wxUSE_ACCEL" = "yes"; then
21002   cat >> confdefs.h <<\EOF
21003 #define wxUSE_ACCEL 1
21004 EOF
21005
21006   USES_CONTROLS=1
21007 fi
21008
21009 if test "$wxUSE_BUTTON" = "yes"; then
21010   cat >> confdefs.h <<\EOF
21011 #define wxUSE_BUTTON 1
21012 EOF
21013
21014   USES_CONTROLS=1
21015 fi
21016
21017 if test "$wxUSE_BMPBUTTON" = "yes"; then
21018   cat >> confdefs.h <<\EOF
21019 #define wxUSE_BMPBUTTON 1
21020 EOF
21021
21022   USES_CONTROLS=1
21023 fi
21024
21025 if test "$wxUSE_CALCTRL" = "yes"; then
21026   cat >> confdefs.h <<\EOF
21027 #define wxUSE_CALENDARCTRL 1
21028 EOF
21029
21030   USES_CONTROLS=1
21031   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21032 fi
21033
21034 if test "$wxUSE_CARET" = "yes"; then
21035   cat >> confdefs.h <<\EOF
21036 #define wxUSE_CARET 1
21037 EOF
21038
21039   USES_CONTROLS=1
21040   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21041 fi
21042
21043 if test "$wxUSE_COMBOBOX" = "yes"; then
21044   cat >> confdefs.h <<\EOF
21045 #define wxUSE_COMBOBOX 1
21046 EOF
21047
21048   USES_CONTROLS=1
21049 fi
21050
21051 if test "$wxUSE_CHOICE" = "yes"; then
21052   cat >> confdefs.h <<\EOF
21053 #define wxUSE_CHOICE 1
21054 EOF
21055
21056   USES_CONTROLS=1
21057 fi
21058
21059 if test "$wxUSE_CHECKBOX" = "yes"; then
21060   cat >> confdefs.h <<\EOF
21061 #define wxUSE_CHECKBOX 1
21062 EOF
21063
21064   USES_CONTROLS=1
21065 fi
21066
21067 if test "$wxUSE_CHECKLST" = "yes"; then
21068   cat >> confdefs.h <<\EOF
21069 #define wxUSE_CHECKLISTBOX 1
21070 EOF
21071
21072   USES_CONTROLS=1
21073   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21074 fi
21075
21076 if test "$wxUSE_GAUGE" = "yes"; then
21077   cat >> confdefs.h <<\EOF
21078 #define wxUSE_GAUGE 1
21079 EOF
21080
21081   USES_CONTROLS=1
21082 fi
21083
21084 if test "$wxUSE_NEW_GRID" = "yes"; then
21085   wxUSE_GRID="yes"
21086   cat >> confdefs.h <<\EOF
21087 #define wxUSE_NEW_GRID 1
21088 EOF
21089
21090   USES_CONTROLS=1
21091   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
21092 fi
21093
21094 if test "$wxUSE_GRID" = "yes"; then
21095   cat >> confdefs.h <<\EOF
21096 #define wxUSE_GRID 1
21097 EOF
21098
21099   USES_CONTROLS=1
21100   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21101 fi
21102
21103 if test "$wxUSE_IMAGLIST" = "yes"; then
21104     cat >> confdefs.h <<\EOF
21105 #define wxUSE_IMAGLIST 1
21106 EOF
21107
21108 fi
21109
21110 if test "$wxUSE_LISTBOX" = "yes"; then
21111     cat >> confdefs.h <<\EOF
21112 #define wxUSE_LISTBOX 1
21113 EOF
21114
21115     USES_CONTROLS=1
21116 fi
21117
21118 if test "$wxUSE_LISTCTRL" = "yes"; then
21119     if test "$wxUSE_IMAGLIST" = "yes"; then
21120         cat >> confdefs.h <<\EOF
21121 #define wxUSE_LISTCTRL 1
21122 EOF
21123
21124         USES_CONTROLS=1
21125         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21126     else
21127         echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21128     fi
21129 fi
21130
21131 if test "$wxUSE_NOTEBOOK" = "yes"; then
21132     cat >> confdefs.h <<\EOF
21133 #define wxUSE_NOTEBOOK 1
21134 EOF
21135
21136     USES_CONTROLS=1
21137     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21138 fi
21139
21140 if test "$wxUSE_PROPSHEET" = "yes"; then
21141     cat >> confdefs.h <<\EOF
21142 #define wxUSE_PROPSHEET 1
21143 EOF
21144
21145     USES_CONTROLS=1
21146     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
21147 fi
21148
21149 if test "$wxUSE_RADIOBOX" = "yes"; then
21150     cat >> confdefs.h <<\EOF
21151 #define wxUSE_RADIOBOX 1
21152 EOF
21153
21154     USES_CONTROLS=1
21155 fi
21156
21157 if test "$wxUSE_RADIOBTN" = "yes"; then
21158     cat >> confdefs.h <<\EOF
21159 #define wxUSE_RADIOBTN 1
21160 EOF
21161
21162     USES_CONTROLS=1
21163 fi
21164
21165 if test "$wxUSE_SASH" = "yes"; then
21166     cat >> confdefs.h <<\EOF
21167 #define wxUSE_SASH 1
21168 EOF
21169
21170     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21171 fi
21172
21173 if test "$wxUSE_SCROLLBAR" = "yes"; then
21174     cat >> confdefs.h <<\EOF
21175 #define wxUSE_SCROLLBAR 1
21176 EOF
21177
21178     USES_CONTROLS=1
21179     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21180 fi
21181
21182 if test "$wxUSE_SLIDER" = "yes"; then
21183     cat >> confdefs.h <<\EOF
21184 #define wxUSE_SLIDER 1
21185 EOF
21186
21187     USES_CONTROLS=1
21188 fi
21189
21190 if test "$wxUSE_SPINBTN" = "yes"; then
21191     cat >> confdefs.h <<\EOF
21192 #define wxUSE_SPINBTN 1
21193 EOF
21194
21195     USES_CONTROLS=1
21196 fi
21197
21198 if test "$wxUSE_SPINCTRL" = "yes"; then
21199     cat >> confdefs.h <<\EOF
21200 #define wxUSE_SPINCTRL 1
21201 EOF
21202
21203     USES_CONTROLS=1
21204 fi
21205
21206 if test "$wxUSE_SPLITTER" = "yes"; then
21207     cat >> confdefs.h <<\EOF
21208 #define wxUSE_SPLITTER 1
21209 EOF
21210
21211     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21212 fi
21213
21214 if test "$wxUSE_STATBMP" = "yes"; then
21215     cat >> confdefs.h <<\EOF
21216 #define wxUSE_STATBMP 1
21217 EOF
21218
21219     USES_CONTROLS=1
21220 fi
21221
21222 if test "$wxUSE_STATBOX" = "yes"; then
21223     cat >> confdefs.h <<\EOF
21224 #define wxUSE_STATBOX 1
21225 EOF
21226
21227     USES_CONTROLS=1
21228 fi
21229
21230 if test "$wxUSE_STATTEXT" = "yes"; then
21231     cat >> confdefs.h <<\EOF
21232 #define wxUSE_STATTEXT 1
21233 EOF
21234
21235     USES_CONTROLS=1
21236 fi
21237
21238 if test "$wxUSE_STATLINE" = "yes"; then
21239     cat >> confdefs.h <<\EOF
21240 #define wxUSE_STATLINE 1
21241 EOF
21242
21243     USES_CONTROLS=1
21244 fi
21245
21246 if test "$wxUSE_STATUSBAR" = "yes"; then
21247     cat >> confdefs.h <<\EOF
21248 #define wxUSE_STATUSBAR 1
21249 EOF
21250
21251     USES_CONTROLS=1
21252
21253     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21254 fi
21255
21256 if test "$wxUSE_TABDIALOG" = "yes"; then
21257     cat >> confdefs.h <<\EOF
21258 #define wxUSE_TAB_DIALOG 1
21259 EOF
21260
21261     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21262 fi
21263
21264 if test "$wxUSE_TEXTCTRL" = "yes"; then
21265     cat >> confdefs.h <<\EOF
21266 #define wxUSE_TEXTCTRL 1
21267 EOF
21268
21269     USES_CONTROLS=1
21270     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21271 fi
21272
21273 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21274     if test "$wxUSE_MAC" = 1; then
21275         echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21276         wxUSE_TOGGLEBTN=no
21277     fi
21278     if test "$wxUSE_UNIVERSAL" = "yes"; then
21279         echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21280         wxUSE_TOGGLEBTN=no
21281     fi
21282
21283     if test "$wxUSE_TOGGLEBTN" = "yes"; then
21284         cat >> confdefs.h <<\EOF
21285 #define wxUSE_TOGGLEBTN 1
21286 EOF
21287
21288         USES_CONTROLS=1
21289     fi
21290 fi
21291
21292 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21293     cat >> confdefs.h <<\EOF
21294 #define wxUSE_TOOLBAR_SIMPLE 1
21295 EOF
21296
21297     wxUSE_TOOLBAR="yes"
21298     USES_CONTROLS=1
21299 fi
21300
21301 if test "$wxUSE_TOOLBAR" = "yes"; then
21302     cat >> confdefs.h <<\EOF
21303 #define wxUSE_TOOLBAR 1
21304 EOF
21305
21306     USES_CONTROLS=1
21307
21308         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21309         wxUSE_TOOLBAR_NATIVE="yes"
21310     fi
21311
21312     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21313         cat >> confdefs.h <<\EOF
21314 #define wxUSE_TOOLBAR_NATIVE 1
21315 EOF
21316
21317         USES_CONTROLS=1
21318     fi
21319
21320     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21321 fi
21322
21323 if test "$wxUSE_TOOLTIPS" = "yes"; then
21324     if test "$wxUSE_MOTIF" = 1; then
21325         echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21326     else
21327         if test "$wxUSE_UNIVERSAL" = "yes"; then
21328             echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21329         else
21330             cat >> confdefs.h <<\EOF
21331 #define wxUSE_TOOLTIPS 1
21332 EOF
21333
21334         fi
21335     fi
21336 fi
21337
21338 if test "$wxUSE_TREECTRL" = "yes"; then
21339     if test "$wxUSE_IMAGLIST" = "yes"; then
21340         cat >> confdefs.h <<\EOF
21341 #define wxUSE_TREECTRL 1
21342 EOF
21343
21344         USES_CONTROLS=1
21345         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21346     else
21347         echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21348     fi
21349 fi
21350
21351 if test "$wxUSE_POPUPWIN" = "yes"; then
21352     if test "$wxUSE_MAC" = 1; then
21353         echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21354     else
21355         if test "$wxUSE_MOTIF" = 1; then
21356             echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21357         else
21358             if test "$wxUSE_PM" = 1; then
21359                 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21360             else
21361                 cat >> confdefs.h <<\EOF
21362 #define wxUSE_POPUPWIN 1
21363 EOF
21364
21365
21366                 USES_CONTROLS=1
21367             fi
21368         fi
21369     fi
21370 fi
21371
21372 if test "$wxUSE_TIPWINDOW" = "yes"; then
21373     if test "$wxUSE_PM" = 1; then
21374         echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21375     else
21376         cat >> confdefs.h <<\EOF
21377 #define wxUSE_TIPWINDOW 1
21378 EOF
21379
21380     fi
21381 fi
21382
21383 if test "$USES_CONTROLS" = 1; then
21384     cat >> confdefs.h <<\EOF
21385 #define wxUSE_CONTROLS 1
21386 EOF
21387
21388 fi
21389
21390
21391 if test "$wxUSE_TREELAYOUT" = "yes"; then
21392     cat >> confdefs.h <<\EOF
21393 #define wxUSE_TREELAYOUT 1
21394 EOF
21395
21396     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
21397 fi
21398
21399 if test "$wxUSE_DRAGIMAGE" = "yes"; then
21400     cat >> confdefs.h <<\EOF
21401 #define wxUSE_DRAGIMAGE 1
21402 EOF
21403
21404     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21405 fi
21406
21407 if test "$wxUSE_MENUS" = "yes"; then
21408     cat >> confdefs.h <<\EOF
21409 #define wxUSE_MENUS 1
21410 EOF
21411
21412     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21413 fi
21414
21415 if test "$wxUSE_METAFILE" = "yes"; then
21416     cat >> confdefs.h <<\EOF
21417 #define wxUSE_METAFILE 1
21418 EOF
21419
21420 fi
21421
21422 if test "$wxUSE_MIMETYPE" = "yes"; then
21423     cat >> confdefs.h <<\EOF
21424 #define wxUSE_MIMETYPE 1
21425 EOF
21426
21427 fi
21428
21429 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21430     cat >> confdefs.h <<\EOF
21431 #define wxUSE_SYSTEM_OPTIONS 1
21432 EOF
21433
21434 if test "$TOOLKIT" = "MSW"; then
21435     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21436 fi
21437
21438 fi
21439
21440 if test "$wxUSE_PROTOCOL" = "yes"; then
21441     if test "$wxUSE_SOCKETS" != "yes"; then
21442         echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21443         wxUSE_PROTOCOL=no
21444     fi
21445
21446     if test "$wxUSE_PROTOCOL" = "yes"; then
21447         cat >> confdefs.h <<\EOF
21448 #define wxUSE_PROTOCOL 1
21449 EOF
21450
21451
21452         if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21453             cat >> confdefs.h <<\EOF
21454 #define wxUSE_PROTOCOL_HTTP 1
21455 EOF
21456
21457         fi
21458         if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21459             cat >> confdefs.h <<\EOF
21460 #define wxUSE_PROTOCOL_FTP 1
21461 EOF
21462
21463         fi
21464         if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21465             cat >> confdefs.h <<\EOF
21466 #define wxUSE_PROTOCOL_FILE 1
21467 EOF
21468
21469         fi
21470     fi
21471 fi
21472
21473 if test "$wxUSE_URL" = "yes"; then
21474     if test "$wxUSE_PROTOCOL" != "yes"; then
21475         echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21476         wxUSE_URL=no
21477     fi
21478     if test "$wxUSE_URL" = "yes"; then
21479         cat >> confdefs.h <<\EOF
21480 #define wxUSE_URL 1
21481 EOF
21482
21483     fi
21484 fi
21485
21486 if test "$wxUSE_MINIFRAME" = "yes"; then
21487     cat >> confdefs.h <<\EOF
21488 #define wxUSE_MINIFRAME 1
21489 EOF
21490
21491     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21492 fi
21493
21494 if test "$wxUSE_HTML" = "yes"; then
21495     cat >> confdefs.h <<\EOF
21496 #define wxUSE_HTML 1
21497 EOF
21498
21499     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
21500 fi
21501
21502 if test "$wxUSE_VALIDATORS" = "yes"; then
21503     cat >> confdefs.h <<\EOF
21504 #define wxUSE_VALIDATORS 1
21505 EOF
21506
21507     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21508 fi
21509
21510 if test "$wxUSE_PALETTE" = "yes" ; then
21511   cat >> confdefs.h <<\EOF
21512 #define wxUSE_PALETTE 1
21513 EOF
21514
21515 fi
21516
21517 if test "$wxUSE_IMAGE" = "yes" ; then
21518   cat >> confdefs.h <<\EOF
21519 #define wxUSE_IMAGE 1
21520 EOF
21521
21522 fi
21523
21524 if test "$wxUSE_GIF" = "yes" ; then
21525   cat >> confdefs.h <<\EOF
21526 #define wxUSE_GIF 1
21527 EOF
21528
21529 fi
21530
21531 if test "$wxUSE_PCX" = "yes" ; then
21532   cat >> confdefs.h <<\EOF
21533 #define wxUSE_PCX 1
21534 EOF
21535
21536 fi
21537
21538 if test "$wxUSE_IFF" = "yes" ; then
21539   cat >> confdefs.h <<\EOF
21540 #define wxUSE_IFF 1
21541 EOF
21542
21543 fi
21544
21545 if test "$wxUSE_PNM" = "yes" ; then
21546   cat >> confdefs.h <<\EOF
21547 #define wxUSE_PNM 1
21548 EOF
21549
21550 fi
21551
21552 if test "$wxUSE_XPM" = "yes" ; then
21553   cat >> confdefs.h <<\EOF
21554 #define wxUSE_XPM 1
21555 EOF
21556
21557 fi
21558
21559 if test "$wxUSE_ICO_CUR" = "yes" ; then
21560   cat >> confdefs.h <<\EOF
21561 #define wxUSE_ICO_CUR 1
21562 EOF
21563
21564 fi
21565
21566 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21567     LIBS=" -lunicows $LIBS"
21568 fi
21569
21570
21571 if test "$wxUSE_CHOICEDLG" = "yes"; then
21572     cat >> confdefs.h <<\EOF
21573 #define wxUSE_CHOICEDLG 1
21574 EOF
21575
21576 fi
21577
21578 if test "$wxUSE_COLOURDLG" = "yes"; then
21579     cat >> confdefs.h <<\EOF
21580 #define wxUSE_COLOURDLG 1
21581 EOF
21582
21583 fi
21584
21585 if test "$wxUSE_FILEDLG" = "yes"; then
21586     cat >> confdefs.h <<\EOF
21587 #define wxUSE_FILEDLG 1
21588 EOF
21589
21590 fi
21591
21592 if test "$wxUSE_FINDREPLDLG" = "yes"; then
21593     cat >> confdefs.h <<\EOF
21594 #define wxUSE_FINDREPLDLG 1
21595 EOF
21596
21597 fi
21598
21599 if test "$wxUSE_FONTDLG" = "yes"; then
21600     cat >> confdefs.h <<\EOF
21601 #define wxUSE_FONTDLG 1
21602 EOF
21603
21604 fi
21605
21606 if test "$wxUSE_DIRDLG" = "yes"; then
21607     if test "$wxUSE_TREECTRL" != "yes"; then
21608         echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
21609     else
21610         cat >> confdefs.h <<\EOF
21611 #define wxUSE_DIRDLG 1
21612 EOF
21613
21614     fi
21615 fi
21616
21617 if test "$wxUSE_MSGDLG" = "yes"; then
21618     cat >> confdefs.h <<\EOF
21619 #define wxUSE_MSGDLG 1
21620 EOF
21621
21622 fi
21623
21624 if test "$wxUSE_NUMBERDLG" = "yes"; then
21625     cat >> confdefs.h <<\EOF
21626 #define wxUSE_NUMBERDLG 1
21627 EOF
21628
21629 fi
21630
21631 if test "$wxUSE_PROGRESSDLG" = "yes"; then
21632     if test "$wxUSE_CONSTRAINTS" != "yes"; then
21633        echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
21634     else
21635         cat >> confdefs.h <<\EOF
21636 #define wxUSE_PROGRESSDLG 1
21637 EOF
21638
21639     fi
21640 fi
21641
21642 if test "$wxUSE_SPLASH" = "yes"; then
21643     cat >> confdefs.h <<\EOF
21644 #define wxUSE_SPLASH 1
21645 EOF
21646
21647 fi
21648
21649 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21650     if test "$wxUSE_CONSTRAINTS" != "yes"; then
21651        echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
21652     else
21653         cat >> confdefs.h <<\EOF
21654 #define wxUSE_STARTUP_TIPS 1
21655 EOF
21656
21657     fi
21658 fi
21659
21660 if test "$wxUSE_TEXTDLG" = "yes"; then
21661     cat >> confdefs.h <<\EOF
21662 #define wxUSE_TEXTDLG 1
21663 EOF
21664
21665 fi
21666
21667 if test "$wxUSE_WIZARDDLG" = "yes"; then
21668     cat >> confdefs.h <<\EOF
21669 #define wxUSE_WIZARDDLG 1
21670 EOF
21671
21672     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
21673 fi
21674
21675
21676 if test "$cross_compiling" = "yes"; then
21677         OSINFO="\"$host\""
21678 else
21679         OSINFO=`uname -s -r -m`
21680     OSINFO="\"$OSINFO\""
21681 fi
21682
21683 cat >> confdefs.h <<EOF
21684 #define WXWIN_OS_DESCRIPTION $OSINFO
21685 EOF
21686
21687
21688
21689 if test "x$prefix" != "xNONE"; then
21690     wxPREFIX=$prefix
21691 else
21692     wxPREFIX=$ac_default_prefix
21693 fi
21694
21695 cat >> confdefs.h <<EOF
21696 #define wxINSTALL_PREFIX "$wxPREFIX"
21697 EOF
21698
21699
21700
21701
21702
21703 if test "$wxUSE_MAC" = 1 ; then
21704     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21705 fi
21706
21707
21708 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
21709
21710 have_cos=0
21711 have_floor=0
21712 for ac_func in cos
21713 do
21714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21715 echo "configure:21716: checking for $ac_func" >&5
21716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21717   echo $ac_n "(cached) $ac_c" 1>&6
21718 else
21719   cat > conftest.$ac_ext <<EOF
21720 #line 21721 "configure"
21721 #include "confdefs.h"
21722 /* System header to define __stub macros and hopefully few prototypes,
21723     which can conflict with char $ac_func(); below.  */
21724 #include <assert.h>
21725 /* Override any gcc2 internal prototype to avoid an error.  */
21726 /* We use char because int might match the return type of a gcc2
21727     builtin and then its argument prototype would still apply.  */
21728 char $ac_func();
21729
21730 int main() {
21731
21732 /* The GNU C library defines this for functions which it implements
21733     to always fail with ENOSYS.  Some functions are actually named
21734     something starting with __ and the normal name is an alias.  */
21735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21736 choke me
21737 #else
21738 $ac_func();
21739 #endif
21740
21741 ; return 0; }
21742 EOF
21743 if { (eval echo configure:21744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21744   rm -rf conftest*
21745   eval "ac_cv_func_$ac_func=yes"
21746 else
21747   echo "configure: failed program was:" >&5
21748   cat conftest.$ac_ext >&5
21749   rm -rf conftest*
21750   eval "ac_cv_func_$ac_func=no"
21751 fi
21752 rm -f conftest*
21753 fi
21754
21755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21756   echo "$ac_t""yes" 1>&6
21757     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21758   cat >> confdefs.h <<EOF
21759 #define $ac_tr_func 1
21760 EOF
21761  have_cos=1
21762 else
21763   echo "$ac_t""no" 1>&6
21764 fi
21765 done
21766
21767 for ac_func in floor
21768 do
21769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21770 echo "configure:21771: checking for $ac_func" >&5
21771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21772   echo $ac_n "(cached) $ac_c" 1>&6
21773 else
21774   cat > conftest.$ac_ext <<EOF
21775 #line 21776 "configure"
21776 #include "confdefs.h"
21777 /* System header to define __stub macros and hopefully few prototypes,
21778     which can conflict with char $ac_func(); below.  */
21779 #include <assert.h>
21780 /* Override any gcc2 internal prototype to avoid an error.  */
21781 /* We use char because int might match the return type of a gcc2
21782     builtin and then its argument prototype would still apply.  */
21783 char $ac_func();
21784
21785 int main() {
21786
21787 /* The GNU C library defines this for functions which it implements
21788     to always fail with ENOSYS.  Some functions are actually named
21789     something starting with __ and the normal name is an alias.  */
21790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21791 choke me
21792 #else
21793 $ac_func();
21794 #endif
21795
21796 ; return 0; }
21797 EOF
21798 if { (eval echo configure:21799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21799   rm -rf conftest*
21800   eval "ac_cv_func_$ac_func=yes"
21801 else
21802   echo "configure: failed program was:" >&5
21803   cat conftest.$ac_ext >&5
21804   rm -rf conftest*
21805   eval "ac_cv_func_$ac_func=no"
21806 fi
21807 rm -f conftest*
21808 fi
21809
21810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21811   echo "$ac_t""yes" 1>&6
21812     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21813   cat >> confdefs.h <<EOF
21814 #define $ac_tr_func 1
21815 EOF
21816  have_floor=1
21817 else
21818   echo "$ac_t""no" 1>&6
21819 fi
21820 done
21821
21822 echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
21823 echo "configure:21824: checking if floating point functions link without -lm" >&5
21824 if test "$have_cos" = 1 -a "$have_floor" = 1; then
21825     echo "$ac_t""yes" 1>&6
21826 else
21827     echo "$ac_t""no" 1>&6
21828     LIBS="$LIBS -lm"
21829     # use different functions to avoid configure caching
21830     have_sin=0
21831     have_ceil=0
21832     for ac_func in sin
21833 do
21834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21835 echo "configure:21836: checking for $ac_func" >&5
21836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21837   echo $ac_n "(cached) $ac_c" 1>&6
21838 else
21839   cat > conftest.$ac_ext <<EOF
21840 #line 21841 "configure"
21841 #include "confdefs.h"
21842 /* System header to define __stub macros and hopefully few prototypes,
21843     which can conflict with char $ac_func(); below.  */
21844 #include <assert.h>
21845 /* Override any gcc2 internal prototype to avoid an error.  */
21846 /* We use char because int might match the return type of a gcc2
21847     builtin and then its argument prototype would still apply.  */
21848 char $ac_func();
21849
21850 int main() {
21851
21852 /* The GNU C library defines this for functions which it implements
21853     to always fail with ENOSYS.  Some functions are actually named
21854     something starting with __ and the normal name is an alias.  */
21855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21856 choke me
21857 #else
21858 $ac_func();
21859 #endif
21860
21861 ; return 0; }
21862 EOF
21863 if { (eval echo configure:21864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21864   rm -rf conftest*
21865   eval "ac_cv_func_$ac_func=yes"
21866 else
21867   echo "configure: failed program was:" >&5
21868   cat conftest.$ac_ext >&5
21869   rm -rf conftest*
21870   eval "ac_cv_func_$ac_func=no"
21871 fi
21872 rm -f conftest*
21873 fi
21874
21875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21876   echo "$ac_t""yes" 1>&6
21877     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21878   cat >> confdefs.h <<EOF
21879 #define $ac_tr_func 1
21880 EOF
21881  have_sin=1
21882 else
21883   echo "$ac_t""no" 1>&6
21884 fi
21885 done
21886
21887     for ac_func in ceil
21888 do
21889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21890 echo "configure:21891: checking for $ac_func" >&5
21891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21892   echo $ac_n "(cached) $ac_c" 1>&6
21893 else
21894   cat > conftest.$ac_ext <<EOF
21895 #line 21896 "configure"
21896 #include "confdefs.h"
21897 /* System header to define __stub macros and hopefully few prototypes,
21898     which can conflict with char $ac_func(); below.  */
21899 #include <assert.h>
21900 /* Override any gcc2 internal prototype to avoid an error.  */
21901 /* We use char because int might match the return type of a gcc2
21902     builtin and then its argument prototype would still apply.  */
21903 char $ac_func();
21904
21905 int main() {
21906
21907 /* The GNU C library defines this for functions which it implements
21908     to always fail with ENOSYS.  Some functions are actually named
21909     something starting with __ and the normal name is an alias.  */
21910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21911 choke me
21912 #else
21913 $ac_func();
21914 #endif
21915
21916 ; return 0; }
21917 EOF
21918 if { (eval echo configure:21919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21919   rm -rf conftest*
21920   eval "ac_cv_func_$ac_func=yes"
21921 else
21922   echo "configure: failed program was:" >&5
21923   cat conftest.$ac_ext >&5
21924   rm -rf conftest*
21925   eval "ac_cv_func_$ac_func=no"
21926 fi
21927 rm -f conftest*
21928 fi
21929
21930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21931   echo "$ac_t""yes" 1>&6
21932     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21933   cat >> confdefs.h <<EOF
21934 #define $ac_tr_func 1
21935 EOF
21936  have_ceil=1
21937 else
21938   echo "$ac_t""no" 1>&6
21939 fi
21940 done
21941
21942     echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
21943 echo "configure:21944: checking if floating point functions link with -lm" >&5
21944     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
21945         echo "$ac_t""yes" 1>&6
21946     else
21947         echo "$ac_t""no" 1>&6
21948         # not sure we should warn the user, crash, etc.
21949     fi
21950 fi
21951
21952 if test "$wxUSE_GUI" = "yes"; then
21953
21954     LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
21955
21956         
21957             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
21958                      drawing dynamic erase event exec font image \
21959                      minimal propsize rotate widgets"
21960
21961         CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
21962 else
21963     SAMPLES_SUBDIRS="console"
21964 fi
21965
21966
21967 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
21968 -I\${top_srcdir}/include \
21969 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
21970 $TOOLKIT_INCLUDE"
21971
21972 if test "$wxUSE_GTK" = 1; then
21973     WXCONFIG_INCLUDE=
21974 else
21975     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
21976 fi
21977
21978 if test "$GXX" = yes ; then
21979         CXXWARNINGS="-Wall"
21980         
21981             if test "$wxUSE_NO_DEPS" = "no" ; then
21982         CFLAGS="-MMD $CFLAGS"
21983         CXXFLAGS="-MMD $CXXFLAGS"
21984     fi
21985 fi
21986
21987 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
21988
21989 CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
21990 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
21991 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
21992 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
21993
21994 LDFLAGS="$LDFLAGS $PROFILE"
21995
21996 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22096 echo "configure:22097: checking whether ${MAKE-make} sets \${MAKE}" >&5
22097 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22098 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22099   echo $ac_n "(cached) $ac_c" 1>&6
22100 else
22101   cat > conftestmake <<\EOF
22102 all:
22103         @echo 'ac_maketemp="${MAKE}"'
22104 EOF
22105 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22106 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22107 if test -n "$ac_maketemp"; then
22108   eval ac_cv_prog_make_${ac_make}_set=yes
22109 else
22110   eval ac_cv_prog_make_${ac_make}_set=no
22111 fi
22112 rm -f conftestmake
22113 fi
22114 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22115   echo "$ac_t""yes" 1>&6
22116   SET_MAKE=
22117 else
22118   echo "$ac_t""no" 1>&6
22119   SET_MAKE="MAKE=${MAKE-make}"
22120 fi
22121
22122
22123 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22124     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22125 fi
22126
22127
22128
22129 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22130 wx_cv_if_gnu_make=$IF_GNU_MAKE
22131 wx_cv_path_ifs=$PATH_IFS
22132 wx_cv_program_ext=$PROGRAM_EXT
22133 wx_cv_target_library=$WX_TARGET_LIBRARY
22134 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22135 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22136 wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22137 wx_cv_release=${WX_RELEASE}
22138 wx_cv_current=${WX_CURRENT}
22139 wx_cv_revision=${WX_REVISION}
22140 wx_cv_age=${WX_AGE}
22141 wx_cv_use_gui=${USE_GUI}
22142 wx_cv_use_resources=${wxUSE_RESOURCES}
22143 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22144        wx_cv_path_ifs wx_cv_program_ext \
22145        wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22146        wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22147        wx_cv_use_gui wx_cv_use_resources
22148
22149 subdirs="demos samples utils contrib"
22150
22151
22152 trap '' 1 2 15
22153 cat > confcache <<\EOF
22154 # This file is a shell script that caches the results of configure
22155 # tests run on this system so they can be shared between configure
22156 # scripts and configure runs.  It is not useful on other systems.
22157 # If it contains results you don't want to keep, you may remove or edit it.
22158 #
22159 # By default, configure uses ./config.cache as the cache file,
22160 # creating it if it does not exist already.  You can give configure
22161 # the --cache-file=FILE option to use a different cache file; that is
22162 # what configure does when it calls configure scripts in
22163 # subdirectories, so they share the cache.
22164 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22165 # config.status only pays attention to the cache file if you give it the
22166 # --recheck option to rerun configure.
22167 #
22168 EOF
22169 # The following way of writing the cache mishandles newlines in values,
22170 # but we know of no workaround that is simple, portable, and efficient.
22171 # So, don't put newlines in cache variables' values.
22172 # Ultrix sh set writes to stderr and can't be redirected directly,
22173 # and sets the high bit in the cache file unless we assign to the vars.
22174 (set) 2>&1 |
22175   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22176   *ac_space=\ *)
22177     # `set' does not quote correctly, so add quotes (double-quote substitution
22178     # turns \\\\ into \\, and sed turns \\ into \).
22179     sed -n \
22180       -e "s/'/'\\\\''/g" \
22181       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22182     ;;
22183   *)
22184     # `set' quotes correctly as required by POSIX, so do not add quotes.
22185     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22186     ;;
22187   esac >> confcache
22188 if cmp -s $cache_file confcache; then
22189   :
22190 else
22191   if test -w $cache_file; then
22192     echo "updating cache $cache_file"
22193     cat confcache > $cache_file
22194   else
22195     echo "not updating unwritable cache $cache_file"
22196   fi
22197 fi
22198 rm -f confcache
22199
22200 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22201
22202 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22203 # Let make expand exec_prefix.
22204 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22205
22206 # Any assignment to VPATH causes Sun make to only execute
22207 # the first set of double-colon rules, so remove it if not needed.
22208 # If there is a colon in the path, we need to keep it.
22209 if test "x$srcdir" = x.; then
22210   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
22211 fi
22212
22213 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22214
22215 DEFS=-DHAVE_CONFIG_H
22216
22217 # Without the "./", some shells look in PATH for config.status.
22218 : ${CONFIG_STATUS=./config.status}
22219
22220 echo creating $CONFIG_STATUS
22221 rm -f $CONFIG_STATUS
22222 cat > $CONFIG_STATUS <<EOF
22223 #! /bin/sh
22224 # Generated automatically by configure.
22225 # Run this file to recreate the current configuration.
22226 # This directory was configured as follows,
22227 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22228 #
22229 # $0 $ac_configure_args
22230 #
22231 # Compiler output produced by configure, useful for debugging
22232 # configure, is in ./config.log if it exists.
22233
22234 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22235 for ac_option
22236 do
22237   case "\$ac_option" in
22238   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22239     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22240     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22241   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22242     echo "$CONFIG_STATUS generated by autoconf version 2.13"
22243     exit 0 ;;
22244   -help | --help | --hel | --he | --h)
22245     echo "\$ac_cs_usage"; exit 0 ;;
22246   *) echo "\$ac_cs_usage"; exit 1 ;;
22247   esac
22248 done
22249
22250 ac_given_srcdir=$srcdir
22251 ac_given_INSTALL="$INSTALL"
22252
22253 trap 'rm -fr `echo "
22254             wx-config
22255             version-script
22256             src/make.env
22257             src/makeprog.env
22258             src/makelib.env
22259             Makefile
22260            setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22261 EOF
22262 cat >> $CONFIG_STATUS <<EOF
22263
22264 # Protect against being on the right side of a sed subst in config.status.
22265 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22266  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22267 $ac_vpsub
22268 $extrasub
22269 s%@SHELL@%$SHELL%g
22270 s%@CFLAGS@%$CFLAGS%g
22271 s%@CPPFLAGS@%$CPPFLAGS%g
22272 s%@CXXFLAGS@%$CXXFLAGS%g
22273 s%@FFLAGS@%$FFLAGS%g
22274 s%@DEFS@%$DEFS%g
22275 s%@LDFLAGS@%$LDFLAGS%g
22276 s%@LIBS@%$LIBS%g
22277 s%@exec_prefix@%$exec_prefix%g
22278 s%@prefix@%$prefix%g
22279 s%@program_transform_name@%$program_transform_name%g
22280 s%@bindir@%$bindir%g
22281 s%@sbindir@%$sbindir%g
22282 s%@libexecdir@%$libexecdir%g
22283 s%@datadir@%$datadir%g
22284 s%@sysconfdir@%$sysconfdir%g
22285 s%@sharedstatedir@%$sharedstatedir%g
22286 s%@localstatedir@%$localstatedir%g
22287 s%@libdir@%$libdir%g
22288 s%@includedir@%$includedir%g
22289 s%@oldincludedir@%$oldincludedir%g
22290 s%@infodir@%$infodir%g
22291 s%@mandir@%$mandir%g
22292 s%@host@%$host%g
22293 s%@host_alias@%$host_alias%g
22294 s%@host_cpu@%$host_cpu%g
22295 s%@host_vendor@%$host_vendor%g
22296 s%@host_os@%$host_os%g
22297 s%@target@%$target%g
22298 s%@target_alias@%$target_alias%g
22299 s%@target_cpu@%$target_cpu%g
22300 s%@target_vendor@%$target_vendor%g
22301 s%@target_os@%$target_os%g
22302 s%@build@%$build%g
22303 s%@build_alias@%$build_alias%g
22304 s%@build_cpu@%$build_cpu%g
22305 s%@build_vendor@%$build_vendor%g
22306 s%@build_os@%$build_os%g
22307 s%@CC@%$CC%g
22308 s%@CPP@%$CPP%g
22309 s%@CXX@%$CXX%g
22310 s%@RANLIB@%$RANLIB%g
22311 s%@AR@%$AR%g
22312 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22313 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22314 s%@INSTALL_DATA@%$INSTALL_DATA%g
22315 s%@STRIP@%$STRIP%g
22316 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22317 s%@YACC@%$YACC%g
22318 s%@LEX@%$LEX%g
22319 s%@LEXLIB@%$LEXLIB%g
22320 s%@LN_S@%$LN_S%g
22321 s%@CXXCPP@%$CXXCPP%g
22322 s%@PKG_CONFIG@%$PKG_CONFIG%g
22323 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22324 s%@GTK_LIBS@%$GTK_LIBS%g
22325 s%@GTK_CONFIG@%$GTK_CONFIG%g
22326 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22327 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22328 s%@X_CFLAGS@%$X_CFLAGS%g
22329 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22330 s%@X_LIBS@%$X_LIBS%g
22331 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22332 s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22333 s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22334 s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22335 s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22336 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22337 s%@RESCOMP@%$RESCOMP%g
22338 s%@DEREZ@%$DEREZ%g
22339 s%@LIBICONV@%$LIBICONV%g
22340 s%@LEX_STEM@%$LEX_STEM%g
22341 s%@PATH_IFS@%$PATH_IFS%g
22342 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22343 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22344 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22345 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22346 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22347 s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22348 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22349 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22350 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22351 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22352 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22353 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22354 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22355 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22356 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22357 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22358 s%@WX_ALL@%$WX_ALL%g
22359 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22360 s%@SHARED_LD@%$SHARED_LD%g
22361 s%@PIC_FLAG@%$PIC_FLAG%g
22362 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22363 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22364 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22365 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22366 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22367 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22368 s%@STATIC_FLAG@%$STATIC_FLAG%g
22369 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22370 s%@USE_GUI@%$USE_GUI%g
22371 s%@AFMINSTALL@%$AFMINSTALL%g
22372 s%@WIN32INSTALL@%$WIN32INSTALL%g
22373 s%@TOOLKIT@%$TOOLKIT%g
22374 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22375 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22376 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22377 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22378 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22379 s%@cross_compiling@%$cross_compiling%g
22380 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22381 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22382 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22383 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22384 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22385 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22386 s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22387 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22388 s%@ALL_HEADERS@%$ALL_HEADERS%g
22389 s%@ALL_SOURCES@%$ALL_SOURCES%g
22390 s%@GUIDIST@%$GUIDIST%g
22391 s%@PORT_FILES@%$PORT_FILES%g
22392 s%@DISTDIR@%$DISTDIR%g
22393 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22394 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22395 s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22396 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22397 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22398 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22399 s%@EXTRADEFS@%$EXTRADEFS%g
22400 s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22401 s%@RESFLAGS@%$RESFLAGS%g
22402 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22403 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22404 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22405 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22406 s%@LIBWXMACRES@%$LIBWXMACRES%g
22407 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
22408 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
22409 s%@GCC@%$GCC%g
22410 s%@DLLTOOL@%$DLLTOOL%g
22411 s%@AS@%$AS%g
22412 s%@NM@%$NM%g
22413 s%@LD@%$LD%g
22414 s%@MAKEINFO@%$MAKEINFO%g
22415 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22416 s%@SET_MAKE@%$SET_MAKE%g
22417 s%@subdirs@%$subdirs%g
22418
22419 CEOF
22420 EOF
22421
22422 cat >> $CONFIG_STATUS <<\EOF
22423
22424 # Split the substitutions into bite-sized pieces for seds with
22425 # small command number limits, like on Digital OSF/1 and HP-UX.
22426 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22427 ac_file=1 # Number of current file.
22428 ac_beg=1 # First line for current file.
22429 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22430 ac_more_lines=:
22431 ac_sed_cmds=""
22432 while $ac_more_lines; do
22433   if test $ac_beg -gt 1; then
22434     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22435   else
22436     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22437   fi
22438   if test ! -s conftest.s$ac_file; then
22439     ac_more_lines=false
22440     rm -f conftest.s$ac_file
22441   else
22442     if test -z "$ac_sed_cmds"; then
22443       ac_sed_cmds="sed -f conftest.s$ac_file"
22444     else
22445       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22446     fi
22447     ac_file=`expr $ac_file + 1`
22448     ac_beg=$ac_end
22449     ac_end=`expr $ac_end + $ac_max_sed_cmds`
22450   fi
22451 done
22452 if test -z "$ac_sed_cmds"; then
22453   ac_sed_cmds=cat
22454 fi
22455 EOF
22456
22457 cat >> $CONFIG_STATUS <<EOF
22458
22459 CONFIG_FILES=\${CONFIG_FILES-"wx-config
22460             version-script
22461             src/make.env
22462             src/makeprog.env
22463             src/makelib.env
22464             Makefile
22465           "}
22466 EOF
22467 cat >> $CONFIG_STATUS <<\EOF
22468 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22469   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22470   case "$ac_file" in
22471   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22472        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22473   *) ac_file_in="${ac_file}.in" ;;
22474   esac
22475
22476   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22477
22478   # Remove last slash and all that follows it.  Not all systems have dirname.
22479   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22480   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22481     # The file is in a subdirectory.
22482     test ! -d "$ac_dir" && mkdir "$ac_dir"
22483     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22484     # A "../" for each directory in $ac_dir_suffix.
22485     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22486   else
22487     ac_dir_suffix= ac_dots=
22488   fi
22489
22490   case "$ac_given_srcdir" in
22491   .)  srcdir=.
22492       if test -z "$ac_dots"; then top_srcdir=.
22493       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22494   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22495   *) # Relative path.
22496     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22497     top_srcdir="$ac_dots$ac_given_srcdir" ;;
22498   esac
22499
22500   case "$ac_given_INSTALL" in
22501   [/$]*) INSTALL="$ac_given_INSTALL" ;;
22502   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22503   esac
22504
22505   echo creating "$ac_file"
22506   rm -f "$ac_file"
22507   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22508   case "$ac_file" in
22509   *Makefile*) ac_comsub="1i\\
22510 # $configure_input" ;;
22511   *) ac_comsub= ;;
22512   esac
22513
22514   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22515   sed -e "$ac_comsub
22516 s%@configure_input@%$configure_input%g
22517 s%@srcdir@%$srcdir%g
22518 s%@top_srcdir@%$top_srcdir%g
22519 s%@INSTALL@%$INSTALL%g
22520 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22521 fi; done
22522 rm -f conftest.s*
22523
22524 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22525 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22526 #
22527 # ac_d sets the value in "#define NAME VALUE" lines.
22528 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22529 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
22530 ac_dC='\3'
22531 ac_dD='%g'
22532 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22533 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22534 ac_uB='\([      ]\)%\1#\2define\3'
22535 ac_uC=' '
22536 ac_uD='\4%g'
22537 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22538 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22539 ac_eB='$%\1#\2define\3'
22540 ac_eC=' '
22541 ac_eD='%g'
22542
22543 if test "${CONFIG_HEADERS+set}" != set; then
22544 EOF
22545 cat >> $CONFIG_STATUS <<EOF
22546   CONFIG_HEADERS="setup.h:setup.h.in"
22547 EOF
22548 cat >> $CONFIG_STATUS <<\EOF
22549 fi
22550 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22551   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22552   case "$ac_file" in
22553   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22554        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22555   *) ac_file_in="${ac_file}.in" ;;
22556   esac
22557
22558   echo creating $ac_file
22559
22560   rm -f conftest.frag conftest.in conftest.out
22561   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22562   cat $ac_file_inputs > conftest.in
22563
22564 EOF
22565
22566 # Transform confdefs.h into a sed script conftest.vals that substitutes
22567 # the proper values into config.h.in to produce config.h.  And first:
22568 # Protect against being on the right side of a sed subst in config.status.
22569 # Protect against being in an unquoted here document in config.status.
22570 rm -f conftest.vals
22571 cat > conftest.hdr <<\EOF
22572 s/[\\&%]/\\&/g
22573 s%[\\$`]%\\&%g
22574 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22575 s%ac_d%ac_u%gp
22576 s%ac_u%ac_e%gp
22577 EOF
22578 sed -n -f conftest.hdr confdefs.h > conftest.vals
22579 rm -f conftest.hdr
22580
22581 # This sed command replaces #undef with comments.  This is necessary, for
22582 # example, in the case of _POSIX_SOURCE, which is predefined and required
22583 # on some systems where configure will not decide to define it.
22584 cat >> conftest.vals <<\EOF
22585 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22586 EOF
22587
22588 # Break up conftest.vals because some shells have a limit on
22589 # the size of here documents, and old seds have small limits too.
22590
22591 rm -f conftest.tail
22592 while :
22593 do
22594   ac_lines=`grep -c . conftest.vals`
22595   # grep -c gives empty output for an empty file on some AIX systems.
22596   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22597   # Write a limited-size here document to conftest.frag.
22598   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22599   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22600   echo 'CEOF
22601   sed -f conftest.frag conftest.in > conftest.out
22602   rm -f conftest.in
22603   mv conftest.out conftest.in
22604 ' >> $CONFIG_STATUS
22605   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22606   rm -f conftest.vals
22607   mv conftest.tail conftest.vals
22608 done
22609 rm -f conftest.vals
22610
22611 cat >> $CONFIG_STATUS <<\EOF
22612   rm -f conftest.frag conftest.h
22613   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
22614   cat conftest.in >> conftest.h
22615   rm -f conftest.in
22616   if cmp -s $ac_file conftest.h 2>/dev/null; then
22617     echo "$ac_file is unchanged"
22618     rm -f conftest.h
22619   else
22620     # Remove last slash and all that follows it.  Not all systems have dirname.
22621       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22622       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22623       # The file is in a subdirectory.
22624       test ! -d "$ac_dir" && mkdir "$ac_dir"
22625     fi
22626     rm -f $ac_file
22627     mv conftest.h $ac_file
22628   fi
22629 fi; done
22630
22631 EOF
22632 cat >> $CONFIG_STATUS <<EOF
22633
22634             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22635             LN_S="${LN_S}"
22636           
22637          
22638 EOF
22639 cat >> $CONFIG_STATUS <<\EOF
22640
22641                                                                                                 if test ! -h wx-config; then
22642                 chmod +x wx-config
22643                 mv wx-config wx${TOOLCHAIN_NAME}-config
22644                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
22645             fi
22646
22647             if test ! -d lib; then
22648               mkdir lib
22649             fi
22650             if test ! -d lib/wx; then
22651               mkdir lib/wx
22652             fi
22653             if test ! -d lib/wx/include; then
22654               mkdir lib/wx/include
22655             fi
22656             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
22657               mkdir lib/wx/include/${TOOLCHAIN_NAME}
22658             fi
22659             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
22660               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
22661             fi
22662             if test -f setup.h; then
22663               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
22664             fi
22665           
22666 exit 0
22667 EOF
22668 chmod +x $CONFIG_STATUS
22669 rm -fr confdefs* $ac_clean_files
22670 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22671
22672 if test "$no_recursion" != yes; then
22673
22674   # Remove --cache-file and --srcdir arguments so they do not pile up.
22675   ac_sub_configure_args=
22676   ac_prev=
22677   for ac_arg in $ac_configure_args; do
22678     if test -n "$ac_prev"; then
22679       ac_prev=
22680       continue
22681     fi
22682     case "$ac_arg" in
22683     -cache-file | --cache-file | --cache-fil | --cache-fi \
22684     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22685       ac_prev=cache_file ;;
22686     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22687     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
22688       ;;
22689     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22690       ac_prev=srcdir ;;
22691     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22692       ;;
22693     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22694     esac
22695   done
22696
22697   for ac_config_dir in demos samples utils contrib; do
22698
22699     # Do not complain, so a configure script can configure whichever
22700     # parts of a large source tree are present.
22701     if test ! -d $srcdir/$ac_config_dir; then
22702       continue
22703     fi
22704
22705     echo configuring in $ac_config_dir
22706
22707     case "$srcdir" in
22708     .) ;;
22709     *)
22710       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
22711       else
22712         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
22713       fi
22714       ;;
22715     esac
22716
22717     ac_popdir=`pwd`
22718     cd $ac_config_dir
22719
22720       # A "../" for each directory in /$ac_config_dir.
22721       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
22722
22723     case "$srcdir" in
22724     .) # No --srcdir option.  We are building in place.
22725       ac_sub_srcdir=$srcdir ;;
22726     /*) # Absolute path.
22727       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
22728     *) # Relative path.
22729       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
22730     esac
22731
22732     # Check for guested configure; otherwise get Cygnus style configure.
22733     if test -f $ac_sub_srcdir/configure; then
22734       ac_sub_configure=$ac_sub_srcdir/configure
22735     elif test -f $ac_sub_srcdir/configure.in; then
22736       ac_sub_configure=$ac_configure
22737     else
22738       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
22739       ac_sub_configure=
22740     fi
22741
22742     # The recursion is here.
22743     if test -n "$ac_sub_configure"; then
22744
22745       # Make the cache file name correct relative to the subdirectory.
22746       case "$cache_file" in
22747       /*) ac_sub_cache_file=$cache_file ;;
22748       *) # Relative path.
22749         ac_sub_cache_file="$ac_dots$cache_file" ;;
22750       esac
22751   case "$ac_given_INSTALL" in
22752         [/$]*) INSTALL="$ac_given_INSTALL" ;;
22753         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22754         esac
22755
22756       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
22757       # The eval makes quoting arguments work.
22758       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
22759       then :
22760       else
22761         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
22762       fi
22763     fi
22764
22765     cd $ac_popdir
22766   done
22767 fi
22768
22769
22770 echo
22771 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
22772 echo ""
22773 echo "  Which GUI toolkit should wxWindows use?                 ${TOOLKIT:-base only}"
22774
22775 echo "  Should wxWindows be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
22776 echo "  Should wxWindows be linked as a shared library?         ${wxUSE_SHARED:-no}"
22777 echo "  Should wxWindows be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
22778
22779 echo "  What level of wxWindows compatibility should be enabled?"
22780 echo "                                       wxWindows 2.0      ${WXWIN_COMPATIBILITY_2:-no}"
22781 echo "                                       wxWindows 2.2      ${WXWIN_COMPATIBILITY_2_2:-yes}"
22782
22783 echo "  Which libraries should wxWindows use?"
22784 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
22785 echo "                                       png                ${wxUSE_LIBPNG-none}"
22786 echo "                                       regex              ${wxUSE_REGEX}"
22787 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
22788 echo "                                       zlib               ${wxUSE_ZLIB}"
22789
22790 echo ""
22791