]> git.saurik.com Git - wxWidgets.git/blob - configure
Status bar positioned correctly, but no sign of the
[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 # Configure paths for GTK+
53 # Owen Taylor 97-11-3
54
55
56
57 # Guess values for system-dependent variables and create Makefiles.
58 # Generated automatically using autoconf version 2.13
59 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
60 #
61 # This configure script is free software; the Free Software Foundation
62 # gives unlimited permission to copy, distribute and modify it.
63
64 # Defaults:
65 ac_help=
66 ac_default_prefix=/usr/local
67 # Any additions from configure.in:
68 ac_help="$ac_help
69 --enable-gui use GUI classes"
70 ac_help="$ac_help
71 --enable-universal use wxWindows GUI controls instead of native ones"
72 ac_help="$ac_help
73 --with-gtk use GTK+"
74 ac_help="$ac_help
75 --with-motif use Motif/Lesstif"
76 ac_help="$ac_help
77 --with-mac use Mac OS X"
78 ac_help="$ac_help
79 --with-wine use WINE"
80 ac_help="$ac_help
81 --with-msw use MS-Windows"
82 ac_help="$ac_help
83 --with-pm use OS/2 Presentation Manager"
84 ac_help="$ac_help
85 --with-mgl use SciTech MGL"
86 ac_help="$ac_help
87 --with-microwin use MicroWindows"
88 ac_help="$ac_help
89 --with-x11 use X11"
90 ac_help="$ac_help
91 --enable-nanox use NanoX"
92 ac_help="$ac_help
93 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
94 ac_help="$ac_help
95 --with-libpng use libpng (PNG image format)"
96 ac_help="$ac_help
97 --with-libjpeg use libjpeg (JPEG file format)"
98 ac_help="$ac_help
99 --with-libtiff use libtiff (TIFF file format)"
100 ac_help="$ac_help
101 --with-opengl use OpenGL (or Mesa)"
102 ac_help="$ac_help
103 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
104 ac_help="$ac_help
105 --with-regex enable support for wxRegEx class"
106 ac_help="$ac_help
107 --with-zlib use zlib for LZW compression"
108 ac_help="$ac_help
109 --with-odbc use the IODBC and wxODBC classes"
110 ac_help="$ac_help
111 --enable-shared create shared library code"
112 ac_help="$ac_help
113 --enable-soname set the DT_SONAME field in ELF shared libraries"
114 ac_help="$ac_help
115 --enable-optimise create optimised code"
116 ac_help="$ac_help
117 --enable-debug same as debug_flag and debug_info"
118 ac_help="$ac_help
119 --enable-precomp enable use of precompiled headers (Mac OS X)"
120 ac_help="$ac_help
121 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
122 ac_help="$ac_help
123 --enable-debug_info create code with debugging information"
124 ac_help="$ac_help
125 --enable-debug_gdb create code with extra GDB debugging information"
126 ac_help="$ac_help
127 --enable-debug_cntxt use wxDebugContext"
128 ac_help="$ac_help
129 --enable-mem_tracing create code with memory tracing"
130 ac_help="$ac_help
131 --enable-profile create code with profiling information"
132 ac_help="$ac_help
133 --enable-no_rtti create code without RTTI information"
134 ac_help="$ac_help
135 --enable-no_exceptions create code without C++ exceptions handling"
136 ac_help="$ac_help
137 --enable-permissive compile code disregarding strict ANSI"
138 ac_help="$ac_help
139 --enable-no_deps create code without dependency information"
140 ac_help="$ac_help
141 --enable-compat20 enable wxWindows 2.0 compatibility"
142 ac_help="$ac_help
143 --enable-compat22 enable wxWindows 2.2 compatibility"
144 ac_help="$ac_help
145 --enable-intl use internationalization system"
146 ac_help="$ac_help
147 --enable-config use wxConfig (and derived) classes"
148 ac_help="$ac_help
149 --enable-protocols use wxProtocol and derived classes"
150 ac_help="$ac_help
151 --enable-ftp use wxFTP (requires wxProtocol"
152 ac_help="$ac_help
153 --enable-http use wxHTTP (requires wxProtocol"
154 ac_help="$ac_help
155 --enable-fileproto use wxFileProto class (requires wxProtocol"
156 ac_help="$ac_help
157 --enable-sockets use socket/network classes"
158 ac_help="$ac_help
159 --enable-ipc use interprocess communication (wxSocket etc.)"
160 ac_help="$ac_help
161 --enable-cmdline use wxCmdLineParser class"
162 ac_help="$ac_help
163 --enable-datetime use wxDateTime class"
164 ac_help="$ac_help
165 --enable-timedate use obsolete wxDate/wxTime classes"
166 ac_help="$ac_help
167 --enable-stopwatch use wxStopWatch class"
168 ac_help="$ac_help
169 --enable-dialupman use dialup network classes"
170 ac_help="$ac_help
171 --enable-apple_ieee use the Apple IEEE codec"
172 ac_help="$ac_help
173 --enable-timer use wxTimer class"
174 ac_help="$ac_help
175 --enable-wave use wxWave class"
176 ac_help="$ac_help
177 --enable-fraction use wxFraction class"
178 ac_help="$ac_help
179 --enable-dynlib use wxLibrary class for DLL loading"
180 ac_help="$ac_help
181 --enable-dynamicloader use (new) wxDynamicLibrary class"
182 ac_help="$ac_help
183 --enable-longlong use wxLongLong class"
184 ac_help="$ac_help
185 --enable-geometry use geometry class"
186 ac_help="$ac_help
187 --enable-log use logging system"
188 ac_help="$ac_help
189 --enable-streams use wxStream etc classes"
190 ac_help="$ac_help
191 --enable-file use wxFile classes"
192 ac_help="$ac_help
193 --enable-ffile use wxFFile classes"
194 ac_help="$ac_help
195 --enable-textbuf use wxTextBuffer class"
196 ac_help="$ac_help
197 --enable-textfile use wxTextFile class"
198 ac_help="$ac_help
199 --enable-fontmap use font encodings conversion classes"
200 ac_help="$ac_help
201 --enable-unicode compile wxString with Unicode support"
202 ac_help="$ac_help
203 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
204 ac_help="$ac_help
205 --enable-wxprintfv use wxWindows implementation of vprintf()"
206 ac_help="$ac_help
207 --enable-std_iostreams use standard C++ stream classes"
208 ac_help="$ac_help
209 --enable-filesystem use virtual file systems classes"
210 ac_help="$ac_help
211 --enable-fs_inet use virtual HTTP/FTP filesystems"
212 ac_help="$ac_help
213 --enable-fs_zip use virtual ZIP filesystems"
214 ac_help="$ac_help
215 --enable-zipstream use wxZipInputStream"
216 ac_help="$ac_help
217 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
218 ac_help="$ac_help
219 --enable-snglinst use wxSingleInstanceChecker class"
220 ac_help="$ac_help
221 --enable-mimetype use wxMimeTypesManager"
222 ac_help="$ac_help
223 --enable-sysoptions use wxSystemOptions"
224 ac_help="$ac_help
225 --enable-url use wxURL class"
226 ac_help="$ac_help
227 --enable-protocol use wxProtocol class"
228 ac_help="$ac_help
229 --enable-protocol-http HTTP support in wxProtocol"
230 ac_help="$ac_help
231 --enable-protocol-ftp FTP support in wxProtocol"
232 ac_help="$ac_help
233 --enable-protocol-file FILE support in wxProtocol"
234 ac_help="$ac_help
235 --enable-threads use threads"
236 ac_help="$ac_help
237 --enable-docview use document view architecture"
238 ac_help="$ac_help
239 --enable-help use help subsystem"
240 ac_help="$ac_help
241 --enable-mshtmlhelp use MS HTML Help (win32)"
242 ac_help="$ac_help
243 --enable-html use wxHTML sub-library"
244 ac_help="$ac_help
245 --enable-htmlhelp use wxHTML-based help"
246 ac_help="$ac_help
247 --enable-constraints use layout-constraints system"
248 ac_help="$ac_help
249 --enable-printarch use printing architecture"
250 ac_help="$ac_help
251 --enable-mdi use multiple document interface architecture"
252 ac_help="$ac_help
253 --enable-loggui use standard GUI logger"
254 ac_help="$ac_help
255 --enable-logwin use wxLogWindow"
256 ac_help="$ac_help
257 --enable-logdialog use wxLogDialog"
258 ac_help="$ac_help
259 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
260 ac_help="$ac_help
261 --enable-prologio use Prolog IO library"
262 ac_help="$ac_help
263 --enable-resources use wxWindows resources"
264 ac_help="$ac_help
265 --enable-xresources use X resources for save (default for gtk+)"
266 ac_help="$ac_help
267 --enable-clipboard use wxClipboard classes"
268 ac_help="$ac_help
269 --enable-dnd use Drag'n'Drop classes"
270 ac_help="$ac_help
271 --enable-metafile use win32 metafiles"
272 ac_help="$ac_help
273 --enable-treelayout use wxTreeLayout classes"
274 ac_help="$ac_help
275 --enable-controls use all usual controls"
276 ac_help="$ac_help
277 --enable-accel use accelerators"
278 ac_help="$ac_help
279 --enable-button use wxButton class"
280 ac_help="$ac_help
281 --enable-bmpbutton use wxBitmapButton class"
282 ac_help="$ac_help
283 --enable-calendar use wxCalendarCtrl class"
284 ac_help="$ac_help
285 --enable-caret use wxCaret class"
286 ac_help="$ac_help
287 --enable-checkbox use wxCheckBox class"
288 ac_help="$ac_help
289 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
290 ac_help="$ac_help
291 --enable-choice use wxChoice class"
292 ac_help="$ac_help
293 --enable-combobox use wxComboBox classes"
294 ac_help="$ac_help
295 --enable-gauge use wxGauge class"
296 ac_help="$ac_help
297 --enable-grid use wxGrid class"
298 ac_help="$ac_help
299 --enable-newgrid use new wxGrid class"
300 ac_help="$ac_help
301 --enable-imaglist use wxImageList class"
302 ac_help="$ac_help
303 --enable-listbox use wxListBox class"
304 ac_help="$ac_help
305 --enable-listctrl use wxListCtrl class"
306 ac_help="$ac_help
307 --enable-notebook use wxNotebook class"
308 ac_help="$ac_help
309 --enable-propsheet use wxPropertySheet class"
310 ac_help="$ac_help
311 --enable-radiobox use wxRadioBox class"
312 ac_help="$ac_help
313 --enable-radiobtn use wxRadioButton class"
314 ac_help="$ac_help
315 --enable-sash use wxSashWindow class"
316 ac_help="$ac_help
317 --enable-scrollbar use wxScrollBar class and scrollable windows"
318 ac_help="$ac_help
319 --enable-slider use wxSlider class"
320 ac_help="$ac_help
321 --enable-spinbtn use wxSpinButton class"
322 ac_help="$ac_help
323 --enable-spinctrl use wxSpinCtrl class"
324 ac_help="$ac_help
325 --enable-splitter use wxSplitterWindow class"
326 ac_help="$ac_help
327 --enable-statbmp use wxStaticBitmap class"
328 ac_help="$ac_help
329 --enable-statbox use wxStaticBox class"
330 ac_help="$ac_help
331 --enable-statline use wxStaticLine class"
332 ac_help="$ac_help
333 --enable-stattext use wxStaticText class"
334 ac_help="$ac_help
335 --enable-statusbar use wxStatusBar class"
336 ac_help="$ac_help
337 --enable-tabdialog use wxTabControl class"
338 ac_help="$ac_help
339 --enable-textctrl use wxTextCtrl class"
340 ac_help="$ac_help
341 --enable-togglebtn use wxToggleButton class"
342 ac_help="$ac_help
343 --enable-toolbar use wxToolBar class"
344 ac_help="$ac_help
345 --enable-tbarnative use native wxToolBar class"
346 ac_help="$ac_help
347 --enable-tbarsmpl use wxToolBarSimple class"
348 ac_help="$ac_help
349 --enable-treectrl use wxTreeCtrl class"
350 ac_help="$ac_help
351 --enable-tipwindow use wxTipWindow class"
352 ac_help="$ac_help
353 --enable-popupwin use wxPopUpWindow class"
354 ac_help="$ac_help
355 --enable-commondlg use all common dialogs"
356 ac_help="$ac_help
357 --enable-choicedlg use wxChoiceDialog"
358 ac_help="$ac_help
359 --enable-coldlg use wxColourDialog"
360 ac_help="$ac_help
361 --enable-filedlg use wxFileDialog"
362 ac_help="$ac_help
363 --enable-finddlg use wxFindReplaceDialog"
364 ac_help="$ac_help
365 --enable-fontdlg use wxFontDialog"
366 ac_help="$ac_help
367 --enable-dirdlg use wxDirDialog"
368 ac_help="$ac_help
369 --enable-msgdlg use wxMessageDialog"
370 ac_help="$ac_help
371 --enable-numberdlg use wxNumberEntryDialog"
372 ac_help="$ac_help
373 --enable-splash use wxSplashScreen"
374 ac_help="$ac_help
375 --enable-textdlg use wxTextDialog"
376 ac_help="$ac_help
377 --enable-tipdlg use startup tips"
378 ac_help="$ac_help
379 --enable-progressdlg use wxProgressDialog"
380 ac_help="$ac_help
381 --enable-wizarddlg use wxWizard"
382 ac_help="$ac_help
383 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
384 ac_help="$ac_help
385 --enable-miniframe use wxMiniFrame class"
386 ac_help="$ac_help
387 --enable-tooltips use wxToolTip class"
388 ac_help="$ac_help
389 --enable-splines use spline drawing code"
390 ac_help="$ac_help
391 --enable-validators use wxValidator and derived classes"
392 ac_help="$ac_help
393 --enable-busyinfo use wxBusyInfo"
394 ac_help="$ac_help
395 --enable-joystick use wxJoystick (Linux only)"
396 ac_help="$ac_help
397 --enable-metafiles use wxMetaFile (Windows only)"
398 ac_help="$ac_help
399 --enable-dragimage use wxDragImage"
400 ac_help="$ac_help
401 --enable-palette use wxPalette class"
402 ac_help="$ac_help
403 --enable-image use wxImage class"
404 ac_help="$ac_help
405 --enable-gif use gif images (GIF file format)"
406 ac_help="$ac_help
407 --enable-pcx use pcx images (PCX file format)"
408 ac_help="$ac_help
409 --enable-iff use iff images (IFF file format)"
410 ac_help="$ac_help
411 --enable-pnm use pnm images (PNM file format)"
412 ac_help="$ac_help
413 --enable-xpm use xpm images (XPM file format)"
414 ac_help="$ac_help
415 --enable-icocur use Windows ICO and CUR formats"
416 ac_help="$ac_help
417 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
418 ac_help="$ac_help
419 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
420 ac_help="$ac_help
421 --disable-gtktest Do not try to compile and run a test GTK program"
422 ac_help="$ac_help
423 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
424 ac_help="$ac_help
425 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
426 ac_help="$ac_help
427 --disable-gtktest Do not try to compile and run a test GTK program"
428 ac_help="$ac_help
429 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
430 ac_help="$ac_help
431 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
432 ac_help="$ac_help
433 --disable-gtktest Do not try to compile and run a test GTK program"
434 ac_help="$ac_help
435 --with-x use the X Window System"
436 ac_help="$ac_help
437 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
438
439 # Initialize some variables set by options.
440 # The variables have the same names as the options, with
441 # dashes changed to underlines.
442 build=NONE
443 cache_file=./config.cache
444 exec_prefix=NONE
445 host=NONE
446 no_create=
447 nonopt=NONE
448 no_recursion=
449 prefix=NONE
450 program_prefix=NONE
451 program_suffix=NONE
452 program_transform_name=s,x,x,
453 silent=
454 site=
455 srcdir=
456 target=NONE
457 verbose=
458 x_includes=NONE
459 x_libraries=NONE
460 bindir='${exec_prefix}/bin'
461 sbindir='${exec_prefix}/sbin'
462 libexecdir='${exec_prefix}/libexec'
463 datadir='${prefix}/share'
464 sysconfdir='${prefix}/etc'
465 sharedstatedir='${prefix}/com'
466 localstatedir='${prefix}/var'
467 libdir='${exec_prefix}/lib'
468 includedir='${prefix}/include'
469 oldincludedir='/usr/include'
470 infodir='${prefix}/info'
471 mandir='${prefix}/man'
472
473 # Initialize some other variables.
474 subdirs=
475 MFLAGS= MAKEFLAGS=
476 SHELL=${CONFIG_SHELL-/bin/sh}
477 # Maximum number of lines to put in a shell here document.
478 ac_max_here_lines=12
479
480 ac_prev=
481 for ac_option
482 do
483
484 # If the previous option needs an argument, assign it.
485 if test -n "$ac_prev"; then
486 eval "$ac_prev=\$ac_option"
487 ac_prev=
488 continue
489 fi
490
491 case "$ac_option" in
492 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
493 *) ac_optarg= ;;
494 esac
495
496 # Accept the important Cygnus configure options, so we can diagnose typos.
497
498 case "$ac_option" in
499
500 -bindir | --bindir | --bindi | --bind | --bin | --bi)
501 ac_prev=bindir ;;
502 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
503 bindir="$ac_optarg" ;;
504
505 -build | --build | --buil | --bui | --bu)
506 ac_prev=build ;;
507 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
508 build="$ac_optarg" ;;
509
510 -cache-file | --cache-file | --cache-fil | --cache-fi \
511 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
512 ac_prev=cache_file ;;
513 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
514 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
515 cache_file="$ac_optarg" ;;
516
517 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
518 ac_prev=datadir ;;
519 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
520 | --da=*)
521 datadir="$ac_optarg" ;;
522
523 -disable-* | --disable-*)
524 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
525 # Reject names that are not valid shell variable names.
526 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
527 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
528 fi
529 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
530 eval "enable_${ac_feature}=no" ;;
531
532 -enable-* | --enable-*)
533 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
534 # Reject names that are not valid shell variable names.
535 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
536 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
537 fi
538 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
539 case "$ac_option" in
540 *=*) ;;
541 *) ac_optarg=yes ;;
542 esac
543 eval "enable_${ac_feature}='$ac_optarg'" ;;
544
545 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
546 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
547 | --exec | --exe | --ex)
548 ac_prev=exec_prefix ;;
549 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
550 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
551 | --exec=* | --exe=* | --ex=*)
552 exec_prefix="$ac_optarg" ;;
553
554 -gas | --gas | --ga | --g)
555 # Obsolete; use --with-gas.
556 with_gas=yes ;;
557
558 -help | --help | --hel | --he)
559 # Omit some internal or obsolete options to make the list less imposing.
560 # This message is too long to be a string in the A/UX 3.1 sh.
561 cat << EOF
562 Usage: configure [options] [host]
563 Options: [defaults in brackets after descriptions]
564 Configuration:
565 --cache-file=FILE cache test results in FILE
566 --help print this message
567 --no-create do not create output files
568 --quiet, --silent do not print \`checking...' messages
569 --version print the version of autoconf that created configure
570 Directory and file names:
571 --prefix=PREFIX install architecture-independent files in PREFIX
572 [$ac_default_prefix]
573 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
574 [same as prefix]
575 --bindir=DIR user executables in DIR [EPREFIX/bin]
576 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
577 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
578 --datadir=DIR read-only architecture-independent data in DIR
579 [PREFIX/share]
580 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
581 --sharedstatedir=DIR modifiable architecture-independent data in DIR
582 [PREFIX/com]
583 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
584 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
585 --includedir=DIR C header files in DIR [PREFIX/include]
586 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
587 --infodir=DIR info documentation in DIR [PREFIX/info]
588 --mandir=DIR man documentation in DIR [PREFIX/man]
589 --srcdir=DIR find the sources in DIR [configure dir or ..]
590 --program-prefix=PREFIX prepend PREFIX to installed program names
591 --program-suffix=SUFFIX append SUFFIX to installed program names
592 --program-transform-name=PROGRAM
593 run sed PROGRAM on installed program names
594 EOF
595 cat << EOF
596 Host type:
597 --build=BUILD configure for building on BUILD [BUILD=HOST]
598 --host=HOST configure for HOST [guessed]
599 --target=TARGET configure for TARGET [TARGET=HOST]
600 Features and packages:
601 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
602 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
603 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
604 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
605 --x-includes=DIR X include files are in DIR
606 --x-libraries=DIR X library files are in DIR
607 EOF
608 if test -n "$ac_help"; then
609 echo "--enable and --with options recognized:$ac_help"
610 fi
611 exit 0 ;;
612
613 -host | --host | --hos | --ho)
614 ac_prev=host ;;
615 -host=* | --host=* | --hos=* | --ho=*)
616 host="$ac_optarg" ;;
617
618 -includedir | --includedir | --includedi | --included | --include \
619 | --includ | --inclu | --incl | --inc)
620 ac_prev=includedir ;;
621 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
622 | --includ=* | --inclu=* | --incl=* | --inc=*)
623 includedir="$ac_optarg" ;;
624
625 -infodir | --infodir | --infodi | --infod | --info | --inf)
626 ac_prev=infodir ;;
627 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
628 infodir="$ac_optarg" ;;
629
630 -libdir | --libdir | --libdi | --libd)
631 ac_prev=libdir ;;
632 -libdir=* | --libdir=* | --libdi=* | --libd=*)
633 libdir="$ac_optarg" ;;
634
635 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
636 | --libexe | --libex | --libe)
637 ac_prev=libexecdir ;;
638 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
639 | --libexe=* | --libex=* | --libe=*)
640 libexecdir="$ac_optarg" ;;
641
642 -localstatedir | --localstatedir | --localstatedi | --localstated \
643 | --localstate | --localstat | --localsta | --localst \
644 | --locals | --local | --loca | --loc | --lo)
645 ac_prev=localstatedir ;;
646 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
647 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
648 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
649 localstatedir="$ac_optarg" ;;
650
651 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
652 ac_prev=mandir ;;
653 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
654 mandir="$ac_optarg" ;;
655
656 -nfp | --nfp | --nf)
657 # Obsolete; use --without-fp.
658 with_fp=no ;;
659
660 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
661 | --no-cr | --no-c)
662 no_create=yes ;;
663
664 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
665 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
666 no_recursion=yes ;;
667
668 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
669 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
670 | --oldin | --oldi | --old | --ol | --o)
671 ac_prev=oldincludedir ;;
672 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
673 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
674 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
675 oldincludedir="$ac_optarg" ;;
676
677 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
678 ac_prev=prefix ;;
679 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
680 prefix="$ac_optarg" ;;
681
682 -program-prefix | --program-prefix | --program-prefi | --program-pref \
683 | --program-pre | --program-pr | --program-p)
684 ac_prev=program_prefix ;;
685 -program-prefix=* | --program-prefix=* | --program-prefi=* \
686 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
687 program_prefix="$ac_optarg" ;;
688
689 -program-suffix | --program-suffix | --program-suffi | --program-suff \
690 | --program-suf | --program-su | --program-s)
691 ac_prev=program_suffix ;;
692 -program-suffix=* | --program-suffix=* | --program-suffi=* \
693 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
694 program_suffix="$ac_optarg" ;;
695
696 -program-transform-name | --program-transform-name \
697 | --program-transform-nam | --program-transform-na \
698 | --program-transform-n | --program-transform- \
699 | --program-transform | --program-transfor \
700 | --program-transfo | --program-transf \
701 | --program-trans | --program-tran \
702 | --progr-tra | --program-tr | --program-t)
703 ac_prev=program_transform_name ;;
704 -program-transform-name=* | --program-transform-name=* \
705 | --program-transform-nam=* | --program-transform-na=* \
706 | --program-transform-n=* | --program-transform-=* \
707 | --program-transform=* | --program-transfor=* \
708 | --program-transfo=* | --program-transf=* \
709 | --program-trans=* | --program-tran=* \
710 | --progr-tra=* | --program-tr=* | --program-t=*)
711 program_transform_name="$ac_optarg" ;;
712
713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
714 | -silent | --silent | --silen | --sile | --sil)
715 silent=yes ;;
716
717 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
718 ac_prev=sbindir ;;
719 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
720 | --sbi=* | --sb=*)
721 sbindir="$ac_optarg" ;;
722
723 -sharedstatedir | --sharedstatedir | --sharedstatedi \
724 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
725 | --sharedst | --shareds | --shared | --share | --shar \
726 | --sha | --sh)
727 ac_prev=sharedstatedir ;;
728 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
729 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
730 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
731 | --sha=* | --sh=*)
732 sharedstatedir="$ac_optarg" ;;
733
734 -site | --site | --sit)
735 ac_prev=site ;;
736 -site=* | --site=* | --sit=*)
737 site="$ac_optarg" ;;
738
739 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
740 ac_prev=srcdir ;;
741 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
742 srcdir="$ac_optarg" ;;
743
744 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
745 | --syscon | --sysco | --sysc | --sys | --sy)
746 ac_prev=sysconfdir ;;
747 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
748 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
749 sysconfdir="$ac_optarg" ;;
750
751 -target | --target | --targe | --targ | --tar | --ta | --t)
752 ac_prev=target ;;
753 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
754 target="$ac_optarg" ;;
755
756 -v | -verbose | --verbose | --verbos | --verbo | --verb)
757 verbose=yes ;;
758
759 -version | --version | --versio | --versi | --vers)
760 echo "configure generated by autoconf version 2.13"
761 exit 0 ;;
762
763 -with-* | --with-*)
764 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
765 # Reject names that are not valid shell variable names.
766 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
767 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
768 fi
769 ac_package=`echo $ac_package| sed 's/-/_/g'`
770 case "$ac_option" in
771 *=*) ;;
772 *) ac_optarg=yes ;;
773 esac
774 eval "with_${ac_package}='$ac_optarg'" ;;
775
776 -without-* | --without-*)
777 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
778 # Reject names that are not valid shell variable names.
779 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
780 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
781 fi
782 ac_package=`echo $ac_package| sed 's/-/_/g'`
783 eval "with_${ac_package}=no" ;;
784
785 --x)
786 # Obsolete; use --with-x.
787 with_x=yes ;;
788
789 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
790 | --x-incl | --x-inc | --x-in | --x-i)
791 ac_prev=x_includes ;;
792 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
793 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
794 x_includes="$ac_optarg" ;;
795
796 -x-libraries | --x-libraries | --x-librarie | --x-librari \
797 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
798 ac_prev=x_libraries ;;
799 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
800 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
801 x_libraries="$ac_optarg" ;;
802
803 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
804 ;;
805
806 *)
807 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
808 echo "configure: warning: $ac_option: invalid host type" 1>&2
809 fi
810 if test "x$nonopt" != xNONE; then
811 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
812 fi
813 nonopt="$ac_option"
814 ;;
815
816 esac
817 done
818
819 if test -n "$ac_prev"; then
820 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
821 fi
822
823 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
824
825 # File descriptor usage:
826 # 0 standard input
827 # 1 file creation
828 # 2 errors and warnings
829 # 3 some systems may open it to /dev/tty
830 # 4 used on the Kubota Titan
831 # 6 checking for... messages and results
832 # 5 compiler messages saved in config.log
833 if test "$silent" = yes; then
834 exec 6>/dev/null
835 else
836 exec 6>&1
837 fi
838 exec 5>./config.log
839
840 echo "\
841 This file contains any messages produced by compilers while
842 running configure, to aid debugging if configure makes a mistake.
843 " 1>&5
844
845 # Strip out --no-create and --no-recursion so they do not pile up.
846 # Also quote any args containing shell metacharacters.
847 ac_configure_args=
848 for ac_arg
849 do
850 case "$ac_arg" in
851 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
852 | --no-cr | --no-c) ;;
853 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
854 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
855 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
856 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
857 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
858 esac
859 done
860
861 # NLS nuisances.
862 # Only set these to C if already set. These must not be set unconditionally
863 # because not all systems understand e.g. LANG=C (notably SCO).
864 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
865 # Non-C LC_CTYPE values break the ctype check.
866 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
867 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
868 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
869 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
870
871 # confdefs.h avoids OS command line length limits that DEFS can exceed.
872 rm -rf conftest* confdefs.h
873 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
874 echo > confdefs.h
875
876 # A filename unique to this package, relative to the directory that
877 # configure is in, which we can look for to find out if srcdir is correct.
878 ac_unique_file=wx-config.in
879
880 # Find the source files, if location was not specified.
881 if test -z "$srcdir"; then
882 ac_srcdir_defaulted=yes
883 # Try the directory containing this script, then its parent.
884 ac_prog=$0
885 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
886 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
887 srcdir=$ac_confdir
888 if test ! -r $srcdir/$ac_unique_file; then
889 srcdir=..
890 fi
891 else
892 ac_srcdir_defaulted=no
893 fi
894 if test ! -r $srcdir/$ac_unique_file; then
895 if test "$ac_srcdir_defaulted" = yes; then
896 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
897 else
898 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
899 fi
900 fi
901 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
902
903 # Prefer explicitly selected file to automatically selected ones.
904 if test -z "$CONFIG_SITE"; then
905 if test "x$prefix" != xNONE; then
906 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
907 else
908 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
909 fi
910 fi
911 for ac_site_file in $CONFIG_SITE; do
912 if test -r "$ac_site_file"; then
913 echo "loading site script $ac_site_file"
914 . "$ac_site_file"
915 fi
916 done
917
918 if test -r "$cache_file"; then
919 echo "loading cache $cache_file"
920 . $cache_file
921 else
922 echo "creating cache $cache_file"
923 > $cache_file
924 fi
925
926 ac_ext=c
927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
928 ac_cpp='$CPP $CPPFLAGS'
929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931 cross_compiling=$ac_cv_prog_cc_cross
932
933 ac_exeext=
934 ac_objext=o
935 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
936 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
937 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
938 ac_n= ac_c='
939 ' ac_t=' '
940 else
941 ac_n=-n ac_c= ac_t=
942 fi
943 else
944 ac_n= ac_c='\c' ac_t=
945 fi
946
947
948
949 ac_aux_dir=
950 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
951 if test -f $ac_dir/install-sh; then
952 ac_aux_dir=$ac_dir
953 ac_install_sh="$ac_aux_dir/install-sh -c"
954 break
955 elif test -f $ac_dir/install.sh; then
956 ac_aux_dir=$ac_dir
957 ac_install_sh="$ac_aux_dir/install.sh -c"
958 break
959 fi
960 done
961 if test -z "$ac_aux_dir"; then
962 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
963 fi
964 ac_config_guess=$ac_aux_dir/config.guess
965 ac_config_sub=$ac_aux_dir/config.sub
966 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
967
968
969 # Do some error checking and defaulting for the host and target type.
970 # The inputs are:
971 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
972 #
973 # The rules are:
974 # 1. You are not allowed to specify --host, --target, and nonopt at the
975 # same time.
976 # 2. Host defaults to nonopt.
977 # 3. If nonopt is not specified, then host defaults to the current host,
978 # as determined by config.guess.
979 # 4. Target and build default to nonopt.
980 # 5. If nonopt is not specified, then target and build default to host.
981
982 # The aliases save the names the user supplied, while $host etc.
983 # will get canonicalized.
984 case $host---$target---$nonopt in
985 NONE---*---* | *---NONE---* | *---*---NONE) ;;
986 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
987 esac
988
989
990 # Make sure we can run config.sub.
991 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
992 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
993 fi
994
995 echo $ac_n "checking host system type""... $ac_c" 1>&6
996 echo "configure:997: checking host system type" >&5
997
998 host_alias=$host
999 case "$host_alias" in
1000 NONE)
1001 case $nonopt in
1002 NONE)
1003 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1004 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1005 fi ;;
1006 *) host_alias=$nonopt ;;
1007 esac ;;
1008 esac
1009
1010 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1011 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1012 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1013 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1014 echo "$ac_t""$host" 1>&6
1015
1016 echo $ac_n "checking target system type""... $ac_c" 1>&6
1017 echo "configure:1018: checking target system type" >&5
1018
1019 target_alias=$target
1020 case "$target_alias" in
1021 NONE)
1022 case $nonopt in
1023 NONE) target_alias=$host_alias ;;
1024 *) target_alias=$nonopt ;;
1025 esac ;;
1026 esac
1027
1028 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1029 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1030 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1031 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1032 echo "$ac_t""$target" 1>&6
1033
1034 echo $ac_n "checking build system type""... $ac_c" 1>&6
1035 echo "configure:1036: checking build system type" >&5
1036
1037 build_alias=$build
1038 case "$build_alias" in
1039 NONE)
1040 case $nonopt in
1041 NONE) build_alias=$host_alias ;;
1042 *) build_alias=$nonopt ;;
1043 esac ;;
1044 esac
1045
1046 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1047 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1048 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1049 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1050 echo "$ac_t""$build" 1>&6
1051
1052 test "$host_alias" != "$target_alias" &&
1053 test "$program_prefix$program_suffix$program_transform_name" = \
1054 NONENONEs,x,x, &&
1055 program_prefix=${target_alias}-
1056
1057
1058
1059 WX_MAJOR_VERSION_NUMBER=2
1060 WX_MINOR_VERSION_NUMBER=3
1061 WX_RELEASE_NUMBER=3
1062
1063 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1064 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1065
1066 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1067
1068 WX_CURRENT=2
1069 WX_REVISION=0
1070 WX_AGE=0
1071
1072
1073
1074 USE_UNIX=1
1075 USE_WIN32=0
1076 USE_DOS=0
1077 USE_BEOS=0
1078 USE_MAC=0
1079
1080 USE_LINUX=
1081 USE_SGI=
1082 USE_HPUX=
1083 USE_SYSV=
1084 USE_SVR4=
1085 USE_AIX=
1086 USE_SUN=
1087 USE_SOLARIS=
1088 USE_SUNOS=
1089 USE_ALPHA=
1090 USE_OSF=
1091 USE_BSD=
1092 USE_DARWIN=
1093 USE_FREEBSD=
1094 USE_OPENBSD=
1095 USE_NETBSD=
1096 USE_VMS=
1097 USE_ULTRIX=
1098 USE_DATA_GENERAL=
1099
1100 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1101
1102 CPP_MT_FLAG=-D_REENTRANT
1103
1104 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1105
1106 DEFAULT_wxUSE_GTK=0
1107 DEFAULT_wxUSE_MAC=0
1108 DEFAULT_wxUSE_MGL=0
1109 DEFAULT_wxUSE_MICROWIN=0
1110 DEFAULT_wxUSE_MOTIF=0
1111 DEFAULT_wxUSE_MSW=0
1112 DEFAULT_wxUSE_PM=0
1113 DEFAULT_wxUSE_WINE=0
1114 DEFAULT_wxUSE_X11=0
1115
1116 DEFAULT_DEFAULT_wxUSE_GTK=0
1117 DEFAULT_DEFAULT_wxUSE_MAC=0
1118 DEFAULT_DEFAULT_wxUSE_MGL=0
1119 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1120 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1121 DEFAULT_DEFAULT_wxUSE_MSW=0
1122 DEFAULT_DEFAULT_wxUSE_PM=0
1123 DEFAULT_DEFAULT_wxUSE_WINE=0
1124 DEFAULT_DEFAULT_wxUSE_X11=0
1125
1126 PROGRAM_EXT=
1127 SO_SUFFIX=so
1128
1129 case "${host}" in
1130 *-hp-hpux* )
1131 USE_HPUX=1
1132 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1133 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1134 SO_SUFFIX=sl
1135 cat >> confdefs.h <<\EOF
1136 #define __HPUX__ 1
1137 EOF
1138
1139 ;;
1140 *-*-linux* )
1141 USE_LINUX=1
1142 cat >> confdefs.h <<\EOF
1143 #define __LINUX__ 1
1144 EOF
1145
1146 TMP=`uname -m`
1147 if test "x$TMP" = "xalpha"; then
1148 USE_ALPHA=1
1149 cat >> confdefs.h <<\EOF
1150 #define __ALPHA__ 1
1151 EOF
1152
1153 fi
1154 DEFAULT_DEFAULT_wxUSE_GTK=1
1155 ;;
1156 *-*-irix5* | *-*-irix6* )
1157 USE_SGI=1
1158 USE_SVR4=1
1159 cat >> confdefs.h <<\EOF
1160 #define __SGI__ 1
1161 EOF
1162
1163 cat >> confdefs.h <<\EOF
1164 #define __SVR4__ 1
1165 EOF
1166
1167 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1168 ;;
1169 *-*-solaris2* )
1170 USE_SUN=1
1171 USE_SOLARIS=1
1172 USE_SVR4=1
1173 cat >> confdefs.h <<\EOF
1174 #define __SUN__ 1
1175 EOF
1176
1177 cat >> confdefs.h <<\EOF
1178 #define __SOLARIS__ 1
1179 EOF
1180
1181 cat >> confdefs.h <<\EOF
1182 #define __SVR4__ 1
1183 EOF
1184
1185 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1186 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1187 ;;
1188 *-*-sunos4* )
1189 USE_SUN=1
1190 USE_SUNOS=1
1191 USE_BSD=1
1192 cat >> confdefs.h <<\EOF
1193 #define __SUN__ 1
1194 EOF
1195
1196 cat >> confdefs.h <<\EOF
1197 #define __SUNOS__ 1
1198 EOF
1199
1200 cat >> confdefs.h <<\EOF
1201 #define __BSD__ 1
1202 EOF
1203
1204 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1205 ;;
1206 *-*-freebsd*)
1207 USE_BSD=1
1208 USE_FREEBSD=1
1209 CPP_MT_FLAG=-D_THREAD_SAFE
1210 cat >> confdefs.h <<\EOF
1211 #define __FREEBSD__ 1
1212 EOF
1213
1214 cat >> confdefs.h <<\EOF
1215 #define __BSD__ 1
1216 EOF
1217
1218 DEFAULT_DEFAULT_wxUSE_GTK=1
1219 ;;
1220 *-*-openbsd*)
1221 USE_BSD=1
1222 USE_OPENBSD=1
1223 cat >> confdefs.h <<\EOF
1224 #define __FREEBSD__ 1
1225 EOF
1226
1227 cat >> confdefs.h <<\EOF
1228 #define __OPENBSD__ 1
1229 EOF
1230
1231 DEFAULT_DEFAULT_wxUSE_GTK=1
1232 ;;
1233 *-*-netbsd*)
1234 USE_BSD=1
1235 USE_NETBSD=1
1236 cat >> confdefs.h <<\EOF
1237 #define __FREEBSD__ 1
1238 EOF
1239
1240 cat >> confdefs.h <<\EOF
1241 #define __NETBSD__ 1
1242 EOF
1243
1244 DEFAULT_DEFAULT_wxUSE_GTK=1
1245 ;;
1246 *-*-osf* )
1247 USE_ALPHA=1
1248 USE_OSF=1
1249 cat >> confdefs.h <<\EOF
1250 #define __ALPHA__ 1
1251 EOF
1252
1253 cat >> confdefs.h <<\EOF
1254 #define __OSF__ 1
1255 EOF
1256
1257 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1258 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1259 ;;
1260 *-*-dgux5* )
1261 USE_ALPHA=1
1262 USE_SVR4=1
1263 cat >> confdefs.h <<\EOF
1264 #define __ALPHA__ 1
1265 EOF
1266
1267 cat >> confdefs.h <<\EOF
1268 #define __SVR4__ 1
1269 EOF
1270
1271 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1272 ;;
1273 *-*-sysv5* )
1274 USE_SYSV=1
1275 USE_SVR4=1
1276 cat >> confdefs.h <<\EOF
1277 #define __SYSV__ 1
1278 EOF
1279
1280 cat >> confdefs.h <<\EOF
1281 #define __SVR4__ 1
1282 EOF
1283
1284 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1285 ;;
1286 *-*-aix* )
1287 USE_AIX=1
1288 USE_SYSV=1
1289 USE_SVR4=1
1290 cat >> confdefs.h <<\EOF
1291 #define __AIX__ 1
1292 EOF
1293
1294 cat >> confdefs.h <<\EOF
1295 #define __SYSV__ 1
1296 EOF
1297
1298 cat >> confdefs.h <<\EOF
1299 #define __SVR4__ 1
1300 EOF
1301
1302 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1303 ;;
1304
1305 *-*-cygwin* | *-*-mingw32* )
1306 USE_UNIX=0
1307 USE_WIN32=1
1308 SO_SUFFIX=dll
1309 cat >> confdefs.h <<\EOF
1310 #define __WIN32__ 1
1311 EOF
1312
1313 cat >> confdefs.h <<\EOF
1314 #define __WIN95__ 1
1315 EOF
1316
1317 cat >> confdefs.h <<\EOF
1318 #define __WINDOWS__ 1
1319 EOF
1320
1321 cat >> confdefs.h <<\EOF
1322 #define __GNUWIN32__ 1
1323 EOF
1324
1325 cat >> confdefs.h <<\EOF
1326 #define STRICT 1
1327 EOF
1328
1329 cat >> confdefs.h <<\EOF
1330 #define WINVER 0x0400
1331 EOF
1332
1333 PROGRAM_EXT=".exe"
1334 RESCOMP=windres
1335 DEFAULT_DEFAULT_wxUSE_MSW=1
1336 ;;
1337
1338 *-pc-msdosdjgpp )
1339 USE_UNIX=0
1340 USE_DOS=1
1341 cat >> confdefs.h <<\EOF
1342 #define __DOS__ 1
1343 EOF
1344
1345 PROGRAM_EXT=".exe"
1346 DEFAULT_DEFAULT_wxUSE_MGL=1
1347 ;;
1348
1349 *-pc-os2_emx | *-pc-os2-emx )
1350 cat >> confdefs.h <<\EOF
1351 #define __EMX__ 1
1352 EOF
1353
1354 PROGRAM_EXT=".exe"
1355 DEFAULT_DEFAULT_wxUSE_PM=1
1356 ;;
1357
1358 powerpc-*-darwin* )
1359 USE_BSD=1
1360 USE_DARWIN=1
1361 CPP_MT_FLAG=
1362 SO_SUFFIX=dylib
1363 cat >> confdefs.h <<\EOF
1364 #define __BSD__ 1
1365 EOF
1366
1367 cat >> confdefs.h <<\EOF
1368 #define __DARWIN__ 1
1369 EOF
1370
1371 cat >> confdefs.h <<\EOF
1372 #define __POWERPC__ 1
1373 EOF
1374
1375 DEFAULT_DEFAULT_wxUSE_MAC=1
1376 ;;
1377
1378 *-*-beos* )
1379 USE_BEOS=1
1380 cat >> confdefs.h <<\EOF
1381 #define __BEOS__ 1
1382 EOF
1383
1384 ;;
1385
1386 *)
1387 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1388 esac
1389
1390 if test "$USE_UNIX" = 1 ; then
1391 wxUSE_UNIX=yes
1392 cat >> confdefs.h <<\EOF
1393 #define __UNIX__ 1
1394 EOF
1395
1396 fi
1397
1398 if test "$USE_LINUX" = 1; then
1399 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1400 echo "configure:1401: checking for glibc 2.1 or later" >&5
1401 if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1408 #include <features.h>
1409 int main() {
1410
1411 #if !__GLIBC_PREREQ(2, 1)
1412 #error not glibc2.1
1413 #endif
1414
1415 ; return 0; }
1416 EOF
1417 if { (eval echo configure:1418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1418 rm -rf conftest*
1419
1420 wx_lib_glibc21=yes
1421
1422 else
1423 echo "configure: failed program was:" >&5
1424 cat conftest.$ac_ext >&5
1425 rm -rf conftest*
1426
1427 wx_lib_glibc21=no
1428
1429
1430 fi
1431 rm -f conftest*
1432
1433 fi
1434
1435 echo "$ac_t""$wx_lib_glibc21" 1>&6
1436 if test "$wx_lib_glibc21" = "yes"; then
1437 cat >> confdefs.h <<\EOF
1438 #define wxHAVE_GLIBC2 1
1439 EOF
1440
1441 fi
1442 fi
1443
1444
1445
1446
1447 wx_arg_cache_file="configarg.cache"
1448 echo "loading argument cache $wx_arg_cache_file"
1449 rm -f ${wx_arg_cache_file}.tmp
1450 touch ${wx_arg_cache_file}.tmp
1451 touch ${wx_arg_cache_file}
1452
1453
1454 DEBUG_CONFIGURE=0
1455 if test $DEBUG_CONFIGURE = 1; then
1456 DEFAULT_wxUSE_UNIVERSAL=no
1457
1458 DEFAULT_wxUSE_NANOX=no
1459
1460 DEFAULT_wxUSE_THREADS=yes
1461
1462 DEFAULT_wxUSE_SHARED=yes
1463 DEFAULT_wxUSE_SONAME=no
1464 DEFAULT_wxUSE_OPTIMISE=no
1465 DEFAULT_wxUSE_PROFILE=no
1466 DEFAULT_wxUSE_NO_DEPS=no
1467 DEFAULT_wxUSE_NO_RTTI=yes
1468 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1469 DEFAULT_wxUSE_PERMISSIVE=no
1470 DEFAULT_wxUSE_DEBUG_FLAG=yes
1471 DEFAULT_wxUSE_DEBUG_INFO=yes
1472 DEFAULT_wxUSE_DEBUG_GDB=yes
1473 DEFAULT_wxUSE_MEM_TRACING=no
1474 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1475 DEFAULT_wxUSE_DMALLOC=no
1476 DEFAULT_wxUSE_PRECOMP=no
1477 DEFAULT_wxUSE_APPLE_IEEE=no
1478
1479 DEFAULT_wxUSE_LOG=yes
1480 DEFAULT_wxUSE_LOGWINDOW=no
1481 DEFAULT_wxUSE_LOGGUI=no
1482 DEFAULT_wxUSE_LOGDIALOG=no
1483
1484 DEFAULT_wxUSE_GUI=yes
1485 DEFAULT_wxUSE_CONTROLS=no
1486
1487 DEFAULT_wxUSE_REGEX=no
1488 DEFAULT_wxUSE_ZLIB=no
1489 DEFAULT_wxUSE_LIBPNG=no
1490 DEFAULT_wxUSE_LIBJPEG=no
1491 DEFAULT_wxUSE_LIBTIFF=no
1492 DEFAULT_wxUSE_ODBC=no
1493 DEFAULT_wxUSE_OPENGL=no
1494
1495 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1496 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1497 DEFAULT_wxUSE_STD_IOSTREAM=no
1498 DEFAULT_wxUSE_CMDLINE_PARSER=no
1499 DEFAULT_wxUSE_DATETIME=no
1500 DEFAULT_wxUSE_TIMEDATE=no
1501 DEFAULT_wxUSE_TIMER=no
1502 DEFAULT_wxUSE_STOPWATCH=no
1503 DEFAULT_wxUSE_FILE=no
1504 DEFAULT_wxUSE_FFILE=no
1505 DEFAULT_wxUSE_TEXTBUFFER=no
1506 DEFAULT_wxUSE_TEXTFILE=no
1507 DEFAULT_wxUSE_WAVE=no
1508 DEFAULT_wxUSE_INTL=no
1509 DEFAULT_wxUSE_CONFIG=no
1510 DEFAULT_wxUSE_FONTMAP=no
1511 DEFAULT_wxUSE_STREAMS=no
1512 DEFAULT_wxUSE_SOCKETS=no
1513 DEFAULT_wxUSE_DIALUP_MANAGER=no
1514 DEFAULT_wxUSE_JOYSTICK=no
1515 DEFAULT_wxUSE_DYNLIB_CLASS=no
1516 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1517 DEFAULT_wxUSE_LONGLONG=no
1518 DEFAULT_wxUSE_GEOMETRY=no
1519
1520 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1521 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1522 DEFAULT_wxUSE_POSTSCRIPT=no
1523
1524 DEFAULT_wxUSE_X_RESOURCES=no
1525 DEFAULT_wxUSE_CLIPBOARD=no
1526 DEFAULT_wxUSE_TOOLTIPS=no
1527 DEFAULT_wxUSE_DRAG_AND_DROP=no
1528 DEFAULT_wxUSE_DRAGIMAGE=no
1529 DEFAULT_wxUSE_SPLINES=no
1530
1531 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1532 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1533 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1534
1535 DEFAULT_wxUSE_PROLOGIO=no
1536 DEFAULT_wxUSE_RESOURCES=no
1537 DEFAULT_wxUSE_CONSTRAINTS=no
1538 DEFAULT_wxUSE_IPC=no
1539 DEFAULT_wxUSE_HELP=no
1540 DEFAULT_wxUSE_MS_HTML_HELP=no
1541 DEFAULT_wxUSE_WXHTML_HELP=no
1542 DEFAULT_wxUSE_TREELAYOUT=no
1543 DEFAULT_wxUSE_METAFILE=no
1544 DEFAULT_wxUSE_MIMETYPE=no
1545 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1546 DEFAULT_wxUSE_PROTOCOL=no
1547 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1548 DEFAULT_wxUSE_PROTOCOL_FTP=no
1549 DEFAULT_wxUSE_PROTOCOL_FILE=no
1550 DEFAULT_wxUSE_URL=no
1551
1552 DEFAULT_wxUSE_COMMONDLGS=no
1553 DEFAULT_wxUSE_CHOICEDLG=no
1554 DEFAULT_wxUSE_COLOURDLG=no
1555 DEFAULT_wxUSE_DIRDLG=no
1556 DEFAULT_wxUSE_FILEDLG=no
1557 DEFAULT_wxUSE_FINDREPLDLG=no
1558 DEFAULT_wxUSE_FONTDLG=no
1559 DEFAULT_wxUSE_MSGDLG=no
1560 DEFAULT_wxUSE_NUMBERDLG=no
1561 DEFAULT_wxUSE_TEXTDLG=no
1562 DEFAULT_wxUSE_SPLASH=no
1563 DEFAULT_wxUSE_STARTUP_TIPS=no
1564 DEFAULT_wxUSE_PROGRESSDLG=no
1565 DEFAULT_wxUSE_WIZARDDLG=no
1566
1567 DEFAULT_wxUSE_MENUS=no
1568 DEFAULT_wxUSE_MINIFRAME=no
1569 DEFAULT_wxUSE_HTML=no
1570 DEFAULT_wxUSE_FILESYSTEM=no
1571 DEFAULT_wxUSE_FS_INET=no
1572 DEFAULT_wxUSE_FS_ZIP=no
1573 DEFAULT_wxUSE_BUSYINFO=no
1574 DEFAULT_wxUSE_ZIPSTREAM=no
1575 DEFAULT_wxUSE_VALIDATORS=no
1576
1577 DEFAULT_wxUSE_ACCEL=no
1578 DEFAULT_wxUSE_BUTTON=no
1579 DEFAULT_wxUSE_BMPBUTTON=no
1580 DEFAULT_wxUSE_CALCTRL=no
1581 DEFAULT_wxUSE_CARET=no
1582 DEFAULT_wxUSE_CHECKBOX=no
1583 DEFAULT_wxUSE_CHECKLST=no
1584 DEFAULT_wxUSE_CHOICE=no
1585 DEFAULT_wxUSE_COMBOBOX=no
1586 DEFAULT_wxUSE_GAUGE=no
1587 DEFAULT_wxUSE_GRID=no
1588 DEFAULT_wxUSE_NEW_GRID=no
1589 DEFAULT_wxUSE_IMAGLIST=no
1590 DEFAULT_wxUSE_LISTBOX=no
1591 DEFAULT_wxUSE_LISTCTRL=no
1592 DEFAULT_wxUSE_NOTEBOOK=no
1593 DEFAULT_wxUSE_PROPSHEET=no
1594 DEFAULT_wxUSE_RADIOBOX=no
1595 DEFAULT_wxUSE_RADIOBTN=no
1596 DEFAULT_wxUSE_SASH=no
1597 DEFAULT_wxUSE_SCROLLBAR=no
1598 DEFAULT_wxUSE_SLIDER=no
1599 DEFAULT_wxUSE_SPINBTN=no
1600 DEFAULT_wxUSE_SPINCTRL=no
1601 DEFAULT_wxUSE_SPLITTER=no
1602 DEFAULT_wxUSE_STATBMP=no
1603 DEFAULT_wxUSE_STATBOX=no
1604 DEFAULT_wxUSE_STATLINE=no
1605 DEFAULT_wxUSE_STATTEXT=no
1606 DEFAULT_wxUSE_STATUSBAR=yes
1607 DEFAULT_wxUSE_TABDIALOG=no
1608 DEFAULT_wxUSE_TEXTCTRL=no
1609 DEFAULT_wxUSE_TOGGLEBTN=no
1610 DEFAULT_wxUSE_TOOLBAR=no
1611 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1612 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1613 DEFAULT_wxUSE_TREECTRL=no
1614 DEFAULT_wxUSE_POPUPWIN=no
1615 DEFAULT_wxUSE_TIPWINDOW=no
1616
1617 DEFAULT_wxUSE_UNICODE=no
1618 DEFAULT_wxUSE_UNICODE_MSLU=no
1619 DEFAULT_wxUSE_WCSRTOMBS=no
1620
1621 DEFAULT_wxUSE_PALETTE=no
1622 DEFAULT_wxUSE_IMAGE=no
1623 DEFAULT_wxUSE_GIF=no
1624 DEFAULT_wxUSE_PCX=no
1625 DEFAULT_wxUSE_PNM=no
1626 DEFAULT_wxUSE_IFF=no
1627 DEFAULT_wxUSE_XPM=no
1628 DEFAULT_wxUSE_ICO_CUR=no
1629 else
1630 DEFAULT_wxUSE_UNIVERSAL=no
1631
1632 DEFAULT_wxUSE_NANOX=no
1633
1634 DEFAULT_wxUSE_THREADS=yes
1635
1636 DEFAULT_wxUSE_SHARED=yes
1637 DEFAULT_wxUSE_SONAME=no
1638 DEFAULT_wxUSE_OPTIMISE=yes
1639 DEFAULT_wxUSE_PROFILE=no
1640 DEFAULT_wxUSE_NO_DEPS=no
1641 DEFAULT_wxUSE_NO_RTTI=yes
1642 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1643 DEFAULT_wxUSE_PERMISSIVE=no
1644 DEFAULT_wxUSE_DEBUG_FLAG=no
1645 DEFAULT_wxUSE_DEBUG_INFO=no
1646 DEFAULT_wxUSE_DEBUG_GDB=no
1647 DEFAULT_wxUSE_MEM_TRACING=no
1648 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1649 DEFAULT_wxUSE_DMALLOC=no
1650 DEFAULT_wxUSE_PRECOMP=no
1651 DEFAULT_wxUSE_APPLE_IEEE=yes
1652
1653 DEFAULT_wxUSE_LOG=yes
1654 DEFAULT_wxUSE_LOGWINDOW=yes
1655 DEFAULT_wxUSE_LOGGUI=yes
1656 DEFAULT_wxUSE_LOGDIALOG=yes
1657
1658 DEFAULT_wxUSE_GUI=yes
1659
1660 DEFAULT_wxUSE_REGEX=yes
1661 DEFAULT_wxUSE_ZLIB=yes
1662 DEFAULT_wxUSE_LIBPNG=yes
1663 DEFAULT_wxUSE_LIBJPEG=yes
1664 DEFAULT_wxUSE_LIBTIFF=yes
1665 DEFAULT_wxUSE_ODBC=no
1666 DEFAULT_wxUSE_OPENGL=no
1667
1668 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1669 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1670 DEFAULT_wxUSE_STD_IOSTREAM=no
1671 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1672 DEFAULT_wxUSE_DATETIME=yes
1673 DEFAULT_wxUSE_TIMEDATE=no
1674 DEFAULT_wxUSE_TIMER=yes
1675 DEFAULT_wxUSE_STOPWATCH=yes
1676 DEFAULT_wxUSE_FILE=yes
1677 DEFAULT_wxUSE_FFILE=yes
1678 DEFAULT_wxUSE_TEXTBUFFER=yes
1679 DEFAULT_wxUSE_TEXTFILE=yes
1680 DEFAULT_wxUSE_WAVE=no
1681 DEFAULT_wxUSE_INTL=yes
1682 DEFAULT_wxUSE_CONFIG=yes
1683 DEFAULT_wxUSE_FONTMAP=yes
1684 DEFAULT_wxUSE_STREAMS=yes
1685 DEFAULT_wxUSE_SOCKETS=yes
1686 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1687 DEFAULT_wxUSE_JOYSTICK=yes
1688 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1689 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1690 DEFAULT_wxUSE_LONGLONG=yes
1691 DEFAULT_wxUSE_GEOMETRY=yes
1692
1693 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1694 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1695 DEFAULT_wxUSE_POSTSCRIPT=yes
1696
1697 DEFAULT_wxUSE_X_RESOURCES=no
1698 DEFAULT_wxUSE_CLIPBOARD=yes
1699 DEFAULT_wxUSE_TOOLTIPS=yes
1700 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1701 DEFAULT_wxUSE_DRAGIMAGE=yes
1702 DEFAULT_wxUSE_SPLINES=yes
1703
1704 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1705 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1706 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1707
1708 DEFAULT_wxUSE_PROLOGIO=yes
1709 DEFAULT_wxUSE_RESOURCES=yes
1710 DEFAULT_wxUSE_CONSTRAINTS=yes
1711 DEFAULT_wxUSE_IPC=yes
1712 DEFAULT_wxUSE_HELP=yes
1713 DEFAULT_wxUSE_MS_HTML_HELP=yes
1714 DEFAULT_wxUSE_WXHTML_HELP=yes
1715 DEFAULT_wxUSE_TREELAYOUT=yes
1716 DEFAULT_wxUSE_METAFILE=yes
1717 DEFAULT_wxUSE_MIMETYPE=yes
1718 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1719 DEFAULT_wxUSE_PROTOCOL=yes
1720 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1721 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1722 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1723 DEFAULT_wxUSE_URL=yes
1724
1725 DEFAULT_wxUSE_COMMONDLGS=yes
1726 DEFAULT_wxUSE_CHOICEDLG=yes
1727 DEFAULT_wxUSE_COLOURDLG=yes
1728 DEFAULT_wxUSE_DIRDLG=yes
1729 DEFAULT_wxUSE_FILEDLG=yes
1730 DEFAULT_wxUSE_FINDREPLDLG=yes
1731 DEFAULT_wxUSE_FONTDLG=yes
1732 DEFAULT_wxUSE_MSGDLG=yes
1733 DEFAULT_wxUSE_NUMBERDLG=yes
1734 DEFAULT_wxUSE_TEXTDLG=yes
1735 DEFAULT_wxUSE_SPLASH=yes
1736 DEFAULT_wxUSE_STARTUP_TIPS=yes
1737 DEFAULT_wxUSE_PROGRESSDLG=yes
1738 DEFAULT_wxUSE_WIZARDDLG=yes
1739
1740 DEFAULT_wxUSE_MENUS=yes
1741 DEFAULT_wxUSE_MINIFRAME=yes
1742 DEFAULT_wxUSE_HTML=yes
1743 DEFAULT_wxUSE_FILESYSTEM=yes
1744 DEFAULT_wxUSE_FS_INET=yes
1745 DEFAULT_wxUSE_FS_ZIP=yes
1746 DEFAULT_wxUSE_BUSYINFO=yes
1747 DEFAULT_wxUSE_ZIPSTREAM=yes
1748 DEFAULT_wxUSE_VALIDATORS=yes
1749
1750 DEFAULT_wxUSE_ACCEL=yes
1751 DEFAULT_wxUSE_BUTTON=yes
1752 DEFAULT_wxUSE_BMPBUTTON=yes
1753 DEFAULT_wxUSE_CALCTRL=yes
1754 DEFAULT_wxUSE_CARET=yes
1755 DEFAULT_wxUSE_CHECKBOX=yes
1756 DEFAULT_wxUSE_CHECKLST=yes
1757 DEFAULT_wxUSE_CHOICE=yes
1758 DEFAULT_wxUSE_COMBOBOX=yes
1759 DEFAULT_wxUSE_GAUGE=yes
1760 DEFAULT_wxUSE_GRID=yes
1761 DEFAULT_wxUSE_NEW_GRID=yes
1762 DEFAULT_wxUSE_IMAGLIST=yes
1763 DEFAULT_wxUSE_LISTBOX=yes
1764 DEFAULT_wxUSE_LISTCTRL=yes
1765 DEFAULT_wxUSE_NOTEBOOK=yes
1766 DEFAULT_wxUSE_PROPSHEET=yes
1767 DEFAULT_wxUSE_RADIOBOX=yes
1768 DEFAULT_wxUSE_RADIOBTN=yes
1769 DEFAULT_wxUSE_SASH=yes
1770 DEFAULT_wxUSE_SCROLLBAR=yes
1771 DEFAULT_wxUSE_SLIDER=yes
1772 DEFAULT_wxUSE_SPINBTN=yes
1773 DEFAULT_wxUSE_SPINCTRL=yes
1774 DEFAULT_wxUSE_SPLITTER=yes
1775 DEFAULT_wxUSE_STATBMP=yes
1776 DEFAULT_wxUSE_STATBOX=yes
1777 DEFAULT_wxUSE_STATLINE=yes
1778 DEFAULT_wxUSE_STATTEXT=yes
1779 DEFAULT_wxUSE_STATUSBAR=yes
1780 DEFAULT_wxUSE_TABDIALOG=no
1781 DEFAULT_wxUSE_TEXTCTRL=yes
1782 DEFAULT_wxUSE_TOGGLEBTN=yes
1783 DEFAULT_wxUSE_TOOLBAR=yes
1784 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1785 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1786 DEFAULT_wxUSE_TREECTRL=yes
1787 DEFAULT_wxUSE_POPUPWIN=yes
1788 DEFAULT_wxUSE_TIPWINDOW=yes
1789
1790 DEFAULT_wxUSE_UNICODE=no
1791 DEFAULT_wxUSE_UNICODE_MSLU=yes
1792 DEFAULT_wxUSE_WCSRTOMBS=no
1793
1794 DEFAULT_wxUSE_PALETTE=yes
1795 DEFAULT_wxUSE_IMAGE=yes
1796 DEFAULT_wxUSE_GIF=yes
1797 DEFAULT_wxUSE_PCX=yes
1798 DEFAULT_wxUSE_IFF=no
1799 DEFAULT_wxUSE_PNM=yes
1800 DEFAULT_wxUSE_XPM=yes
1801 DEFAULT_wxUSE_ICO_CUR=yes
1802 fi
1803
1804
1805
1806 for toolkit in `echo $ALL_TOOLKITS`; do
1807 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1808 if test "x$LINE" != x ; then
1809 has_toolkit_in_cache=1
1810 eval "DEFAULT_$LINE"
1811 eval "CACHE_$toolkit=1"
1812 fi
1813 done
1814
1815
1816
1817 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1818 echo "configure:1819: checking for --enable-gui" >&5
1819 no_cache=0
1820 # Check whether --enable-gui or --disable-gui was given.
1821 if test "${enable_gui+set}" = set; then
1822 enableval="$enable_gui"
1823
1824 if test "$enableval" = yes; then
1825 ac_cv_use_gui='wxUSE_GUI=yes'
1826 else
1827 ac_cv_use_gui='wxUSE_GUI=no'
1828 fi
1829
1830 else
1831
1832 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1833 if test "x$LINE" != x ; then
1834 eval "DEFAULT_$LINE"
1835 else
1836 no_cache=1
1837 fi
1838
1839 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1840
1841 fi
1842
1843
1844 eval "$ac_cv_use_gui"
1845 if test "$no_cache" != 1; then
1846 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1847 fi
1848
1849 if test "$wxUSE_GUI" = yes; then
1850 echo "$ac_t""yes" 1>&6
1851 else
1852 echo "$ac_t""no" 1>&6
1853 fi
1854
1855
1856 if test "$wxUSE_GUI" = "yes"; then
1857
1858
1859 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1860 echo "configure:1861: checking for --enable-universal" >&5
1861 no_cache=0
1862 # Check whether --enable-universal or --disable-universal was given.
1863 if test "${enable_universal+set}" = set; then
1864 enableval="$enable_universal"
1865
1866 if test "$enableval" = yes; then
1867 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1868 else
1869 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1870 fi
1871
1872 else
1873
1874 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1875 if test "x$LINE" != x ; then
1876 eval "DEFAULT_$LINE"
1877 else
1878 no_cache=1
1879 fi
1880
1881 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1882
1883 fi
1884
1885
1886 eval "$ac_cv_use_universal"
1887 if test "$no_cache" != 1; then
1888 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1889 fi
1890
1891 if test "$wxUSE_UNIVERSAL" = yes; then
1892 echo "$ac_t""yes" 1>&6
1893 else
1894 echo "$ac_t""no" 1>&6
1895 fi
1896
1897 # Check whether --with-gtk or --without-gtk was given.
1898 if test "${with_gtk+set}" = set; then
1899 withval="$with_gtk"
1900 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1901 fi
1902
1903 # Check whether --with-motif or --without-motif was given.
1904 if test "${with_motif+set}" = set; then
1905 withval="$with_motif"
1906 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1907 fi
1908
1909 # Check whether --with-mac or --without-mac was given.
1910 if test "${with_mac+set}" = set; then
1911 withval="$with_mac"
1912 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1913 fi
1914
1915 # Check whether --with-wine or --without-wine was given.
1916 if test "${with_wine+set}" = set; then
1917 withval="$with_wine"
1918 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1919 fi
1920
1921 # Check whether --with-msw or --without-msw was given.
1922 if test "${with_msw+set}" = set; then
1923 withval="$with_msw"
1924 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1925 fi
1926
1927 # Check whether --with-pm or --without-pm was given.
1928 if test "${with_pm+set}" = set; then
1929 withval="$with_pm"
1930 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1931 fi
1932
1933 # Check whether --with-mgl or --without-mgl was given.
1934 if test "${with_mgl+set}" = set; then
1935 withval="$with_mgl"
1936 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1937 fi
1938
1939 # Check whether --with-microwin or --without-microwin was given.
1940 if test "${with_microwin+set}" = set; then
1941 withval="$with_microwin"
1942 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1943 fi
1944
1945 # Check whether --with-x11 or --without-x11 was given.
1946 if test "${with_x11+set}" = set; then
1947 withval="$with_x11"
1948 wxUSE_X11="$withval" CACHE_X11=1 TOOLKIT_GIVEN=1
1949 fi
1950
1951
1952 echo $ac_n "checking for --enable-nanox ""... $ac_c" 1>&6
1953 echo "configure:1954: checking for --enable-nanox " >&5
1954 no_cache=0
1955 # Check whether --enable-nanox or --disable-nanox was given.
1956 if test "${enable_nanox +set}" = set; then
1957 enableval="$enable_nanox "
1958
1959 if test "$enableval" = yes; then
1960 ac_cv_use_nanox ='wxUSE_NANOX=yes'
1961 else
1962 ac_cv_use_nanox ='wxUSE_NANOX=no'
1963 fi
1964
1965 else
1966
1967 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1968 if test "x$LINE" != x ; then
1969 eval "DEFAULT_$LINE"
1970 else
1971 no_cache=1
1972 fi
1973
1974 ac_cv_use_nanox ='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1975
1976 fi
1977
1978
1979 eval "$ac_cv_use_nanox "
1980 if test "$no_cache" != 1; then
1981 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1982 fi
1983
1984 if test "$wxUSE_NANOX" = yes; then
1985 echo "$ac_t""yes" 1>&6
1986 else
1987 echo "$ac_t""no" 1>&6
1988 fi
1989
1990
1991 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1992 if test "${enable_gtk2+set}" = set; then
1993 enableval="$enable_gtk2"
1994 wxUSE_GTK2=1
1995 else
1996 wxUSE_GTK2=0
1997 fi
1998
1999
2000
2001 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
2002 echo "configure:2003: checking for --with-libpng" >&5
2003 no_cache=0
2004 # Check whether --with-libpng or --without-libpng was given.
2005 if test "${with_libpng+set}" = set; then
2006 withval="$with_libpng"
2007
2008 if test "$withval" = yes; then
2009 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2010 elif test "$withval" = no; then
2011 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2012 elif test "$withval" = sys; then
2013 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2014 elif test "$withval" = builtin; then
2015 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2016 else
2017 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2018 fi
2019
2020 else
2021
2022 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2023 if test "x$LINE" != x ; then
2024 eval "DEFAULT_$LINE"
2025 else
2026 no_cache=1
2027 fi
2028
2029 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2030
2031 fi
2032
2033
2034 eval "$ac_cv_use_libpng"
2035 if test "$no_cache" != 1; then
2036 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2037 fi
2038
2039 if test "$wxUSE_LIBPNG" = yes; then
2040 echo "$ac_t""yes" 1>&6
2041 elif test "$wxUSE_LIBPNG" = no; then
2042 echo "$ac_t""no" 1>&6
2043 elif test "$wxUSE_LIBPNG" = sys; then
2044 echo "$ac_t""system version" 1>&6
2045 elif test "$wxUSE_LIBPNG" = builtin; then
2046 echo "$ac_t""builtin version" 1>&6
2047 else
2048 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2049 fi
2050
2051
2052 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2053 echo "configure:2054: checking for --with-libjpeg" >&5
2054 no_cache=0
2055 # Check whether --with-libjpeg or --without-libjpeg was given.
2056 if test "${with_libjpeg+set}" = set; then
2057 withval="$with_libjpeg"
2058
2059 if test "$withval" = yes; then
2060 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2061 elif test "$withval" = no; then
2062 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2063 elif test "$withval" = sys; then
2064 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2065 elif test "$withval" = builtin; then
2066 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2067 else
2068 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2069 fi
2070
2071 else
2072
2073 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2074 if test "x$LINE" != x ; then
2075 eval "DEFAULT_$LINE"
2076 else
2077 no_cache=1
2078 fi
2079
2080 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2081
2082 fi
2083
2084
2085 eval "$ac_cv_use_libjpeg"
2086 if test "$no_cache" != 1; then
2087 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2088 fi
2089
2090 if test "$wxUSE_LIBJPEG" = yes; then
2091 echo "$ac_t""yes" 1>&6
2092 elif test "$wxUSE_LIBJPEG" = no; then
2093 echo "$ac_t""no" 1>&6
2094 elif test "$wxUSE_LIBJPEG" = sys; then
2095 echo "$ac_t""system version" 1>&6
2096 elif test "$wxUSE_LIBJPEG" = builtin; then
2097 echo "$ac_t""builtin version" 1>&6
2098 else
2099 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2100 fi
2101
2102
2103 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2104 echo "configure:2105: checking for --with-libtiff" >&5
2105 no_cache=0
2106 # Check whether --with-libtiff or --without-libtiff was given.
2107 if test "${with_libtiff+set}" = set; then
2108 withval="$with_libtiff"
2109
2110 if test "$withval" = yes; then
2111 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2112 elif test "$withval" = no; then
2113 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2114 elif test "$withval" = sys; then
2115 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2116 elif test "$withval" = builtin; then
2117 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2118 else
2119 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2120 fi
2121
2122 else
2123
2124 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2125 if test "x$LINE" != x ; then
2126 eval "DEFAULT_$LINE"
2127 else
2128 no_cache=1
2129 fi
2130
2131 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2132
2133 fi
2134
2135
2136 eval "$ac_cv_use_libtiff"
2137 if test "$no_cache" != 1; then
2138 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2139 fi
2140
2141 if test "$wxUSE_LIBTIFF" = yes; then
2142 echo "$ac_t""yes" 1>&6
2143 elif test "$wxUSE_LIBTIFF" = no; then
2144 echo "$ac_t""no" 1>&6
2145 elif test "$wxUSE_LIBTIFF" = sys; then
2146 echo "$ac_t""system version" 1>&6
2147 elif test "$wxUSE_LIBTIFF" = builtin; then
2148 echo "$ac_t""builtin version" 1>&6
2149 else
2150 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2151 fi
2152
2153
2154 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2155 echo "configure:2156: checking for --with-opengl" >&5
2156 no_cache=0
2157 # Check whether --with-opengl or --without-opengl was given.
2158 if test "${with_opengl+set}" = set; then
2159 withval="$with_opengl"
2160
2161 if test "$withval" = yes; then
2162 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2163 else
2164 ac_cv_use_opengl='wxUSE_OPENGL=no'
2165 fi
2166
2167 else
2168
2169 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2170 if test "x$LINE" != x ; then
2171 eval "DEFAULT_$LINE"
2172 else
2173 no_cache=1
2174 fi
2175
2176 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2177
2178 fi
2179
2180
2181 eval "$ac_cv_use_opengl"
2182 if test "$no_cache" != 1; then
2183 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2184 fi
2185
2186 if test "$wxUSE_OPENGL" = yes; then
2187 echo "$ac_t""yes" 1>&6
2188 else
2189 echo "$ac_t""no" 1>&6
2190 fi
2191
2192
2193 fi
2194
2195
2196 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2197 echo "configure:2198: checking for --with-dmalloc" >&5
2198 no_cache=0
2199 # Check whether --with-dmalloc or --without-dmalloc was given.
2200 if test "${with_dmalloc+set}" = set; then
2201 withval="$with_dmalloc"
2202
2203 if test "$withval" = yes; then
2204 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2205 else
2206 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2207 fi
2208
2209 else
2210
2211 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2212 if test "x$LINE" != x ; then
2213 eval "DEFAULT_$LINE"
2214 else
2215 no_cache=1
2216 fi
2217
2218 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2219
2220 fi
2221
2222
2223 eval "$ac_cv_use_dmalloc"
2224 if test "$no_cache" != 1; then
2225 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2226 fi
2227
2228 if test "$wxUSE_DMALLOC" = yes; then
2229 echo "$ac_t""yes" 1>&6
2230 else
2231 echo "$ac_t""no" 1>&6
2232 fi
2233
2234
2235 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2236 echo "configure:2237: checking for --with-regex" >&5
2237 no_cache=0
2238 # Check whether --with-regex or --without-regex was given.
2239 if test "${with_regex+set}" = set; then
2240 withval="$with_regex"
2241
2242 if test "$withval" = yes; then
2243 ac_cv_use_regex='wxUSE_REGEX=yes'
2244 elif test "$withval" = no; then
2245 ac_cv_use_regex='wxUSE_REGEX=no'
2246 elif test "$withval" = sys; then
2247 ac_cv_use_regex='wxUSE_REGEX=sys'
2248 elif test "$withval" = builtin; then
2249 ac_cv_use_regex='wxUSE_REGEX=builtin'
2250 else
2251 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2252 fi
2253
2254 else
2255
2256 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2257 if test "x$LINE" != x ; then
2258 eval "DEFAULT_$LINE"
2259 else
2260 no_cache=1
2261 fi
2262
2263 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2264
2265 fi
2266
2267
2268 eval "$ac_cv_use_regex"
2269 if test "$no_cache" != 1; then
2270 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2271 fi
2272
2273 if test "$wxUSE_REGEX" = yes; then
2274 echo "$ac_t""yes" 1>&6
2275 elif test "$wxUSE_REGEX" = no; then
2276 echo "$ac_t""no" 1>&6
2277 elif test "$wxUSE_REGEX" = sys; then
2278 echo "$ac_t""system version" 1>&6
2279 elif test "$wxUSE_REGEX" = builtin; then
2280 echo "$ac_t""builtin version" 1>&6
2281 else
2282 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2283 fi
2284
2285
2286 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2287 echo "configure:2288: checking for --with-zlib" >&5
2288 no_cache=0
2289 # Check whether --with-zlib or --without-zlib was given.
2290 if test "${with_zlib+set}" = set; then
2291 withval="$with_zlib"
2292
2293 if test "$withval" = yes; then
2294 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2295 elif test "$withval" = no; then
2296 ac_cv_use_zlib='wxUSE_ZLIB=no'
2297 elif test "$withval" = sys; then
2298 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2299 elif test "$withval" = builtin; then
2300 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2301 else
2302 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2303 fi
2304
2305 else
2306
2307 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2308 if test "x$LINE" != x ; then
2309 eval "DEFAULT_$LINE"
2310 else
2311 no_cache=1
2312 fi
2313
2314 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2315
2316 fi
2317
2318
2319 eval "$ac_cv_use_zlib"
2320 if test "$no_cache" != 1; then
2321 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2322 fi
2323
2324 if test "$wxUSE_ZLIB" = yes; then
2325 echo "$ac_t""yes" 1>&6
2326 elif test "$wxUSE_ZLIB" = no; then
2327 echo "$ac_t""no" 1>&6
2328 elif test "$wxUSE_ZLIB" = sys; then
2329 echo "$ac_t""system version" 1>&6
2330 elif test "$wxUSE_ZLIB" = builtin; then
2331 echo "$ac_t""builtin version" 1>&6
2332 else
2333 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2334 fi
2335
2336
2337 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2338 echo "configure:2339: checking for --with-odbc" >&5
2339 no_cache=0
2340 # Check whether --with-odbc or --without-odbc was given.
2341 if test "${with_odbc+set}" = set; then
2342 withval="$with_odbc"
2343
2344 if test "$withval" = yes; then
2345 ac_cv_use_odbc='wxUSE_ODBC=yes'
2346 else
2347 ac_cv_use_odbc='wxUSE_ODBC=no'
2348 fi
2349
2350 else
2351
2352 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2353 if test "x$LINE" != x ; then
2354 eval "DEFAULT_$LINE"
2355 else
2356 no_cache=1
2357 fi
2358
2359 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2360
2361 fi
2362
2363
2364 eval "$ac_cv_use_odbc"
2365 if test "$no_cache" != 1; then
2366 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2367 fi
2368
2369 if test "$wxUSE_ODBC" = yes; then
2370 echo "$ac_t""yes" 1>&6
2371 else
2372 echo "$ac_t""no" 1>&6
2373 fi
2374
2375
2376
2377
2378 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2379 echo "configure:2380: checking for --enable-shared" >&5
2380 no_cache=0
2381 # Check whether --enable-shared or --disable-shared was given.
2382 if test "${enable_shared+set}" = set; then
2383 enableval="$enable_shared"
2384
2385 if test "$enableval" = yes; then
2386 ac_cv_use_shared='wxUSE_SHARED=yes'
2387 else
2388 ac_cv_use_shared='wxUSE_SHARED=no'
2389 fi
2390
2391 else
2392
2393 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2394 if test "x$LINE" != x ; then
2395 eval "DEFAULT_$LINE"
2396 else
2397 no_cache=1
2398 fi
2399
2400 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2401
2402 fi
2403
2404
2405 eval "$ac_cv_use_shared"
2406 if test "$no_cache" != 1; then
2407 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2408 fi
2409
2410 if test "$wxUSE_SHARED" = yes; then
2411 echo "$ac_t""yes" 1>&6
2412 else
2413 echo "$ac_t""no" 1>&6
2414 fi
2415
2416
2417 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2418 echo "configure:2419: checking for --enable-soname" >&5
2419 no_cache=0
2420 # Check whether --enable-soname or --disable-soname was given.
2421 if test "${enable_soname+set}" = set; then
2422 enableval="$enable_soname"
2423
2424 if test "$enableval" = yes; then
2425 ac_cv_use_soname='wxUSE_SONAME=yes'
2426 else
2427 ac_cv_use_soname='wxUSE_SONAME=no'
2428 fi
2429
2430 else
2431
2432 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2433 if test "x$LINE" != x ; then
2434 eval "DEFAULT_$LINE"
2435 else
2436 no_cache=1
2437 fi
2438
2439 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2440
2441 fi
2442
2443
2444 eval "$ac_cv_use_soname"
2445 if test "$no_cache" != 1; then
2446 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2447 fi
2448
2449 if test "$wxUSE_SONAME" = yes; then
2450 echo "$ac_t""yes" 1>&6
2451 else
2452 echo "$ac_t""no" 1>&6
2453 fi
2454
2455
2456 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2457 echo "configure:2458: checking for --enable-optimise" >&5
2458 no_cache=0
2459 # Check whether --enable-optimise or --disable-optimise was given.
2460 if test "${enable_optimise+set}" = set; then
2461 enableval="$enable_optimise"
2462
2463 if test "$enableval" = yes; then
2464 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2465 else
2466 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2467 fi
2468
2469 else
2470
2471 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2472 if test "x$LINE" != x ; then
2473 eval "DEFAULT_$LINE"
2474 else
2475 no_cache=1
2476 fi
2477
2478 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2479
2480 fi
2481
2482
2483 eval "$ac_cv_use_optimise"
2484 if test "$no_cache" != 1; then
2485 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2486 fi
2487
2488 if test "$wxUSE_OPTIMISE" = yes; then
2489 echo "$ac_t""yes" 1>&6
2490 else
2491 echo "$ac_t""no" 1>&6
2492 fi
2493
2494
2495 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2496 echo "configure:2497: checking for --enable-debug" >&5
2497 no_cache=0
2498 # Check whether --enable-debug or --disable-debug was given.
2499 if test "${enable_debug+set}" = set; then
2500 enableval="$enable_debug"
2501
2502 if test "$enableval" = yes; then
2503 ac_cv_use_debug='wxUSE_DEBUG=yes'
2504 else
2505 ac_cv_use_debug='wxUSE_DEBUG=no'
2506 fi
2507
2508 else
2509
2510 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2511 if test "x$LINE" != x ; then
2512 eval "DEFAULT_$LINE"
2513 else
2514 no_cache=1
2515 fi
2516
2517 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2518
2519 fi
2520
2521
2522 eval "$ac_cv_use_debug"
2523 if test "$no_cache" != 1; then
2524 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2525 fi
2526
2527 if test "$wxUSE_DEBUG" = yes; then
2528 echo "$ac_t""yes" 1>&6
2529 else
2530 echo "$ac_t""no" 1>&6
2531 fi
2532
2533
2534
2535 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2536 echo "configure:2537: checking for --enable-precomp" >&5
2537 no_cache=0
2538 # Check whether --enable-precomp or --disable-precomp was given.
2539 if test "${enable_precomp+set}" = set; then
2540 enableval="$enable_precomp"
2541
2542 if test "$enableval" = yes; then
2543 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2544 else
2545 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2546 fi
2547
2548 else
2549
2550 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2551 if test "x$LINE" != x ; then
2552 eval "DEFAULT_$LINE"
2553 else
2554 no_cache=1
2555 fi
2556
2557 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2558
2559 fi
2560
2561
2562 eval "$ac_cv_use_precomp"
2563 if test "$no_cache" != 1; then
2564 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2565 fi
2566
2567 if test "$wxUSE_PRECOMP" = yes; then
2568 echo "$ac_t""yes" 1>&6
2569 else
2570 echo "$ac_t""no" 1>&6
2571 fi
2572
2573
2574 if test "$wxUSE_DEBUG" = "yes"; then
2575 DEFAULT_wxUSE_DEBUG_FLAG=yes
2576 DEFAULT_wxUSE_DEBUG_INFO=yes
2577 elif test "$wxUSE_DEBUG" = "no"; then
2578 DEFAULT_wxUSE_DEBUG_FLAG=no
2579 DEFAULT_wxUSE_DEBUG_INFO=no
2580 fi
2581
2582
2583 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2584 echo "configure:2585: checking for --enable-debug_flag" >&5
2585 no_cache=0
2586 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2587 if test "${enable_debug_flag+set}" = set; then
2588 enableval="$enable_debug_flag"
2589
2590 if test "$enableval" = yes; then
2591 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2592 else
2593 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2594 fi
2595
2596 else
2597
2598 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2599 if test "x$LINE" != x ; then
2600 eval "DEFAULT_$LINE"
2601 else
2602 no_cache=1
2603 fi
2604
2605 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2606
2607 fi
2608
2609
2610 eval "$ac_cv_use_debug_flag"
2611 if test "$no_cache" != 1; then
2612 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2613 fi
2614
2615 if test "$wxUSE_DEBUG_FLAG" = yes; then
2616 echo "$ac_t""yes" 1>&6
2617 else
2618 echo "$ac_t""no" 1>&6
2619 fi
2620
2621
2622 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2623 echo "configure:2624: checking for --enable-debug_info" >&5
2624 no_cache=0
2625 # Check whether --enable-debug_info or --disable-debug_info was given.
2626 if test "${enable_debug_info+set}" = set; then
2627 enableval="$enable_debug_info"
2628
2629 if test "$enableval" = yes; then
2630 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2631 else
2632 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2633 fi
2634
2635 else
2636
2637 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2638 if test "x$LINE" != x ; then
2639 eval "DEFAULT_$LINE"
2640 else
2641 no_cache=1
2642 fi
2643
2644 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2645
2646 fi
2647
2648
2649 eval "$ac_cv_use_debug_info"
2650 if test "$no_cache" != 1; then
2651 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2652 fi
2653
2654 if test "$wxUSE_DEBUG_INFO" = yes; then
2655 echo "$ac_t""yes" 1>&6
2656 else
2657 echo "$ac_t""no" 1>&6
2658 fi
2659
2660
2661 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2662 echo "configure:2663: checking for --enable-debug_gdb" >&5
2663 no_cache=0
2664 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2665 if test "${enable_debug_gdb+set}" = set; then
2666 enableval="$enable_debug_gdb"
2667
2668 if test "$enableval" = yes; then
2669 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2670 else
2671 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2672 fi
2673
2674 else
2675
2676 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2677 if test "x$LINE" != x ; then
2678 eval "DEFAULT_$LINE"
2679 else
2680 no_cache=1
2681 fi
2682
2683 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2684
2685 fi
2686
2687
2688 eval "$ac_cv_use_debug_gdb"
2689 if test "$no_cache" != 1; then
2690 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2691 fi
2692
2693 if test "$wxUSE_DEBUG_GDB" = yes; then
2694 echo "$ac_t""yes" 1>&6
2695 else
2696 echo "$ac_t""no" 1>&6
2697 fi
2698
2699
2700 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2701 echo "configure:2702: checking for --enable-debug_cntxt" >&5
2702 no_cache=0
2703 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2704 if test "${enable_debug_cntxt+set}" = set; then
2705 enableval="$enable_debug_cntxt"
2706
2707 if test "$enableval" = yes; then
2708 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2709 else
2710 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2711 fi
2712
2713 else
2714
2715 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2716 if test "x$LINE" != x ; then
2717 eval "DEFAULT_$LINE"
2718 else
2719 no_cache=1
2720 fi
2721
2722 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2723
2724 fi
2725
2726
2727 eval "$ac_cv_use_debug_cntxt"
2728 if test "$no_cache" != 1; then
2729 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2730 fi
2731
2732 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2733 echo "$ac_t""yes" 1>&6
2734 else
2735 echo "$ac_t""no" 1>&6
2736 fi
2737
2738
2739 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2740 echo "configure:2741: checking for --enable-mem_tracing" >&5
2741 no_cache=0
2742 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2743 if test "${enable_mem_tracing+set}" = set; then
2744 enableval="$enable_mem_tracing"
2745
2746 if test "$enableval" = yes; then
2747 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2748 else
2749 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2750 fi
2751
2752 else
2753
2754 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2755 if test "x$LINE" != x ; then
2756 eval "DEFAULT_$LINE"
2757 else
2758 no_cache=1
2759 fi
2760
2761 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2762
2763 fi
2764
2765
2766 eval "$ac_cv_use_mem_tracing"
2767 if test "$no_cache" != 1; then
2768 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2769 fi
2770
2771 if test "$wxUSE_MEM_TRACING" = yes; then
2772 echo "$ac_t""yes" 1>&6
2773 else
2774 echo "$ac_t""no" 1>&6
2775 fi
2776
2777
2778 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2779 echo "configure:2780: checking for --enable-profile" >&5
2780 no_cache=0
2781 # Check whether --enable-profile or --disable-profile was given.
2782 if test "${enable_profile+set}" = set; then
2783 enableval="$enable_profile"
2784
2785 if test "$enableval" = yes; then
2786 ac_cv_use_profile='wxUSE_PROFILE=yes'
2787 else
2788 ac_cv_use_profile='wxUSE_PROFILE=no'
2789 fi
2790
2791 else
2792
2793 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2794 if test "x$LINE" != x ; then
2795 eval "DEFAULT_$LINE"
2796 else
2797 no_cache=1
2798 fi
2799
2800 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2801
2802 fi
2803
2804
2805 eval "$ac_cv_use_profile"
2806 if test "$no_cache" != 1; then
2807 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2808 fi
2809
2810 if test "$wxUSE_PROFILE" = yes; then
2811 echo "$ac_t""yes" 1>&6
2812 else
2813 echo "$ac_t""no" 1>&6
2814 fi
2815
2816
2817 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2818 echo "configure:2819: checking for --enable-no_rtti" >&5
2819 no_cache=0
2820 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2821 if test "${enable_no_rtti+set}" = set; then
2822 enableval="$enable_no_rtti"
2823
2824 if test "$enableval" = yes; then
2825 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2826 else
2827 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2828 fi
2829
2830 else
2831
2832 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2833 if test "x$LINE" != x ; then
2834 eval "DEFAULT_$LINE"
2835 else
2836 no_cache=1
2837 fi
2838
2839 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2840
2841 fi
2842
2843
2844 eval "$ac_cv_use_no_rtti"
2845 if test "$no_cache" != 1; then
2846 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2847 fi
2848
2849 if test "$wxUSE_NO_RTTI" = yes; then
2850 echo "$ac_t""yes" 1>&6
2851 else
2852 echo "$ac_t""no" 1>&6
2853 fi
2854
2855
2856 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2857 echo "configure:2858: checking for --enable-no_exceptions" >&5
2858 no_cache=0
2859 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2860 if test "${enable_no_exceptions+set}" = set; then
2861 enableval="$enable_no_exceptions"
2862
2863 if test "$enableval" = yes; then
2864 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2865 else
2866 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2867 fi
2868
2869 else
2870
2871 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2872 if test "x$LINE" != x ; then
2873 eval "DEFAULT_$LINE"
2874 else
2875 no_cache=1
2876 fi
2877
2878 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2879
2880 fi
2881
2882
2883 eval "$ac_cv_use_no_exceptions"
2884 if test "$no_cache" != 1; then
2885 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2886 fi
2887
2888 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2889 echo "$ac_t""yes" 1>&6
2890 else
2891 echo "$ac_t""no" 1>&6
2892 fi
2893
2894
2895 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2896 echo "configure:2897: checking for --enable-permissive" >&5
2897 no_cache=0
2898 # Check whether --enable-permissive or --disable-permissive was given.
2899 if test "${enable_permissive+set}" = set; then
2900 enableval="$enable_permissive"
2901
2902 if test "$enableval" = yes; then
2903 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2904 else
2905 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2906 fi
2907
2908 else
2909
2910 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2911 if test "x$LINE" != x ; then
2912 eval "DEFAULT_$LINE"
2913 else
2914 no_cache=1
2915 fi
2916
2917 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2918
2919 fi
2920
2921
2922 eval "$ac_cv_use_permissive"
2923 if test "$no_cache" != 1; then
2924 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2925 fi
2926
2927 if test "$wxUSE_PERMISSIVE" = yes; then
2928 echo "$ac_t""yes" 1>&6
2929 else
2930 echo "$ac_t""no" 1>&6
2931 fi
2932
2933
2934 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2935 echo "configure:2936: checking for --enable-no_deps" >&5
2936 no_cache=0
2937 # Check whether --enable-no_deps or --disable-no_deps was given.
2938 if test "${enable_no_deps+set}" = set; then
2939 enableval="$enable_no_deps"
2940
2941 if test "$enableval" = yes; then
2942 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2943 else
2944 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2945 fi
2946
2947 else
2948
2949 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2950 if test "x$LINE" != x ; then
2951 eval "DEFAULT_$LINE"
2952 else
2953 no_cache=1
2954 fi
2955
2956 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2957
2958 fi
2959
2960
2961 eval "$ac_cv_use_no_deps"
2962 if test "$no_cache" != 1; then
2963 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2964 fi
2965
2966 if test "$wxUSE_NO_DEPS" = yes; then
2967 echo "$ac_t""yes" 1>&6
2968 else
2969 echo "$ac_t""no" 1>&6
2970 fi
2971
2972
2973
2974 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2975 echo "configure:2976: checking for --enable-compat20" >&5
2976 no_cache=0
2977 # Check whether --enable-compat20 or --disable-compat20 was given.
2978 if test "${enable_compat20+set}" = set; then
2979 enableval="$enable_compat20"
2980
2981 if test "$enableval" = yes; then
2982 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2983 else
2984 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2985 fi
2986
2987 else
2988
2989 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2990 if test "x$LINE" != x ; then
2991 eval "DEFAULT_$LINE"
2992 else
2993 no_cache=1
2994 fi
2995
2996 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2997
2998 fi
2999
3000
3001 eval "$ac_cv_use_compat20"
3002 if test "$no_cache" != 1; then
3003 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3004 fi
3005
3006 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3007 echo "$ac_t""yes" 1>&6
3008 else
3009 echo "$ac_t""no" 1>&6
3010 fi
3011
3012
3013 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
3014 echo "configure:3015: checking for --enable-compat22" >&5
3015 no_cache=0
3016 # Check whether --enable-compat22 or --disable-compat22 was given.
3017 if test "${enable_compat22+set}" = set; then
3018 enableval="$enable_compat22"
3019
3020 if test "$enableval" = yes; then
3021 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3022 else
3023 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3024 fi
3025
3026 else
3027
3028 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3029 if test "x$LINE" != x ; then
3030 eval "DEFAULT_$LINE"
3031 else
3032 no_cache=1
3033 fi
3034
3035 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3036
3037 fi
3038
3039
3040 eval "$ac_cv_use_compat22"
3041 if test "$no_cache" != 1; then
3042 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3043 fi
3044
3045 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3046 echo "$ac_t""yes" 1>&6
3047 else
3048 echo "$ac_t""no" 1>&6
3049 fi
3050
3051
3052
3053
3054 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3055 echo "configure:3056: checking for --enable-intl" >&5
3056 no_cache=0
3057 # Check whether --enable-intl or --disable-intl was given.
3058 if test "${enable_intl+set}" = set; then
3059 enableval="$enable_intl"
3060
3061 if test "$enableval" = yes; then
3062 ac_cv_use_intl='wxUSE_INTL=yes'
3063 else
3064 ac_cv_use_intl='wxUSE_INTL=no'
3065 fi
3066
3067 else
3068
3069 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3070 if test "x$LINE" != x ; then
3071 eval "DEFAULT_$LINE"
3072 else
3073 no_cache=1
3074 fi
3075
3076 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3077
3078 fi
3079
3080
3081 eval "$ac_cv_use_intl"
3082 if test "$no_cache" != 1; then
3083 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3084 fi
3085
3086 if test "$wxUSE_INTL" = yes; then
3087 echo "$ac_t""yes" 1>&6
3088 else
3089 echo "$ac_t""no" 1>&6
3090 fi
3091
3092
3093 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3094 echo "configure:3095: checking for --enable-config" >&5
3095 no_cache=0
3096 # Check whether --enable-config or --disable-config was given.
3097 if test "${enable_config+set}" = set; then
3098 enableval="$enable_config"
3099
3100 if test "$enableval" = yes; then
3101 ac_cv_use_config='wxUSE_CONFIG=yes'
3102 else
3103 ac_cv_use_config='wxUSE_CONFIG=no'
3104 fi
3105
3106 else
3107
3108 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3109 if test "x$LINE" != x ; then
3110 eval "DEFAULT_$LINE"
3111 else
3112 no_cache=1
3113 fi
3114
3115 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3116
3117 fi
3118
3119
3120 eval "$ac_cv_use_config"
3121 if test "$no_cache" != 1; then
3122 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3123 fi
3124
3125 if test "$wxUSE_CONFIG" = yes; then
3126 echo "$ac_t""yes" 1>&6
3127 else
3128 echo "$ac_t""no" 1>&6
3129 fi
3130
3131
3132
3133 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3134 echo "configure:3135: checking for --enable-protocols" >&5
3135 no_cache=0
3136 # Check whether --enable-protocols or --disable-protocols was given.
3137 if test "${enable_protocols+set}" = set; then
3138 enableval="$enable_protocols"
3139
3140 if test "$enableval" = yes; then
3141 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3142 else
3143 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3144 fi
3145
3146 else
3147
3148 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3149 if test "x$LINE" != x ; then
3150 eval "DEFAULT_$LINE"
3151 else
3152 no_cache=1
3153 fi
3154
3155 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3156
3157 fi
3158
3159
3160 eval "$ac_cv_use_protocols"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_PROTOCOL" = yes; then
3166 echo "$ac_t""yes" 1>&6
3167 else
3168 echo "$ac_t""no" 1>&6
3169 fi
3170
3171
3172 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3173 echo "configure:3174: checking for --enable-ftp" >&5
3174 no_cache=0
3175 # Check whether --enable-ftp or --disable-ftp was given.
3176 if test "${enable_ftp+set}" = set; then
3177 enableval="$enable_ftp"
3178
3179 if test "$enableval" = yes; then
3180 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3181 else
3182 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3183 fi
3184
3185 else
3186
3187 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3188 if test "x$LINE" != x ; then
3189 eval "DEFAULT_$LINE"
3190 else
3191 no_cache=1
3192 fi
3193
3194 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3195
3196 fi
3197
3198
3199 eval "$ac_cv_use_ftp"
3200 if test "$no_cache" != 1; then
3201 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3202 fi
3203
3204 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3205 echo "$ac_t""yes" 1>&6
3206 else
3207 echo "$ac_t""no" 1>&6
3208 fi
3209
3210
3211 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3212 echo "configure:3213: checking for --enable-http" >&5
3213 no_cache=0
3214 # Check whether --enable-http or --disable-http was given.
3215 if test "${enable_http+set}" = set; then
3216 enableval="$enable_http"
3217
3218 if test "$enableval" = yes; then
3219 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3220 else
3221 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3222 fi
3223
3224 else
3225
3226 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3227 if test "x$LINE" != x ; then
3228 eval "DEFAULT_$LINE"
3229 else
3230 no_cache=1
3231 fi
3232
3233 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3234
3235 fi
3236
3237
3238 eval "$ac_cv_use_http"
3239 if test "$no_cache" != 1; then
3240 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3241 fi
3242
3243 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3244 echo "$ac_t""yes" 1>&6
3245 else
3246 echo "$ac_t""no" 1>&6
3247 fi
3248
3249
3250 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3251 echo "configure:3252: checking for --enable-fileproto" >&5
3252 no_cache=0
3253 # Check whether --enable-fileproto or --disable-fileproto was given.
3254 if test "${enable_fileproto+set}" = set; then
3255 enableval="$enable_fileproto"
3256
3257 if test "$enableval" = yes; then
3258 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3259 else
3260 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3261 fi
3262
3263 else
3264
3265 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3266 if test "x$LINE" != x ; then
3267 eval "DEFAULT_$LINE"
3268 else
3269 no_cache=1
3270 fi
3271
3272 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3273
3274 fi
3275
3276
3277 eval "$ac_cv_use_fileproto"
3278 if test "$no_cache" != 1; then
3279 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3280 fi
3281
3282 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3283 echo "$ac_t""yes" 1>&6
3284 else
3285 echo "$ac_t""no" 1>&6
3286 fi
3287
3288
3289 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3290 echo "configure:3291: checking for --enable-sockets" >&5
3291 no_cache=0
3292 # Check whether --enable-sockets or --disable-sockets was given.
3293 if test "${enable_sockets+set}" = set; then
3294 enableval="$enable_sockets"
3295
3296 if test "$enableval" = yes; then
3297 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3298 else
3299 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3300 fi
3301
3302 else
3303
3304 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3305 if test "x$LINE" != x ; then
3306 eval "DEFAULT_$LINE"
3307 else
3308 no_cache=1
3309 fi
3310
3311 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3312
3313 fi
3314
3315
3316 eval "$ac_cv_use_sockets"
3317 if test "$no_cache" != 1; then
3318 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3319 fi
3320
3321 if test "$wxUSE_SOCKETS" = yes; then
3322 echo "$ac_t""yes" 1>&6
3323 else
3324 echo "$ac_t""no" 1>&6
3325 fi
3326
3327
3328
3329 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3330 echo "configure:3331: checking for --enable-ipc" >&5
3331 no_cache=0
3332 # Check whether --enable-ipc or --disable-ipc was given.
3333 if test "${enable_ipc+set}" = set; then
3334 enableval="$enable_ipc"
3335
3336 if test "$enableval" = yes; then
3337 ac_cv_use_ipc='wxUSE_IPC=yes'
3338 else
3339 ac_cv_use_ipc='wxUSE_IPC=no'
3340 fi
3341
3342 else
3343
3344 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3345 if test "x$LINE" != x ; then
3346 eval "DEFAULT_$LINE"
3347 else
3348 no_cache=1
3349 fi
3350
3351 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3352
3353 fi
3354
3355
3356 eval "$ac_cv_use_ipc"
3357 if test "$no_cache" != 1; then
3358 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3359 fi
3360
3361 if test "$wxUSE_IPC" = yes; then
3362 echo "$ac_t""yes" 1>&6
3363 else
3364 echo "$ac_t""no" 1>&6
3365 fi
3366
3367
3368
3369 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3370 echo "configure:3371: checking for --enable-cmdline" >&5
3371 no_cache=0
3372 # Check whether --enable-cmdline or --disable-cmdline was given.
3373 if test "${enable_cmdline+set}" = set; then
3374 enableval="$enable_cmdline"
3375
3376 if test "$enableval" = yes; then
3377 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3378 else
3379 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3380 fi
3381
3382 else
3383
3384 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3385 if test "x$LINE" != x ; then
3386 eval "DEFAULT_$LINE"
3387 else
3388 no_cache=1
3389 fi
3390
3391 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3392
3393 fi
3394
3395
3396 eval "$ac_cv_use_cmdline"
3397 if test "$no_cache" != 1; then
3398 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3399 fi
3400
3401 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3402 echo "$ac_t""yes" 1>&6
3403 else
3404 echo "$ac_t""no" 1>&6
3405 fi
3406
3407
3408 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3409 echo "configure:3410: checking for --enable-datetime" >&5
3410 no_cache=0
3411 # Check whether --enable-datetime or --disable-datetime was given.
3412 if test "${enable_datetime+set}" = set; then
3413 enableval="$enable_datetime"
3414
3415 if test "$enableval" = yes; then
3416 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3417 else
3418 ac_cv_use_datetime='wxUSE_DATETIME=no'
3419 fi
3420
3421 else
3422
3423 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3424 if test "x$LINE" != x ; then
3425 eval "DEFAULT_$LINE"
3426 else
3427 no_cache=1
3428 fi
3429
3430 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3431
3432 fi
3433
3434
3435 eval "$ac_cv_use_datetime"
3436 if test "$no_cache" != 1; then
3437 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3438 fi
3439
3440 if test "$wxUSE_DATETIME" = yes; then
3441 echo "$ac_t""yes" 1>&6
3442 else
3443 echo "$ac_t""no" 1>&6
3444 fi
3445
3446
3447 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3448 echo "configure:3449: checking for --enable-timedate" >&5
3449 no_cache=0
3450 # Check whether --enable-timedate or --disable-timedate was given.
3451 if test "${enable_timedate+set}" = set; then
3452 enableval="$enable_timedate"
3453
3454 if test "$enableval" = yes; then
3455 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3456 else
3457 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3458 fi
3459
3460 else
3461
3462 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3463 if test "x$LINE" != x ; then
3464 eval "DEFAULT_$LINE"
3465 else
3466 no_cache=1
3467 fi
3468
3469 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3470
3471 fi
3472
3473
3474 eval "$ac_cv_use_timedate"
3475 if test "$no_cache" != 1; then
3476 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3477 fi
3478
3479 if test "$wxUSE_TIMEDATE" = yes; then
3480 echo "$ac_t""yes" 1>&6
3481 else
3482 echo "$ac_t""no" 1>&6
3483 fi
3484
3485
3486 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3487 echo "configure:3488: checking for --enable-stopwatch" >&5
3488 no_cache=0
3489 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3490 if test "${enable_stopwatch+set}" = set; then
3491 enableval="$enable_stopwatch"
3492
3493 if test "$enableval" = yes; then
3494 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3495 else
3496 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3497 fi
3498
3499 else
3500
3501 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3502 if test "x$LINE" != x ; then
3503 eval "DEFAULT_$LINE"
3504 else
3505 no_cache=1
3506 fi
3507
3508 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3509
3510 fi
3511
3512
3513 eval "$ac_cv_use_stopwatch"
3514 if test "$no_cache" != 1; then
3515 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3516 fi
3517
3518 if test "$wxUSE_STOPWATCH" = yes; then
3519 echo "$ac_t""yes" 1>&6
3520 else
3521 echo "$ac_t""no" 1>&6
3522 fi
3523
3524
3525 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3526 echo "configure:3527: checking for --enable-dialupman" >&5
3527 no_cache=0
3528 # Check whether --enable-dialupman or --disable-dialupman was given.
3529 if test "${enable_dialupman+set}" = set; then
3530 enableval="$enable_dialupman"
3531
3532 if test "$enableval" = yes; then
3533 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3534 else
3535 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3536 fi
3537
3538 else
3539
3540 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3541 if test "x$LINE" != x ; then
3542 eval "DEFAULT_$LINE"
3543 else
3544 no_cache=1
3545 fi
3546
3547 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3548
3549 fi
3550
3551
3552 eval "$ac_cv_use_dialupman"
3553 if test "$no_cache" != 1; then
3554 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3555 fi
3556
3557 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3558 echo "$ac_t""yes" 1>&6
3559 else
3560 echo "$ac_t""no" 1>&6
3561 fi
3562
3563
3564 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3565 echo "configure:3566: checking for --enable-apple_ieee" >&5
3566 no_cache=0
3567 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3568 if test "${enable_apple_ieee+set}" = set; then
3569 enableval="$enable_apple_ieee"
3570
3571 if test "$enableval" = yes; then
3572 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3573 else
3574 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3575 fi
3576
3577 else
3578
3579 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3580 if test "x$LINE" != x ; then
3581 eval "DEFAULT_$LINE"
3582 else
3583 no_cache=1
3584 fi
3585
3586 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3587
3588 fi
3589
3590
3591 eval "$ac_cv_use_apple_ieee"
3592 if test "$no_cache" != 1; then
3593 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3594 fi
3595
3596 if test "$wxUSE_APPLE_IEEE" = yes; then
3597 echo "$ac_t""yes" 1>&6
3598 else
3599 echo "$ac_t""no" 1>&6
3600 fi
3601
3602
3603 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3604 echo "configure:3605: checking for --enable-timer" >&5
3605 no_cache=0
3606 # Check whether --enable-timer or --disable-timer was given.
3607 if test "${enable_timer+set}" = set; then
3608 enableval="$enable_timer"
3609
3610 if test "$enableval" = yes; then
3611 ac_cv_use_timer='wxUSE_TIMER=yes'
3612 else
3613 ac_cv_use_timer='wxUSE_TIMER=no'
3614 fi
3615
3616 else
3617
3618 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3619 if test "x$LINE" != x ; then
3620 eval "DEFAULT_$LINE"
3621 else
3622 no_cache=1
3623 fi
3624
3625 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3626
3627 fi
3628
3629
3630 eval "$ac_cv_use_timer"
3631 if test "$no_cache" != 1; then
3632 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3633 fi
3634
3635 if test "$wxUSE_TIMER" = yes; then
3636 echo "$ac_t""yes" 1>&6
3637 else
3638 echo "$ac_t""no" 1>&6
3639 fi
3640
3641
3642 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3643 echo "configure:3644: checking for --enable-wave" >&5
3644 no_cache=0
3645 # Check whether --enable-wave or --disable-wave was given.
3646 if test "${enable_wave+set}" = set; then
3647 enableval="$enable_wave"
3648
3649 if test "$enableval" = yes; then
3650 ac_cv_use_wave='wxUSE_WAVE=yes'
3651 else
3652 ac_cv_use_wave='wxUSE_WAVE=no'
3653 fi
3654
3655 else
3656
3657 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3658 if test "x$LINE" != x ; then
3659 eval "DEFAULT_$LINE"
3660 else
3661 no_cache=1
3662 fi
3663
3664 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3665
3666 fi
3667
3668
3669 eval "$ac_cv_use_wave"
3670 if test "$no_cache" != 1; then
3671 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3672 fi
3673
3674 if test "$wxUSE_WAVE" = yes; then
3675 echo "$ac_t""yes" 1>&6
3676 else
3677 echo "$ac_t""no" 1>&6
3678 fi
3679
3680
3681 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3682 echo "configure:3683: checking for --enable-fraction" >&5
3683 no_cache=0
3684 # Check whether --enable-fraction or --disable-fraction was given.
3685 if test "${enable_fraction+set}" = set; then
3686 enableval="$enable_fraction"
3687
3688 if test "$enableval" = yes; then
3689 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3690 else
3691 ac_cv_use_fraction='wxUSE_FRACTION=no'
3692 fi
3693
3694 else
3695
3696 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3697 if test "x$LINE" != x ; then
3698 eval "DEFAULT_$LINE"
3699 else
3700 no_cache=1
3701 fi
3702
3703 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3704
3705 fi
3706
3707
3708 eval "$ac_cv_use_fraction"
3709 if test "$no_cache" != 1; then
3710 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3711 fi
3712
3713 if test "$wxUSE_FRACTION" = yes; then
3714 echo "$ac_t""yes" 1>&6
3715 else
3716 echo "$ac_t""no" 1>&6
3717 fi
3718
3719
3720 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3721 echo "configure:3722: checking for --enable-dynlib" >&5
3722 no_cache=0
3723 # Check whether --enable-dynlib or --disable-dynlib was given.
3724 if test "${enable_dynlib+set}" = set; then
3725 enableval="$enable_dynlib"
3726
3727 if test "$enableval" = yes; then
3728 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3729 else
3730 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3731 fi
3732
3733 else
3734
3735 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3736 if test "x$LINE" != x ; then
3737 eval "DEFAULT_$LINE"
3738 else
3739 no_cache=1
3740 fi
3741
3742 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3743
3744 fi
3745
3746
3747 eval "$ac_cv_use_dynlib"
3748 if test "$no_cache" != 1; then
3749 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3750 fi
3751
3752 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3753 echo "$ac_t""yes" 1>&6
3754 else
3755 echo "$ac_t""no" 1>&6
3756 fi
3757
3758
3759 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3760 echo "configure:3761: checking for --enable-dynamicloader" >&5
3761 no_cache=0
3762 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3763 if test "${enable_dynamicloader+set}" = set; then
3764 enableval="$enable_dynamicloader"
3765
3766 if test "$enableval" = yes; then
3767 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3768 else
3769 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3770 fi
3771
3772 else
3773
3774 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3775 if test "x$LINE" != x ; then
3776 eval "DEFAULT_$LINE"
3777 else
3778 no_cache=1
3779 fi
3780
3781 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3782
3783 fi
3784
3785
3786 eval "$ac_cv_use_dynamicloader"
3787 if test "$no_cache" != 1; then
3788 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3789 fi
3790
3791 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3792 echo "$ac_t""yes" 1>&6
3793 else
3794 echo "$ac_t""no" 1>&6
3795 fi
3796
3797
3798 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3799 echo "configure:3800: checking for --enable-longlong" >&5
3800 no_cache=0
3801 # Check whether --enable-longlong or --disable-longlong was given.
3802 if test "${enable_longlong+set}" = set; then
3803 enableval="$enable_longlong"
3804
3805 if test "$enableval" = yes; then
3806 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3807 else
3808 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3809 fi
3810
3811 else
3812
3813 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3814 if test "x$LINE" != x ; then
3815 eval "DEFAULT_$LINE"
3816 else
3817 no_cache=1
3818 fi
3819
3820 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3821
3822 fi
3823
3824
3825 eval "$ac_cv_use_longlong"
3826 if test "$no_cache" != 1; then
3827 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3828 fi
3829
3830 if test "$wxUSE_LONGLONG" = yes; then
3831 echo "$ac_t""yes" 1>&6
3832 else
3833 echo "$ac_t""no" 1>&6
3834 fi
3835
3836
3837 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3838 echo "configure:3839: checking for --enable-geometry" >&5
3839 no_cache=0
3840 # Check whether --enable-geometry or --disable-geometry was given.
3841 if test "${enable_geometry+set}" = set; then
3842 enableval="$enable_geometry"
3843
3844 if test "$enableval" = yes; then
3845 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3846 else
3847 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3848 fi
3849
3850 else
3851
3852 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3853 if test "x$LINE" != x ; then
3854 eval "DEFAULT_$LINE"
3855 else
3856 no_cache=1
3857 fi
3858
3859 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3860
3861 fi
3862
3863
3864 eval "$ac_cv_use_geometry"
3865 if test "$no_cache" != 1; then
3866 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3867 fi
3868
3869 if test "$wxUSE_GEOMETRY" = yes; then
3870 echo "$ac_t""yes" 1>&6
3871 else
3872 echo "$ac_t""no" 1>&6
3873 fi
3874
3875
3876 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3877 echo "configure:3878: checking for --enable-log" >&5
3878 no_cache=0
3879 # Check whether --enable-log or --disable-log was given.
3880 if test "${enable_log+set}" = set; then
3881 enableval="$enable_log"
3882
3883 if test "$enableval" = yes; then
3884 ac_cv_use_log='wxUSE_LOG=yes'
3885 else
3886 ac_cv_use_log='wxUSE_LOG=no'
3887 fi
3888
3889 else
3890
3891 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3892 if test "x$LINE" != x ; then
3893 eval "DEFAULT_$LINE"
3894 else
3895 no_cache=1
3896 fi
3897
3898 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3899
3900 fi
3901
3902
3903 eval "$ac_cv_use_log"
3904 if test "$no_cache" != 1; then
3905 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3906 fi
3907
3908 if test "$wxUSE_LOG" = yes; then
3909 echo "$ac_t""yes" 1>&6
3910 else
3911 echo "$ac_t""no" 1>&6
3912 fi
3913
3914
3915 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3916 echo "configure:3917: checking for --enable-streams" >&5
3917 no_cache=0
3918 # Check whether --enable-streams or --disable-streams was given.
3919 if test "${enable_streams+set}" = set; then
3920 enableval="$enable_streams"
3921
3922 if test "$enableval" = yes; then
3923 ac_cv_use_streams='wxUSE_STREAMS=yes'
3924 else
3925 ac_cv_use_streams='wxUSE_STREAMS=no'
3926 fi
3927
3928 else
3929
3930 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3931 if test "x$LINE" != x ; then
3932 eval "DEFAULT_$LINE"
3933 else
3934 no_cache=1
3935 fi
3936
3937 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3938
3939 fi
3940
3941
3942 eval "$ac_cv_use_streams"
3943 if test "$no_cache" != 1; then
3944 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3945 fi
3946
3947 if test "$wxUSE_STREAMS" = yes; then
3948 echo "$ac_t""yes" 1>&6
3949 else
3950 echo "$ac_t""no" 1>&6
3951 fi
3952
3953
3954 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3955 echo "configure:3956: checking for --enable-file" >&5
3956 no_cache=0
3957 # Check whether --enable-file or --disable-file was given.
3958 if test "${enable_file+set}" = set; then
3959 enableval="$enable_file"
3960
3961 if test "$enableval" = yes; then
3962 ac_cv_use_file='wxUSE_FILE=yes'
3963 else
3964 ac_cv_use_file='wxUSE_FILE=no'
3965 fi
3966
3967 else
3968
3969 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3970 if test "x$LINE" != x ; then
3971 eval "DEFAULT_$LINE"
3972 else
3973 no_cache=1
3974 fi
3975
3976 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3977
3978 fi
3979
3980
3981 eval "$ac_cv_use_file"
3982 if test "$no_cache" != 1; then
3983 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3984 fi
3985
3986 if test "$wxUSE_FILE" = yes; then
3987 echo "$ac_t""yes" 1>&6
3988 else
3989 echo "$ac_t""no" 1>&6
3990 fi
3991
3992
3993 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3994 echo "configure:3995: checking for --enable-ffile" >&5
3995 no_cache=0
3996 # Check whether --enable-ffile or --disable-ffile was given.
3997 if test "${enable_ffile+set}" = set; then
3998 enableval="$enable_ffile"
3999
4000 if test "$enableval" = yes; then
4001 ac_cv_use_ffile='wxUSE_FFILE=yes'
4002 else
4003 ac_cv_use_ffile='wxUSE_FFILE=no'
4004 fi
4005
4006 else
4007
4008 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4009 if test "x$LINE" != x ; then
4010 eval "DEFAULT_$LINE"
4011 else
4012 no_cache=1
4013 fi
4014
4015 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4016
4017 fi
4018
4019
4020 eval "$ac_cv_use_ffile"
4021 if test "$no_cache" != 1; then
4022 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4023 fi
4024
4025 if test "$wxUSE_FFILE" = yes; then
4026 echo "$ac_t""yes" 1>&6
4027 else
4028 echo "$ac_t""no" 1>&6
4029 fi
4030
4031
4032 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
4033 echo "configure:4034: checking for --enable-textbuf" >&5
4034 no_cache=0
4035 # Check whether --enable-textbuf or --disable-textbuf was given.
4036 if test "${enable_textbuf+set}" = set; then
4037 enableval="$enable_textbuf"
4038
4039 if test "$enableval" = yes; then
4040 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4041 else
4042 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4043 fi
4044
4045 else
4046
4047 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4055
4056 fi
4057
4058
4059 eval "$ac_cv_use_textbuf"
4060 if test "$no_cache" != 1; then
4061 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4062 fi
4063
4064 if test "$wxUSE_TEXTBUFFER" = yes; then
4065 echo "$ac_t""yes" 1>&6
4066 else
4067 echo "$ac_t""no" 1>&6
4068 fi
4069
4070
4071 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4072 echo "configure:4073: checking for --enable-textfile" >&5
4073 no_cache=0
4074 # Check whether --enable-textfile or --disable-textfile was given.
4075 if test "${enable_textfile+set}" = set; then
4076 enableval="$enable_textfile"
4077
4078 if test "$enableval" = yes; then
4079 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4080 else
4081 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4082 fi
4083
4084 else
4085
4086 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4087 if test "x$LINE" != x ; then
4088 eval "DEFAULT_$LINE"
4089 else
4090 no_cache=1
4091 fi
4092
4093 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4094
4095 fi
4096
4097
4098 eval "$ac_cv_use_textfile"
4099 if test "$no_cache" != 1; then
4100 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4101 fi
4102
4103 if test "$wxUSE_TEXTFILE" = yes; then
4104 echo "$ac_t""yes" 1>&6
4105 else
4106 echo "$ac_t""no" 1>&6
4107 fi
4108
4109
4110 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4111 echo "configure:4112: checking for --enable-fontmap" >&5
4112 no_cache=0
4113 # Check whether --enable-fontmap or --disable-fontmap was given.
4114 if test "${enable_fontmap+set}" = set; then
4115 enableval="$enable_fontmap"
4116
4117 if test "$enableval" = yes; then
4118 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4119 else
4120 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4121 fi
4122
4123 else
4124
4125 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4126 if test "x$LINE" != x ; then
4127 eval "DEFAULT_$LINE"
4128 else
4129 no_cache=1
4130 fi
4131
4132 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4133
4134 fi
4135
4136
4137 eval "$ac_cv_use_fontmap"
4138 if test "$no_cache" != 1; then
4139 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4140 fi
4141
4142 if test "$wxUSE_FONTMAP" = yes; then
4143 echo "$ac_t""yes" 1>&6
4144 else
4145 echo "$ac_t""no" 1>&6
4146 fi
4147
4148
4149 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4150 echo "configure:4151: checking for --enable-unicode" >&5
4151 no_cache=0
4152 # Check whether --enable-unicode or --disable-unicode was given.
4153 if test "${enable_unicode+set}" = set; then
4154 enableval="$enable_unicode"
4155
4156 if test "$enableval" = yes; then
4157 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4158 else
4159 ac_cv_use_unicode='wxUSE_UNICODE=no'
4160 fi
4161
4162 else
4163
4164 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4165 if test "x$LINE" != x ; then
4166 eval "DEFAULT_$LINE"
4167 else
4168 no_cache=1
4169 fi
4170
4171 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4172
4173 fi
4174
4175
4176 eval "$ac_cv_use_unicode"
4177 if test "$no_cache" != 1; then
4178 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4179 fi
4180
4181 if test "$wxUSE_UNICODE" = yes; then
4182 echo "$ac_t""yes" 1>&6
4183 else
4184 echo "$ac_t""no" 1>&6
4185 fi
4186
4187
4188 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4189 echo "configure:4190: checking for --enable-mslu" >&5
4190 no_cache=0
4191 # Check whether --enable-mslu or --disable-mslu was given.
4192 if test "${enable_mslu+set}" = set; then
4193 enableval="$enable_mslu"
4194
4195 if test "$enableval" = yes; then
4196 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4197 else
4198 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4199 fi
4200
4201 else
4202
4203 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4204 if test "x$LINE" != x ; then
4205 eval "DEFAULT_$LINE"
4206 else
4207 no_cache=1
4208 fi
4209
4210 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4211
4212 fi
4213
4214
4215 eval "$ac_cv_use_mslu"
4216 if test "$no_cache" != 1; then
4217 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4218 fi
4219
4220 if test "$wxUSE_UNICODE_MSLU" = yes; then
4221 echo "$ac_t""yes" 1>&6
4222 else
4223 echo "$ac_t""no" 1>&6
4224 fi
4225
4226
4227 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4228 echo "configure:4229: checking for --enable-wxprintfv" >&5
4229 no_cache=0
4230 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4231 if test "${enable_wxprintfv+set}" = set; then
4232 enableval="$enable_wxprintfv"
4233
4234 if test "$enableval" = yes; then
4235 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4236 else
4237 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4238 fi
4239
4240 else
4241
4242 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4243 if test "x$LINE" != x ; then
4244 eval "DEFAULT_$LINE"
4245 else
4246 no_cache=1
4247 fi
4248
4249 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4250
4251 fi
4252
4253
4254 eval "$ac_cv_use_wxprintfv"
4255 if test "$no_cache" != 1; then
4256 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4257 fi
4258
4259 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4260 echo "$ac_t""yes" 1>&6
4261 else
4262 echo "$ac_t""no" 1>&6
4263 fi
4264
4265
4266 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4267 echo "configure:4268: checking for --enable-std_iostreams" >&5
4268 no_cache=0
4269 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4270 if test "${enable_std_iostreams+set}" = set; then
4271 enableval="$enable_std_iostreams"
4272
4273 if test "$enableval" = yes; then
4274 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4275 else
4276 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4277 fi
4278
4279 else
4280
4281 LINE=`grep "wxUSE_STD_IOSTREAM" ${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_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4289
4290 fi
4291
4292
4293 eval "$ac_cv_use_std_iostreams"
4294 if test "$no_cache" != 1; then
4295 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4296 fi
4297
4298 if test "$wxUSE_STD_IOSTREAM" = yes; then
4299 echo "$ac_t""yes" 1>&6
4300 else
4301 echo "$ac_t""no" 1>&6
4302 fi
4303
4304
4305 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4306 echo "configure:4307: checking for --enable-filesystem" >&5
4307 no_cache=0
4308 # Check whether --enable-filesystem or --disable-filesystem was given.
4309 if test "${enable_filesystem+set}" = set; then
4310 enableval="$enable_filesystem"
4311
4312 if test "$enableval" = yes; then
4313 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4314 else
4315 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4316 fi
4317
4318 else
4319
4320 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4321 if test "x$LINE" != x ; then
4322 eval "DEFAULT_$LINE"
4323 else
4324 no_cache=1
4325 fi
4326
4327 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4328
4329 fi
4330
4331
4332 eval "$ac_cv_use_filesystem"
4333 if test "$no_cache" != 1; then
4334 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4335 fi
4336
4337 if test "$wxUSE_FILESYSTEM" = yes; then
4338 echo "$ac_t""yes" 1>&6
4339 else
4340 echo "$ac_t""no" 1>&6
4341 fi
4342
4343
4344 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4345 echo "configure:4346: checking for --enable-fs_inet" >&5
4346 no_cache=0
4347 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4348 if test "${enable_fs_inet+set}" = set; then
4349 enableval="$enable_fs_inet"
4350
4351 if test "$enableval" = yes; then
4352 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4353 else
4354 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4355 fi
4356
4357 else
4358
4359 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4360 if test "x$LINE" != x ; then
4361 eval "DEFAULT_$LINE"
4362 else
4363 no_cache=1
4364 fi
4365
4366 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4367
4368 fi
4369
4370
4371 eval "$ac_cv_use_fs_inet"
4372 if test "$no_cache" != 1; then
4373 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4374 fi
4375
4376 if test "$wxUSE_FS_INET" = yes; then
4377 echo "$ac_t""yes" 1>&6
4378 else
4379 echo "$ac_t""no" 1>&6
4380 fi
4381
4382
4383 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4384 echo "configure:4385: checking for --enable-fs_zip" >&5
4385 no_cache=0
4386 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4387 if test "${enable_fs_zip+set}" = set; then
4388 enableval="$enable_fs_zip"
4389
4390 if test "$enableval" = yes; then
4391 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4392 else
4393 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4394 fi
4395
4396 else
4397
4398 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4399 if test "x$LINE" != x ; then
4400 eval "DEFAULT_$LINE"
4401 else
4402 no_cache=1
4403 fi
4404
4405 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4406
4407 fi
4408
4409
4410 eval "$ac_cv_use_fs_zip"
4411 if test "$no_cache" != 1; then
4412 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4413 fi
4414
4415 if test "$wxUSE_FS_ZIP" = yes; then
4416 echo "$ac_t""yes" 1>&6
4417 else
4418 echo "$ac_t""no" 1>&6
4419 fi
4420
4421
4422 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4423 echo "configure:4424: checking for --enable-zipstream" >&5
4424 no_cache=0
4425 # Check whether --enable-zipstream or --disable-zipstream was given.
4426 if test "${enable_zipstream+set}" = set; then
4427 enableval="$enable_zipstream"
4428
4429 if test "$enableval" = yes; then
4430 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4431 else
4432 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4433 fi
4434
4435 else
4436
4437 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4438 if test "x$LINE" != x ; then
4439 eval "DEFAULT_$LINE"
4440 else
4441 no_cache=1
4442 fi
4443
4444 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4445
4446 fi
4447
4448
4449 eval "$ac_cv_use_zipstream"
4450 if test "$no_cache" != 1; then
4451 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4452 fi
4453
4454 if test "$wxUSE_ZIPSTREAM" = yes; then
4455 echo "$ac_t""yes" 1>&6
4456 else
4457 echo "$ac_t""no" 1>&6
4458 fi
4459
4460
4461
4462 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4463 echo "configure:4464: checking for --enable-catch_segvs" >&5
4464 no_cache=0
4465 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4466 if test "${enable_catch_segvs+set}" = set; then
4467 enableval="$enable_catch_segvs"
4468
4469 if test "$enableval" = yes; then
4470 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4471 else
4472 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4473 fi
4474
4475 else
4476
4477 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4478 if test "x$LINE" != x ; then
4479 eval "DEFAULT_$LINE"
4480 else
4481 no_cache=1
4482 fi
4483
4484 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4485
4486 fi
4487
4488
4489 eval "$ac_cv_use_catch_segvs"
4490 if test "$no_cache" != 1; then
4491 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4492 fi
4493
4494 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4495 echo "$ac_t""yes" 1>&6
4496 else
4497 echo "$ac_t""no" 1>&6
4498 fi
4499
4500
4501 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4502 echo "configure:4503: checking for --enable-snglinst" >&5
4503 no_cache=0
4504 # Check whether --enable-snglinst or --disable-snglinst was given.
4505 if test "${enable_snglinst+set}" = set; then
4506 enableval="$enable_snglinst"
4507
4508 if test "$enableval" = yes; then
4509 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4510 else
4511 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4512 fi
4513
4514 else
4515
4516 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4517 if test "x$LINE" != x ; then
4518 eval "DEFAULT_$LINE"
4519 else
4520 no_cache=1
4521 fi
4522
4523 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4524
4525 fi
4526
4527
4528 eval "$ac_cv_use_snglinst"
4529 if test "$no_cache" != 1; then
4530 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4531 fi
4532
4533 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4534 echo "$ac_t""yes" 1>&6
4535 else
4536 echo "$ac_t""no" 1>&6
4537 fi
4538
4539
4540
4541 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4542 echo "configure:4543: checking for --enable-mimetype" >&5
4543 no_cache=0
4544 # Check whether --enable-mimetype or --disable-mimetype was given.
4545 if test "${enable_mimetype+set}" = set; then
4546 enableval="$enable_mimetype"
4547
4548 if test "$enableval" = yes; then
4549 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4550 else
4551 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4552 fi
4553
4554 else
4555
4556 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4557 if test "x$LINE" != x ; then
4558 eval "DEFAULT_$LINE"
4559 else
4560 no_cache=1
4561 fi
4562
4563 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4564
4565 fi
4566
4567
4568 eval "$ac_cv_use_mimetype"
4569 if test "$no_cache" != 1; then
4570 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4571 fi
4572
4573 if test "$wxUSE_MIMETYPE" = yes; then
4574 echo "$ac_t""yes" 1>&6
4575 else
4576 echo "$ac_t""no" 1>&6
4577 fi
4578
4579
4580 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4581 echo "configure:4582: checking for --enable-system_options" >&5
4582 no_cache=0
4583 # Check whether --enable-system_options or --disable-system_options was given.
4584 if test "${enable_system_options+set}" = set; then
4585 enableval="$enable_system_options"
4586
4587 if test "$enableval" = yes; then
4588 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4589 else
4590 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4591 fi
4592
4593 else
4594
4595 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4596 if test "x$LINE" != x ; then
4597 eval "DEFAULT_$LINE"
4598 else
4599 no_cache=1
4600 fi
4601
4602 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4603
4604 fi
4605
4606
4607 eval "$ac_cv_use_system_options"
4608 if test "$no_cache" != 1; then
4609 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4610 fi
4611
4612 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4613 echo "$ac_t""yes" 1>&6
4614 else
4615 echo "$ac_t""no" 1>&6
4616 fi
4617
4618
4619
4620 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4621 echo "configure:4622: checking for --enable-url" >&5
4622 no_cache=0
4623 # Check whether --enable-url or --disable-url was given.
4624 if test "${enable_url+set}" = set; then
4625 enableval="$enable_url"
4626
4627 if test "$enableval" = yes; then
4628 ac_cv_use_url='wxUSE_URL=yes'
4629 else
4630 ac_cv_use_url='wxUSE_URL=no'
4631 fi
4632
4633 else
4634
4635 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4636 if test "x$LINE" != x ; then
4637 eval "DEFAULT_$LINE"
4638 else
4639 no_cache=1
4640 fi
4641
4642 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4643
4644 fi
4645
4646
4647 eval "$ac_cv_use_url"
4648 if test "$no_cache" != 1; then
4649 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4650 fi
4651
4652 if test "$wxUSE_URL" = yes; then
4653 echo "$ac_t""yes" 1>&6
4654 else
4655 echo "$ac_t""no" 1>&6
4656 fi
4657
4658
4659 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4660 echo "configure:4661: checking for --enable-protocol" >&5
4661 no_cache=0
4662 # Check whether --enable-protocol or --disable-protocol was given.
4663 if test "${enable_protocol+set}" = set; then
4664 enableval="$enable_protocol"
4665
4666 if test "$enableval" = yes; then
4667 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4668 else
4669 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4670 fi
4671
4672 else
4673
4674 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4675 if test "x$LINE" != x ; then
4676 eval "DEFAULT_$LINE"
4677 else
4678 no_cache=1
4679 fi
4680
4681 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4682
4683 fi
4684
4685
4686 eval "$ac_cv_use_protocol"
4687 if test "$no_cache" != 1; then
4688 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4689 fi
4690
4691 if test "$wxUSE_PROTOCOL" = yes; then
4692 echo "$ac_t""yes" 1>&6
4693 else
4694 echo "$ac_t""no" 1>&6
4695 fi
4696
4697
4698 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4699 echo "configure:4700: checking for --enable-protocol_http" >&5
4700 no_cache=0
4701 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4702 if test "${enable_protocol_http+set}" = set; then
4703 enableval="$enable_protocol_http"
4704
4705 if test "$enableval" = yes; then
4706 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4707 else
4708 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4709 fi
4710
4711 else
4712
4713 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4714 if test "x$LINE" != x ; then
4715 eval "DEFAULT_$LINE"
4716 else
4717 no_cache=1
4718 fi
4719
4720 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4721
4722 fi
4723
4724
4725 eval "$ac_cv_use_protocol_http"
4726 if test "$no_cache" != 1; then
4727 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4728 fi
4729
4730 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4731 echo "$ac_t""yes" 1>&6
4732 else
4733 echo "$ac_t""no" 1>&6
4734 fi
4735
4736
4737 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4738 echo "configure:4739: checking for --enable-protocol_ftp" >&5
4739 no_cache=0
4740 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4741 if test "${enable_protocol_ftp+set}" = set; then
4742 enableval="$enable_protocol_ftp"
4743
4744 if test "$enableval" = yes; then
4745 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4746 else
4747 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4748 fi
4749
4750 else
4751
4752 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4753 if test "x$LINE" != x ; then
4754 eval "DEFAULT_$LINE"
4755 else
4756 no_cache=1
4757 fi
4758
4759 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4760
4761 fi
4762
4763
4764 eval "$ac_cv_use_protocol_ftp"
4765 if test "$no_cache" != 1; then
4766 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4767 fi
4768
4769 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4770 echo "$ac_t""yes" 1>&6
4771 else
4772 echo "$ac_t""no" 1>&6
4773 fi
4774
4775
4776 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4777 echo "configure:4778: checking for --enable-protocol_file" >&5
4778 no_cache=0
4779 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4780 if test "${enable_protocol_file+set}" = set; then
4781 enableval="$enable_protocol_file"
4782
4783 if test "$enableval" = yes; then
4784 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4785 else
4786 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4787 fi
4788
4789 else
4790
4791 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4792 if test "x$LINE" != x ; then
4793 eval "DEFAULT_$LINE"
4794 else
4795 no_cache=1
4796 fi
4797
4798 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4799
4800 fi
4801
4802
4803 eval "$ac_cv_use_protocol_file"
4804 if test "$no_cache" != 1; then
4805 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4806 fi
4807
4808 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4809 echo "$ac_t""yes" 1>&6
4810 else
4811 echo "$ac_t""no" 1>&6
4812 fi
4813
4814
4815
4816
4817
4818 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4819 echo "configure:4820: checking for --enable-threads" >&5
4820 no_cache=0
4821 # Check whether --enable-threads or --disable-threads was given.
4822 if test "${enable_threads+set}" = set; then
4823 enableval="$enable_threads"
4824
4825 if test "$enableval" = yes; then
4826 ac_cv_use_threads='wxUSE_THREADS=yes'
4827 else
4828 ac_cv_use_threads='wxUSE_THREADS=no'
4829 fi
4830
4831 else
4832
4833 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4834 if test "x$LINE" != x ; then
4835 eval "DEFAULT_$LINE"
4836 else
4837 no_cache=1
4838 fi
4839
4840 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4841
4842 fi
4843
4844
4845 eval "$ac_cv_use_threads"
4846 if test "$no_cache" != 1; then
4847 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4848 fi
4849
4850 if test "$wxUSE_THREADS" = yes; then
4851 echo "$ac_t""yes" 1>&6
4852 else
4853 echo "$ac_t""no" 1>&6
4854 fi
4855
4856
4857 if test "$wxUSE_GUI" = "yes"; then
4858
4859
4860
4861 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4862 echo "configure:4863: checking for --enable-docview" >&5
4863 no_cache=0
4864 # Check whether --enable-docview or --disable-docview was given.
4865 if test "${enable_docview+set}" = set; then
4866 enableval="$enable_docview"
4867
4868 if test "$enableval" = yes; then
4869 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4870 else
4871 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4872 fi
4873
4874 else
4875
4876 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4877 if test "x$LINE" != x ; then
4878 eval "DEFAULT_$LINE"
4879 else
4880 no_cache=1
4881 fi
4882
4883 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4884
4885 fi
4886
4887
4888 eval "$ac_cv_use_docview"
4889 if test "$no_cache" != 1; then
4890 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4891 fi
4892
4893 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4894 echo "$ac_t""yes" 1>&6
4895 else
4896 echo "$ac_t""no" 1>&6
4897 fi
4898
4899
4900 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4901 echo "configure:4902: checking for --enable-help" >&5
4902 no_cache=0
4903 # Check whether --enable-help or --disable-help was given.
4904 if test "${enable_help+set}" = set; then
4905 enableval="$enable_help"
4906
4907 if test "$enableval" = yes; then
4908 ac_cv_use_help='wxUSE_HELP=yes'
4909 else
4910 ac_cv_use_help='wxUSE_HELP=no'
4911 fi
4912
4913 else
4914
4915 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4916 if test "x$LINE" != x ; then
4917 eval "DEFAULT_$LINE"
4918 else
4919 no_cache=1
4920 fi
4921
4922 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4923
4924 fi
4925
4926
4927 eval "$ac_cv_use_help"
4928 if test "$no_cache" != 1; then
4929 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4930 fi
4931
4932 if test "$wxUSE_HELP" = yes; then
4933 echo "$ac_t""yes" 1>&6
4934 else
4935 echo "$ac_t""no" 1>&6
4936 fi
4937
4938
4939 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4940 echo "configure:4941: checking for --enable-mshtmlhelp" >&5
4941 no_cache=0
4942 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4943 if test "${enable_mshtmlhelp+set}" = set; then
4944 enableval="$enable_mshtmlhelp"
4945
4946 if test "$enableval" = yes; then
4947 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4948 else
4949 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4950 fi
4951
4952 else
4953
4954 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4955 if test "x$LINE" != x ; then
4956 eval "DEFAULT_$LINE"
4957 else
4958 no_cache=1
4959 fi
4960
4961 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4962
4963 fi
4964
4965
4966 eval "$ac_cv_use_mshtmlhelp"
4967 if test "$no_cache" != 1; then
4968 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4969 fi
4970
4971 if test "$wxUSE_MS_HTML_HELP" = yes; then
4972 echo "$ac_t""yes" 1>&6
4973 else
4974 echo "$ac_t""no" 1>&6
4975 fi
4976
4977
4978 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4979 echo "configure:4980: checking for --enable-html" >&5
4980 no_cache=0
4981 # Check whether --enable-html or --disable-html was given.
4982 if test "${enable_html+set}" = set; then
4983 enableval="$enable_html"
4984
4985 if test "$enableval" = yes; then
4986 ac_cv_use_html='wxUSE_HTML=yes'
4987 else
4988 ac_cv_use_html='wxUSE_HTML=no'
4989 fi
4990
4991 else
4992
4993 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4994 if test "x$LINE" != x ; then
4995 eval "DEFAULT_$LINE"
4996 else
4997 no_cache=1
4998 fi
4999
5000 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5001
5002 fi
5003
5004
5005 eval "$ac_cv_use_html"
5006 if test "$no_cache" != 1; then
5007 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5008 fi
5009
5010 if test "$wxUSE_HTML" = yes; then
5011 echo "$ac_t""yes" 1>&6
5012 else
5013 echo "$ac_t""no" 1>&6
5014 fi
5015
5016
5017 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
5018 echo "configure:5019: checking for --enable-htmlhelp" >&5
5019 no_cache=0
5020 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5021 if test "${enable_htmlhelp+set}" = set; then
5022 enableval="$enable_htmlhelp"
5023
5024 if test "$enableval" = yes; then
5025 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5026 else
5027 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5028 fi
5029
5030 else
5031
5032 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5033 if test "x$LINE" != x ; then
5034 eval "DEFAULT_$LINE"
5035 else
5036 no_cache=1
5037 fi
5038
5039 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5040
5041 fi
5042
5043
5044 eval "$ac_cv_use_htmlhelp"
5045 if test "$no_cache" != 1; then
5046 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5047 fi
5048
5049 if test "$wxUSE_WXHTML_HELP" = yes; then
5050 echo "$ac_t""yes" 1>&6
5051 else
5052 echo "$ac_t""no" 1>&6
5053 fi
5054
5055
5056 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5057 echo "configure:5058: checking for --enable-constraints" >&5
5058 no_cache=0
5059 # Check whether --enable-constraints or --disable-constraints was given.
5060 if test "${enable_constraints+set}" = set; then
5061 enableval="$enable_constraints"
5062
5063 if test "$enableval" = yes; then
5064 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5065 else
5066 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5067 fi
5068
5069 else
5070
5071 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5072 if test "x$LINE" != x ; then
5073 eval "DEFAULT_$LINE"
5074 else
5075 no_cache=1
5076 fi
5077
5078 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5079
5080 fi
5081
5082
5083 eval "$ac_cv_use_constraints"
5084 if test "$no_cache" != 1; then
5085 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5086 fi
5087
5088 if test "$wxUSE_CONSTRAINTS" = yes; then
5089 echo "$ac_t""yes" 1>&6
5090 else
5091 echo "$ac_t""no" 1>&6
5092 fi
5093
5094
5095 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5096 echo "configure:5097: checking for --enable-printarch" >&5
5097 no_cache=0
5098 # Check whether --enable-printarch or --disable-printarch was given.
5099 if test "${enable_printarch+set}" = set; then
5100 enableval="$enable_printarch"
5101
5102 if test "$enableval" = yes; then
5103 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5104 else
5105 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5106 fi
5107
5108 else
5109
5110 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5111 if test "x$LINE" != x ; then
5112 eval "DEFAULT_$LINE"
5113 else
5114 no_cache=1
5115 fi
5116
5117 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5118
5119 fi
5120
5121
5122 eval "$ac_cv_use_printarch"
5123 if test "$no_cache" != 1; then
5124 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5125 fi
5126
5127 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5128 echo "$ac_t""yes" 1>&6
5129 else
5130 echo "$ac_t""no" 1>&6
5131 fi
5132
5133
5134 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5135 echo "configure:5136: checking for --enable-mdi" >&5
5136 no_cache=0
5137 # Check whether --enable-mdi or --disable-mdi was given.
5138 if test "${enable_mdi+set}" = set; then
5139 enableval="$enable_mdi"
5140
5141 if test "$enableval" = yes; then
5142 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5143 else
5144 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5145 fi
5146
5147 else
5148
5149 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5150 if test "x$LINE" != x ; then
5151 eval "DEFAULT_$LINE"
5152 else
5153 no_cache=1
5154 fi
5155
5156 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5157
5158 fi
5159
5160
5161 eval "$ac_cv_use_mdi"
5162 if test "$no_cache" != 1; then
5163 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5164 fi
5165
5166 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5167 echo "$ac_t""yes" 1>&6
5168 else
5169 echo "$ac_t""no" 1>&6
5170 fi
5171
5172
5173 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5174 echo "configure:5175: checking for --enable-loggui" >&5
5175 no_cache=0
5176 # Check whether --enable-loggui or --disable-loggui was given.
5177 if test "${enable_loggui+set}" = set; then
5178 enableval="$enable_loggui"
5179
5180 if test "$enableval" = yes; then
5181 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5182 else
5183 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5184 fi
5185
5186 else
5187
5188 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5189 if test "x$LINE" != x ; then
5190 eval "DEFAULT_$LINE"
5191 else
5192 no_cache=1
5193 fi
5194
5195 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5196
5197 fi
5198
5199
5200 eval "$ac_cv_use_loggui"
5201 if test "$no_cache" != 1; then
5202 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5203 fi
5204
5205 if test "$wxUSE_LOGGUI" = yes; then
5206 echo "$ac_t""yes" 1>&6
5207 else
5208 echo "$ac_t""no" 1>&6
5209 fi
5210
5211
5212 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5213 echo "configure:5214: checking for --enable-logwin" >&5
5214 no_cache=0
5215 # Check whether --enable-logwin or --disable-logwin was given.
5216 if test "${enable_logwin+set}" = set; then
5217 enableval="$enable_logwin"
5218
5219 if test "$enableval" = yes; then
5220 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5221 else
5222 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5223 fi
5224
5225 else
5226
5227 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5228 if test "x$LINE" != x ; then
5229 eval "DEFAULT_$LINE"
5230 else
5231 no_cache=1
5232 fi
5233
5234 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5235
5236 fi
5237
5238
5239 eval "$ac_cv_use_logwin"
5240 if test "$no_cache" != 1; then
5241 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5242 fi
5243
5244 if test "$wxUSE_LOGWINDOW" = yes; then
5245 echo "$ac_t""yes" 1>&6
5246 else
5247 echo "$ac_t""no" 1>&6
5248 fi
5249
5250
5251 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5252 echo "configure:5253: checking for --enable-logdialog" >&5
5253 no_cache=0
5254 # Check whether --enable-logdialog or --disable-logdialog was given.
5255 if test "${enable_logdialog+set}" = set; then
5256 enableval="$enable_logdialog"
5257
5258 if test "$enableval" = yes; then
5259 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5260 else
5261 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5262 fi
5263
5264 else
5265
5266 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5267 if test "x$LINE" != x ; then
5268 eval "DEFAULT_$LINE"
5269 else
5270 no_cache=1
5271 fi
5272
5273 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5274
5275 fi
5276
5277
5278 eval "$ac_cv_use_logdialog"
5279 if test "$no_cache" != 1; then
5280 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5281 fi
5282
5283 if test "$wxUSE_LOGDIALOG" = yes; then
5284 echo "$ac_t""yes" 1>&6
5285 else
5286 echo "$ac_t""no" 1>&6
5287 fi
5288
5289
5290
5291 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5292 echo "configure:5293: checking for --enable-postscript" >&5
5293 no_cache=0
5294 # Check whether --enable-postscript or --disable-postscript was given.
5295 if test "${enable_postscript+set}" = set; then
5296 enableval="$enable_postscript"
5297
5298 if test "$enableval" = yes; then
5299 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5300 else
5301 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5302 fi
5303
5304 else
5305
5306 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5314
5315 fi
5316
5317
5318 eval "$ac_cv_use_postscript"
5319 if test "$no_cache" != 1; then
5320 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5321 fi
5322
5323 if test "$wxUSE_POSTSCRIPT" = yes; then
5324 echo "$ac_t""yes" 1>&6
5325 else
5326 echo "$ac_t""no" 1>&6
5327 fi
5328
5329
5330
5331
5332
5333 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5334 echo "configure:5335: checking for --enable-prologio" >&5
5335 no_cache=0
5336 # Check whether --enable-prologio or --disable-prologio was given.
5337 if test "${enable_prologio+set}" = set; then
5338 enableval="$enable_prologio"
5339
5340 if test "$enableval" = yes; then
5341 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5342 else
5343 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5344 fi
5345
5346 else
5347
5348 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5349 if test "x$LINE" != x ; then
5350 eval "DEFAULT_$LINE"
5351 else
5352 no_cache=1
5353 fi
5354
5355 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5356
5357 fi
5358
5359
5360 eval "$ac_cv_use_prologio"
5361 if test "$no_cache" != 1; then
5362 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5363 fi
5364
5365 if test "$wxUSE_PROLOGIO" = yes; then
5366 echo "$ac_t""yes" 1>&6
5367 else
5368 echo "$ac_t""no" 1>&6
5369 fi
5370
5371
5372 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5373 echo "configure:5374: checking for --enable-resources" >&5
5374 no_cache=0
5375 # Check whether --enable-resources or --disable-resources was given.
5376 if test "${enable_resources+set}" = set; then
5377 enableval="$enable_resources"
5378
5379 if test "$enableval" = yes; then
5380 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5381 else
5382 ac_cv_use_resources='wxUSE_RESOURCES=no'
5383 fi
5384
5385 else
5386
5387 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5388 if test "x$LINE" != x ; then
5389 eval "DEFAULT_$LINE"
5390 else
5391 no_cache=1
5392 fi
5393
5394 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5395
5396 fi
5397
5398
5399 eval "$ac_cv_use_resources"
5400 if test "$no_cache" != 1; then
5401 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5402 fi
5403
5404 if test "$wxUSE_RESOURCES" = yes; then
5405 echo "$ac_t""yes" 1>&6
5406 else
5407 echo "$ac_t""no" 1>&6
5408 fi
5409
5410
5411
5412 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5413 echo "configure:5414: checking for --enable-xresources" >&5
5414 no_cache=0
5415 # Check whether --enable-xresources or --disable-xresources was given.
5416 if test "${enable_xresources+set}" = set; then
5417 enableval="$enable_xresources"
5418
5419 if test "$enableval" = yes; then
5420 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5421 else
5422 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5423 fi
5424
5425 else
5426
5427 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5428 if test "x$LINE" != x ; then
5429 eval "DEFAULT_$LINE"
5430 else
5431 no_cache=1
5432 fi
5433
5434 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5435
5436 fi
5437
5438
5439 eval "$ac_cv_use_xresources"
5440 if test "$no_cache" != 1; then
5441 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5442 fi
5443
5444 if test "$wxUSE_X_RESOURCES" = yes; then
5445 echo "$ac_t""yes" 1>&6
5446 else
5447 echo "$ac_t""no" 1>&6
5448 fi
5449
5450
5451
5452
5453 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5454 echo "configure:5455: checking for --enable-clipboard" >&5
5455 no_cache=0
5456 # Check whether --enable-clipboard or --disable-clipboard was given.
5457 if test "${enable_clipboard+set}" = set; then
5458 enableval="$enable_clipboard"
5459
5460 if test "$enableval" = yes; then
5461 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5462 else
5463 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5464 fi
5465
5466 else
5467
5468 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5469 if test "x$LINE" != x ; then
5470 eval "DEFAULT_$LINE"
5471 else
5472 no_cache=1
5473 fi
5474
5475 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5476
5477 fi
5478
5479
5480 eval "$ac_cv_use_clipboard"
5481 if test "$no_cache" != 1; then
5482 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5483 fi
5484
5485 if test "$wxUSE_CLIPBOARD" = yes; then
5486 echo "$ac_t""yes" 1>&6
5487 else
5488 echo "$ac_t""no" 1>&6
5489 fi
5490
5491
5492 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5493 echo "configure:5494: checking for --enable-dnd" >&5
5494 no_cache=0
5495 # Check whether --enable-dnd or --disable-dnd was given.
5496 if test "${enable_dnd+set}" = set; then
5497 enableval="$enable_dnd"
5498
5499 if test "$enableval" = yes; then
5500 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5501 else
5502 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5503 fi
5504
5505 else
5506
5507 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5508 if test "x$LINE" != x ; then
5509 eval "DEFAULT_$LINE"
5510 else
5511 no_cache=1
5512 fi
5513
5514 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5515
5516 fi
5517
5518
5519 eval "$ac_cv_use_dnd"
5520 if test "$no_cache" != 1; then
5521 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5522 fi
5523
5524 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5525 echo "$ac_t""yes" 1>&6
5526 else
5527 echo "$ac_t""no" 1>&6
5528 fi
5529
5530
5531 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5532 echo "configure:5533: checking for --enable-metafile" >&5
5533 no_cache=0
5534 # Check whether --enable-metafile or --disable-metafile was given.
5535 if test "${enable_metafile+set}" = set; then
5536 enableval="$enable_metafile"
5537
5538 if test "$enableval" = yes; then
5539 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5540 else
5541 ac_cv_use_metafile='wxUSE_METAFILE=no'
5542 fi
5543
5544 else
5545
5546 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5547 if test "x$LINE" != x ; then
5548 eval "DEFAULT_$LINE"
5549 else
5550 no_cache=1
5551 fi
5552
5553 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5554
5555 fi
5556
5557
5558 eval "$ac_cv_use_metafile"
5559 if test "$no_cache" != 1; then
5560 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5561 fi
5562
5563 if test "$wxUSE_METAFILE" = yes; then
5564 echo "$ac_t""yes" 1>&6
5565 else
5566 echo "$ac_t""no" 1>&6
5567 fi
5568
5569
5570
5571 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5572 echo "configure:5573: checking for --enable-treelayout" >&5
5573 no_cache=0
5574 # Check whether --enable-treelayout or --disable-treelayout was given.
5575 if test "${enable_treelayout+set}" = set; then
5576 enableval="$enable_treelayout"
5577
5578 if test "$enableval" = yes; then
5579 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5580 else
5581 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5582 fi
5583
5584 else
5585
5586 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5587 if test "x$LINE" != x ; then
5588 eval "DEFAULT_$LINE"
5589 else
5590 no_cache=1
5591 fi
5592
5593 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5594
5595 fi
5596
5597
5598 eval "$ac_cv_use_treelayout"
5599 if test "$no_cache" != 1; then
5600 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5601 fi
5602
5603 if test "$wxUSE_TREELAYOUT" = yes; then
5604 echo "$ac_t""yes" 1>&6
5605 else
5606 echo "$ac_t""no" 1>&6
5607 fi
5608
5609
5610
5611
5612 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5613 echo "configure:5614: checking for --enable-controls" >&5
5614 no_cache=0
5615 # Check whether --enable-controls or --disable-controls was given.
5616 if test "${enable_controls+set}" = set; then
5617 enableval="$enable_controls"
5618
5619 if test "$enableval" = yes; then
5620 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5621 else
5622 ac_cv_use_controls='wxUSE_CONTROLS=no'
5623 fi
5624
5625 else
5626
5627 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5628 if test "x$LINE" != x ; then
5629 eval "DEFAULT_$LINE"
5630 else
5631 no_cache=1
5632 fi
5633
5634 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5635
5636 fi
5637
5638
5639 eval "$ac_cv_use_controls"
5640 if test "$no_cache" != 1; then
5641 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5642 fi
5643
5644 if test "$wxUSE_CONTROLS" = yes; then
5645 echo "$ac_t""yes" 1>&6
5646 else
5647 echo "$ac_t""no" 1>&6
5648 fi
5649
5650
5651 if test "$wxUSE_CONTROLS" = "yes"; then
5652 DEFAULT_wxUSE_ACCEL=yes
5653 DEFAULT_wxUSE_BMPBUTTON=yes
5654 DEFAULT_wxUSE_BUTTON=yes
5655 DEFAULT_wxUSE_CALCTRL=no
5656 DEFAULT_wxUSE_CARET=yes
5657 DEFAULT_wxUSE_COMBOBOX=yes
5658 DEFAULT_wxUSE_CHECKBOX=yes
5659 DEFAULT_wxUSE_CHECKLISTBOX=yes
5660 DEFAULT_wxUSE_CHOICE=yes
5661 DEFAULT_wxUSE_GAUGE=yes
5662 DEFAULT_wxUSE_GRID=yes
5663 DEFAULT_wxUSE_NEW_GRID=yes
5664 DEFAULT_wxUSE_IMAGLIST=yes
5665 DEFAULT_wxUSE_LISTBOX=yes
5666 DEFAULT_wxUSE_LISTCTRL=yes
5667 DEFAULT_wxUSE_NOTEBOOK=yes
5668 DEFAULT_wxUSE_PROPSHEET=yes
5669 DEFAULT_wxUSE_RADIOBOX=yes
5670 DEFAULT_wxUSE_RADIOBTN=yes
5671 DEFAULT_wxUSE_SASH=yes
5672 DEFAULT_wxUSE_SCROLLBAR=yes
5673 DEFAULT_wxUSE_SLIDER=yes
5674 DEFAULT_wxUSE_SPINBTN=yes
5675 DEFAULT_wxUSE_SPINCTRL=yes
5676 DEFAULT_wxUSE_SPLITTER=yes
5677 DEFAULT_wxUSE_STATBMP=yes
5678 DEFAULT_wxUSE_STATBOX=yes
5679 DEFAULT_wxUSE_STATLINE=yes
5680 DEFAULT_wxUSE_STATUSBAR=yes
5681 DEFAULT_wxUSE_TAB_DIALOG=yes
5682 DEFAULT_wxUSE_TOGGLEBTN=yes
5683 DEFAULT_wxUSE_TOOLBAR=yes
5684 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5685 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5686 DEFAULT_wxUSE_TOOLTIPS=yes
5687 DEFAULT_wxUSE_TREECTRL=yes
5688 DEFAULT_wxUSE_POPUPWIN=yes
5689 DEFAULT_wxUSE_TIPWINDOW=yes
5690 elif test "$wxUSE_CONTROLS" = "no"; then
5691 DEFAULT_wxUSE_ACCEL=no
5692 DEFAULT_wxUSE_BMPBUTTON=no
5693 DEFAULT_wxUSE_BUTTON=no
5694 DEFAULT_wxUSE_CALCTRL=no
5695 DEFAULT_wxUSE_CARET=no
5696 DEFAULT_wxUSE_COMBOBOX=no
5697 DEFAULT_wxUSE_CHECKBOX=no
5698 DEFAULT_wxUSE_CHECKLISTBOX=no
5699 DEFAULT_wxUSE_CHOICE=no
5700 DEFAULT_wxUSE_GAUGE=no
5701 DEFAULT_wxUSE_GRID=no
5702 DEFAULT_wxUSE_NEW_GRID=no
5703 DEFAULT_wxUSE_IMAGLIST=no
5704 DEFAULT_wxUSE_LISTBOX=no
5705 DEFAULT_wxUSE_LISTCTRL=no
5706 DEFAULT_wxUSE_NOTEBOOK=no
5707 DEFAULT_wxUSE_PROPSHEET=no
5708 DEFAULT_wxUSE_RADIOBOX=no
5709 DEFAULT_wxUSE_RADIOBTN=no
5710 DEFAULT_wxUSE_SASH=no
5711 DEFAULT_wxUSE_SCROLLBAR=no
5712 DEFAULT_wxUSE_SLIDER=no
5713 DEFAULT_wxUSE_SPINBTN=no
5714 DEFAULT_wxUSE_SPINCTRL=no
5715 DEFAULT_wxUSE_SPLITTER=no
5716 DEFAULT_wxUSE_STATBMP=no
5717 DEFAULT_wxUSE_STATBOX=no
5718 DEFAULT_wxUSE_STATLINE=no
5719 DEFAULT_wxUSE_STATUSBAR=no
5720 DEFAULT_wxUSE_TAB_DIALOG=no
5721 DEFAULT_wxUSE_TOGGLEBTN=no
5722 DEFAULT_wxUSE_TOOLBAR=no
5723 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5724 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5725 DEFAULT_wxUSE_TOOLTIPS=no
5726 DEFAULT_wxUSE_TREECTRL=no
5727 DEFAULT_wxUSE_POPUPWIN=no
5728 DEFAULT_wxUSE_TIPWINDOW=no
5729 fi
5730
5731
5732 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5733 echo "configure:5734: checking for --enable-accel" >&5
5734 no_cache=0
5735 # Check whether --enable-accel or --disable-accel was given.
5736 if test "${enable_accel+set}" = set; then
5737 enableval="$enable_accel"
5738
5739 if test "$enableval" = yes; then
5740 ac_cv_use_accel='wxUSE_ACCEL=yes'
5741 else
5742 ac_cv_use_accel='wxUSE_ACCEL=no'
5743 fi
5744
5745 else
5746
5747 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5748 if test "x$LINE" != x ; then
5749 eval "DEFAULT_$LINE"
5750 else
5751 no_cache=1
5752 fi
5753
5754 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5755
5756 fi
5757
5758
5759 eval "$ac_cv_use_accel"
5760 if test "$no_cache" != 1; then
5761 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5762 fi
5763
5764 if test "$wxUSE_ACCEL" = yes; then
5765 echo "$ac_t""yes" 1>&6
5766 else
5767 echo "$ac_t""no" 1>&6
5768 fi
5769
5770
5771 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5772 echo "configure:5773: checking for --enable-button" >&5
5773 no_cache=0
5774 # Check whether --enable-button or --disable-button was given.
5775 if test "${enable_button+set}" = set; then
5776 enableval="$enable_button"
5777
5778 if test "$enableval" = yes; then
5779 ac_cv_use_button='wxUSE_BUTTON=yes'
5780 else
5781 ac_cv_use_button='wxUSE_BUTTON=no'
5782 fi
5783
5784 else
5785
5786 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5787 if test "x$LINE" != x ; then
5788 eval "DEFAULT_$LINE"
5789 else
5790 no_cache=1
5791 fi
5792
5793 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5794
5795 fi
5796
5797
5798 eval "$ac_cv_use_button"
5799 if test "$no_cache" != 1; then
5800 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5801 fi
5802
5803 if test "$wxUSE_BUTTON" = yes; then
5804 echo "$ac_t""yes" 1>&6
5805 else
5806 echo "$ac_t""no" 1>&6
5807 fi
5808
5809
5810 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5811 echo "configure:5812: checking for --enable-bmpbutton" >&5
5812 no_cache=0
5813 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5814 if test "${enable_bmpbutton+set}" = set; then
5815 enableval="$enable_bmpbutton"
5816
5817 if test "$enableval" = yes; then
5818 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5819 else
5820 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5821 fi
5822
5823 else
5824
5825 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5826 if test "x$LINE" != x ; then
5827 eval "DEFAULT_$LINE"
5828 else
5829 no_cache=1
5830 fi
5831
5832 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5833
5834 fi
5835
5836
5837 eval "$ac_cv_use_bmpbutton"
5838 if test "$no_cache" != 1; then
5839 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5840 fi
5841
5842 if test "$wxUSE_BMPBUTTON" = yes; then
5843 echo "$ac_t""yes" 1>&6
5844 else
5845 echo "$ac_t""no" 1>&6
5846 fi
5847
5848
5849 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5850 echo "configure:5851: checking for --enable-calendar" >&5
5851 no_cache=0
5852 # Check whether --enable-calendar or --disable-calendar was given.
5853 if test "${enable_calendar+set}" = set; then
5854 enableval="$enable_calendar"
5855
5856 if test "$enableval" = yes; then
5857 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5858 else
5859 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5860 fi
5861
5862 else
5863
5864 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5865 if test "x$LINE" != x ; then
5866 eval "DEFAULT_$LINE"
5867 else
5868 no_cache=1
5869 fi
5870
5871 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5872
5873 fi
5874
5875
5876 eval "$ac_cv_use_calendar"
5877 if test "$no_cache" != 1; then
5878 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5879 fi
5880
5881 if test "$wxUSE_CALCTRL" = yes; then
5882 echo "$ac_t""yes" 1>&6
5883 else
5884 echo "$ac_t""no" 1>&6
5885 fi
5886
5887
5888 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5889 echo "configure:5890: checking for --enable-caret" >&5
5890 no_cache=0
5891 # Check whether --enable-caret or --disable-caret was given.
5892 if test "${enable_caret+set}" = set; then
5893 enableval="$enable_caret"
5894
5895 if test "$enableval" = yes; then
5896 ac_cv_use_caret='wxUSE_CARET=yes'
5897 else
5898 ac_cv_use_caret='wxUSE_CARET=no'
5899 fi
5900
5901 else
5902
5903 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5904 if test "x$LINE" != x ; then
5905 eval "DEFAULT_$LINE"
5906 else
5907 no_cache=1
5908 fi
5909
5910 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5911
5912 fi
5913
5914
5915 eval "$ac_cv_use_caret"
5916 if test "$no_cache" != 1; then
5917 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5918 fi
5919
5920 if test "$wxUSE_CARET" = yes; then
5921 echo "$ac_t""yes" 1>&6
5922 else
5923 echo "$ac_t""no" 1>&6
5924 fi
5925
5926
5927 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5928 echo "configure:5929: checking for --enable-checkbox" >&5
5929 no_cache=0
5930 # Check whether --enable-checkbox or --disable-checkbox was given.
5931 if test "${enable_checkbox+set}" = set; then
5932 enableval="$enable_checkbox"
5933
5934 if test "$enableval" = yes; then
5935 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5936 else
5937 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5938 fi
5939
5940 else
5941
5942 LINE=`grep "wxUSE_CHECKBOX" ${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_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5950
5951 fi
5952
5953
5954 eval "$ac_cv_use_checkbox"
5955 if test "$no_cache" != 1; then
5956 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5957 fi
5958
5959 if test "$wxUSE_CHECKBOX" = yes; then
5960 echo "$ac_t""yes" 1>&6
5961 else
5962 echo "$ac_t""no" 1>&6
5963 fi
5964
5965
5966 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5967 echo "configure:5968: checking for --enable-checklst" >&5
5968 no_cache=0
5969 # Check whether --enable-checklst or --disable-checklst was given.
5970 if test "${enable_checklst+set}" = set; then
5971 enableval="$enable_checklst"
5972
5973 if test "$enableval" = yes; then
5974 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5975 else
5976 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5977 fi
5978
5979 else
5980
5981 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5982 if test "x$LINE" != x ; then
5983 eval "DEFAULT_$LINE"
5984 else
5985 no_cache=1
5986 fi
5987
5988 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5989
5990 fi
5991
5992
5993 eval "$ac_cv_use_checklst"
5994 if test "$no_cache" != 1; then
5995 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5996 fi
5997
5998 if test "$wxUSE_CHECKLST" = yes; then
5999 echo "$ac_t""yes" 1>&6
6000 else
6001 echo "$ac_t""no" 1>&6
6002 fi
6003
6004
6005 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
6006 echo "configure:6007: checking for --enable-choice" >&5
6007 no_cache=0
6008 # Check whether --enable-choice or --disable-choice was given.
6009 if test "${enable_choice+set}" = set; then
6010 enableval="$enable_choice"
6011
6012 if test "$enableval" = yes; then
6013 ac_cv_use_choice='wxUSE_CHOICE=yes'
6014 else
6015 ac_cv_use_choice='wxUSE_CHOICE=no'
6016 fi
6017
6018 else
6019
6020 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6021 if test "x$LINE" != x ; then
6022 eval "DEFAULT_$LINE"
6023 else
6024 no_cache=1
6025 fi
6026
6027 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6028
6029 fi
6030
6031
6032 eval "$ac_cv_use_choice"
6033 if test "$no_cache" != 1; then
6034 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6035 fi
6036
6037 if test "$wxUSE_CHOICE" = yes; then
6038 echo "$ac_t""yes" 1>&6
6039 else
6040 echo "$ac_t""no" 1>&6
6041 fi
6042
6043
6044 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
6045 echo "configure:6046: checking for --enable-combobox" >&5
6046 no_cache=0
6047 # Check whether --enable-combobox or --disable-combobox was given.
6048 if test "${enable_combobox+set}" = set; then
6049 enableval="$enable_combobox"
6050
6051 if test "$enableval" = yes; then
6052 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6053 else
6054 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6055 fi
6056
6057 else
6058
6059 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6060 if test "x$LINE" != x ; then
6061 eval "DEFAULT_$LINE"
6062 else
6063 no_cache=1
6064 fi
6065
6066 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6067
6068 fi
6069
6070
6071 eval "$ac_cv_use_combobox"
6072 if test "$no_cache" != 1; then
6073 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6074 fi
6075
6076 if test "$wxUSE_COMBOBOX" = yes; then
6077 echo "$ac_t""yes" 1>&6
6078 else
6079 echo "$ac_t""no" 1>&6
6080 fi
6081
6082
6083 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6084 echo "configure:6085: checking for --enable-gauge" >&5
6085 no_cache=0
6086 # Check whether --enable-gauge or --disable-gauge was given.
6087 if test "${enable_gauge+set}" = set; then
6088 enableval="$enable_gauge"
6089
6090 if test "$enableval" = yes; then
6091 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6092 else
6093 ac_cv_use_gauge='wxUSE_GAUGE=no'
6094 fi
6095
6096 else
6097
6098 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6099 if test "x$LINE" != x ; then
6100 eval "DEFAULT_$LINE"
6101 else
6102 no_cache=1
6103 fi
6104
6105 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6106
6107 fi
6108
6109
6110 eval "$ac_cv_use_gauge"
6111 if test "$no_cache" != 1; then
6112 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6113 fi
6114
6115 if test "$wxUSE_GAUGE" = yes; then
6116 echo "$ac_t""yes" 1>&6
6117 else
6118 echo "$ac_t""no" 1>&6
6119 fi
6120
6121
6122 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6123 echo "configure:6124: checking for --enable-grid" >&5
6124 no_cache=0
6125 # Check whether --enable-grid or --disable-grid was given.
6126 if test "${enable_grid+set}" = set; then
6127 enableval="$enable_grid"
6128
6129 if test "$enableval" = yes; then
6130 ac_cv_use_grid='wxUSE_GRID=yes'
6131 else
6132 ac_cv_use_grid='wxUSE_GRID=no'
6133 fi
6134
6135 else
6136
6137 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6138 if test "x$LINE" != x ; then
6139 eval "DEFAULT_$LINE"
6140 else
6141 no_cache=1
6142 fi
6143
6144 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6145
6146 fi
6147
6148
6149 eval "$ac_cv_use_grid"
6150 if test "$no_cache" != 1; then
6151 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6152 fi
6153
6154 if test "$wxUSE_GRID" = yes; then
6155 echo "$ac_t""yes" 1>&6
6156 else
6157 echo "$ac_t""no" 1>&6
6158 fi
6159
6160
6161 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6162 echo "configure:6163: checking for --enable-newgrid" >&5
6163 no_cache=0
6164 # Check whether --enable-newgrid or --disable-newgrid was given.
6165 if test "${enable_newgrid+set}" = set; then
6166 enableval="$enable_newgrid"
6167
6168 if test "$enableval" = yes; then
6169 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6170 else
6171 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6172 fi
6173
6174 else
6175
6176 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6177 if test "x$LINE" != x ; then
6178 eval "DEFAULT_$LINE"
6179 else
6180 no_cache=1
6181 fi
6182
6183 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6184
6185 fi
6186
6187
6188 eval "$ac_cv_use_newgrid"
6189 if test "$no_cache" != 1; then
6190 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6191 fi
6192
6193 if test "$wxUSE_NEW_GRID" = yes; then
6194 echo "$ac_t""yes" 1>&6
6195 else
6196 echo "$ac_t""no" 1>&6
6197 fi
6198
6199
6200 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6201 echo "configure:6202: checking for --enable-imaglist" >&5
6202 no_cache=0
6203 # Check whether --enable-imaglist or --disable-imaglist was given.
6204 if test "${enable_imaglist+set}" = set; then
6205 enableval="$enable_imaglist"
6206
6207 if test "$enableval" = yes; then
6208 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6209 else
6210 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6211 fi
6212
6213 else
6214
6215 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6216 if test "x$LINE" != x ; then
6217 eval "DEFAULT_$LINE"
6218 else
6219 no_cache=1
6220 fi
6221
6222 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6223
6224 fi
6225
6226
6227 eval "$ac_cv_use_imaglist"
6228 if test "$no_cache" != 1; then
6229 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6230 fi
6231
6232 if test "$wxUSE_IMAGLIST" = yes; then
6233 echo "$ac_t""yes" 1>&6
6234 else
6235 echo "$ac_t""no" 1>&6
6236 fi
6237
6238
6239 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6240 echo "configure:6241: checking for --enable-listbox" >&5
6241 no_cache=0
6242 # Check whether --enable-listbox or --disable-listbox was given.
6243 if test "${enable_listbox+set}" = set; then
6244 enableval="$enable_listbox"
6245
6246 if test "$enableval" = yes; then
6247 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6248 else
6249 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6250 fi
6251
6252 else
6253
6254 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6255 if test "x$LINE" != x ; then
6256 eval "DEFAULT_$LINE"
6257 else
6258 no_cache=1
6259 fi
6260
6261 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6262
6263 fi
6264
6265
6266 eval "$ac_cv_use_listbox"
6267 if test "$no_cache" != 1; then
6268 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6269 fi
6270
6271 if test "$wxUSE_LISTBOX" = yes; then
6272 echo "$ac_t""yes" 1>&6
6273 else
6274 echo "$ac_t""no" 1>&6
6275 fi
6276
6277
6278 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6279 echo "configure:6280: checking for --enable-listctrl" >&5
6280 no_cache=0
6281 # Check whether --enable-listctrl or --disable-listctrl was given.
6282 if test "${enable_listctrl+set}" = set; then
6283 enableval="$enable_listctrl"
6284
6285 if test "$enableval" = yes; then
6286 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6287 else
6288 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6289 fi
6290
6291 else
6292
6293 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6294 if test "x$LINE" != x ; then
6295 eval "DEFAULT_$LINE"
6296 else
6297 no_cache=1
6298 fi
6299
6300 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6301
6302 fi
6303
6304
6305 eval "$ac_cv_use_listctrl"
6306 if test "$no_cache" != 1; then
6307 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6308 fi
6309
6310 if test "$wxUSE_LISTCTRL" = yes; then
6311 echo "$ac_t""yes" 1>&6
6312 else
6313 echo "$ac_t""no" 1>&6
6314 fi
6315
6316
6317 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6318 echo "configure:6319: checking for --enable-notebook" >&5
6319 no_cache=0
6320 # Check whether --enable-notebook or --disable-notebook was given.
6321 if test "${enable_notebook+set}" = set; then
6322 enableval="$enable_notebook"
6323
6324 if test "$enableval" = yes; then
6325 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6326 else
6327 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6328 fi
6329
6330 else
6331
6332 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6333 if test "x$LINE" != x ; then
6334 eval "DEFAULT_$LINE"
6335 else
6336 no_cache=1
6337 fi
6338
6339 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6340
6341 fi
6342
6343
6344 eval "$ac_cv_use_notebook"
6345 if test "$no_cache" != 1; then
6346 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6347 fi
6348
6349 if test "$wxUSE_NOTEBOOK" = yes; then
6350 echo "$ac_t""yes" 1>&6
6351 else
6352 echo "$ac_t""no" 1>&6
6353 fi
6354
6355
6356 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6357 echo "configure:6358: checking for --enable-propsheet" >&5
6358 no_cache=0
6359 # Check whether --enable-propsheet or --disable-propsheet was given.
6360 if test "${enable_propsheet+set}" = set; then
6361 enableval="$enable_propsheet"
6362
6363 if test "$enableval" = yes; then
6364 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6365 else
6366 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6367 fi
6368
6369 else
6370
6371 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6372 if test "x$LINE" != x ; then
6373 eval "DEFAULT_$LINE"
6374 else
6375 no_cache=1
6376 fi
6377
6378 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6379
6380 fi
6381
6382
6383 eval "$ac_cv_use_propsheet"
6384 if test "$no_cache" != 1; then
6385 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6386 fi
6387
6388 if test "$wxUSE_PROPSHEET" = yes; then
6389 echo "$ac_t""yes" 1>&6
6390 else
6391 echo "$ac_t""no" 1>&6
6392 fi
6393
6394
6395 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6396 echo "configure:6397: checking for --enable-radiobox" >&5
6397 no_cache=0
6398 # Check whether --enable-radiobox or --disable-radiobox was given.
6399 if test "${enable_radiobox+set}" = set; then
6400 enableval="$enable_radiobox"
6401
6402 if test "$enableval" = yes; then
6403 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6404 else
6405 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6406 fi
6407
6408 else
6409
6410 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6411 if test "x$LINE" != x ; then
6412 eval "DEFAULT_$LINE"
6413 else
6414 no_cache=1
6415 fi
6416
6417 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6418
6419 fi
6420
6421
6422 eval "$ac_cv_use_radiobox"
6423 if test "$no_cache" != 1; then
6424 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6425 fi
6426
6427 if test "$wxUSE_RADIOBOX" = yes; then
6428 echo "$ac_t""yes" 1>&6
6429 else
6430 echo "$ac_t""no" 1>&6
6431 fi
6432
6433
6434 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6435 echo "configure:6436: checking for --enable-radiobtn" >&5
6436 no_cache=0
6437 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6438 if test "${enable_radiobtn+set}" = set; then
6439 enableval="$enable_radiobtn"
6440
6441 if test "$enableval" = yes; then
6442 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6443 else
6444 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6445 fi
6446
6447 else
6448
6449 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6450 if test "x$LINE" != x ; then
6451 eval "DEFAULT_$LINE"
6452 else
6453 no_cache=1
6454 fi
6455
6456 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6457
6458 fi
6459
6460
6461 eval "$ac_cv_use_radiobtn"
6462 if test "$no_cache" != 1; then
6463 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6464 fi
6465
6466 if test "$wxUSE_RADIOBTN" = yes; then
6467 echo "$ac_t""yes" 1>&6
6468 else
6469 echo "$ac_t""no" 1>&6
6470 fi
6471
6472
6473 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6474 echo "configure:6475: checking for --enable-sash" >&5
6475 no_cache=0
6476 # Check whether --enable-sash or --disable-sash was given.
6477 if test "${enable_sash+set}" = set; then
6478 enableval="$enable_sash"
6479
6480 if test "$enableval" = yes; then
6481 ac_cv_use_sash='wxUSE_SASH=yes'
6482 else
6483 ac_cv_use_sash='wxUSE_SASH=no'
6484 fi
6485
6486 else
6487
6488 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6489 if test "x$LINE" != x ; then
6490 eval "DEFAULT_$LINE"
6491 else
6492 no_cache=1
6493 fi
6494
6495 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6496
6497 fi
6498
6499
6500 eval "$ac_cv_use_sash"
6501 if test "$no_cache" != 1; then
6502 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6503 fi
6504
6505 if test "$wxUSE_SASH" = yes; then
6506 echo "$ac_t""yes" 1>&6
6507 else
6508 echo "$ac_t""no" 1>&6
6509 fi
6510
6511
6512 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6513 echo "configure:6514: checking for --enable-scrollbar" >&5
6514 no_cache=0
6515 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6516 if test "${enable_scrollbar+set}" = set; then
6517 enableval="$enable_scrollbar"
6518
6519 if test "$enableval" = yes; then
6520 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6521 else
6522 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6523 fi
6524
6525 else
6526
6527 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6528 if test "x$LINE" != x ; then
6529 eval "DEFAULT_$LINE"
6530 else
6531 no_cache=1
6532 fi
6533
6534 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6535
6536 fi
6537
6538
6539 eval "$ac_cv_use_scrollbar"
6540 if test "$no_cache" != 1; then
6541 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6542 fi
6543
6544 if test "$wxUSE_SCROLLBAR" = yes; then
6545 echo "$ac_t""yes" 1>&6
6546 else
6547 echo "$ac_t""no" 1>&6
6548 fi
6549
6550
6551 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6552 echo "configure:6553: checking for --enable-slider" >&5
6553 no_cache=0
6554 # Check whether --enable-slider or --disable-slider was given.
6555 if test "${enable_slider+set}" = set; then
6556 enableval="$enable_slider"
6557
6558 if test "$enableval" = yes; then
6559 ac_cv_use_slider='wxUSE_SLIDER=yes'
6560 else
6561 ac_cv_use_slider='wxUSE_SLIDER=no'
6562 fi
6563
6564 else
6565
6566 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6567 if test "x$LINE" != x ; then
6568 eval "DEFAULT_$LINE"
6569 else
6570 no_cache=1
6571 fi
6572
6573 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6574
6575 fi
6576
6577
6578 eval "$ac_cv_use_slider"
6579 if test "$no_cache" != 1; then
6580 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6581 fi
6582
6583 if test "$wxUSE_SLIDER" = yes; then
6584 echo "$ac_t""yes" 1>&6
6585 else
6586 echo "$ac_t""no" 1>&6
6587 fi
6588
6589
6590 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6591 echo "configure:6592: checking for --enable-spinbtn" >&5
6592 no_cache=0
6593 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6594 if test "${enable_spinbtn+set}" = set; then
6595 enableval="$enable_spinbtn"
6596
6597 if test "$enableval" = yes; then
6598 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6599 else
6600 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6601 fi
6602
6603 else
6604
6605 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6606 if test "x$LINE" != x ; then
6607 eval "DEFAULT_$LINE"
6608 else
6609 no_cache=1
6610 fi
6611
6612 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6613
6614 fi
6615
6616
6617 eval "$ac_cv_use_spinbtn"
6618 if test "$no_cache" != 1; then
6619 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6620 fi
6621
6622 if test "$wxUSE_SPINBTN" = yes; then
6623 echo "$ac_t""yes" 1>&6
6624 else
6625 echo "$ac_t""no" 1>&6
6626 fi
6627
6628
6629 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6630 echo "configure:6631: checking for --enable-spinctrl" >&5
6631 no_cache=0
6632 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6633 if test "${enable_spinctrl+set}" = set; then
6634 enableval="$enable_spinctrl"
6635
6636 if test "$enableval" = yes; then
6637 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6638 else
6639 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6640 fi
6641
6642 else
6643
6644 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6645 if test "x$LINE" != x ; then
6646 eval "DEFAULT_$LINE"
6647 else
6648 no_cache=1
6649 fi
6650
6651 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6652
6653 fi
6654
6655
6656 eval "$ac_cv_use_spinctrl"
6657 if test "$no_cache" != 1; then
6658 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6659 fi
6660
6661 if test "$wxUSE_SPINCTRL" = yes; then
6662 echo "$ac_t""yes" 1>&6
6663 else
6664 echo "$ac_t""no" 1>&6
6665 fi
6666
6667
6668 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6669 echo "configure:6670: checking for --enable-splitter" >&5
6670 no_cache=0
6671 # Check whether --enable-splitter or --disable-splitter was given.
6672 if test "${enable_splitter+set}" = set; then
6673 enableval="$enable_splitter"
6674
6675 if test "$enableval" = yes; then
6676 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6677 else
6678 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6679 fi
6680
6681 else
6682
6683 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6684 if test "x$LINE" != x ; then
6685 eval "DEFAULT_$LINE"
6686 else
6687 no_cache=1
6688 fi
6689
6690 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6691
6692 fi
6693
6694
6695 eval "$ac_cv_use_splitter"
6696 if test "$no_cache" != 1; then
6697 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6698 fi
6699
6700 if test "$wxUSE_SPLITTER" = yes; then
6701 echo "$ac_t""yes" 1>&6
6702 else
6703 echo "$ac_t""no" 1>&6
6704 fi
6705
6706
6707 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6708 echo "configure:6709: checking for --enable-statbmp" >&5
6709 no_cache=0
6710 # Check whether --enable-statbmp or --disable-statbmp was given.
6711 if test "${enable_statbmp+set}" = set; then
6712 enableval="$enable_statbmp"
6713
6714 if test "$enableval" = yes; then
6715 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6716 else
6717 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6718 fi
6719
6720 else
6721
6722 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6723 if test "x$LINE" != x ; then
6724 eval "DEFAULT_$LINE"
6725 else
6726 no_cache=1
6727 fi
6728
6729 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6730
6731 fi
6732
6733
6734 eval "$ac_cv_use_statbmp"
6735 if test "$no_cache" != 1; then
6736 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6737 fi
6738
6739 if test "$wxUSE_STATBMP" = yes; then
6740 echo "$ac_t""yes" 1>&6
6741 else
6742 echo "$ac_t""no" 1>&6
6743 fi
6744
6745
6746 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6747 echo "configure:6748: checking for --enable-statbox" >&5
6748 no_cache=0
6749 # Check whether --enable-statbox or --disable-statbox was given.
6750 if test "${enable_statbox+set}" = set; then
6751 enableval="$enable_statbox"
6752
6753 if test "$enableval" = yes; then
6754 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6755 else
6756 ac_cv_use_statbox='wxUSE_STATBOX=no'
6757 fi
6758
6759 else
6760
6761 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6762 if test "x$LINE" != x ; then
6763 eval "DEFAULT_$LINE"
6764 else
6765 no_cache=1
6766 fi
6767
6768 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6769
6770 fi
6771
6772
6773 eval "$ac_cv_use_statbox"
6774 if test "$no_cache" != 1; then
6775 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6776 fi
6777
6778 if test "$wxUSE_STATBOX" = yes; then
6779 echo "$ac_t""yes" 1>&6
6780 else
6781 echo "$ac_t""no" 1>&6
6782 fi
6783
6784
6785 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6786 echo "configure:6787: checking for --enable-statline" >&5
6787 no_cache=0
6788 # Check whether --enable-statline or --disable-statline was given.
6789 if test "${enable_statline+set}" = set; then
6790 enableval="$enable_statline"
6791
6792 if test "$enableval" = yes; then
6793 ac_cv_use_statline='wxUSE_STATLINE=yes'
6794 else
6795 ac_cv_use_statline='wxUSE_STATLINE=no'
6796 fi
6797
6798 else
6799
6800 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6801 if test "x$LINE" != x ; then
6802 eval "DEFAULT_$LINE"
6803 else
6804 no_cache=1
6805 fi
6806
6807 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6808
6809 fi
6810
6811
6812 eval "$ac_cv_use_statline"
6813 if test "$no_cache" != 1; then
6814 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6815 fi
6816
6817 if test "$wxUSE_STATLINE" = yes; then
6818 echo "$ac_t""yes" 1>&6
6819 else
6820 echo "$ac_t""no" 1>&6
6821 fi
6822
6823
6824 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6825 echo "configure:6826: checking for --enable-stattext" >&5
6826 no_cache=0
6827 # Check whether --enable-stattext or --disable-stattext was given.
6828 if test "${enable_stattext+set}" = set; then
6829 enableval="$enable_stattext"
6830
6831 if test "$enableval" = yes; then
6832 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6833 else
6834 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6835 fi
6836
6837 else
6838
6839 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6840 if test "x$LINE" != x ; then
6841 eval "DEFAULT_$LINE"
6842 else
6843 no_cache=1
6844 fi
6845
6846 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6847
6848 fi
6849
6850
6851 eval "$ac_cv_use_stattext"
6852 if test "$no_cache" != 1; then
6853 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6854 fi
6855
6856 if test "$wxUSE_STATTEXT" = yes; then
6857 echo "$ac_t""yes" 1>&6
6858 else
6859 echo "$ac_t""no" 1>&6
6860 fi
6861
6862
6863 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6864 echo "configure:6865: checking for --enable-statusbar" >&5
6865 no_cache=0
6866 # Check whether --enable-statusbar or --disable-statusbar was given.
6867 if test "${enable_statusbar+set}" = set; then
6868 enableval="$enable_statusbar"
6869
6870 if test "$enableval" = yes; then
6871 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6872 else
6873 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6874 fi
6875
6876 else
6877
6878 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6879 if test "x$LINE" != x ; then
6880 eval "DEFAULT_$LINE"
6881 else
6882 no_cache=1
6883 fi
6884
6885 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6886
6887 fi
6888
6889
6890 eval "$ac_cv_use_statusbar"
6891 if test "$no_cache" != 1; then
6892 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6893 fi
6894
6895 if test "$wxUSE_STATUSBAR" = yes; then
6896 echo "$ac_t""yes" 1>&6
6897 else
6898 echo "$ac_t""no" 1>&6
6899 fi
6900
6901
6902 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6903 echo "configure:6904: checking for --enable-tabdialog" >&5
6904 no_cache=0
6905 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6906 if test "${enable_tabdialog+set}" = set; then
6907 enableval="$enable_tabdialog"
6908
6909 if test "$enableval" = yes; then
6910 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6911 else
6912 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6913 fi
6914
6915 else
6916
6917 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6918 if test "x$LINE" != x ; then
6919 eval "DEFAULT_$LINE"
6920 else
6921 no_cache=1
6922 fi
6923
6924 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6925
6926 fi
6927
6928
6929 eval "$ac_cv_use_tabdialog"
6930 if test "$no_cache" != 1; then
6931 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6932 fi
6933
6934 if test "$wxUSE_TABDIALOG" = yes; then
6935 echo "$ac_t""yes" 1>&6
6936 else
6937 echo "$ac_t""no" 1>&6
6938 fi
6939
6940
6941 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6942 echo "configure:6943: checking for --enable-textctrl" >&5
6943 no_cache=0
6944 # Check whether --enable-textctrl or --disable-textctrl was given.
6945 if test "${enable_textctrl+set}" = set; then
6946 enableval="$enable_textctrl"
6947
6948 if test "$enableval" = yes; then
6949 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6950 else
6951 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6952 fi
6953
6954 else
6955
6956 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6957 if test "x$LINE" != x ; then
6958 eval "DEFAULT_$LINE"
6959 else
6960 no_cache=1
6961 fi
6962
6963 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6964
6965 fi
6966
6967
6968 eval "$ac_cv_use_textctrl"
6969 if test "$no_cache" != 1; then
6970 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6971 fi
6972
6973 if test "$wxUSE_TEXTCTRL" = yes; then
6974 echo "$ac_t""yes" 1>&6
6975 else
6976 echo "$ac_t""no" 1>&6
6977 fi
6978
6979
6980 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6981 echo "configure:6982: checking for --enable-togglebtn" >&5
6982 no_cache=0
6983 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6984 if test "${enable_togglebtn+set}" = set; then
6985 enableval="$enable_togglebtn"
6986
6987 if test "$enableval" = yes; then
6988 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6989 else
6990 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6991 fi
6992
6993 else
6994
6995 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6996 if test "x$LINE" != x ; then
6997 eval "DEFAULT_$LINE"
6998 else
6999 no_cache=1
7000 fi
7001
7002 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7003
7004 fi
7005
7006
7007 eval "$ac_cv_use_togglebtn"
7008 if test "$no_cache" != 1; then
7009 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7010 fi
7011
7012 if test "$wxUSE_TOGGLEBTN" = yes; then
7013 echo "$ac_t""yes" 1>&6
7014 else
7015 echo "$ac_t""no" 1>&6
7016 fi
7017
7018
7019 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
7020 echo "configure:7021: checking for --enable-toolbar" >&5
7021 no_cache=0
7022 # Check whether --enable-toolbar or --disable-toolbar was given.
7023 if test "${enable_toolbar+set}" = set; then
7024 enableval="$enable_toolbar"
7025
7026 if test "$enableval" = yes; then
7027 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7028 else
7029 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7030 fi
7031
7032 else
7033
7034 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7035 if test "x$LINE" != x ; then
7036 eval "DEFAULT_$LINE"
7037 else
7038 no_cache=1
7039 fi
7040
7041 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7042
7043 fi
7044
7045
7046 eval "$ac_cv_use_toolbar"
7047 if test "$no_cache" != 1; then
7048 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7049 fi
7050
7051 if test "$wxUSE_TOOLBAR" = yes; then
7052 echo "$ac_t""yes" 1>&6
7053 else
7054 echo "$ac_t""no" 1>&6
7055 fi
7056
7057
7058 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7059 echo "configure:7060: checking for --enable-tbarnative" >&5
7060 no_cache=0
7061 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7062 if test "${enable_tbarnative+set}" = set; then
7063 enableval="$enable_tbarnative"
7064
7065 if test "$enableval" = yes; then
7066 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7067 else
7068 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7069 fi
7070
7071 else
7072
7073 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7074 if test "x$LINE" != x ; then
7075 eval "DEFAULT_$LINE"
7076 else
7077 no_cache=1
7078 fi
7079
7080 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7081
7082 fi
7083
7084
7085 eval "$ac_cv_use_tbarnative"
7086 if test "$no_cache" != 1; then
7087 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7088 fi
7089
7090 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7091 echo "$ac_t""yes" 1>&6
7092 else
7093 echo "$ac_t""no" 1>&6
7094 fi
7095
7096
7097 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7098 echo "configure:7099: checking for --enable-tbarsmpl" >&5
7099 no_cache=0
7100 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7101 if test "${enable_tbarsmpl+set}" = set; then
7102 enableval="$enable_tbarsmpl"
7103
7104 if test "$enableval" = yes; then
7105 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7106 else
7107 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7108 fi
7109
7110 else
7111
7112 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7113 if test "x$LINE" != x ; then
7114 eval "DEFAULT_$LINE"
7115 else
7116 no_cache=1
7117 fi
7118
7119 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7120
7121 fi
7122
7123
7124 eval "$ac_cv_use_tbarsmpl"
7125 if test "$no_cache" != 1; then
7126 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7127 fi
7128
7129 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7130 echo "$ac_t""yes" 1>&6
7131 else
7132 echo "$ac_t""no" 1>&6
7133 fi
7134
7135
7136 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7137 echo "configure:7138: checking for --enable-treectrl" >&5
7138 no_cache=0
7139 # Check whether --enable-treectrl or --disable-treectrl was given.
7140 if test "${enable_treectrl+set}" = set; then
7141 enableval="$enable_treectrl"
7142
7143 if test "$enableval" = yes; then
7144 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7145 else
7146 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7147 fi
7148
7149 else
7150
7151 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7152 if test "x$LINE" != x ; then
7153 eval "DEFAULT_$LINE"
7154 else
7155 no_cache=1
7156 fi
7157
7158 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7159
7160 fi
7161
7162
7163 eval "$ac_cv_use_treectrl"
7164 if test "$no_cache" != 1; then
7165 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7166 fi
7167
7168 if test "$wxUSE_TREECTRL" = yes; then
7169 echo "$ac_t""yes" 1>&6
7170 else
7171 echo "$ac_t""no" 1>&6
7172 fi
7173
7174
7175 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7176 echo "configure:7177: checking for --enable-tipwindow" >&5
7177 no_cache=0
7178 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7179 if test "${enable_tipwindow+set}" = set; then
7180 enableval="$enable_tipwindow"
7181
7182 if test "$enableval" = yes; then
7183 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7184 else
7185 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7186 fi
7187
7188 else
7189
7190 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7191 if test "x$LINE" != x ; then
7192 eval "DEFAULT_$LINE"
7193 else
7194 no_cache=1
7195 fi
7196
7197 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7198
7199 fi
7200
7201
7202 eval "$ac_cv_use_tipwindow"
7203 if test "$no_cache" != 1; then
7204 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7205 fi
7206
7207 if test "$wxUSE_TIPWINDOW" = yes; then
7208 echo "$ac_t""yes" 1>&6
7209 else
7210 echo "$ac_t""no" 1>&6
7211 fi
7212
7213
7214 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7215 echo "configure:7216: checking for --enable-popupwin" >&5
7216 no_cache=0
7217 # Check whether --enable-popupwin or --disable-popupwin was given.
7218 if test "${enable_popupwin+set}" = set; then
7219 enableval="$enable_popupwin"
7220
7221 if test "$enableval" = yes; then
7222 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7223 else
7224 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7225 fi
7226
7227 else
7228
7229 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7230 if test "x$LINE" != x ; then
7231 eval "DEFAULT_$LINE"
7232 else
7233 no_cache=1
7234 fi
7235
7236 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7237
7238 fi
7239
7240
7241 eval "$ac_cv_use_popupwin"
7242 if test "$no_cache" != 1; then
7243 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7244 fi
7245
7246 if test "$wxUSE_POPUPWIN" = yes; then
7247 echo "$ac_t""yes" 1>&6
7248 else
7249 echo "$ac_t""no" 1>&6
7250 fi
7251
7252
7253
7254
7255 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7256 echo "configure:7257: checking for --enable-commondlg" >&5
7257 no_cache=0
7258 # Check whether --enable-commondlg or --disable-commondlg was given.
7259 if test "${enable_commondlg+set}" = set; then
7260 enableval="$enable_commondlg"
7261
7262 if test "$enableval" = yes; then
7263 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7264 else
7265 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7266 fi
7267
7268 else
7269
7270 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7271 if test "x$LINE" != x ; then
7272 eval "DEFAULT_$LINE"
7273 else
7274 no_cache=1
7275 fi
7276
7277 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7278
7279 fi
7280
7281
7282 eval "$ac_cv_use_commondlg"
7283 if test "$no_cache" != 1; then
7284 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7285 fi
7286
7287 if test "$wxUSE_COMMONDLGS" = yes; then
7288 echo "$ac_t""yes" 1>&6
7289 else
7290 echo "$ac_t""no" 1>&6
7291 fi
7292
7293
7294 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7295 echo "configure:7296: checking for --enable-choicedlg" >&5
7296 no_cache=0
7297 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7298 if test "${enable_choicedlg+set}" = set; then
7299 enableval="$enable_choicedlg"
7300
7301 if test "$enableval" = yes; then
7302 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7303 else
7304 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7305 fi
7306
7307 else
7308
7309 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7310 if test "x$LINE" != x ; then
7311 eval "DEFAULT_$LINE"
7312 else
7313 no_cache=1
7314 fi
7315
7316 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7317
7318 fi
7319
7320
7321 eval "$ac_cv_use_choicedlg"
7322 if test "$no_cache" != 1; then
7323 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7324 fi
7325
7326 if test "$wxUSE_CHOICEDLG" = yes; then
7327 echo "$ac_t""yes" 1>&6
7328 else
7329 echo "$ac_t""no" 1>&6
7330 fi
7331
7332
7333 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7334 echo "configure:7335: checking for --enable-coldlg" >&5
7335 no_cache=0
7336 # Check whether --enable-coldlg or --disable-coldlg was given.
7337 if test "${enable_coldlg+set}" = set; then
7338 enableval="$enable_coldlg"
7339
7340 if test "$enableval" = yes; then
7341 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7342 else
7343 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7344 fi
7345
7346 else
7347
7348 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7349 if test "x$LINE" != x ; then
7350 eval "DEFAULT_$LINE"
7351 else
7352 no_cache=1
7353 fi
7354
7355 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7356
7357 fi
7358
7359
7360 eval "$ac_cv_use_coldlg"
7361 if test "$no_cache" != 1; then
7362 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7363 fi
7364
7365 if test "$wxUSE_COLOURDLG" = yes; then
7366 echo "$ac_t""yes" 1>&6
7367 else
7368 echo "$ac_t""no" 1>&6
7369 fi
7370
7371
7372 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7373 echo "configure:7374: checking for --enable-filedlg" >&5
7374 no_cache=0
7375 # Check whether --enable-filedlg or --disable-filedlg was given.
7376 if test "${enable_filedlg+set}" = set; then
7377 enableval="$enable_filedlg"
7378
7379 if test "$enableval" = yes; then
7380 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7381 else
7382 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7383 fi
7384
7385 else
7386
7387 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7388 if test "x$LINE" != x ; then
7389 eval "DEFAULT_$LINE"
7390 else
7391 no_cache=1
7392 fi
7393
7394 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7395
7396 fi
7397
7398
7399 eval "$ac_cv_use_filedlg"
7400 if test "$no_cache" != 1; then
7401 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7402 fi
7403
7404 if test "$wxUSE_FILEDLG" = yes; then
7405 echo "$ac_t""yes" 1>&6
7406 else
7407 echo "$ac_t""no" 1>&6
7408 fi
7409
7410
7411 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7412 echo "configure:7413: checking for --enable-finddlg" >&5
7413 no_cache=0
7414 # Check whether --enable-finddlg or --disable-finddlg was given.
7415 if test "${enable_finddlg+set}" = set; then
7416 enableval="$enable_finddlg"
7417
7418 if test "$enableval" = yes; then
7419 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7420 else
7421 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7422 fi
7423
7424 else
7425
7426 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7427 if test "x$LINE" != x ; then
7428 eval "DEFAULT_$LINE"
7429 else
7430 no_cache=1
7431 fi
7432
7433 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7434
7435 fi
7436
7437
7438 eval "$ac_cv_use_finddlg"
7439 if test "$no_cache" != 1; then
7440 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7441 fi
7442
7443 if test "$wxUSE_FINDREPLDLG" = yes; then
7444 echo "$ac_t""yes" 1>&6
7445 else
7446 echo "$ac_t""no" 1>&6
7447 fi
7448
7449
7450 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7451 echo "configure:7452: checking for --enable-fontdlg" >&5
7452 no_cache=0
7453 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7454 if test "${enable_fontdlg+set}" = set; then
7455 enableval="$enable_fontdlg"
7456
7457 if test "$enableval" = yes; then
7458 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7459 else
7460 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7461 fi
7462
7463 else
7464
7465 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7466 if test "x$LINE" != x ; then
7467 eval "DEFAULT_$LINE"
7468 else
7469 no_cache=1
7470 fi
7471
7472 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7473
7474 fi
7475
7476
7477 eval "$ac_cv_use_fontdlg"
7478 if test "$no_cache" != 1; then
7479 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7480 fi
7481
7482 if test "$wxUSE_FONTDLG" = yes; then
7483 echo "$ac_t""yes" 1>&6
7484 else
7485 echo "$ac_t""no" 1>&6
7486 fi
7487
7488
7489 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7490 echo "configure:7491: checking for --enable-dirdlg" >&5
7491 no_cache=0
7492 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7493 if test "${enable_dirdlg+set}" = set; then
7494 enableval="$enable_dirdlg"
7495
7496 if test "$enableval" = yes; then
7497 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7498 else
7499 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7500 fi
7501
7502 else
7503
7504 LINE=`grep "wxUSE_DIRDLG" ${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_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7512
7513 fi
7514
7515
7516 eval "$ac_cv_use_dirdlg"
7517 if test "$no_cache" != 1; then
7518 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7519 fi
7520
7521 if test "$wxUSE_DIRDLG" = yes; then
7522 echo "$ac_t""yes" 1>&6
7523 else
7524 echo "$ac_t""no" 1>&6
7525 fi
7526
7527
7528 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7529 echo "configure:7530: checking for --enable-msgdlg" >&5
7530 no_cache=0
7531 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7532 if test "${enable_msgdlg+set}" = set; then
7533 enableval="$enable_msgdlg"
7534
7535 if test "$enableval" = yes; then
7536 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7537 else
7538 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7539 fi
7540
7541 else
7542
7543 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7544 if test "x$LINE" != x ; then
7545 eval "DEFAULT_$LINE"
7546 else
7547 no_cache=1
7548 fi
7549
7550 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7551
7552 fi
7553
7554
7555 eval "$ac_cv_use_msgdlg"
7556 if test "$no_cache" != 1; then
7557 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7558 fi
7559
7560 if test "$wxUSE_MSGDLG" = yes; then
7561 echo "$ac_t""yes" 1>&6
7562 else
7563 echo "$ac_t""no" 1>&6
7564 fi
7565
7566
7567 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7568 echo "configure:7569: checking for --enable-numberdlg" >&5
7569 no_cache=0
7570 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7571 if test "${enable_numberdlg+set}" = set; then
7572 enableval="$enable_numberdlg"
7573
7574 if test "$enableval" = yes; then
7575 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7576 else
7577 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7578 fi
7579
7580 else
7581
7582 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7583 if test "x$LINE" != x ; then
7584 eval "DEFAULT_$LINE"
7585 else
7586 no_cache=1
7587 fi
7588
7589 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7590
7591 fi
7592
7593
7594 eval "$ac_cv_use_numberdlg"
7595 if test "$no_cache" != 1; then
7596 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7597 fi
7598
7599 if test "$wxUSE_NUMBERDLG" = yes; then
7600 echo "$ac_t""yes" 1>&6
7601 else
7602 echo "$ac_t""no" 1>&6
7603 fi
7604
7605
7606 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7607 echo "configure:7608: checking for --enable-splash" >&5
7608 no_cache=0
7609 # Check whether --enable-splash or --disable-splash was given.
7610 if test "${enable_splash+set}" = set; then
7611 enableval="$enable_splash"
7612
7613 if test "$enableval" = yes; then
7614 ac_cv_use_splash='wxUSE_SPLASH=yes'
7615 else
7616 ac_cv_use_splash='wxUSE_SPLASH=no'
7617 fi
7618
7619 else
7620
7621 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7622 if test "x$LINE" != x ; then
7623 eval "DEFAULT_$LINE"
7624 else
7625 no_cache=1
7626 fi
7627
7628 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7629
7630 fi
7631
7632
7633 eval "$ac_cv_use_splash"
7634 if test "$no_cache" != 1; then
7635 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7636 fi
7637
7638 if test "$wxUSE_SPLASH" = yes; then
7639 echo "$ac_t""yes" 1>&6
7640 else
7641 echo "$ac_t""no" 1>&6
7642 fi
7643
7644
7645 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7646 echo "configure:7647: checking for --enable-textdlg" >&5
7647 no_cache=0
7648 # Check whether --enable-textdlg or --disable-textdlg was given.
7649 if test "${enable_textdlg+set}" = set; then
7650 enableval="$enable_textdlg"
7651
7652 if test "$enableval" = yes; then
7653 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7654 else
7655 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7656 fi
7657
7658 else
7659
7660 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7661 if test "x$LINE" != x ; then
7662 eval "DEFAULT_$LINE"
7663 else
7664 no_cache=1
7665 fi
7666
7667 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7668
7669 fi
7670
7671
7672 eval "$ac_cv_use_textdlg"
7673 if test "$no_cache" != 1; then
7674 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7675 fi
7676
7677 if test "$wxUSE_TEXTDLG" = yes; then
7678 echo "$ac_t""yes" 1>&6
7679 else
7680 echo "$ac_t""no" 1>&6
7681 fi
7682
7683
7684 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7685 echo "configure:7686: checking for --enable-tipdlg" >&5
7686 no_cache=0
7687 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7688 if test "${enable_tipdlg+set}" = set; then
7689 enableval="$enable_tipdlg"
7690
7691 if test "$enableval" = yes; then
7692 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7693 else
7694 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7695 fi
7696
7697 else
7698
7699 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7700 if test "x$LINE" != x ; then
7701 eval "DEFAULT_$LINE"
7702 else
7703 no_cache=1
7704 fi
7705
7706 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7707
7708 fi
7709
7710
7711 eval "$ac_cv_use_tipdlg"
7712 if test "$no_cache" != 1; then
7713 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7714 fi
7715
7716 if test "$wxUSE_STARTUP_TIPS" = yes; then
7717 echo "$ac_t""yes" 1>&6
7718 else
7719 echo "$ac_t""no" 1>&6
7720 fi
7721
7722
7723 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7724 echo "configure:7725: checking for --enable-progressdlg" >&5
7725 no_cache=0
7726 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7727 if test "${enable_progressdlg+set}" = set; then
7728 enableval="$enable_progressdlg"
7729
7730 if test "$enableval" = yes; then
7731 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7732 else
7733 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7734 fi
7735
7736 else
7737
7738 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7739 if test "x$LINE" != x ; then
7740 eval "DEFAULT_$LINE"
7741 else
7742 no_cache=1
7743 fi
7744
7745 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7746
7747 fi
7748
7749
7750 eval "$ac_cv_use_progressdlg"
7751 if test "$no_cache" != 1; then
7752 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7753 fi
7754
7755 if test "$wxUSE_PROGRESSDLG" = yes; then
7756 echo "$ac_t""yes" 1>&6
7757 else
7758 echo "$ac_t""no" 1>&6
7759 fi
7760
7761
7762 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7763 echo "configure:7764: checking for --enable-wizarddlg" >&5
7764 no_cache=0
7765 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7766 if test "${enable_wizarddlg+set}" = set; then
7767 enableval="$enable_wizarddlg"
7768
7769 if test "$enableval" = yes; then
7770 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7771 else
7772 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7773 fi
7774
7775 else
7776
7777 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7778 if test "x$LINE" != x ; then
7779 eval "DEFAULT_$LINE"
7780 else
7781 no_cache=1
7782 fi
7783
7784 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7785
7786 fi
7787
7788
7789 eval "$ac_cv_use_wizarddlg"
7790 if test "$no_cache" != 1; then
7791 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7792 fi
7793
7794 if test "$wxUSE_WIZARDDLG" = yes; then
7795 echo "$ac_t""yes" 1>&6
7796 else
7797 echo "$ac_t""no" 1>&6
7798 fi
7799
7800
7801
7802
7803 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7804 echo "configure:7805: checking for --enable-menus" >&5
7805 no_cache=0
7806 # Check whether --enable-menus or --disable-menus was given.
7807 if test "${enable_menus+set}" = set; then
7808 enableval="$enable_menus"
7809
7810 if test "$enableval" = yes; then
7811 ac_cv_use_menus='wxUSE_MENUS=yes'
7812 else
7813 ac_cv_use_menus='wxUSE_MENUS=no'
7814 fi
7815
7816 else
7817
7818 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7819 if test "x$LINE" != x ; then
7820 eval "DEFAULT_$LINE"
7821 else
7822 no_cache=1
7823 fi
7824
7825 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7826
7827 fi
7828
7829
7830 eval "$ac_cv_use_menus"
7831 if test "$no_cache" != 1; then
7832 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7833 fi
7834
7835 if test "$wxUSE_MENUS" = yes; then
7836 echo "$ac_t""yes" 1>&6
7837 else
7838 echo "$ac_t""no" 1>&6
7839 fi
7840
7841
7842 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7843 echo "configure:7844: checking for --enable-miniframe" >&5
7844 no_cache=0
7845 # Check whether --enable-miniframe or --disable-miniframe was given.
7846 if test "${enable_miniframe+set}" = set; then
7847 enableval="$enable_miniframe"
7848
7849 if test "$enableval" = yes; then
7850 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7851 else
7852 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7853 fi
7854
7855 else
7856
7857 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7858 if test "x$LINE" != x ; then
7859 eval "DEFAULT_$LINE"
7860 else
7861 no_cache=1
7862 fi
7863
7864 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7865
7866 fi
7867
7868
7869 eval "$ac_cv_use_miniframe"
7870 if test "$no_cache" != 1; then
7871 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7872 fi
7873
7874 if test "$wxUSE_MINIFRAME" = yes; then
7875 echo "$ac_t""yes" 1>&6
7876 else
7877 echo "$ac_t""no" 1>&6
7878 fi
7879
7880
7881 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7882 echo "configure:7883: checking for --enable-tooltips" >&5
7883 no_cache=0
7884 # Check whether --enable-tooltips or --disable-tooltips was given.
7885 if test "${enable_tooltips+set}" = set; then
7886 enableval="$enable_tooltips"
7887
7888 if test "$enableval" = yes; then
7889 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7890 else
7891 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7892 fi
7893
7894 else
7895
7896 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7897 if test "x$LINE" != x ; then
7898 eval "DEFAULT_$LINE"
7899 else
7900 no_cache=1
7901 fi
7902
7903 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7904
7905 fi
7906
7907
7908 eval "$ac_cv_use_tooltips"
7909 if test "$no_cache" != 1; then
7910 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7911 fi
7912
7913 if test "$wxUSE_TOOLTIPS" = yes; then
7914 echo "$ac_t""yes" 1>&6
7915 else
7916 echo "$ac_t""no" 1>&6
7917 fi
7918
7919
7920 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7921 echo "configure:7922: checking for --enable-splines" >&5
7922 no_cache=0
7923 # Check whether --enable-splines or --disable-splines was given.
7924 if test "${enable_splines+set}" = set; then
7925 enableval="$enable_splines"
7926
7927 if test "$enableval" = yes; then
7928 ac_cv_use_splines='wxUSE_SPLINES=yes'
7929 else
7930 ac_cv_use_splines='wxUSE_SPLINES=no'
7931 fi
7932
7933 else
7934
7935 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7936 if test "x$LINE" != x ; then
7937 eval "DEFAULT_$LINE"
7938 else
7939 no_cache=1
7940 fi
7941
7942 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7943
7944 fi
7945
7946
7947 eval "$ac_cv_use_splines"
7948 if test "$no_cache" != 1; then
7949 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7950 fi
7951
7952 if test "$wxUSE_SPLINES" = yes; then
7953 echo "$ac_t""yes" 1>&6
7954 else
7955 echo "$ac_t""no" 1>&6
7956 fi
7957
7958
7959 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7960 echo "configure:7961: checking for --enable-validators" >&5
7961 no_cache=0
7962 # Check whether --enable-validators or --disable-validators was given.
7963 if test "${enable_validators+set}" = set; then
7964 enableval="$enable_validators"
7965
7966 if test "$enableval" = yes; then
7967 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7968 else
7969 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7970 fi
7971
7972 else
7973
7974 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7975 if test "x$LINE" != x ; then
7976 eval "DEFAULT_$LINE"
7977 else
7978 no_cache=1
7979 fi
7980
7981 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7982
7983 fi
7984
7985
7986 eval "$ac_cv_use_validators"
7987 if test "$no_cache" != 1; then
7988 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7989 fi
7990
7991 if test "$wxUSE_VALIDATORS" = yes; then
7992 echo "$ac_t""yes" 1>&6
7993 else
7994 echo "$ac_t""no" 1>&6
7995 fi
7996
7997
7998 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7999 echo "configure:8000: checking for --enable-busyinfo" >&5
8000 no_cache=0
8001 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8002 if test "${enable_busyinfo+set}" = set; then
8003 enableval="$enable_busyinfo"
8004
8005 if test "$enableval" = yes; then
8006 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8007 else
8008 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8009 fi
8010
8011 else
8012
8013 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8014 if test "x$LINE" != x ; then
8015 eval "DEFAULT_$LINE"
8016 else
8017 no_cache=1
8018 fi
8019
8020 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8021
8022 fi
8023
8024
8025 eval "$ac_cv_use_busyinfo"
8026 if test "$no_cache" != 1; then
8027 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8028 fi
8029
8030 if test "$wxUSE_BUSYINFO" = yes; then
8031 echo "$ac_t""yes" 1>&6
8032 else
8033 echo "$ac_t""no" 1>&6
8034 fi
8035
8036
8037 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
8038 echo "configure:8039: checking for --enable-joystick" >&5
8039 no_cache=0
8040 # Check whether --enable-joystick or --disable-joystick was given.
8041 if test "${enable_joystick+set}" = set; then
8042 enableval="$enable_joystick"
8043
8044 if test "$enableval" = yes; then
8045 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8046 else
8047 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8048 fi
8049
8050 else
8051
8052 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8053 if test "x$LINE" != x ; then
8054 eval "DEFAULT_$LINE"
8055 else
8056 no_cache=1
8057 fi
8058
8059 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8060
8061 fi
8062
8063
8064 eval "$ac_cv_use_joystick"
8065 if test "$no_cache" != 1; then
8066 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8067 fi
8068
8069 if test "$wxUSE_JOYSTICK" = yes; then
8070 echo "$ac_t""yes" 1>&6
8071 else
8072 echo "$ac_t""no" 1>&6
8073 fi
8074
8075
8076 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8077 echo "configure:8078: checking for --enable-metafile" >&5
8078 no_cache=0
8079 # Check whether --enable-metafile or --disable-metafile was given.
8080 if test "${enable_metafile+set}" = set; then
8081 enableval="$enable_metafile"
8082
8083 if test "$enableval" = yes; then
8084 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8085 else
8086 ac_cv_use_metafile='wxUSE_METAFILE=no'
8087 fi
8088
8089 else
8090
8091 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8092 if test "x$LINE" != x ; then
8093 eval "DEFAULT_$LINE"
8094 else
8095 no_cache=1
8096 fi
8097
8098 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8099
8100 fi
8101
8102
8103 eval "$ac_cv_use_metafile"
8104 if test "$no_cache" != 1; then
8105 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8106 fi
8107
8108 if test "$wxUSE_METAFILE" = yes; then
8109 echo "$ac_t""yes" 1>&6
8110 else
8111 echo "$ac_t""no" 1>&6
8112 fi
8113
8114
8115 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8116 echo "configure:8117: checking for --enable-dragimage" >&5
8117 no_cache=0
8118 # Check whether --enable-dragimage or --disable-dragimage was given.
8119 if test "${enable_dragimage+set}" = set; then
8120 enableval="$enable_dragimage"
8121
8122 if test "$enableval" = yes; then
8123 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8124 else
8125 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8126 fi
8127
8128 else
8129
8130 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8131 if test "x$LINE" != x ; then
8132 eval "DEFAULT_$LINE"
8133 else
8134 no_cache=1
8135 fi
8136
8137 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8138
8139 fi
8140
8141
8142 eval "$ac_cv_use_dragimage"
8143 if test "$no_cache" != 1; then
8144 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8145 fi
8146
8147 if test "$wxUSE_DRAGIMAGE" = yes; then
8148 echo "$ac_t""yes" 1>&6
8149 else
8150 echo "$ac_t""no" 1>&6
8151 fi
8152
8153
8154
8155
8156 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8157 echo "configure:8158: checking for --enable-palette" >&5
8158 no_cache=0
8159 # Check whether --enable-palette or --disable-palette was given.
8160 if test "${enable_palette+set}" = set; then
8161 enableval="$enable_palette"
8162
8163 if test "$enableval" = yes; then
8164 ac_cv_use_palette='wxUSE_PALETTE=yes'
8165 else
8166 ac_cv_use_palette='wxUSE_PALETTE=no'
8167 fi
8168
8169 else
8170
8171 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8172 if test "x$LINE" != x ; then
8173 eval "DEFAULT_$LINE"
8174 else
8175 no_cache=1
8176 fi
8177
8178 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8179
8180 fi
8181
8182
8183 eval "$ac_cv_use_palette"
8184 if test "$no_cache" != 1; then
8185 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8186 fi
8187
8188 if test "$wxUSE_PALETTE" = yes; then
8189 echo "$ac_t""yes" 1>&6
8190 else
8191 echo "$ac_t""no" 1>&6
8192 fi
8193
8194
8195 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8196 echo "configure:8197: checking for --enable-image" >&5
8197 no_cache=0
8198 # Check whether --enable-image or --disable-image was given.
8199 if test "${enable_image+set}" = set; then
8200 enableval="$enable_image"
8201
8202 if test "$enableval" = yes; then
8203 ac_cv_use_image='wxUSE_IMAGE=yes'
8204 else
8205 ac_cv_use_image='wxUSE_IMAGE=no'
8206 fi
8207
8208 else
8209
8210 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8211 if test "x$LINE" != x ; then
8212 eval "DEFAULT_$LINE"
8213 else
8214 no_cache=1
8215 fi
8216
8217 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8218
8219 fi
8220
8221
8222 eval "$ac_cv_use_image"
8223 if test "$no_cache" != 1; then
8224 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8225 fi
8226
8227 if test "$wxUSE_IMAGE" = yes; then
8228 echo "$ac_t""yes" 1>&6
8229 else
8230 echo "$ac_t""no" 1>&6
8231 fi
8232
8233
8234 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8235 echo "configure:8236: checking for --enable-gif" >&5
8236 no_cache=0
8237 # Check whether --enable-gif or --disable-gif was given.
8238 if test "${enable_gif+set}" = set; then
8239 enableval="$enable_gif"
8240
8241 if test "$enableval" = yes; then
8242 ac_cv_use_gif='wxUSE_GIF=yes'
8243 else
8244 ac_cv_use_gif='wxUSE_GIF=no'
8245 fi
8246
8247 else
8248
8249 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8250 if test "x$LINE" != x ; then
8251 eval "DEFAULT_$LINE"
8252 else
8253 no_cache=1
8254 fi
8255
8256 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8257
8258 fi
8259
8260
8261 eval "$ac_cv_use_gif"
8262 if test "$no_cache" != 1; then
8263 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8264 fi
8265
8266 if test "$wxUSE_GIF" = yes; then
8267 echo "$ac_t""yes" 1>&6
8268 else
8269 echo "$ac_t""no" 1>&6
8270 fi
8271
8272
8273 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8274 echo "configure:8275: checking for --enable-pcx" >&5
8275 no_cache=0
8276 # Check whether --enable-pcx or --disable-pcx was given.
8277 if test "${enable_pcx+set}" = set; then
8278 enableval="$enable_pcx"
8279
8280 if test "$enableval" = yes; then
8281 ac_cv_use_pcx='wxUSE_PCX=yes'
8282 else
8283 ac_cv_use_pcx='wxUSE_PCX=no'
8284 fi
8285
8286 else
8287
8288 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8289 if test "x$LINE" != x ; then
8290 eval "DEFAULT_$LINE"
8291 else
8292 no_cache=1
8293 fi
8294
8295 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8296
8297 fi
8298
8299
8300 eval "$ac_cv_use_pcx"
8301 if test "$no_cache" != 1; then
8302 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8303 fi
8304
8305 if test "$wxUSE_PCX" = yes; then
8306 echo "$ac_t""yes" 1>&6
8307 else
8308 echo "$ac_t""no" 1>&6
8309 fi
8310
8311
8312 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8313 echo "configure:8314: checking for --enable-iff" >&5
8314 no_cache=0
8315 # Check whether --enable-iff or --disable-iff was given.
8316 if test "${enable_iff+set}" = set; then
8317 enableval="$enable_iff"
8318
8319 if test "$enableval" = yes; then
8320 ac_cv_use_iff='wxUSE_IFF=yes'
8321 else
8322 ac_cv_use_iff='wxUSE_IFF=no'
8323 fi
8324
8325 else
8326
8327 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8328 if test "x$LINE" != x ; then
8329 eval "DEFAULT_$LINE"
8330 else
8331 no_cache=1
8332 fi
8333
8334 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8335
8336 fi
8337
8338
8339 eval "$ac_cv_use_iff"
8340 if test "$no_cache" != 1; then
8341 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8342 fi
8343
8344 if test "$wxUSE_IFF" = yes; then
8345 echo "$ac_t""yes" 1>&6
8346 else
8347 echo "$ac_t""no" 1>&6
8348 fi
8349
8350
8351 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8352 echo "configure:8353: checking for --enable-pnm" >&5
8353 no_cache=0
8354 # Check whether --enable-pnm or --disable-pnm was given.
8355 if test "${enable_pnm+set}" = set; then
8356 enableval="$enable_pnm"
8357
8358 if test "$enableval" = yes; then
8359 ac_cv_use_pnm='wxUSE_PNM=yes'
8360 else
8361 ac_cv_use_pnm='wxUSE_PNM=no'
8362 fi
8363
8364 else
8365
8366 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8367 if test "x$LINE" != x ; then
8368 eval "DEFAULT_$LINE"
8369 else
8370 no_cache=1
8371 fi
8372
8373 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8374
8375 fi
8376
8377
8378 eval "$ac_cv_use_pnm"
8379 if test "$no_cache" != 1; then
8380 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8381 fi
8382
8383 if test "$wxUSE_PNM" = yes; then
8384 echo "$ac_t""yes" 1>&6
8385 else
8386 echo "$ac_t""no" 1>&6
8387 fi
8388
8389
8390 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8391 echo "configure:8392: checking for --enable-xpm" >&5
8392 no_cache=0
8393 # Check whether --enable-xpm or --disable-xpm was given.
8394 if test "${enable_xpm+set}" = set; then
8395 enableval="$enable_xpm"
8396
8397 if test "$enableval" = yes; then
8398 ac_cv_use_xpm='wxUSE_XPM=yes'
8399 else
8400 ac_cv_use_xpm='wxUSE_XPM=no'
8401 fi
8402
8403 else
8404
8405 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8406 if test "x$LINE" != x ; then
8407 eval "DEFAULT_$LINE"
8408 else
8409 no_cache=1
8410 fi
8411
8412 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8413
8414 fi
8415
8416
8417 eval "$ac_cv_use_xpm"
8418 if test "$no_cache" != 1; then
8419 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8420 fi
8421
8422 if test "$wxUSE_XPM" = yes; then
8423 echo "$ac_t""yes" 1>&6
8424 else
8425 echo "$ac_t""no" 1>&6
8426 fi
8427
8428
8429 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8430 echo "configure:8431: checking for --enable-ico_cur" >&5
8431 no_cache=0
8432 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8433 if test "${enable_ico_cur+set}" = set; then
8434 enableval="$enable_ico_cur"
8435
8436 if test "$enableval" = yes; then
8437 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8438 else
8439 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8440 fi
8441
8442 else
8443
8444 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8445 if test "x$LINE" != x ; then
8446 eval "DEFAULT_$LINE"
8447 else
8448 no_cache=1
8449 fi
8450
8451 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8452
8453 fi
8454
8455
8456 eval "$ac_cv_use_ico_cur"
8457 if test "$no_cache" != 1; then
8458 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8459 fi
8460
8461 if test "$wxUSE_ICO_CUR" = yes; then
8462 echo "$ac_t""yes" 1>&6
8463 else
8464 echo "$ac_t""no" 1>&6
8465 fi
8466
8467
8468 fi
8469
8470
8471 echo "saving argument cache $wx_arg_cache_file"
8472 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8473
8474
8475
8476 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8477 echo "configure:8478: checking for toolkit" >&5
8478
8479 if test "$wxUSE_GUI" = "yes"; then
8480
8481 if test "$USE_BEOS" = 1; then
8482 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8483 fi
8484
8485 if test "$TOOLKIT_GIVEN" = 1; then
8486 for toolkit in `echo $ALL_TOOLKITS`; do
8487 var=wxUSE_$toolkit
8488 eval "value=\$${var}"
8489 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8490 done
8491 else
8492 for toolkit in `echo $ALL_TOOLKITS`; do
8493 if test "$has_toolkit_in_cache" != 1; then
8494 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8495 else
8496 var=DEFAULT_wxUSE_$toolkit
8497 fi
8498 eval "wxUSE_$toolkit=\$${var}"
8499 done
8500 fi
8501
8502 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8503 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8504
8505 case "${host}" in
8506 *-pc-os2_emx | *-pc-os2-emx )
8507 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8508 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8509 LEX_STEM="lexyy"
8510 ;;
8511 *)
8512 PATH_IFS=':'
8513 LEX_STEM="lex.yy"
8514 ;;
8515 esac
8516
8517 case "$NUM_TOOLKITS" in
8518 1)
8519 ;;
8520 0)
8521 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8522 ;;
8523 *)
8524 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8525 esac
8526
8527 for toolkit in `echo $ALL_TOOLKITS`; do
8528 var=wxUSE_$toolkit
8529 eval "value=\$${var}"
8530 if test "x$value" != x; then
8531 cache_var=CACHE_$toolkit
8532 eval "cache=\$${cache_var}"
8533 if test "$cache" = 1; then
8534 echo "$var=$value" >> ${wx_arg_cache_file}
8535 fi
8536 if test "$value" = 1; then
8537 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8538 echo "$ac_t""$toolkit_echo" 1>&6
8539 fi
8540 fi
8541 done
8542 else
8543 PATH_IFS=':'
8544 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8545 fi
8546
8547
8548 cat > confcache <<\EOF
8549 # This file is a shell script that caches the results of configure
8550 # tests run on this system so they can be shared between configure
8551 # scripts and configure runs. It is not useful on other systems.
8552 # If it contains results you don't want to keep, you may remove or edit it.
8553 #
8554 # By default, configure uses ./config.cache as the cache file,
8555 # creating it if it does not exist already. You can give configure
8556 # the --cache-file=FILE option to use a different cache file; that is
8557 # what configure does when it calls configure scripts in
8558 # subdirectories, so they share the cache.
8559 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8560 # config.status only pays attention to the cache file if you give it the
8561 # --recheck option to rerun configure.
8562 #
8563 EOF
8564 # The following way of writing the cache mishandles newlines in values,
8565 # but we know of no workaround that is simple, portable, and efficient.
8566 # So, don't put newlines in cache variables' values.
8567 # Ultrix sh set writes to stderr and can't be redirected directly,
8568 # and sets the high bit in the cache file unless we assign to the vars.
8569 (set) 2>&1 |
8570 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8571 *ac_space=\ *)
8572 # `set' does not quote correctly, so add quotes (double-quote substitution
8573 # turns \\\\ into \\, and sed turns \\ into \).
8574 sed -n \
8575 -e "s/'/'\\\\''/g" \
8576 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8577 ;;
8578 *)
8579 # `set' quotes correctly as required by POSIX, so do not add quotes.
8580 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8581 ;;
8582 esac >> confcache
8583 if cmp -s $cache_file confcache; then
8584 :
8585 else
8586 if test -w $cache_file; then
8587 echo "updating cache $cache_file"
8588 cat confcache > $cache_file
8589 else
8590 echo "not updating unwritable cache $cache_file"
8591 fi
8592 fi
8593 rm -f confcache
8594
8595
8596 if test "$build" != "$host" ; then
8597 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
8598 CC=$host_alias-gcc
8599 CXX=$host_alias-c++
8600 AR=$host_alias-ar
8601 RANLIB=$host_alias-ranlib
8602 DLLTOOL=$host_alias-dlltool
8603 RESCOMP=$host_alias-windres
8604 LD=$host_alias-ld
8605 NM=$host_alias-nm
8606 STRIP=$host_alias-strip
8607 else
8608 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8609 fi
8610 fi
8611
8612 # Extract the first word of "gcc", so it can be a program name with args.
8613 set dummy gcc; ac_word=$2
8614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8615 echo "configure:8616: checking for $ac_word" >&5
8616 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8617 echo $ac_n "(cached) $ac_c" 1>&6
8618 else
8619 if test -n "$CC"; then
8620 ac_cv_prog_CC="$CC" # Let the user override the test.
8621 else
8622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8623 ac_dummy="$PATH"
8624 for ac_dir in $ac_dummy; do
8625 test -z "$ac_dir" && ac_dir=.
8626 if test -f $ac_dir/$ac_word; then
8627 ac_cv_prog_CC="gcc"
8628 break
8629 fi
8630 done
8631 IFS="$ac_save_ifs"
8632 fi
8633 fi
8634 CC="$ac_cv_prog_CC"
8635 if test -n "$CC"; then
8636 echo "$ac_t""$CC" 1>&6
8637 else
8638 echo "$ac_t""no" 1>&6
8639 fi
8640
8641 if test -z "$CC"; then
8642 # Extract the first word of "cc", so it can be a program name with args.
8643 set dummy cc; ac_word=$2
8644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8645 echo "configure:8646: checking for $ac_word" >&5
8646 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8647 echo $ac_n "(cached) $ac_c" 1>&6
8648 else
8649 if test -n "$CC"; then
8650 ac_cv_prog_CC="$CC" # Let the user override the test.
8651 else
8652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8653 ac_prog_rejected=no
8654 ac_dummy="$PATH"
8655 for ac_dir in $ac_dummy; do
8656 test -z "$ac_dir" && ac_dir=.
8657 if test -f $ac_dir/$ac_word; then
8658 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8659 ac_prog_rejected=yes
8660 continue
8661 fi
8662 ac_cv_prog_CC="cc"
8663 break
8664 fi
8665 done
8666 IFS="$ac_save_ifs"
8667 if test $ac_prog_rejected = yes; then
8668 # We found a bogon in the path, so make sure we never use it.
8669 set dummy $ac_cv_prog_CC
8670 shift
8671 if test $# -gt 0; then
8672 # We chose a different compiler from the bogus one.
8673 # However, it has the same basename, so the bogon will be chosen
8674 # first if we set CC to just the basename; use the full file name.
8675 shift
8676 set dummy "$ac_dir/$ac_word" "$@"
8677 shift
8678 ac_cv_prog_CC="$@"
8679 fi
8680 fi
8681 fi
8682 fi
8683 CC="$ac_cv_prog_CC"
8684 if test -n "$CC"; then
8685 echo "$ac_t""$CC" 1>&6
8686 else
8687 echo "$ac_t""no" 1>&6
8688 fi
8689
8690 if test -z "$CC"; then
8691 case "`uname -s`" in
8692 *win32* | *WIN32*)
8693 # Extract the first word of "cl", so it can be a program name with args.
8694 set dummy cl; ac_word=$2
8695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8696 echo "configure:8697: checking for $ac_word" >&5
8697 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
8699 else
8700 if test -n "$CC"; then
8701 ac_cv_prog_CC="$CC" # Let the user override the test.
8702 else
8703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8704 ac_dummy="$PATH"
8705 for ac_dir in $ac_dummy; do
8706 test -z "$ac_dir" && ac_dir=.
8707 if test -f $ac_dir/$ac_word; then
8708 ac_cv_prog_CC="cl"
8709 break
8710 fi
8711 done
8712 IFS="$ac_save_ifs"
8713 fi
8714 fi
8715 CC="$ac_cv_prog_CC"
8716 if test -n "$CC"; then
8717 echo "$ac_t""$CC" 1>&6
8718 else
8719 echo "$ac_t""no" 1>&6
8720 fi
8721 ;;
8722 esac
8723 fi
8724 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8725 fi
8726
8727 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8728 echo "configure:8729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8729
8730 ac_ext=c
8731 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8732 ac_cpp='$CPP $CPPFLAGS'
8733 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8734 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8735 cross_compiling=$ac_cv_prog_cc_cross
8736
8737 cat > conftest.$ac_ext << EOF
8738
8739 #line 8740 "configure"
8740 #include "confdefs.h"
8741
8742 main(){return(0);}
8743 EOF
8744 if { (eval echo configure:8745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8745 ac_cv_prog_cc_works=yes
8746 # If we can't run a trivial program, we are probably using a cross compiler.
8747 if (./conftest; exit) 2>/dev/null; then
8748 ac_cv_prog_cc_cross=no
8749 else
8750 ac_cv_prog_cc_cross=yes
8751 fi
8752 else
8753 echo "configure: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8755 ac_cv_prog_cc_works=no
8756 fi
8757 rm -fr conftest*
8758 ac_ext=c
8759 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8760 ac_cpp='$CPP $CPPFLAGS'
8761 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8762 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8763 cross_compiling=$ac_cv_prog_cc_cross
8764
8765 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8766 if test $ac_cv_prog_cc_works = no; then
8767 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8768 fi
8769 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8770 echo "configure:8771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8771 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8772 cross_compiling=$ac_cv_prog_cc_cross
8773
8774 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8775 echo "configure:8776: checking whether we are using GNU C" >&5
8776 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8777 echo $ac_n "(cached) $ac_c" 1>&6
8778 else
8779 cat > conftest.c <<EOF
8780 #ifdef __GNUC__
8781 yes;
8782 #endif
8783 EOF
8784 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8785 ac_cv_prog_gcc=yes
8786 else
8787 ac_cv_prog_gcc=no
8788 fi
8789 fi
8790
8791 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8792
8793 if test $ac_cv_prog_gcc = yes; then
8794 GCC=yes
8795 else
8796 GCC=
8797 fi
8798
8799 ac_test_CFLAGS="${CFLAGS+set}"
8800 ac_save_CFLAGS="$CFLAGS"
8801 CFLAGS=
8802 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8803 echo "configure:8804: checking whether ${CC-cc} accepts -g" >&5
8804 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8805 echo $ac_n "(cached) $ac_c" 1>&6
8806 else
8807 echo 'void f(){}' > conftest.c
8808 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8809 ac_cv_prog_cc_g=yes
8810 else
8811 ac_cv_prog_cc_g=no
8812 fi
8813 rm -f conftest*
8814
8815 fi
8816
8817 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8818 if test "$ac_test_CFLAGS" = set; then
8819 CFLAGS="$ac_save_CFLAGS"
8820 elif test $ac_cv_prog_cc_g = yes; then
8821 if test "$GCC" = yes; then
8822 CFLAGS="-g -O2"
8823 else
8824 CFLAGS="-g"
8825 fi
8826 else
8827 if test "$GCC" = yes; then
8828 CFLAGS="-O2"
8829 else
8830 CFLAGS=
8831 fi
8832 fi
8833
8834
8835 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8836
8837 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8838 echo "configure:8839: checking how to run the C preprocessor" >&5
8839 # On Suns, sometimes $CPP names a directory.
8840 if test -n "$CPP" && test -d "$CPP"; then
8841 CPP=
8842 fi
8843 if test -z "$CPP"; then
8844 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8845 echo $ac_n "(cached) $ac_c" 1>&6
8846 else
8847 # This must be in double quotes, not single quotes, because CPP may get
8848 # substituted into the Makefile and "${CC-cc}" will confuse make.
8849 CPP="${CC-cc} -E"
8850 # On the NeXT, cc -E runs the code through the compiler's parser,
8851 # not just through cpp.
8852 cat > conftest.$ac_ext <<EOF
8853 #line 8854 "configure"
8854 #include "confdefs.h"
8855 #include <assert.h>
8856 Syntax Error
8857 EOF
8858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8859 { (eval echo configure:8860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8861 if test -z "$ac_err"; then
8862 :
8863 else
8864 echo "$ac_err" >&5
8865 echo "configure: failed program was:" >&5
8866 cat conftest.$ac_ext >&5
8867 rm -rf conftest*
8868 CPP="${CC-cc} -E -traditional-cpp"
8869 cat > conftest.$ac_ext <<EOF
8870 #line 8871 "configure"
8871 #include "confdefs.h"
8872 #include <assert.h>
8873 Syntax Error
8874 EOF
8875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8876 { (eval echo configure:8877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8878 if test -z "$ac_err"; then
8879 :
8880 else
8881 echo "$ac_err" >&5
8882 echo "configure: failed program was:" >&5
8883 cat conftest.$ac_ext >&5
8884 rm -rf conftest*
8885 CPP="${CC-cc} -nologo -E"
8886 cat > conftest.$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8889 #include <assert.h>
8890 Syntax Error
8891 EOF
8892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8893 { (eval echo configure:8894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8895 if test -z "$ac_err"; then
8896 :
8897 else
8898 echo "$ac_err" >&5
8899 echo "configure: failed program was:" >&5
8900 cat conftest.$ac_ext >&5
8901 rm -rf conftest*
8902 CPP=/lib/cpp
8903 fi
8904 rm -f conftest*
8905 fi
8906 rm -f conftest*
8907 fi
8908 rm -f conftest*
8909 ac_cv_prog_CPP="$CPP"
8910 fi
8911 CPP="$ac_cv_prog_CPP"
8912 else
8913 ac_cv_prog_CPP="$CPP"
8914 fi
8915 echo "$ac_t""$CPP" 1>&6
8916
8917 if test $ac_cv_prog_gcc = yes; then
8918 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8919 echo "configure:8920: checking whether ${CC-cc} needs -traditional" >&5
8920 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8921 echo $ac_n "(cached) $ac_c" 1>&6
8922 else
8923 ac_pattern="Autoconf.*'x'"
8924 cat > conftest.$ac_ext <<EOF
8925 #line 8926 "configure"
8926 #include "confdefs.h"
8927 #include <sgtty.h>
8928 Autoconf TIOCGETP
8929 EOF
8930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8931 egrep "$ac_pattern" >/dev/null 2>&1; then
8932 rm -rf conftest*
8933 ac_cv_prog_gcc_traditional=yes
8934 else
8935 rm -rf conftest*
8936 ac_cv_prog_gcc_traditional=no
8937 fi
8938 rm -f conftest*
8939
8940
8941 if test $ac_cv_prog_gcc_traditional = no; then
8942 cat > conftest.$ac_ext <<EOF
8943 #line 8944 "configure"
8944 #include "confdefs.h"
8945 #include <termio.h>
8946 Autoconf TCGETA
8947 EOF
8948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8949 egrep "$ac_pattern" >/dev/null 2>&1; then
8950 rm -rf conftest*
8951 ac_cv_prog_gcc_traditional=yes
8952 fi
8953 rm -f conftest*
8954
8955 fi
8956 fi
8957
8958 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8959 if test $ac_cv_prog_gcc_traditional = yes; then
8960 CC="$CC -traditional"
8961 fi
8962 fi
8963
8964
8965
8966 ac_ext=C
8967 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8968 ac_cpp='$CXXCPP $CPPFLAGS'
8969 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8970 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8971 cross_compiling=$ac_cv_prog_cxx_cross
8972
8973
8974 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8975 do
8976 # Extract the first word of "$ac_prog", so it can be a program name with args.
8977 set dummy $ac_prog; ac_word=$2
8978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8979 echo "configure:8980: checking for $ac_word" >&5
8980 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8981 echo $ac_n "(cached) $ac_c" 1>&6
8982 else
8983 if test -n "$CXX"; then
8984 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8985 else
8986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8987 ac_dummy="$PATH"
8988 for ac_dir in $ac_dummy; do
8989 test -z "$ac_dir" && ac_dir=.
8990 if test -f $ac_dir/$ac_word; then
8991 ac_cv_prog_CXX="$ac_prog"
8992 break
8993 fi
8994 done
8995 IFS="$ac_save_ifs"
8996 fi
8997 fi
8998 CXX="$ac_cv_prog_CXX"
8999 if test -n "$CXX"; then
9000 echo "$ac_t""$CXX" 1>&6
9001 else
9002 echo "$ac_t""no" 1>&6
9003 fi
9004
9005 test -n "$CXX" && break
9006 done
9007 test -n "$CXX" || CXX="gcc"
9008
9009
9010 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9011 echo "configure:9012: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9012
9013 ac_ext=C
9014 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9015 ac_cpp='$CXXCPP $CPPFLAGS'
9016 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9017 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9018 cross_compiling=$ac_cv_prog_cxx_cross
9019
9020 cat > conftest.$ac_ext << EOF
9021
9022 #line 9023 "configure"
9023 #include "confdefs.h"
9024
9025 int main(){return(0);}
9026 EOF
9027 if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9028 ac_cv_prog_cxx_works=yes
9029 # If we can't run a trivial program, we are probably using a cross compiler.
9030 if (./conftest; exit) 2>/dev/null; then
9031 ac_cv_prog_cxx_cross=no
9032 else
9033 ac_cv_prog_cxx_cross=yes
9034 fi
9035 else
9036 echo "configure: failed program was:" >&5
9037 cat conftest.$ac_ext >&5
9038 ac_cv_prog_cxx_works=no
9039 fi
9040 rm -fr conftest*
9041 ac_ext=C
9042 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9043 ac_cpp='$CXXCPP $CPPFLAGS'
9044 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9045 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9046 cross_compiling=$ac_cv_prog_cxx_cross
9047
9048 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9049 if test $ac_cv_prog_cxx_works = no; then
9050 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9051 fi
9052 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9053 echo "configure:9054: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9054 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9055 cross_compiling=$ac_cv_prog_cxx_cross
9056
9057 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9058 echo "configure:9059: checking whether we are using GNU C++" >&5
9059 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9060 echo $ac_n "(cached) $ac_c" 1>&6
9061 else
9062 cat > conftest.C <<EOF
9063 #ifdef __GNUC__
9064 yes;
9065 #endif
9066 EOF
9067 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9068 ac_cv_prog_gxx=yes
9069 else
9070 ac_cv_prog_gxx=no
9071 fi
9072 fi
9073
9074 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9075
9076 if test $ac_cv_prog_gxx = yes; then
9077 GXX=yes
9078 else
9079 GXX=
9080 fi
9081
9082 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9083 ac_save_CXXFLAGS="$CXXFLAGS"
9084 CXXFLAGS=
9085 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9086 echo "configure:9087: checking whether ${CXX-g++} accepts -g" >&5
9087 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9088 echo $ac_n "(cached) $ac_c" 1>&6
9089 else
9090 echo 'void f(){}' > conftest.cc
9091 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9092 ac_cv_prog_cxx_g=yes
9093 else
9094 ac_cv_prog_cxx_g=no
9095 fi
9096 rm -f conftest*
9097
9098 fi
9099
9100 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9101 if test "$ac_test_CXXFLAGS" = set; then
9102 CXXFLAGS="$ac_save_CXXFLAGS"
9103 elif test $ac_cv_prog_cxx_g = yes; then
9104 if test "$GXX" = yes; then
9105 CXXFLAGS="-g -O2"
9106 else
9107 CXXFLAGS="-g"
9108 fi
9109 else
9110 if test "$GXX" = yes; then
9111 CXXFLAGS="-O2"
9112 else
9113 CXXFLAGS=
9114 fi
9115 fi
9116
9117
9118 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
9119
9120 ac_ext=c
9121 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9122 ac_cpp='$CPP $CPPFLAGS'
9123 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9124 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9125 cross_compiling=$ac_cv_prog_cc_cross
9126
9127
9128 # Extract the first word of "ranlib", so it can be a program name with args.
9129 set dummy ranlib; ac_word=$2
9130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9131 echo "configure:9132: checking for $ac_word" >&5
9132 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9133 echo $ac_n "(cached) $ac_c" 1>&6
9134 else
9135 if test -n "$RANLIB"; then
9136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9137 else
9138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9139 ac_dummy="$PATH"
9140 for ac_dir in $ac_dummy; do
9141 test -z "$ac_dir" && ac_dir=.
9142 if test -f $ac_dir/$ac_word; then
9143 ac_cv_prog_RANLIB="ranlib"
9144 break
9145 fi
9146 done
9147 IFS="$ac_save_ifs"
9148 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9149 fi
9150 fi
9151 RANLIB="$ac_cv_prog_RANLIB"
9152 if test -n "$RANLIB"; then
9153 echo "$ac_t""$RANLIB" 1>&6
9154 else
9155 echo "$ac_t""no" 1>&6
9156 fi
9157
9158
9159 # Extract the first word of "ar", so it can be a program name with args.
9160 set dummy ar; ac_word=$2
9161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9162 echo "configure:9163: checking for $ac_word" >&5
9163 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9164 echo $ac_n "(cached) $ac_c" 1>&6
9165 else
9166 if test -n "$AR"; then
9167 ac_cv_prog_AR="$AR" # Let the user override the test.
9168 else
9169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9170 ac_dummy="$PATH"
9171 for ac_dir in $ac_dummy; do
9172 test -z "$ac_dir" && ac_dir=.
9173 if test -f $ac_dir/$ac_word; then
9174 ac_cv_prog_AR="ar"
9175 break
9176 fi
9177 done
9178 IFS="$ac_save_ifs"
9179 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9180 fi
9181 fi
9182 AR="$ac_cv_prog_AR"
9183 if test -n "$AR"; then
9184 echo "$ac_t""$AR" 1>&6
9185 else
9186 echo "$ac_t""no" 1>&6
9187 fi
9188
9189
9190 # Find a good install program. We prefer a C program (faster),
9191 # so one script is as good as another. But avoid the broken or
9192 # incompatible versions:
9193 # SysV /etc/install, /usr/sbin/install
9194 # SunOS /usr/etc/install
9195 # IRIX /sbin/install
9196 # AIX /bin/install
9197 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9198 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9199 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9200 # ./install, which can be erroneously created by make from ./install.sh.
9201 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9202 echo "configure:9203: checking for a BSD compatible install" >&5
9203 if test -z "$INSTALL"; then
9204 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9205 echo $ac_n "(cached) $ac_c" 1>&6
9206 else
9207 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9208 for ac_dir in $PATH; do
9209 # Account for people who put trailing slashes in PATH elements.
9210 case "$ac_dir/" in
9211 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9212 *)
9213 # OSF1 and SCO ODT 3.0 have their own names for install.
9214 # Don't use installbsd from OSF since it installs stuff as root
9215 # by default.
9216 for ac_prog in ginstall scoinst install; do
9217 if test -f $ac_dir/$ac_prog; then
9218 if test $ac_prog = install &&
9219 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9220 # AIX install. It has an incompatible calling convention.
9221 :
9222 else
9223 ac_cv_path_install="$ac_dir/$ac_prog -c"
9224 break 2
9225 fi
9226 fi
9227 done
9228 ;;
9229 esac
9230 done
9231 IFS="$ac_save_IFS"
9232
9233 fi
9234 if test "${ac_cv_path_install+set}" = set; then
9235 INSTALL="$ac_cv_path_install"
9236 else
9237 # As a last resort, use the slow shell script. We don't cache a
9238 # path for INSTALL within a source directory, because that will
9239 # break other packages using the cache if that directory is
9240 # removed, or if the path is relative.
9241 INSTALL="$ac_install_sh"
9242 fi
9243 fi
9244 echo "$ac_t""$INSTALL" 1>&6
9245
9246 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9247 # It thinks the first close brace ends the variable substitution.
9248 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9249
9250 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9251
9252 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9253
9254 case "${host}" in
9255
9256 powerpc-*-darwin* )
9257 INSTALL_PROGRAM="cp -fp"
9258 INSTALL_DATA="cp -fp"
9259 ;;
9260 *)
9261 ;;
9262 esac
9263
9264 # Extract the first word of "strip", so it can be a program name with args.
9265 set dummy strip; ac_word=$2
9266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9267 echo "configure:9268: checking for $ac_word" >&5
9268 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9269 echo $ac_n "(cached) $ac_c" 1>&6
9270 else
9271 if test -n "$STRIP"; then
9272 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9273 else
9274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9275 ac_dummy="$PATH"
9276 for ac_dir in $ac_dummy; do
9277 test -z "$ac_dir" && ac_dir=.
9278 if test -f $ac_dir/$ac_word; then
9279 ac_cv_prog_STRIP="strip"
9280 break
9281 fi
9282 done
9283 IFS="$ac_save_ifs"
9284 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9285 fi
9286 fi
9287 STRIP="$ac_cv_prog_STRIP"
9288 if test -n "$STRIP"; then
9289 echo "$ac_t""$STRIP" 1>&6
9290 else
9291 echo "$ac_t""no" 1>&6
9292 fi
9293
9294
9295 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9296 echo "configure:9297: checking if make is GNU make" >&5
9297 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9298 echo $ac_n "(cached) $ac_c" 1>&6
9299 else
9300
9301 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9302 egrep -s GNU); then
9303 wx_cv_prog_makeisgnu="yes"
9304 else
9305 wx_cv_prog_makeisgnu="no"
9306 fi
9307
9308 fi
9309
9310 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9311
9312 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9313 IF_GNU_MAKE=""
9314 else
9315 IF_GNU_MAKE="#"
9316 fi
9317
9318
9319
9320 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9321 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9322 echo "configure:9323: checking if make supports VPATH" >&5
9323 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9324 echo $ac_n "(cached) $ac_c" 1>&6
9325 else
9326
9327 cat - << EOF > confMake
9328 check : file
9329 cp \$? \$@
9330 cp \$? final_file
9331 EOF
9332
9333 if test ! -d sub ; then
9334 mkdir sub
9335 fi
9336 echo dummy > sub/file
9337 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9338 RESULT=$?
9339 rm -f sub/file check final_file confMake
9340 rmdir sub
9341 if test "$RESULT" = 0; then
9342 wx_cv_prog_makevpath="yes"
9343 else
9344 wx_cv_prog_makevpath="no"
9345 fi
9346
9347 fi
9348
9349 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9350
9351 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9352 { echo "configure: error:
9353 You need a make-utility that is able to use the variable
9354 VPATH correctly.
9355 If your version of make does not support VPATH correctly,
9356 please install GNU-make (possibly as gmake), and start
9357 configure with the following command:
9358 export MAKE=gmake; ./configure for sh-type shells
9359 setenv MAKE gmake; ./configure for csh-type shells
9360 Also please do remember to use gmake in this case every time
9361 you are trying to compile.
9362 " 1>&2; exit 1; }
9363 fi fi
9364 for ac_prog in 'bison -y' byacc
9365 do
9366 # Extract the first word of "$ac_prog", so it can be a program name with args.
9367 set dummy $ac_prog; ac_word=$2
9368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9369 echo "configure:9370: checking for $ac_word" >&5
9370 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9371 echo $ac_n "(cached) $ac_c" 1>&6
9372 else
9373 if test -n "$YACC"; then
9374 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9375 else
9376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9377 ac_dummy="$PATH"
9378 for ac_dir in $ac_dummy; do
9379 test -z "$ac_dir" && ac_dir=.
9380 if test -f $ac_dir/$ac_word; then
9381 ac_cv_prog_YACC="$ac_prog"
9382 break
9383 fi
9384 done
9385 IFS="$ac_save_ifs"
9386 fi
9387 fi
9388 YACC="$ac_cv_prog_YACC"
9389 if test -n "$YACC"; then
9390 echo "$ac_t""$YACC" 1>&6
9391 else
9392 echo "$ac_t""no" 1>&6
9393 fi
9394
9395 test -n "$YACC" && break
9396 done
9397 test -n "$YACC" || YACC="yacc"
9398
9399
9400 # Extract the first word of "flex", so it can be a program name with args.
9401 set dummy flex; ac_word=$2
9402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9403 echo "configure:9404: checking for $ac_word" >&5
9404 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9405 echo $ac_n "(cached) $ac_c" 1>&6
9406 else
9407 if test -n "$LEX"; then
9408 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9409 else
9410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9411 ac_dummy="$PATH"
9412 for ac_dir in $ac_dummy; do
9413 test -z "$ac_dir" && ac_dir=.
9414 if test -f $ac_dir/$ac_word; then
9415 ac_cv_prog_LEX="flex"
9416 break
9417 fi
9418 done
9419 IFS="$ac_save_ifs"
9420 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9421 fi
9422 fi
9423 LEX="$ac_cv_prog_LEX"
9424 if test -n "$LEX"; then
9425 echo "$ac_t""$LEX" 1>&6
9426 else
9427 echo "$ac_t""no" 1>&6
9428 fi
9429
9430 if test -z "$LEXLIB"
9431 then
9432 case "$LEX" in
9433 flex*) ac_lib=fl ;;
9434 *) ac_lib=l ;;
9435 esac
9436 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9437 echo "configure:9438: checking for yywrap in -l$ac_lib" >&5
9438 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9440 echo $ac_n "(cached) $ac_c" 1>&6
9441 else
9442 ac_save_LIBS="$LIBS"
9443 LIBS="-l$ac_lib $LIBS"
9444 cat > conftest.$ac_ext <<EOF
9445 #line 9446 "configure"
9446 #include "confdefs.h"
9447 /* Override any gcc2 internal prototype to avoid an error. */
9448 /* We use char because int might match the return type of a gcc2
9449 builtin and then its argument prototype would still apply. */
9450 char yywrap();
9451
9452 int main() {
9453 yywrap()
9454 ; return 0; }
9455 EOF
9456 if { (eval echo configure:9457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9457 rm -rf conftest*
9458 eval "ac_cv_lib_$ac_lib_var=yes"
9459 else
9460 echo "configure: failed program was:" >&5
9461 cat conftest.$ac_ext >&5
9462 rm -rf conftest*
9463 eval "ac_cv_lib_$ac_lib_var=no"
9464 fi
9465 rm -f conftest*
9466 LIBS="$ac_save_LIBS"
9467
9468 fi
9469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9470 echo "$ac_t""yes" 1>&6
9471 LEXLIB="-l$ac_lib"
9472 else
9473 echo "$ac_t""no" 1>&6
9474 fi
9475
9476 fi
9477
9478
9479 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9480 echo "configure:9481: checking whether ln -s works" >&5
9481 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9482 echo $ac_n "(cached) $ac_c" 1>&6
9483 else
9484 rm -f conftestdata
9485 if ln -s X conftestdata 2>/dev/null
9486 then
9487 rm -f conftestdata
9488 ac_cv_prog_LN_S="ln -s"
9489 else
9490 ac_cv_prog_LN_S=ln
9491 fi
9492 fi
9493 LN_S="$ac_cv_prog_LN_S"
9494 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9495 echo "$ac_t""yes" 1>&6
9496 else
9497 echo "$ac_t""no" 1>&6
9498 fi
9499
9500
9501
9502 SEARCH_INCLUDE="\
9503 /usr/local/include \
9504 \
9505 /usr/Motif-1.2/include \
9506 /usr/Motif-2.1/include \
9507 \
9508 /usr/include/Motif1.2 \
9509 /opt/xpm/include/X11 \
9510 /opt/GBxpm/include/ \
9511 /opt/GBxpm/X11/include/ \
9512 \
9513 /usr/Motif1.2/include \
9514 /usr/dt/include \
9515 /usr/openwin/include \
9516 \
9517 /usr/include/Xm \
9518 \
9519 /usr/X11R6/include \
9520 /usr/X11R6.4/include \
9521 /usr/X11R5/include \
9522 /usr/X11R4/include \
9523 \
9524 /usr/include/X11R6 \
9525 /usr/include/X11R5 \
9526 /usr/include/X11R4 \
9527 \
9528 /usr/local/X11R6/include \
9529 /usr/local/X11R5/include \
9530 /usr/local/X11R4/include \
9531 \
9532 /usr/local/include/X11R6 \
9533 /usr/local/include/X11R5 \
9534 /usr/local/include/X11R4 \
9535 \
9536 /usr/X11/include \
9537 /usr/include/X11 \
9538 /usr/local/X11/include \
9539 /usr/local/include/X11 \
9540 \
9541 /usr/X386/include \
9542 /usr/x386/include \
9543 /usr/XFree86/include/X11 \
9544 \
9545 X:/XFree86/include \
9546 X:/XFree86/include/X11 \
9547 \
9548 /usr/include/gtk \
9549 /usr/local/include/gtk \
9550 /usr/include/glib \
9551 /usr/local/include/glib \
9552 \
9553 /usr/include/qt \
9554 /usr/local/include/qt \
9555 \
9556 /usr/include/windows \
9557 /usr/include/wine \
9558 /usr/local/include/wine \
9559 \
9560 /usr/unsupported/include \
9561 /usr/athena/include \
9562 /usr/local/x11r5/include \
9563 /usr/lpp/Xamples/include \
9564 \
9565 /usr/openwin/share/include \
9566 \
9567 /usr/include"
9568
9569 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9570
9571
9572 cat > confcache <<\EOF
9573 # This file is a shell script that caches the results of configure
9574 # tests run on this system so they can be shared between configure
9575 # scripts and configure runs. It is not useful on other systems.
9576 # If it contains results you don't want to keep, you may remove or edit it.
9577 #
9578 # By default, configure uses ./config.cache as the cache file,
9579 # creating it if it does not exist already. You can give configure
9580 # the --cache-file=FILE option to use a different cache file; that is
9581 # what configure does when it calls configure scripts in
9582 # subdirectories, so they share the cache.
9583 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9584 # config.status only pays attention to the cache file if you give it the
9585 # --recheck option to rerun configure.
9586 #
9587 EOF
9588 # The following way of writing the cache mishandles newlines in values,
9589 # but we know of no workaround that is simple, portable, and efficient.
9590 # So, don't put newlines in cache variables' values.
9591 # Ultrix sh set writes to stderr and can't be redirected directly,
9592 # and sets the high bit in the cache file unless we assign to the vars.
9593 (set) 2>&1 |
9594 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9595 *ac_space=\ *)
9596 # `set' does not quote correctly, so add quotes (double-quote substitution
9597 # turns \\\\ into \\, and sed turns \\ into \).
9598 sed -n \
9599 -e "s/'/'\\\\''/g" \
9600 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9601 ;;
9602 *)
9603 # `set' quotes correctly as required by POSIX, so do not add quotes.
9604 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9605 ;;
9606 esac >> confcache
9607 if cmp -s $cache_file confcache; then
9608 :
9609 else
9610 if test -w $cache_file; then
9611 echo "updating cache $cache_file"
9612 cat confcache > $cache_file
9613 else
9614 echo "not updating unwritable cache $cache_file"
9615 fi
9616 fi
9617 rm -f confcache
9618
9619
9620
9621
9622 REGEX_INCLUDE=
9623 if test "$wxUSE_REGEX" != "no"; then
9624 cat >> confdefs.h <<\EOF
9625 #define wxUSE_REGEX 1
9626 EOF
9627
9628
9629 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9630 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
9631 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
9632 echo "configure:9633: checking for regex.h" >&5
9633 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9634 echo $ac_n "(cached) $ac_c" 1>&6
9635 else
9636 cat > conftest.$ac_ext <<EOF
9637 #line 9638 "configure"
9638 #include "confdefs.h"
9639 #include <regex.h>
9640 EOF
9641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9642 { (eval echo configure:9643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9643 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9644 if test -z "$ac_err"; then
9645 rm -rf conftest*
9646 eval "ac_cv_header_$ac_safe=yes"
9647 else
9648 echo "$ac_err" >&5
9649 echo "configure: failed program was:" >&5
9650 cat conftest.$ac_ext >&5
9651 rm -rf conftest*
9652 eval "ac_cv_header_$ac_safe=no"
9653 fi
9654 rm -f conftest*
9655 fi
9656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9657 echo "$ac_t""yes" 1>&6
9658 for ac_func in regcomp
9659 do
9660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9661 echo "configure:9662: checking for $ac_func" >&5
9662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9663 echo $ac_n "(cached) $ac_c" 1>&6
9664 else
9665 cat > conftest.$ac_ext <<EOF
9666 #line 9667 "configure"
9667 #include "confdefs.h"
9668 /* System header to define __stub macros and hopefully few prototypes,
9669 which can conflict with char $ac_func(); below. */
9670 #include <assert.h>
9671 /* Override any gcc2 internal prototype to avoid an error. */
9672 /* We use char because int might match the return type of a gcc2
9673 builtin and then its argument prototype would still apply. */
9674 char $ac_func();
9675
9676 int main() {
9677
9678 /* The GNU C library defines this for functions which it implements
9679 to always fail with ENOSYS. Some functions are actually named
9680 something starting with __ and the normal name is an alias. */
9681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9682 choke me
9683 #else
9684 $ac_func();
9685 #endif
9686
9687 ; return 0; }
9688 EOF
9689 if { (eval echo configure:9690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9690 rm -rf conftest*
9691 eval "ac_cv_func_$ac_func=yes"
9692 else
9693 echo "configure: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9695 rm -rf conftest*
9696 eval "ac_cv_func_$ac_func=no"
9697 fi
9698 rm -f conftest*
9699 fi
9700
9701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9702 echo "$ac_t""yes" 1>&6
9703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9704 cat >> confdefs.h <<EOF
9705 #define $ac_tr_func 1
9706 EOF
9707
9708 else
9709 echo "$ac_t""no" 1>&6
9710 fi
9711 done
9712
9713 else
9714 echo "$ac_t""no" 1>&6
9715 fi
9716
9717
9718 if test "x$ac_cv_func_regcomp" != "xyes"; then
9719 if test "$wxUSE_REGEX" = "sys" ; then
9720 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9721 else
9722 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9723 wxUSE_REGEX=builtin
9724 fi
9725 else
9726 wxUSE_REGEX=sys
9727 fi
9728 fi
9729
9730 if test "$wxUSE_REGEX" = "builtin" ; then
9731 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9732 fi
9733 fi
9734
9735
9736 ZLIB_INCLUDE=
9737 ZLIB_LINK=
9738 if test "$wxUSE_ZLIB" != "no" ; then
9739 cat >> confdefs.h <<\EOF
9740 #define wxUSE_ZLIB 1
9741 EOF
9742
9743
9744 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9745 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9746 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9747 echo "configure:9748: checking for zlib.h" >&5
9748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9749 echo $ac_n "(cached) $ac_c" 1>&6
9750 else
9751 cat > conftest.$ac_ext <<EOF
9752 #line 9753 "configure"
9753 #include "confdefs.h"
9754 #include <zlib.h>
9755 EOF
9756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9757 { (eval echo configure:9758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9759 if test -z "$ac_err"; then
9760 rm -rf conftest*
9761 eval "ac_cv_header_$ac_safe=yes"
9762 else
9763 echo "$ac_err" >&5
9764 echo "configure: failed program was:" >&5
9765 cat conftest.$ac_ext >&5
9766 rm -rf conftest*
9767 eval "ac_cv_header_$ac_safe=no"
9768 fi
9769 rm -f conftest*
9770 fi
9771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9772 echo "$ac_t""yes" 1>&6
9773 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9774 echo "configure:9775: checking for deflate in -lz" >&5
9775 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9777 echo $ac_n "(cached) $ac_c" 1>&6
9778 else
9779 ac_save_LIBS="$LIBS"
9780 LIBS="-lz $LIBS"
9781 cat > conftest.$ac_ext <<EOF
9782 #line 9783 "configure"
9783 #include "confdefs.h"
9784 /* Override any gcc2 internal prototype to avoid an error. */
9785 /* We use char because int might match the return type of a gcc2
9786 builtin and then its argument prototype would still apply. */
9787 char deflate();
9788
9789 int main() {
9790 deflate()
9791 ; return 0; }
9792 EOF
9793 if { (eval echo configure:9794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9794 rm -rf conftest*
9795 eval "ac_cv_lib_$ac_lib_var=yes"
9796 else
9797 echo "configure: failed program was:" >&5
9798 cat conftest.$ac_ext >&5
9799 rm -rf conftest*
9800 eval "ac_cv_lib_$ac_lib_var=no"
9801 fi
9802 rm -f conftest*
9803 LIBS="$ac_save_LIBS"
9804
9805 fi
9806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9807 echo "$ac_t""yes" 1>&6
9808 ZLIB_LINK=" -lz"
9809 else
9810 echo "$ac_t""no" 1>&6
9811 fi
9812
9813 else
9814 echo "$ac_t""no" 1>&6
9815 fi
9816
9817
9818 if test "x$ZLIB_LINK" = "x" ; then
9819 if test "$wxUSE_ZLIB" = "sys" ; then
9820 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9821 else
9822 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9823 wxUSE_ZLIB=builtin
9824 fi
9825 else
9826 wxUSE_ZLIB=sys
9827 fi
9828 fi
9829
9830 if test "$wxUSE_ZLIB" = "builtin" ; then
9831 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9832 fi
9833 fi
9834
9835
9836 PNG_INCLUDE=
9837 PNG_LINK=
9838 if test "$wxUSE_LIBPNG" != "no" ; then
9839 cat >> confdefs.h <<\EOF
9840 #define wxUSE_LIBPNG 1
9841 EOF
9842
9843
9844 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
9845 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
9846 wxUSE_LIBPNG=sys
9847 fi
9848
9849 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9850 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9851 wxUSE_LIBPNG=builtin
9852 fi
9853
9854 if test "$wxUSE_MGL" != 1 ; then
9855 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9856 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9857 echo $ac_n "checking for png.h""... $ac_c" 1>&6
9858 echo "configure:9859: checking for png.h" >&5
9859 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9860 echo $ac_n "(cached) $ac_c" 1>&6
9861 else
9862 cat > conftest.$ac_ext <<EOF
9863 #line 9864 "configure"
9864 #include "confdefs.h"
9865 #include <png.h>
9866 EOF
9867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9868 { (eval echo configure:9869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9870 if test -z "$ac_err"; then
9871 rm -rf conftest*
9872 eval "ac_cv_header_$ac_safe=yes"
9873 else
9874 echo "$ac_err" >&5
9875 echo "configure: failed program was:" >&5
9876 cat conftest.$ac_ext >&5
9877 rm -rf conftest*
9878 eval "ac_cv_header_$ac_safe=no"
9879 fi
9880 rm -f conftest*
9881 fi
9882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9883 echo "$ac_t""yes" 1>&6
9884 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9885 echo "configure:9886: checking for png_check_sig in -lpng" >&5
9886 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9888 echo $ac_n "(cached) $ac_c" 1>&6
9889 else
9890 ac_save_LIBS="$LIBS"
9891 LIBS="-lpng -lz -lm $LIBS"
9892 cat > conftest.$ac_ext <<EOF
9893 #line 9894 "configure"
9894 #include "confdefs.h"
9895 /* Override any gcc2 internal prototype to avoid an error. */
9896 /* We use char because int might match the return type of a gcc2
9897 builtin and then its argument prototype would still apply. */
9898 char png_check_sig();
9899
9900 int main() {
9901 png_check_sig()
9902 ; return 0; }
9903 EOF
9904 if { (eval echo configure:9905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9905 rm -rf conftest*
9906 eval "ac_cv_lib_$ac_lib_var=yes"
9907 else
9908 echo "configure: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9910 rm -rf conftest*
9911 eval "ac_cv_lib_$ac_lib_var=no"
9912 fi
9913 rm -f conftest*
9914 LIBS="$ac_save_LIBS"
9915
9916 fi
9917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9918 echo "$ac_t""yes" 1>&6
9919 PNG_LINK=" -lpng"
9920 else
9921 echo "$ac_t""no" 1>&6
9922 fi
9923
9924
9925 else
9926 echo "$ac_t""no" 1>&6
9927 fi
9928
9929
9930 if test "x$PNG_LINK" = "x" ; then
9931 if test "$wxUSE_LIBPNG" = "sys" ; then
9932 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9933 else
9934 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9935 wxUSE_LIBPNG=builtin
9936 fi
9937 else
9938 wxUSE_LIBPNG=yes
9939 fi
9940 fi
9941 fi
9942
9943 if test "$wxUSE_LIBPNG" = "builtin" ; then
9944 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9945 fi
9946
9947 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9948 fi
9949
9950
9951 JPEG_INCLUDE=
9952 JPEG_LINK=
9953 if test "$wxUSE_LIBJPEG" != "no" ; then
9954 cat >> confdefs.h <<\EOF
9955 #define wxUSE_LIBJPEG 1
9956 EOF
9957
9958
9959 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
9960 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
9961 wxUSE_LIBJPEG=sys
9962 fi
9963
9964 if test "$wxUSE_MGL" != 1 ; then
9965 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9966 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9967 echo "configure:9968: checking for jpeglib.h" >&5
9968 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9969 echo $ac_n "(cached) $ac_c" 1>&6
9970 else
9971 cat > conftest.$ac_ext <<EOF
9972 #line 9973 "configure"
9973 #include "confdefs.h"
9974
9975 #undef HAVE_STDLIB_H
9976 #include <stdio.h>
9977 #include <jpeglib.h>
9978
9979 int main() {
9980
9981
9982 ; return 0; }
9983 EOF
9984 if { (eval echo configure:9985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9985 rm -rf conftest*
9986 ac_cv_header_jpeglib_h=yes
9987 else
9988 echo "configure: failed program was:" >&5
9989 cat conftest.$ac_ext >&5
9990 rm -rf conftest*
9991 ac_cv_header_jpeglib_h=no
9992
9993 fi
9994 rm -f conftest*
9995
9996 fi
9997
9998 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9999
10000 if test "$ac_cv_header_jpeglib_h" = "yes"; then
10001 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
10002 echo "configure:10003: checking for jpeg_read_header in -ljpeg" >&5
10003 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
10004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10005 echo $ac_n "(cached) $ac_c" 1>&6
10006 else
10007 ac_save_LIBS="$LIBS"
10008 LIBS="-ljpeg $LIBS"
10009 cat > conftest.$ac_ext <<EOF
10010 #line 10011 "configure"
10011 #include "confdefs.h"
10012 /* Override any gcc2 internal prototype to avoid an error. */
10013 /* We use char because int might match the return type of a gcc2
10014 builtin and then its argument prototype would still apply. */
10015 char jpeg_read_header();
10016
10017 int main() {
10018 jpeg_read_header()
10019 ; return 0; }
10020 EOF
10021 if { (eval echo configure:10022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10022 rm -rf conftest*
10023 eval "ac_cv_lib_$ac_lib_var=yes"
10024 else
10025 echo "configure: failed program was:" >&5
10026 cat conftest.$ac_ext >&5
10027 rm -rf conftest*
10028 eval "ac_cv_lib_$ac_lib_var=no"
10029 fi
10030 rm -f conftest*
10031 LIBS="$ac_save_LIBS"
10032
10033 fi
10034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10035 echo "$ac_t""yes" 1>&6
10036 JPEG_LINK=" -ljpeg"
10037 else
10038 echo "$ac_t""no" 1>&6
10039 fi
10040
10041 fi
10042
10043 if test "x$JPEG_LINK" = "x" ; then
10044 if test "$wxUSE_LIBJPEG" = "sys" ; then
10045 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
10046 else
10047 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
10048 wxUSE_LIBJPEG=builtin
10049 fi
10050 else
10051 wxUSE_LIBJPEG=sys
10052 fi
10053 fi
10054 fi
10055
10056 if test "$wxUSE_LIBJPEG" = "builtin" ; then
10057 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10058 fi
10059 fi
10060
10061
10062 TIFF_INCLUDE=
10063 TIFF_LINK=
10064 if test "$wxUSE_LIBTIFF" != "no" ; then
10065 cat >> confdefs.h <<\EOF
10066 #define wxUSE_LIBTIFF 1
10067 EOF
10068
10069
10070 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
10071 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10072 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
10073 echo "configure:10074: checking for tiffio.h" >&5
10074 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10075 echo $ac_n "(cached) $ac_c" 1>&6
10076 else
10077 cat > conftest.$ac_ext <<EOF
10078 #line 10079 "configure"
10079 #include "confdefs.h"
10080 #include <tiffio.h>
10081 EOF
10082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10083 { (eval echo configure:10084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10085 if test -z "$ac_err"; then
10086 rm -rf conftest*
10087 eval "ac_cv_header_$ac_safe=yes"
10088 else
10089 echo "$ac_err" >&5
10090 echo "configure: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10092 rm -rf conftest*
10093 eval "ac_cv_header_$ac_safe=no"
10094 fi
10095 rm -f conftest*
10096 fi
10097 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10098 echo "$ac_t""yes" 1>&6
10099 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
10100 echo "configure:10101: checking for TIFFError in -ltiff" >&5
10101 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
10102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10103 echo $ac_n "(cached) $ac_c" 1>&6
10104 else
10105 ac_save_LIBS="$LIBS"
10106 LIBS="-ltiff -lm $LIBS"
10107 cat > conftest.$ac_ext <<EOF
10108 #line 10109 "configure"
10109 #include "confdefs.h"
10110 /* Override any gcc2 internal prototype to avoid an error. */
10111 /* We use char because int might match the return type of a gcc2
10112 builtin and then its argument prototype would still apply. */
10113 char TIFFError();
10114
10115 int main() {
10116 TIFFError()
10117 ; return 0; }
10118 EOF
10119 if { (eval echo configure:10120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10120 rm -rf conftest*
10121 eval "ac_cv_lib_$ac_lib_var=yes"
10122 else
10123 echo "configure: failed program was:" >&5
10124 cat conftest.$ac_ext >&5
10125 rm -rf conftest*
10126 eval "ac_cv_lib_$ac_lib_var=no"
10127 fi
10128 rm -f conftest*
10129 LIBS="$ac_save_LIBS"
10130
10131 fi
10132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10133 echo "$ac_t""yes" 1>&6
10134 TIFF_LINK=" -ltiff"
10135 else
10136 echo "$ac_t""no" 1>&6
10137 fi
10138
10139
10140 else
10141 echo "$ac_t""no" 1>&6
10142 fi
10143
10144
10145 if test "x$TIFF_LINK" = "x" ; then
10146 if test "$wxUSE_LIBTIFF" = "sys" ; then
10147 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10148 else
10149 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
10150 wxUSE_LIBTIFF=builtin
10151 fi
10152 else
10153 wxUSE_LIBTIFF=sys
10154 fi
10155 fi
10156
10157 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10158 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10159 fi
10160 fi
10161
10162
10163 AFMINSTALL=
10164
10165 TOOLKIT=
10166 TOOLKIT_INCLUDE=
10167 WIDGET_SET=
10168
10169 if test "$USE_WIN32" = 1 ; then
10170 for ac_hdr in w32api.h
10171 do
10172 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10173 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10174 echo "configure:10175: checking for $ac_hdr" >&5
10175 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10176 echo $ac_n "(cached) $ac_c" 1>&6
10177 else
10178 cat > conftest.$ac_ext <<EOF
10179 #line 10180 "configure"
10180 #include "confdefs.h"
10181 #include <$ac_hdr>
10182 EOF
10183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10184 { (eval echo configure:10185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10186 if test -z "$ac_err"; then
10187 rm -rf conftest*
10188 eval "ac_cv_header_$ac_safe=yes"
10189 else
10190 echo "$ac_err" >&5
10191 echo "configure: failed program was:" >&5
10192 cat conftest.$ac_ext >&5
10193 rm -rf conftest*
10194 eval "ac_cv_header_$ac_safe=no"
10195 fi
10196 rm -f conftest*
10197 fi
10198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10199 echo "$ac_t""yes" 1>&6
10200 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10201 cat >> confdefs.h <<EOF
10202 #define $ac_tr_hdr 1
10203 EOF
10204
10205 else
10206 echo "$ac_t""no" 1>&6
10207 fi
10208 done
10209
10210 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10211 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10212 echo "configure:10213: checking for windows.h" >&5
10213 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10214 echo $ac_n "(cached) $ac_c" 1>&6
10215 else
10216 cat > conftest.$ac_ext <<EOF
10217 #line 10218 "configure"
10218 #include "confdefs.h"
10219 #include <windows.h>
10220 EOF
10221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10222 { (eval echo configure:10223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10224 if test -z "$ac_err"; then
10225 rm -rf conftest*
10226 eval "ac_cv_header_$ac_safe=yes"
10227 else
10228 echo "$ac_err" >&5
10229 echo "configure: failed program was:" >&5
10230 cat conftest.$ac_ext >&5
10231 rm -rf conftest*
10232 eval "ac_cv_header_$ac_safe=no"
10233 fi
10234 rm -f conftest*
10235 fi
10236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10237 echo "$ac_t""yes" 1>&6
10238 :
10239 else
10240 echo "$ac_t""no" 1>&6
10241
10242 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10243
10244 fi
10245
10246
10247 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
10248 echo "configure:10249: checking if w32api has good enough MSIE support" >&5
10249 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
10250 echo $ac_n "(cached) $ac_c" 1>&6
10251 else
10252
10253 cat > conftest.$ac_ext <<EOF
10254 #line 10255 "configure"
10255 #include "confdefs.h"
10256 #include <w32api.h>
10257 int main() {
10258
10259 #define wxCHECK_W32API_VERSION( major, minor ) \
10260 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10261 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10262 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10263
10264 #if !wxCHECK_W32API_VERSION(1,1)
10265 #error You need w32api 1.1 or newer
10266 #endif
10267
10268 ; return 0; }
10269 EOF
10270 if { (eval echo configure:10271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10271 rm -rf conftest*
10272
10273 wx_cv_w32api_win32_ie=yes
10274
10275 else
10276 echo "configure: failed program was:" >&5
10277 cat conftest.$ac_ext >&5
10278 rm -rf conftest*
10279
10280 wx_cv_w32api_win32_ie=no
10281
10282 fi
10283 rm -f conftest*
10284
10285 fi
10286
10287 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10288 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10289 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10290 fi
10291
10292 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10293
10294 case "${host}" in
10295 *-*-cygwin* )
10296 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10297 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10298 esac
10299
10300 if test "$wxUSE_ODBC" = "yes" ; then
10301 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
10302 fi
10303
10304 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10305 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10306 fi
10307
10308 if test "$wxUSE_GUI" = "yes"; then
10309 USE_GUI=1
10310
10311 GUI_TK_LIBRARY=
10312
10313 WXGTK12=
10314 WXGTK127=
10315 WXGTK20=
10316
10317 if test "$wxUSE_MSW" = 1 ; then
10318 TOOLKIT=MSW
10319 GUIDIST=MSW_DIST
10320
10321 case "${host}" in
10322 *-*-mingw32* )
10323 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
10324 esac
10325 fi
10326
10327 if test "$wxUSE_GTK" = 1; then
10328 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
10329 echo "configure:10330: checking for GTK+ version" >&5
10330
10331 gtk_version_cached=1
10332 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10333 echo $ac_n "(cached) $ac_c" 1>&6
10334 else
10335
10336 gtk_version_cached=0
10337 echo "$ac_t""" 1>&6
10338
10339 GTK_MODULES=
10340 if test "$wxUSE_THREADS" = "yes"; then
10341 GTK_MODULES=gthread
10342 fi
10343
10344 wx_cv_lib_gtk=
10345 if test "x$wxUSE_GTK2" = "xyes"; then
10346 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10347 if test "${with_gtk_prefix+set}" = set; then
10348 withval="$with_gtk_prefix"
10349 gtk_config_prefix="$withval"
10350 else
10351 gtk_config_prefix=""
10352 fi
10353
10354 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10355 if test "${with_gtk_exec_prefix+set}" = set; then
10356 withval="$with_gtk_exec_prefix"
10357 gtk_config_exec_prefix="$withval"
10358 else
10359 gtk_config_exec_prefix=""
10360 fi
10361
10362 # Check whether --enable-gtktest or --disable-gtktest was given.
10363 if test "${enable_gtktest+set}" = set; then
10364 enableval="$enable_gtktest"
10365 :
10366 else
10367 enable_gtktest=yes
10368 fi
10369
10370
10371 for module in . $GTK_MODULES
10372 do
10373 case "$module" in
10374 gthread)
10375 gtk_config_args="$gtk_config_args gthread"
10376 ;;
10377 esac
10378 done
10379
10380 if test x$gtk_config_exec_prefix != x ; then
10381 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10382 if test x${GTK_CONFIG_2_0+set} != xset ; then
10383 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10384 fi
10385 fi
10386 if test x$gtk_config_prefix != x ; then
10387 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10388 if test x${GTK_CONFIG_2_0+set} != xset ; then
10389 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10390 fi
10391 fi
10392
10393 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10394 set dummy gtk-config-2.0; ac_word=$2
10395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10396 echo "configure:10397: checking for $ac_word" >&5
10397 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10398 echo $ac_n "(cached) $ac_c" 1>&6
10399 else
10400 case "$GTK_CONFIG_2_0" in
10401 /*)
10402 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10403 ;;
10404 ?:/*)
10405 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10406 ;;
10407 *)
10408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10409 ac_dummy="$PATH"
10410 for ac_dir in $ac_dummy; do
10411 test -z "$ac_dir" && ac_dir=.
10412 if test -f $ac_dir/$ac_word; then
10413 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10414 break
10415 fi
10416 done
10417 IFS="$ac_save_ifs"
10418 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10419 ;;
10420 esac
10421 fi
10422 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
10423 if test -n "$GTK_CONFIG_2_0"; then
10424 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
10425 else
10426 echo "$ac_t""no" 1>&6
10427 fi
10428
10429 min_gtk_version=1.3.1
10430 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10431 echo "configure:10432: checking for GTK - version >= $min_gtk_version" >&5
10432 no_gtk=""
10433 if test "$GTK_CONFIG_2_0" = "no" ; then
10434 no_gtk=yes
10435 else
10436 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10437 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10438 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10439 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10440 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10441 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10442 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10443 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10444 if test "x$enable_gtktest" = "xyes" ; then
10445 ac_save_CFLAGS="$CFLAGS"
10446 ac_save_LIBS="$LIBS"
10447 CFLAGS="$CFLAGS $GTK_CFLAGS"
10448 LIBS="$GTK_LIBS $LIBS"
10449 rm -f conf.gtktest
10450 if test "$cross_compiling" = yes; then
10451 echo $ac_n "cross compiling; assumed OK... $ac_c"
10452 else
10453 cat > conftest.$ac_ext <<EOF
10454 #line 10455 "configure"
10455 #include "confdefs.h"
10456
10457 #include <gtk/gtk.h>
10458 #include <stdio.h>
10459 #include <stdlib.h>
10460
10461 int
10462 main ()
10463 {
10464 int major, minor, micro;
10465 char *tmp_version;
10466
10467 system ("touch conf.gtktest");
10468
10469 /* HP/UX 9 (%@#!) writes to sscanf strings */
10470 tmp_version = g_strdup("$min_gtk_version");
10471 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10472 printf("%s, bad version string\n", "$min_gtk_version");
10473 exit(1);
10474 }
10475
10476 if ((gtk_major_version != $gtk_config_major_version) ||
10477 (gtk_minor_version != $gtk_config_minor_version) ||
10478 (gtk_micro_version != $gtk_config_micro_version))
10479 {
10480 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10481 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10482 gtk_major_version, gtk_minor_version, gtk_micro_version);
10483 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10484 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10485 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10486 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10487 printf("*** required on your system.\n");
10488 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10489 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10490 printf("*** before re-running configure\n");
10491 }
10492 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10493 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10494 (gtk_minor_version != GTK_MINOR_VERSION) ||
10495 (gtk_micro_version != GTK_MICRO_VERSION))
10496 {
10497 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10498 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10499 printf("*** library (version %d.%d.%d)\n",
10500 gtk_major_version, gtk_minor_version, gtk_micro_version);
10501 }
10502 #endif /* defined (GTK_MAJOR_VERSION) ... */
10503 else
10504 {
10505 if ((gtk_major_version > major) ||
10506 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10507 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10508 {
10509 return 0;
10510 }
10511 else
10512 {
10513 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10514 gtk_major_version, gtk_minor_version, gtk_micro_version);
10515 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10516 major, minor, micro);
10517 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10518 printf("***\n");
10519 printf("*** If you have already installed a sufficiently new version, this error\n");
10520 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10521 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10522 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10523 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10524 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10525 printf("*** so that the correct libraries are found at run-time))\n");
10526 }
10527 }
10528 return 1;
10529 }
10530
10531 EOF
10532 if { (eval echo configure:10533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10533 then
10534 :
10535 else
10536 echo "configure: failed program was:" >&5
10537 cat conftest.$ac_ext >&5
10538 rm -fr conftest*
10539 no_gtk=yes
10540 fi
10541 rm -fr conftest*
10542 fi
10543
10544 CFLAGS="$ac_save_CFLAGS"
10545 LIBS="$ac_save_LIBS"
10546 fi
10547 fi
10548 if test "x$no_gtk" = x ; then
10549 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
10550 wx_cv_lib_gtk=2.0
10551 else
10552 echo "$ac_t""no" 1>&6
10553 if test "$GTK_CONFIG_2_0" = "no" ; then
10554 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10555 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10556 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10557 echo "*** full path to gtk-config-2.0."
10558 else
10559 if test -f conf.gtktest ; then
10560 :
10561 else
10562 echo "*** Could not run GTK test program, checking why..."
10563 CFLAGS="$CFLAGS $GTK_CFLAGS"
10564 LIBS="$LIBS $GTK_LIBS"
10565 cat > conftest.$ac_ext <<EOF
10566 #line 10567 "configure"
10567 #include "confdefs.h"
10568
10569 #include <gtk/gtk.h>
10570 #include <stdio.h>
10571
10572 int main() {
10573 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10574 ; return 0; }
10575 EOF
10576 if { (eval echo configure:10577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10577 rm -rf conftest*
10578 echo "*** The test program compiled, but did not run. This usually means"
10579 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10580 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10581 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10582 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10583 echo "*** is required on your system"
10584 echo "***"
10585 echo "*** If you have an old version installed, it is best to remove it, although"
10586 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10587 echo "***"
10588 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10589 echo "*** came with the system with the command"
10590 echo "***"
10591 echo "*** rpm --erase --nodeps gtk gtk-devel"
10592 else
10593 echo "configure: failed program was:" >&5
10594 cat conftest.$ac_ext >&5
10595 rm -rf conftest*
10596 echo "*** The test program failed to compile or link. See the file config.log for the"
10597 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10598 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10599 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
10600 fi
10601 rm -f conftest*
10602 CFLAGS="$ac_save_CFLAGS"
10603 LIBS="$ac_save_LIBS"
10604 fi
10605 fi
10606 GTK_CFLAGS=""
10607 GTK_LIBS=""
10608 :
10609 fi
10610
10611
10612 rm -f conf.gtktest
10613
10614 fi
10615
10616 if test -z "$wx_cv_lib_gtk"; then
10617 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10618 if test "${with_gtk_prefix+set}" = set; then
10619 withval="$with_gtk_prefix"
10620 gtk_config_prefix="$withval"
10621 else
10622 gtk_config_prefix=""
10623 fi
10624
10625 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10626 if test "${with_gtk_exec_prefix+set}" = set; then
10627 withval="$with_gtk_exec_prefix"
10628 gtk_config_exec_prefix="$withval"
10629 else
10630 gtk_config_exec_prefix=""
10631 fi
10632
10633 # Check whether --enable-gtktest or --disable-gtktest was given.
10634 if test "${enable_gtktest+set}" = set; then
10635 enableval="$enable_gtktest"
10636 :
10637 else
10638 enable_gtktest=yes
10639 fi
10640
10641
10642 for module in . $GTK_MODULES
10643 do
10644 case "$module" in
10645 gthread)
10646 gtk_config_args="$gtk_config_args gthread"
10647 ;;
10648 esac
10649 done
10650
10651 if test x$gtk_config_exec_prefix != x ; then
10652 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10653 if test x${GTK_CONFIG+set} != xset ; then
10654 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10655 fi
10656 fi
10657 if test x$gtk_config_prefix != x ; then
10658 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10659 if test x${GTK_CONFIG+set} != xset ; then
10660 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10661 fi
10662 fi
10663
10664 # Extract the first word of "gtk-config", so it can be a program name with args.
10665 set dummy gtk-config; ac_word=$2
10666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10667 echo "configure:10668: checking for $ac_word" >&5
10668 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10669 echo $ac_n "(cached) $ac_c" 1>&6
10670 else
10671 case "$GTK_CONFIG" in
10672 /*)
10673 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10674 ;;
10675 ?:/*)
10676 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10677 ;;
10678 *)
10679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10680 ac_dummy="$PATH"
10681 for ac_dir in $ac_dummy; do
10682 test -z "$ac_dir" && ac_dir=.
10683 if test -f $ac_dir/$ac_word; then
10684 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10685 break
10686 fi
10687 done
10688 IFS="$ac_save_ifs"
10689 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10690 ;;
10691 esac
10692 fi
10693 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10694 if test -n "$GTK_CONFIG"; then
10695 echo "$ac_t""$GTK_CONFIG" 1>&6
10696 else
10697 echo "$ac_t""no" 1>&6
10698 fi
10699
10700 min_gtk_version=1.2.7
10701 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10702 echo "configure:10703: checking for GTK - version >= $min_gtk_version" >&5
10703 no_gtk=""
10704 if test "$GTK_CONFIG" = "no" ; then
10705 no_gtk=yes
10706 else
10707 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10708 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10709 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10710 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10711 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10712 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10713 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10714 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10715 if test "x$enable_gtktest" = "xyes" ; then
10716 ac_save_CFLAGS="$CFLAGS"
10717 ac_save_LIBS="$LIBS"
10718 CFLAGS="$CFLAGS $GTK_CFLAGS"
10719 LIBS="$GTK_LIBS $LIBS"
10720 rm -f conf.gtktest
10721 if test "$cross_compiling" = yes; then
10722 echo $ac_n "cross compiling; assumed OK... $ac_c"
10723 else
10724 cat > conftest.$ac_ext <<EOF
10725 #line 10726 "configure"
10726 #include "confdefs.h"
10727
10728 #include <gtk/gtk.h>
10729 #include <stdio.h>
10730 #include <stdlib.h>
10731
10732 int
10733 main ()
10734 {
10735 int major, minor, micro;
10736 char *tmp_version;
10737
10738 system ("touch conf.gtktest");
10739
10740 /* HP/UX 9 (%@#!) writes to sscanf strings */
10741 tmp_version = g_strdup("$min_gtk_version");
10742 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10743 printf("%s, bad version string\n", "$min_gtk_version");
10744 exit(1);
10745 }
10746
10747 if ((gtk_major_version != $gtk_config_major_version) ||
10748 (gtk_minor_version != $gtk_config_minor_version) ||
10749 (gtk_micro_version != $gtk_config_micro_version))
10750 {
10751 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10752 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10753 gtk_major_version, gtk_minor_version, gtk_micro_version);
10754 printf ("*** was found! If gtk-config was correct, then it is best\n");
10755 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10756 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10757 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10758 printf("*** required on your system.\n");
10759 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10760 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10761 printf("*** before re-running configure\n");
10762 }
10763 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10764 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10765 (gtk_minor_version != GTK_MINOR_VERSION) ||
10766 (gtk_micro_version != GTK_MICRO_VERSION))
10767 {
10768 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10769 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10770 printf("*** library (version %d.%d.%d)\n",
10771 gtk_major_version, gtk_minor_version, gtk_micro_version);
10772 }
10773 #endif /* defined (GTK_MAJOR_VERSION) ... */
10774 else
10775 {
10776 if ((gtk_major_version > major) ||
10777 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10778 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10779 {
10780 return 0;
10781 }
10782 else
10783 {
10784 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10785 gtk_major_version, gtk_minor_version, gtk_micro_version);
10786 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10787 major, minor, micro);
10788 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10789 printf("***\n");
10790 printf("*** If you have already installed a sufficiently new version, this error\n");
10791 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10792 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10793 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10794 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10795 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10796 printf("*** so that the correct libraries are found at run-time))\n");
10797 }
10798 }
10799 return 1;
10800 }
10801
10802 EOF
10803 if { (eval echo configure:10804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10804 then
10805 :
10806 else
10807 echo "configure: failed program was:" >&5
10808 cat conftest.$ac_ext >&5
10809 rm -fr conftest*
10810 no_gtk=yes
10811 fi
10812 rm -fr conftest*
10813 fi
10814
10815 CFLAGS="$ac_save_CFLAGS"
10816 LIBS="$ac_save_LIBS"
10817 fi
10818 fi
10819 if test "x$no_gtk" = x ; then
10820 echo "$ac_t""yes" 1>&6
10821 wx_cv_lib_gtk=1.2.7
10822 else
10823 echo "$ac_t""no" 1>&6
10824 if test "$GTK_CONFIG" = "no" ; then
10825 echo "*** The gtk-config script installed by GTK could not be found"
10826 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10827 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10828 echo "*** full path to gtk-config."
10829 else
10830 if test -f conf.gtktest ; then
10831 :
10832 else
10833 echo "*** Could not run GTK test program, checking why..."
10834 CFLAGS="$CFLAGS $GTK_CFLAGS"
10835 LIBS="$LIBS $GTK_LIBS"
10836 cat > conftest.$ac_ext <<EOF
10837 #line 10838 "configure"
10838 #include "confdefs.h"
10839
10840 #include <gtk/gtk.h>
10841 #include <stdio.h>
10842
10843 int main() {
10844 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10845 ; return 0; }
10846 EOF
10847 if { (eval echo configure:10848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10848 rm -rf conftest*
10849 echo "*** The test program compiled, but did not run. This usually means"
10850 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10851 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10852 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10853 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10854 echo "*** is required on your system"
10855 echo "***"
10856 echo "*** If you have an old version installed, it is best to remove it, although"
10857 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10858 echo "***"
10859 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10860 echo "*** came with the system with the command"
10861 echo "***"
10862 echo "*** rpm --erase --nodeps gtk gtk-devel"
10863 else
10864 echo "configure: failed program was:" >&5
10865 cat conftest.$ac_ext >&5
10866 rm -rf conftest*
10867 echo "*** The test program failed to compile or link. See the file config.log for the"
10868 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10869 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10870 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10871 fi
10872 rm -f conftest*
10873 CFLAGS="$ac_save_CFLAGS"
10874 LIBS="$ac_save_LIBS"
10875 fi
10876 fi
10877 GTK_CFLAGS=""
10878 GTK_LIBS=""
10879 :
10880 fi
10881
10882
10883 rm -f conf.gtktest
10884
10885 fi
10886
10887 if test -z "$wx_cv_lib_gtk"; then
10888 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10889 if test "${with_gtk_prefix+set}" = set; then
10890 withval="$with_gtk_prefix"
10891 gtk_config_prefix="$withval"
10892 else
10893 gtk_config_prefix=""
10894 fi
10895
10896 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10897 if test "${with_gtk_exec_prefix+set}" = set; then
10898 withval="$with_gtk_exec_prefix"
10899 gtk_config_exec_prefix="$withval"
10900 else
10901 gtk_config_exec_prefix=""
10902 fi
10903
10904 # Check whether --enable-gtktest or --disable-gtktest was given.
10905 if test "${enable_gtktest+set}" = set; then
10906 enableval="$enable_gtktest"
10907 :
10908 else
10909 enable_gtktest=yes
10910 fi
10911
10912
10913 for module in . $GTK_MODULES
10914 do
10915 case "$module" in
10916 gthread)
10917 gtk_config_args="$gtk_config_args gthread"
10918 ;;
10919 esac
10920 done
10921
10922 if test x$gtk_config_exec_prefix != x ; then
10923 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10924 if test x${GTK_CONFIG+set} != xset ; then
10925 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10926 fi
10927 fi
10928 if test x$gtk_config_prefix != x ; then
10929 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10930 if test x${GTK_CONFIG+set} != xset ; then
10931 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10932 fi
10933 fi
10934
10935 # Extract the first word of "gtk-config", so it can be a program name with args.
10936 set dummy gtk-config; ac_word=$2
10937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10938 echo "configure:10939: checking for $ac_word" >&5
10939 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10940 echo $ac_n "(cached) $ac_c" 1>&6
10941 else
10942 case "$GTK_CONFIG" in
10943 /*)
10944 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10945 ;;
10946 ?:/*)
10947 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10948 ;;
10949 *)
10950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10951 ac_dummy="$PATH"
10952 for ac_dir in $ac_dummy; do
10953 test -z "$ac_dir" && ac_dir=.
10954 if test -f $ac_dir/$ac_word; then
10955 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10956 break
10957 fi
10958 done
10959 IFS="$ac_save_ifs"
10960 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10961 ;;
10962 esac
10963 fi
10964 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10965 if test -n "$GTK_CONFIG"; then
10966 echo "$ac_t""$GTK_CONFIG" 1>&6
10967 else
10968 echo "$ac_t""no" 1>&6
10969 fi
10970
10971 min_gtk_version=1.2.3
10972 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10973 echo "configure:10974: checking for GTK - version >= $min_gtk_version" >&5
10974 no_gtk=""
10975 if test "$GTK_CONFIG" = "no" ; then
10976 no_gtk=yes
10977 else
10978 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10979 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10980 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10981 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10982 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10983 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10984 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10985 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10986 if test "x$enable_gtktest" = "xyes" ; then
10987 ac_save_CFLAGS="$CFLAGS"
10988 ac_save_LIBS="$LIBS"
10989 CFLAGS="$CFLAGS $GTK_CFLAGS"
10990 LIBS="$GTK_LIBS $LIBS"
10991 rm -f conf.gtktest
10992 if test "$cross_compiling" = yes; then
10993 echo $ac_n "cross compiling; assumed OK... $ac_c"
10994 else
10995 cat > conftest.$ac_ext <<EOF
10996 #line 10997 "configure"
10997 #include "confdefs.h"
10998
10999 #include <gtk/gtk.h>
11000 #include <stdio.h>
11001 #include <stdlib.h>
11002
11003 int
11004 main ()
11005 {
11006 int major, minor, micro;
11007 char *tmp_version;
11008
11009 system ("touch conf.gtktest");
11010
11011 /* HP/UX 9 (%@#!) writes to sscanf strings */
11012 tmp_version = g_strdup("$min_gtk_version");
11013 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11014 printf("%s, bad version string\n", "$min_gtk_version");
11015 exit(1);
11016 }
11017
11018 if ((gtk_major_version != $gtk_config_major_version) ||
11019 (gtk_minor_version != $gtk_config_minor_version) ||
11020 (gtk_micro_version != $gtk_config_micro_version))
11021 {
11022 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11023 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11024 gtk_major_version, gtk_minor_version, gtk_micro_version);
11025 printf ("*** was found! If gtk-config was correct, then it is best\n");
11026 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11027 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11028 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11029 printf("*** required on your system.\n");
11030 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
11031 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
11032 printf("*** before re-running configure\n");
11033 }
11034 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
11035 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11036 (gtk_minor_version != GTK_MINOR_VERSION) ||
11037 (gtk_micro_version != GTK_MICRO_VERSION))
11038 {
11039 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11040 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11041 printf("*** library (version %d.%d.%d)\n",
11042 gtk_major_version, gtk_minor_version, gtk_micro_version);
11043 }
11044 #endif /* defined (GTK_MAJOR_VERSION) ... */
11045 else
11046 {
11047 if ((gtk_major_version > major) ||
11048 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11049 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11050 {
11051 return 0;
11052 }
11053 else
11054 {
11055 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11056 gtk_major_version, gtk_minor_version, gtk_micro_version);
11057 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11058 major, minor, micro);
11059 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11060 printf("***\n");
11061 printf("*** If you have already installed a sufficiently new version, this error\n");
11062 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11063 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11064 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11065 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11066 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11067 printf("*** so that the correct libraries are found at run-time))\n");
11068 }
11069 }
11070 return 1;
11071 }
11072
11073 EOF
11074 if { (eval echo configure:11075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11075 then
11076 :
11077 else
11078 echo "configure: failed program was:" >&5
11079 cat conftest.$ac_ext >&5
11080 rm -fr conftest*
11081 no_gtk=yes
11082 fi
11083 rm -fr conftest*
11084 fi
11085
11086 CFLAGS="$ac_save_CFLAGS"
11087 LIBS="$ac_save_LIBS"
11088 fi
11089 fi
11090 if test "x$no_gtk" = x ; then
11091 echo "$ac_t""yes" 1>&6
11092 wx_cv_lib_gtk=1.2.3
11093 else
11094 echo "$ac_t""no" 1>&6
11095 if test "$GTK_CONFIG" = "no" ; then
11096 echo "*** The gtk-config script installed by GTK could not be found"
11097 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11098 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11099 echo "*** full path to gtk-config."
11100 else
11101 if test -f conf.gtktest ; then
11102 :
11103 else
11104 echo "*** Could not run GTK test program, checking why..."
11105 CFLAGS="$CFLAGS $GTK_CFLAGS"
11106 LIBS="$LIBS $GTK_LIBS"
11107 cat > conftest.$ac_ext <<EOF
11108 #line 11109 "configure"
11109 #include "confdefs.h"
11110
11111 #include <gtk/gtk.h>
11112 #include <stdio.h>
11113
11114 int main() {
11115 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11116 ; return 0; }
11117 EOF
11118 if { (eval echo configure:11119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11119 rm -rf conftest*
11120 echo "*** The test program compiled, but did not run. This usually means"
11121 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11122 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11123 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11124 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11125 echo "*** is required on your system"
11126 echo "***"
11127 echo "*** If you have an old version installed, it is best to remove it, although"
11128 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11129 echo "***"
11130 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11131 echo "*** came with the system with the command"
11132 echo "***"
11133 echo "*** rpm --erase --nodeps gtk gtk-devel"
11134 else
11135 echo "configure: failed program was:" >&5
11136 cat conftest.$ac_ext >&5
11137 rm -rf conftest*
11138 echo "*** The test program failed to compile or link. See the file config.log for the"
11139 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11140 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11141 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11142 fi
11143 rm -f conftest*
11144 CFLAGS="$ac_save_CFLAGS"
11145 LIBS="$ac_save_LIBS"
11146 fi
11147 fi
11148 GTK_CFLAGS=""
11149 GTK_LIBS=""
11150 :
11151 fi
11152
11153
11154 rm -f conf.gtktest
11155
11156 fi
11157
11158 if test -z "$wx_cv_lib_gtk"; then
11159 wx_cv_lib_gtk=none
11160 else
11161 wx_cv_cflags_gtk=$GTK_CFLAGS
11162 wx_cv_libs_gtk=$GTK_LIBS
11163 fi
11164
11165
11166 fi
11167
11168
11169 if test "$gtk_version_cached" = 1; then
11170 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
11171 fi
11172
11173 case "$wx_cv_lib_gtk" in
11174 2.0) WXGTK20=1
11175 ;;
11176 1.2.7) WXGTK127=1
11177 WXGTK12=1
11178 ;;
11179 1.2.3) WXGTK12=1
11180 ;;
11181 *) { echo "configure: error:
11182 Please check that gtk-config is in path, the directory
11183 where GTK+ libraries are installed (returned by
11184 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
11185 equivalent variable and GTK+ is version 1.2.3 or above.
11186 " 1>&2; exit 1; }
11187 ;;
11188 esac
11189
11190 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11191 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
11192
11193 AFMINSTALL=afminstall
11194 TOOLKIT=GTK
11195 GUIDIST=GTK_DIST
11196
11197 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
11198 echo "configure:11199: checking for gdk_im_open in -lgdk" >&5
11199 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
11200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11201 echo $ac_n "(cached) $ac_c" 1>&6
11202 else
11203 ac_save_LIBS="$LIBS"
11204 LIBS="-lgdk $LIBS"
11205 cat > conftest.$ac_ext <<EOF
11206 #line 11207 "configure"
11207 #include "confdefs.h"
11208 /* Override any gcc2 internal prototype to avoid an error. */
11209 /* We use char because int might match the return type of a gcc2
11210 builtin and then its argument prototype would still apply. */
11211 char gdk_im_open();
11212
11213 int main() {
11214 gdk_im_open()
11215 ; return 0; }
11216 EOF
11217 if { (eval echo configure:11218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11218 rm -rf conftest*
11219 eval "ac_cv_lib_$ac_lib_var=yes"
11220 else
11221 echo "configure: failed program was:" >&5
11222 cat conftest.$ac_ext >&5
11223 rm -rf conftest*
11224 eval "ac_cv_lib_$ac_lib_var=no"
11225 fi
11226 rm -f conftest*
11227 LIBS="$ac_save_LIBS"
11228
11229 fi
11230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11231 echo "$ac_t""yes" 1>&6
11232 cat >> confdefs.h <<\EOF
11233 #define HAVE_XIM 1
11234 EOF
11235
11236 else
11237 echo "$ac_t""no" 1>&6
11238 fi
11239
11240 fi
11241
11242 if test "$wxUSE_MGL" = 1; then
11243 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
11244 echo "configure:11245: checking for SciTech MGL library" >&5
11245 if test "x$MGL_ROOT" = x ; then
11246 echo "$ac_t""not found" 1>&6
11247 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
11248 else
11249 echo "$ac_t""$MGL_ROOT" 1>&6
11250 fi
11251
11252 case "${host}" in
11253 *-*-linux* )
11254 mgl_os=linux/gcc/glibc
11255 ;;
11256 *-pc-msdosdjgpp )
11257 mgl_os=dos32/dj2
11258 ;;
11259 *)
11260 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
11261 esac
11262
11263 mgl_lib_type=""
11264
11265 if test "$wxUSE_DEBUG_FLAG" = yes ; then
11266 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11267 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
11268 mgl_lib_type=debug
11269 fi
11270 fi
11271 if test "x$mgl_lib_type" = x ; then
11272 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11273 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
11274 mgl_lib_type=release
11275 else
11276 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11277 fi
11278 fi
11279
11280 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
11281 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
11282
11283 AFMINSTALL=afminstall
11284 TOOLKIT=MGL
11285 GUIDIST=MGL_DIST
11286 fi
11287
11288 if test "$wxUSE_MICROWIN" = 1; then
11289 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
11290 echo "configure:11291: checking for MicroWindows" >&5
11291 if test "x$MICROWINDOWS" = x ; then
11292 echo "$ac_t""not found" 1>&6
11293 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11294 else
11295 echo "$ac_t""$MICROWINDOWS" 1>&6
11296 fi
11297
11298 if test -f $MICROWINDOWS/lib/libmwin.a; then
11299 echo "$ac_t""MicroWindows' libraries found." 1>&6
11300 else
11301 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11302 fi
11303
11304 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11305 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11306
11307 AFMINSTALL=afminstall
11308 TOOLKIT=MICROWIN
11309 GUIDIST=MICROWIN_DIST
11310
11311 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11312 fi
11313
11314 if test "$wxUSE_X11" = 1; then
11315 # If we find X, set shell vars x_includes and x_libraries to the
11316 # paths, otherwise set no_x=yes.
11317 # Uses ac_ vars as temps to allow command line to override cache and checks.
11318 # --without-x overrides everything else, but does not touch the cache.
11319 echo $ac_n "checking for X""... $ac_c" 1>&6
11320 echo "configure:11321: checking for X" >&5
11321
11322 # Check whether --with-x or --without-x was given.
11323 if test "${with_x+set}" = set; then
11324 withval="$with_x"
11325 :
11326 fi
11327
11328 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11329 if test "x$with_x" = xno; then
11330 # The user explicitly disabled X.
11331 have_x=disabled
11332 else
11333 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11334 # Both variables are already set.
11335 have_x=yes
11336 else
11337 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11338 echo $ac_n "(cached) $ac_c" 1>&6
11339 else
11340 # One or both of the vars are not set, and there is no cached value.
11341 ac_x_includes=NO ac_x_libraries=NO
11342 rm -fr conftestdir
11343 if mkdir conftestdir; then
11344 cd conftestdir
11345 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11346 cat > Imakefile <<'EOF'
11347 acfindx:
11348 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11349 EOF
11350 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11351 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11352 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11353 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11354 for ac_extension in a so sl; do
11355 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11356 test -f $ac_im_libdir/libX11.$ac_extension; then
11357 ac_im_usrlibdir=$ac_im_libdir; break
11358 fi
11359 done
11360 # Screen out bogus values from the imake configuration. They are
11361 # bogus both because they are the default anyway, and because
11362 # using them would break gcc on systems where it needs fixed includes.
11363 case "$ac_im_incroot" in
11364 /usr/include) ;;
11365 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
11366 esac
11367 case "$ac_im_usrlibdir" in
11368 /usr/lib | /lib) ;;
11369 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
11370 esac
11371 fi
11372 cd ..
11373 rm -fr conftestdir
11374 fi
11375
11376 if test "$ac_x_includes" = NO; then
11377 # Guess where to find include files, by looking for this one X11 .h file.
11378 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11379
11380 # First, try using that file with no special directory specified.
11381 cat > conftest.$ac_ext <<EOF
11382 #line 11383 "configure"
11383 #include "confdefs.h"
11384 #include <$x_direct_test_include>
11385 EOF
11386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11387 { (eval echo configure:11388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11389 if test -z "$ac_err"; then
11390 rm -rf conftest*
11391 # We can compile using X headers with no special include directory.
11392 ac_x_includes=
11393 else
11394 echo "$ac_err" >&5
11395 echo "configure: failed program was:" >&5
11396 cat conftest.$ac_ext >&5
11397 rm -rf conftest*
11398 # Look for the header file in a standard set of common directories.
11399 # Check X11 before X11Rn because it is often a symlink to the current release.
11400 for ac_dir in \
11401 /usr/X11/include \
11402 /usr/X11R6/include \
11403 /usr/X11R5/include \
11404 /usr/X11R4/include \
11405 \
11406 /usr/include/X11 \
11407 /usr/include/X11R6 \
11408 /usr/include/X11R5 \
11409 /usr/include/X11R4 \
11410 \
11411 /usr/local/X11/include \
11412 /usr/local/X11R6/include \
11413 /usr/local/X11R5/include \
11414 /usr/local/X11R4/include \
11415 \
11416 /usr/local/include/X11 \
11417 /usr/local/include/X11R6 \
11418 /usr/local/include/X11R5 \
11419 /usr/local/include/X11R4 \
11420 \
11421 /usr/X386/include \
11422 /usr/x386/include \
11423 /usr/XFree86/include/X11 \
11424 \
11425 /usr/include \
11426 /usr/local/include \
11427 /usr/unsupported/include \
11428 /usr/athena/include \
11429 /usr/local/x11r5/include \
11430 /usr/lpp/Xamples/include \
11431 \
11432 /usr/openwin/include \
11433 /usr/openwin/share/include \
11434 ; \
11435 do
11436 if test -r "$ac_dir/$x_direct_test_include"; then
11437 ac_x_includes=$ac_dir
11438 break
11439 fi
11440 done
11441 fi
11442 rm -f conftest*
11443 fi # $ac_x_includes = NO
11444
11445 if test "$ac_x_libraries" = NO; then
11446 # Check for the libraries.
11447
11448 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11449 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11450
11451 # See if we find them without any special options.
11452 # Don't add to $LIBS permanently.
11453 ac_save_LIBS="$LIBS"
11454 LIBS="-l$x_direct_test_library $LIBS"
11455 cat > conftest.$ac_ext <<EOF
11456 #line 11457 "configure"
11457 #include "confdefs.h"
11458
11459 int main() {
11460 ${x_direct_test_function}()
11461 ; return 0; }
11462 EOF
11463 if { (eval echo configure:11464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11464 rm -rf conftest*
11465 LIBS="$ac_save_LIBS"
11466 # We can link X programs with no special library path.
11467 ac_x_libraries=
11468 else
11469 echo "configure: failed program was:" >&5
11470 cat conftest.$ac_ext >&5
11471 rm -rf conftest*
11472 LIBS="$ac_save_LIBS"
11473 # First see if replacing the include by lib works.
11474 # Check X11 before X11Rn because it is often a symlink to the current release.
11475 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11476 /usr/X11/lib \
11477 /usr/X11R6/lib \
11478 /usr/X11R5/lib \
11479 /usr/X11R4/lib \
11480 \
11481 /usr/lib/X11 \
11482 /usr/lib/X11R6 \
11483 /usr/lib/X11R5 \
11484 /usr/lib/X11R4 \
11485 \
11486 /usr/local/X11/lib \
11487 /usr/local/X11R6/lib \
11488 /usr/local/X11R5/lib \
11489 /usr/local/X11R4/lib \
11490 \
11491 /usr/local/lib/X11 \
11492 /usr/local/lib/X11R6 \
11493 /usr/local/lib/X11R5 \
11494 /usr/local/lib/X11R4 \
11495 \
11496 /usr/X386/lib \
11497 /usr/x386/lib \
11498 /usr/XFree86/lib/X11 \
11499 \
11500 /usr/lib \
11501 /usr/local/lib \
11502 /usr/unsupported/lib \
11503 /usr/athena/lib \
11504 /usr/local/x11r5/lib \
11505 /usr/lpp/Xamples/lib \
11506 /lib/usr/lib/X11 \
11507 \
11508 /usr/openwin/lib \
11509 /usr/openwin/share/lib \
11510 ; \
11511 do
11512 for ac_extension in a so sl; do
11513 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
11514 ac_x_libraries=$ac_dir
11515 break 2
11516 fi
11517 done
11518 done
11519 fi
11520 rm -f conftest*
11521 fi # $ac_x_libraries = NO
11522
11523 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
11524 # Didn't find X anywhere. Cache the known absence of X.
11525 ac_cv_have_x="have_x=no"
11526 else
11527 # Record where we found X for the cache.
11528 ac_cv_have_x="have_x=yes \
11529 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11530 fi
11531 fi
11532 fi
11533 eval "$ac_cv_have_x"
11534 fi # $with_x != no
11535
11536 if test "$have_x" != yes; then
11537 echo "$ac_t""$have_x" 1>&6
11538 no_x=yes
11539 else
11540 # If each of the values was on the command line, it overrides each guess.
11541 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11542 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11543 # Update the cache value to reflect the command line values.
11544 ac_cv_have_x="have_x=yes \
11545 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11546 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
11547 fi
11548
11549 if test "$no_x" = yes; then
11550 # Not all programs may use this symbol, but it does not hurt to define it.
11551 cat >> confdefs.h <<\EOF
11552 #define X_DISPLAY_MISSING 1
11553 EOF
11554
11555 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11556 else
11557 if test -n "$x_includes"; then
11558 X_CFLAGS="$X_CFLAGS -I$x_includes"
11559 fi
11560
11561 # It would also be nice to do this for all -L options, not just this one.
11562 if test -n "$x_libraries"; then
11563 X_LIBS="$X_LIBS -L$x_libraries"
11564 # For Solaris; some versions of Sun CC require a space after -R and
11565 # others require no space. Words are not sufficient . . . .
11566 case "`(uname -sr) 2>/dev/null`" in
11567 "SunOS 5"*)
11568 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
11569 echo "configure:11570: checking whether -R must be followed by a space" >&5
11570 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11571 cat > conftest.$ac_ext <<EOF
11572 #line 11573 "configure"
11573 #include "confdefs.h"
11574
11575 int main() {
11576
11577 ; return 0; }
11578 EOF
11579 if { (eval echo configure:11580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11580 rm -rf conftest*
11581 ac_R_nospace=yes
11582 else
11583 echo "configure: failed program was:" >&5
11584 cat conftest.$ac_ext >&5
11585 rm -rf conftest*
11586 ac_R_nospace=no
11587 fi
11588 rm -f conftest*
11589 if test $ac_R_nospace = yes; then
11590 echo "$ac_t""no" 1>&6
11591 X_LIBS="$X_LIBS -R$x_libraries"
11592 else
11593 LIBS="$ac_xsave_LIBS -R $x_libraries"
11594 cat > conftest.$ac_ext <<EOF
11595 #line 11596 "configure"
11596 #include "confdefs.h"
11597
11598 int main() {
11599
11600 ; return 0; }
11601 EOF
11602 if { (eval echo configure:11603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11603 rm -rf conftest*
11604 ac_R_space=yes
11605 else
11606 echo "configure: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 rm -rf conftest*
11609 ac_R_space=no
11610 fi
11611 rm -f conftest*
11612 if test $ac_R_space = yes; then
11613 echo "$ac_t""yes" 1>&6
11614 X_LIBS="$X_LIBS -R $x_libraries"
11615 else
11616 echo "$ac_t""neither works" 1>&6
11617 fi
11618 fi
11619 LIBS="$ac_xsave_LIBS"
11620 esac
11621 fi
11622
11623 # Check for system-dependent libraries X programs must link with.
11624 # Do this before checking for the system-independent R6 libraries
11625 # (-lICE), since we may need -lsocket or whatever for X linking.
11626
11627 if test "$ISC" = yes; then
11628 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11629 else
11630 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11631 # libraries were built with DECnet support. And karl@cs.umb.edu says
11632 # the Alpha needs dnet_stub (dnet does not exist).
11633 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
11634 echo "configure:11635: checking for dnet_ntoa in -ldnet" >&5
11635 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11636 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11637 echo $ac_n "(cached) $ac_c" 1>&6
11638 else
11639 ac_save_LIBS="$LIBS"
11640 LIBS="-ldnet $LIBS"
11641 cat > conftest.$ac_ext <<EOF
11642 #line 11643 "configure"
11643 #include "confdefs.h"
11644 /* Override any gcc2 internal prototype to avoid an error. */
11645 /* We use char because int might match the return type of a gcc2
11646 builtin and then its argument prototype would still apply. */
11647 char dnet_ntoa();
11648
11649 int main() {
11650 dnet_ntoa()
11651 ; return 0; }
11652 EOF
11653 if { (eval echo configure:11654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11654 rm -rf conftest*
11655 eval "ac_cv_lib_$ac_lib_var=yes"
11656 else
11657 echo "configure: failed program was:" >&5
11658 cat conftest.$ac_ext >&5
11659 rm -rf conftest*
11660 eval "ac_cv_lib_$ac_lib_var=no"
11661 fi
11662 rm -f conftest*
11663 LIBS="$ac_save_LIBS"
11664
11665 fi
11666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11667 echo "$ac_t""yes" 1>&6
11668 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11669 else
11670 echo "$ac_t""no" 1>&6
11671 fi
11672
11673 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11674 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
11675 echo "configure:11676: checking for dnet_ntoa in -ldnet_stub" >&5
11676 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11678 echo $ac_n "(cached) $ac_c" 1>&6
11679 else
11680 ac_save_LIBS="$LIBS"
11681 LIBS="-ldnet_stub $LIBS"
11682 cat > conftest.$ac_ext <<EOF
11683 #line 11684 "configure"
11684 #include "confdefs.h"
11685 /* Override any gcc2 internal prototype to avoid an error. */
11686 /* We use char because int might match the return type of a gcc2
11687 builtin and then its argument prototype would still apply. */
11688 char dnet_ntoa();
11689
11690 int main() {
11691 dnet_ntoa()
11692 ; return 0; }
11693 EOF
11694 if { (eval echo configure:11695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11695 rm -rf conftest*
11696 eval "ac_cv_lib_$ac_lib_var=yes"
11697 else
11698 echo "configure: failed program was:" >&5
11699 cat conftest.$ac_ext >&5
11700 rm -rf conftest*
11701 eval "ac_cv_lib_$ac_lib_var=no"
11702 fi
11703 rm -f conftest*
11704 LIBS="$ac_save_LIBS"
11705
11706 fi
11707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11708 echo "$ac_t""yes" 1>&6
11709 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11710 else
11711 echo "$ac_t""no" 1>&6
11712 fi
11713
11714 fi
11715
11716 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11717 # to get the SysV transport functions.
11718 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
11719 # needs -lnsl.
11720 # The nsl library prevents programs from opening the X display
11721 # on Irix 5.2, according to dickey@clark.net.
11722 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
11723 echo "configure:11724: checking for gethostbyname" >&5
11724 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11725 echo $ac_n "(cached) $ac_c" 1>&6
11726 else
11727 cat > conftest.$ac_ext <<EOF
11728 #line 11729 "configure"
11729 #include "confdefs.h"
11730 /* System header to define __stub macros and hopefully few prototypes,
11731 which can conflict with char gethostbyname(); below. */
11732 #include <assert.h>
11733 /* Override any gcc2 internal prototype to avoid an error. */
11734 /* We use char because int might match the return type of a gcc2
11735 builtin and then its argument prototype would still apply. */
11736 char gethostbyname();
11737
11738 int main() {
11739
11740 /* The GNU C library defines this for functions which it implements
11741 to always fail with ENOSYS. Some functions are actually named
11742 something starting with __ and the normal name is an alias. */
11743 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11744 choke me
11745 #else
11746 gethostbyname();
11747 #endif
11748
11749 ; return 0; }
11750 EOF
11751 if { (eval echo configure:11752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11752 rm -rf conftest*
11753 eval "ac_cv_func_gethostbyname=yes"
11754 else
11755 echo "configure: failed program was:" >&5
11756 cat conftest.$ac_ext >&5
11757 rm -rf conftest*
11758 eval "ac_cv_func_gethostbyname=no"
11759 fi
11760 rm -f conftest*
11761 fi
11762
11763 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11764 echo "$ac_t""yes" 1>&6
11765 :
11766 else
11767 echo "$ac_t""no" 1>&6
11768 fi
11769
11770 if test $ac_cv_func_gethostbyname = no; then
11771 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
11772 echo "configure:11773: checking for gethostbyname in -lnsl" >&5
11773 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11775 echo $ac_n "(cached) $ac_c" 1>&6
11776 else
11777 ac_save_LIBS="$LIBS"
11778 LIBS="-lnsl $LIBS"
11779 cat > conftest.$ac_ext <<EOF
11780 #line 11781 "configure"
11781 #include "confdefs.h"
11782 /* Override any gcc2 internal prototype to avoid an error. */
11783 /* We use char because int might match the return type of a gcc2
11784 builtin and then its argument prototype would still apply. */
11785 char gethostbyname();
11786
11787 int main() {
11788 gethostbyname()
11789 ; return 0; }
11790 EOF
11791 if { (eval echo configure:11792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11792 rm -rf conftest*
11793 eval "ac_cv_lib_$ac_lib_var=yes"
11794 else
11795 echo "configure: failed program was:" >&5
11796 cat conftest.$ac_ext >&5
11797 rm -rf conftest*
11798 eval "ac_cv_lib_$ac_lib_var=no"
11799 fi
11800 rm -f conftest*
11801 LIBS="$ac_save_LIBS"
11802
11803 fi
11804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11805 echo "$ac_t""yes" 1>&6
11806 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11807 else
11808 echo "$ac_t""no" 1>&6
11809 fi
11810
11811 fi
11812
11813 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11814 # socket/setsockopt and other routines are undefined under SCO ODT
11815 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11816 # on later versions), says simon@lia.di.epfl.ch: it contains
11817 # gethostby* variants that don't use the nameserver (or something).
11818 # -lsocket must be given before -lnsl if both are needed.
11819 # We assume that if connect needs -lnsl, so does gethostbyname.
11820 echo $ac_n "checking for connect""... $ac_c" 1>&6
11821 echo "configure:11822: checking for connect" >&5
11822 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11823 echo $ac_n "(cached) $ac_c" 1>&6
11824 else
11825 cat > conftest.$ac_ext <<EOF
11826 #line 11827 "configure"
11827 #include "confdefs.h"
11828 /* System header to define __stub macros and hopefully few prototypes,
11829 which can conflict with char connect(); below. */
11830 #include <assert.h>
11831 /* Override any gcc2 internal prototype to avoid an error. */
11832 /* We use char because int might match the return type of a gcc2
11833 builtin and then its argument prototype would still apply. */
11834 char connect();
11835
11836 int main() {
11837
11838 /* The GNU C library defines this for functions which it implements
11839 to always fail with ENOSYS. Some functions are actually named
11840 something starting with __ and the normal name is an alias. */
11841 #if defined (__stub_connect) || defined (__stub___connect)
11842 choke me
11843 #else
11844 connect();
11845 #endif
11846
11847 ; return 0; }
11848 EOF
11849 if { (eval echo configure:11850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11850 rm -rf conftest*
11851 eval "ac_cv_func_connect=yes"
11852 else
11853 echo "configure: failed program was:" >&5
11854 cat conftest.$ac_ext >&5
11855 rm -rf conftest*
11856 eval "ac_cv_func_connect=no"
11857 fi
11858 rm -f conftest*
11859 fi
11860
11861 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11862 echo "$ac_t""yes" 1>&6
11863 :
11864 else
11865 echo "$ac_t""no" 1>&6
11866 fi
11867
11868 if test $ac_cv_func_connect = no; then
11869 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
11870 echo "configure:11871: checking for connect in -lsocket" >&5
11871 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11873 echo $ac_n "(cached) $ac_c" 1>&6
11874 else
11875 ac_save_LIBS="$LIBS"
11876 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11877 cat > conftest.$ac_ext <<EOF
11878 #line 11879 "configure"
11879 #include "confdefs.h"
11880 /* Override any gcc2 internal prototype to avoid an error. */
11881 /* We use char because int might match the return type of a gcc2
11882 builtin and then its argument prototype would still apply. */
11883 char connect();
11884
11885 int main() {
11886 connect()
11887 ; return 0; }
11888 EOF
11889 if { (eval echo configure:11890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11890 rm -rf conftest*
11891 eval "ac_cv_lib_$ac_lib_var=yes"
11892 else
11893 echo "configure: failed program was:" >&5
11894 cat conftest.$ac_ext >&5
11895 rm -rf conftest*
11896 eval "ac_cv_lib_$ac_lib_var=no"
11897 fi
11898 rm -f conftest*
11899 LIBS="$ac_save_LIBS"
11900
11901 fi
11902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11903 echo "$ac_t""yes" 1>&6
11904 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11905 else
11906 echo "$ac_t""no" 1>&6
11907 fi
11908
11909 fi
11910
11911 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11912 echo $ac_n "checking for remove""... $ac_c" 1>&6
11913 echo "configure:11914: checking for remove" >&5
11914 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11915 echo $ac_n "(cached) $ac_c" 1>&6
11916 else
11917 cat > conftest.$ac_ext <<EOF
11918 #line 11919 "configure"
11919 #include "confdefs.h"
11920 /* System header to define __stub macros and hopefully few prototypes,
11921 which can conflict with char remove(); below. */
11922 #include <assert.h>
11923 /* Override any gcc2 internal prototype to avoid an error. */
11924 /* We use char because int might match the return type of a gcc2
11925 builtin and then its argument prototype would still apply. */
11926 char remove();
11927
11928 int main() {
11929
11930 /* The GNU C library defines this for functions which it implements
11931 to always fail with ENOSYS. Some functions are actually named
11932 something starting with __ and the normal name is an alias. */
11933 #if defined (__stub_remove) || defined (__stub___remove)
11934 choke me
11935 #else
11936 remove();
11937 #endif
11938
11939 ; return 0; }
11940 EOF
11941 if { (eval echo configure:11942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11942 rm -rf conftest*
11943 eval "ac_cv_func_remove=yes"
11944 else
11945 echo "configure: failed program was:" >&5
11946 cat conftest.$ac_ext >&5
11947 rm -rf conftest*
11948 eval "ac_cv_func_remove=no"
11949 fi
11950 rm -f conftest*
11951 fi
11952
11953 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11954 echo "$ac_t""yes" 1>&6
11955 :
11956 else
11957 echo "$ac_t""no" 1>&6
11958 fi
11959
11960 if test $ac_cv_func_remove = no; then
11961 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
11962 echo "configure:11963: checking for remove in -lposix" >&5
11963 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11964 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11965 echo $ac_n "(cached) $ac_c" 1>&6
11966 else
11967 ac_save_LIBS="$LIBS"
11968 LIBS="-lposix $LIBS"
11969 cat > conftest.$ac_ext <<EOF
11970 #line 11971 "configure"
11971 #include "confdefs.h"
11972 /* Override any gcc2 internal prototype to avoid an error. */
11973 /* We use char because int might match the return type of a gcc2
11974 builtin and then its argument prototype would still apply. */
11975 char remove();
11976
11977 int main() {
11978 remove()
11979 ; return 0; }
11980 EOF
11981 if { (eval echo configure:11982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11982 rm -rf conftest*
11983 eval "ac_cv_lib_$ac_lib_var=yes"
11984 else
11985 echo "configure: failed program was:" >&5
11986 cat conftest.$ac_ext >&5
11987 rm -rf conftest*
11988 eval "ac_cv_lib_$ac_lib_var=no"
11989 fi
11990 rm -f conftest*
11991 LIBS="$ac_save_LIBS"
11992
11993 fi
11994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11995 echo "$ac_t""yes" 1>&6
11996 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11997 else
11998 echo "$ac_t""no" 1>&6
11999 fi
12000
12001 fi
12002
12003 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12004 echo $ac_n "checking for shmat""... $ac_c" 1>&6
12005 echo "configure:12006: checking for shmat" >&5
12006 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12007 echo $ac_n "(cached) $ac_c" 1>&6
12008 else
12009 cat > conftest.$ac_ext <<EOF
12010 #line 12011 "configure"
12011 #include "confdefs.h"
12012 /* System header to define __stub macros and hopefully few prototypes,
12013 which can conflict with char shmat(); below. */
12014 #include <assert.h>
12015 /* Override any gcc2 internal prototype to avoid an error. */
12016 /* We use char because int might match the return type of a gcc2
12017 builtin and then its argument prototype would still apply. */
12018 char shmat();
12019
12020 int main() {
12021
12022 /* The GNU C library defines this for functions which it implements
12023 to always fail with ENOSYS. Some functions are actually named
12024 something starting with __ and the normal name is an alias. */
12025 #if defined (__stub_shmat) || defined (__stub___shmat)
12026 choke me
12027 #else
12028 shmat();
12029 #endif
12030
12031 ; return 0; }
12032 EOF
12033 if { (eval echo configure:12034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12034 rm -rf conftest*
12035 eval "ac_cv_func_shmat=yes"
12036 else
12037 echo "configure: failed program was:" >&5
12038 cat conftest.$ac_ext >&5
12039 rm -rf conftest*
12040 eval "ac_cv_func_shmat=no"
12041 fi
12042 rm -f conftest*
12043 fi
12044
12045 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12046 echo "$ac_t""yes" 1>&6
12047 :
12048 else
12049 echo "$ac_t""no" 1>&6
12050 fi
12051
12052 if test $ac_cv_func_shmat = no; then
12053 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12054 echo "configure:12055: checking for shmat in -lipc" >&5
12055 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12056 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12057 echo $ac_n "(cached) $ac_c" 1>&6
12058 else
12059 ac_save_LIBS="$LIBS"
12060 LIBS="-lipc $LIBS"
12061 cat > conftest.$ac_ext <<EOF
12062 #line 12063 "configure"
12063 #include "confdefs.h"
12064 /* Override any gcc2 internal prototype to avoid an error. */
12065 /* We use char because int might match the return type of a gcc2
12066 builtin and then its argument prototype would still apply. */
12067 char shmat();
12068
12069 int main() {
12070 shmat()
12071 ; return 0; }
12072 EOF
12073 if { (eval echo configure:12074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12074 rm -rf conftest*
12075 eval "ac_cv_lib_$ac_lib_var=yes"
12076 else
12077 echo "configure: failed program was:" >&5
12078 cat conftest.$ac_ext >&5
12079 rm -rf conftest*
12080 eval "ac_cv_lib_$ac_lib_var=no"
12081 fi
12082 rm -f conftest*
12083 LIBS="$ac_save_LIBS"
12084
12085 fi
12086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12087 echo "$ac_t""yes" 1>&6
12088 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12089 else
12090 echo "$ac_t""no" 1>&6
12091 fi
12092
12093 fi
12094 fi
12095
12096 # Check for libraries that X11R6 Xt/Xaw programs need.
12097 ac_save_LDFLAGS="$LDFLAGS"
12098 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12099 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12100 # check for ICE first), but we must link in the order -lSM -lICE or
12101 # we get undefined symbols. So assume we have SM if we have ICE.
12102 # These have to be linked with before -lX11, unlike the other
12103 # libraries we check for below, so use a different variable.
12104 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12105 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12106 echo "configure:12107: checking for IceConnectionNumber in -lICE" >&5
12107 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12109 echo $ac_n "(cached) $ac_c" 1>&6
12110 else
12111 ac_save_LIBS="$LIBS"
12112 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12113 cat > conftest.$ac_ext <<EOF
12114 #line 12115 "configure"
12115 #include "confdefs.h"
12116 /* Override any gcc2 internal prototype to avoid an error. */
12117 /* We use char because int might match the return type of a gcc2
12118 builtin and then its argument prototype would still apply. */
12119 char IceConnectionNumber();
12120
12121 int main() {
12122 IceConnectionNumber()
12123 ; return 0; }
12124 EOF
12125 if { (eval echo configure:12126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12126 rm -rf conftest*
12127 eval "ac_cv_lib_$ac_lib_var=yes"
12128 else
12129 echo "configure: failed program was:" >&5
12130 cat conftest.$ac_ext >&5
12131 rm -rf conftest*
12132 eval "ac_cv_lib_$ac_lib_var=no"
12133 fi
12134 rm -f conftest*
12135 LIBS="$ac_save_LIBS"
12136
12137 fi
12138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12139 echo "$ac_t""yes" 1>&6
12140 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12141 else
12142 echo "$ac_t""no" 1>&6
12143 fi
12144
12145 LDFLAGS="$ac_save_LDFLAGS"
12146
12147 fi
12148
12149
12150 if test "$no_x" = "yes"; then
12151 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12152 fi
12153
12154 GUI_TK_LIBRARY="$X_LIBS"
12155 TOOLKIT_INCLUDE="$X_CFLAGS"
12156 AFMINSTALL=afminstall
12157 COMPILED_X_PROGRAM=0
12158
12159 if test "$wxUSE_NANOX" = 1; then
12160 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
12161 echo "configure:12162: checking for MicroWindows/NanoX distribution" >&5
12162 if test "x$MICROWIN" = x ; then
12163 echo "$ac_t""not found" 1>&6
12164 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
12165 else
12166 echo "$ac_t""$MICROWIN" 1>&6
12167 fi
12168 fi
12169
12170 xpm_link=
12171 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12172 echo "configure:12173: checking for Xpm library" >&5
12173
12174 ac_find_libraries=
12175 for ac_dir in $SEARCH_LIB;
12176 do
12177 for ac_extension in a so sl dylib; do
12178 if test -f "$ac_dir/libXpm.$ac_extension"; then
12179 ac_find_libraries=$ac_dir
12180 break 2
12181 fi
12182 done
12183 done
12184
12185 if test "$ac_find_libraries" != "" ; then
12186
12187 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12188 result=$?
12189 if test $result = 0; then
12190 ac_path_to_link=""
12191 else
12192 ac_path_to_link=" -L$ac_find_libraries"
12193 fi
12194
12195 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12196 xpm_link=" -lXpm"
12197 cat >> confdefs.h <<\EOF
12198 #define wxHAVE_LIB_XPM 1
12199 EOF
12200
12201 echo "$ac_t""found at $ac_find_libraries" 1>&6
12202 else
12203 cat > conftest.$ac_ext <<EOF
12204 #line 12205 "configure"
12205 #include "confdefs.h"
12206
12207 #include <X11/xpm.h>
12208
12209 int main() {
12210
12211 int version;
12212 version = XpmLibraryVersion();
12213
12214 ; return 0; }
12215 EOF
12216 if { (eval echo configure:12217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12217 rm -rf conftest*
12218
12219 xpm_link=" -lXpm"
12220 cat >> confdefs.h <<\EOF
12221 #define wxHAVE_LIB_XPM 1
12222 EOF
12223
12224 echo "$ac_t""found in default search path" 1>&6
12225 COMPILED_X_PROGRAM=0
12226
12227 else
12228 echo "configure: failed program was:" >&5
12229 cat conftest.$ac_ext >&5
12230 rm -rf conftest*
12231
12232 echo "$ac_t""no" 1>&6
12233 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12234
12235
12236 fi
12237 rm -f conftest*
12238 fi
12239
12240 if test "$wxUSE_NANOX" = 1; then
12241 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
12242 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__NANOX__"
12243 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$MICROWIN/src/lib/libnano-X.a \$MICROWIN/src/lib/libmwengine.a \$MICROWIN/src/lib/libmwfonts.a \$MICROWIN/src/lib/libmwdrivers.a \$MICROWIN/src/lib/libmwobjects.a"
12244 else
12245 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
12246 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
12247 fi
12248
12249 TOOLKIT_VPATH="\${top_srcdir}/src/x11 \${top_srcdir}/src/univ \${top_srcdir}/src/univ/themes"
12250 TOOLKIT=X11
12251 GUIDIST=X11_DIST
12252 fi
12253
12254 if test "$wxUSE_WINE" = 1; then
12255 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12256 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12257 echo "configure:12258: checking for windows.h" >&5
12258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12259 echo $ac_n "(cached) $ac_c" 1>&6
12260 else
12261 cat > conftest.$ac_ext <<EOF
12262 #line 12263 "configure"
12263 #include "confdefs.h"
12264 #include <windows.h>
12265 EOF
12266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12267 { (eval echo configure:12268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12269 if test -z "$ac_err"; then
12270 rm -rf conftest*
12271 eval "ac_cv_header_$ac_safe=yes"
12272 else
12273 echo "$ac_err" >&5
12274 echo "configure: failed program was:" >&5
12275 cat conftest.$ac_ext >&5
12276 rm -rf conftest*
12277 eval "ac_cv_header_$ac_safe=no"
12278 fi
12279 rm -f conftest*
12280 fi
12281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12282 echo "$ac_t""yes" 1>&6
12283 :
12284 else
12285 echo "$ac_t""no" 1>&6
12286
12287 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12288
12289 fi
12290
12291
12292 xpm_link=
12293 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12294 echo "configure:12295: checking for Xpm library" >&5
12295
12296 ac_find_libraries=
12297 for ac_dir in $SEARCH_LIB;
12298 do
12299 for ac_extension in a so sl dylib; do
12300 if test -f "$ac_dir/libXpm.$ac_extension"; then
12301 ac_find_libraries=$ac_dir
12302 break 2
12303 fi
12304 done
12305 done
12306
12307 if test "$ac_find_libraries" != "" ; then
12308 GUI_TK_LIBRARY="-L$ac_find_libraries"
12309 xpm_link=" -lXpm"
12310 cat >> confdefs.h <<\EOF
12311 #define wxHAVE_LIB_XPM 1
12312 EOF
12313
12314 echo "$ac_t""found at $ac_find_libraries" 1>&6
12315 else
12316 echo "$ac_t""no" 1>&6
12317 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12318 fi
12319
12320 mesa_link=
12321 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
12322 echo "configure:12323: checking for Mesa library" >&5
12323
12324 ac_find_libraries=
12325 for ac_dir in $SEARCH_LIB;
12326 do
12327 for ac_extension in a so sl dylib; do
12328 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12329 ac_find_libraries=$ac_dir
12330 break 2
12331 fi
12332 done
12333 done
12334
12335 if test "$ac_find_libraries" != "" ; then
12336 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
12337 mesa_link=" -lMesaGL"
12338 echo "$ac_t""found at $ac_find_libraries" 1>&6
12339 else
12340 { echo "configure: error: no" 1>&2; exit 1; }
12341 fi
12342
12343 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
12344 TOOLKIT=MSW
12345 GUIDIST=MSW_DIST
12346 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
12347 fi
12348
12349 if test "$wxUSE_MOTIF" = 1; then
12350 if test "$no_x" = yes; then
12351 # Not all programs may use this symbol, but it does not hurt to define it.
12352 cat >> confdefs.h <<\EOF
12353 #define X_DISPLAY_MISSING 1
12354 EOF
12355
12356 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12357 else
12358 if test -n "$x_includes"; then
12359 X_CFLAGS="$X_CFLAGS -I$x_includes"
12360 fi
12361
12362 # It would also be nice to do this for all -L options, not just this one.
12363 if test -n "$x_libraries"; then
12364 X_LIBS="$X_LIBS -L$x_libraries"
12365 # For Solaris; some versions of Sun CC require a space after -R and
12366 # others require no space. Words are not sufficient . . . .
12367 case "`(uname -sr) 2>/dev/null`" in
12368 "SunOS 5"*)
12369 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
12370 echo "configure:12371: checking whether -R must be followed by a space" >&5
12371 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12372 cat > conftest.$ac_ext <<EOF
12373 #line 12374 "configure"
12374 #include "confdefs.h"
12375
12376 int main() {
12377
12378 ; return 0; }
12379 EOF
12380 if { (eval echo configure:12381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12381 rm -rf conftest*
12382 ac_R_nospace=yes
12383 else
12384 echo "configure: failed program was:" >&5
12385 cat conftest.$ac_ext >&5
12386 rm -rf conftest*
12387 ac_R_nospace=no
12388 fi
12389 rm -f conftest*
12390 if test $ac_R_nospace = yes; then
12391 echo "$ac_t""no" 1>&6
12392 X_LIBS="$X_LIBS -R$x_libraries"
12393 else
12394 LIBS="$ac_xsave_LIBS -R $x_libraries"
12395 cat > conftest.$ac_ext <<EOF
12396 #line 12397 "configure"
12397 #include "confdefs.h"
12398
12399 int main() {
12400
12401 ; return 0; }
12402 EOF
12403 if { (eval echo configure:12404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12404 rm -rf conftest*
12405 ac_R_space=yes
12406 else
12407 echo "configure: failed program was:" >&5
12408 cat conftest.$ac_ext >&5
12409 rm -rf conftest*
12410 ac_R_space=no
12411 fi
12412 rm -f conftest*
12413 if test $ac_R_space = yes; then
12414 echo "$ac_t""yes" 1>&6
12415 X_LIBS="$X_LIBS -R $x_libraries"
12416 else
12417 echo "$ac_t""neither works" 1>&6
12418 fi
12419 fi
12420 LIBS="$ac_xsave_LIBS"
12421 esac
12422 fi
12423
12424 # Check for system-dependent libraries X programs must link with.
12425 # Do this before checking for the system-independent R6 libraries
12426 # (-lICE), since we may need -lsocket or whatever for X linking.
12427
12428 if test "$ISC" = yes; then
12429 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12430 else
12431 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
12432 # libraries were built with DECnet support. And karl@cs.umb.edu says
12433 # the Alpha needs dnet_stub (dnet does not exist).
12434 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
12435 echo "configure:12436: checking for dnet_ntoa in -ldnet" >&5
12436 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12438 echo $ac_n "(cached) $ac_c" 1>&6
12439 else
12440 ac_save_LIBS="$LIBS"
12441 LIBS="-ldnet $LIBS"
12442 cat > conftest.$ac_ext <<EOF
12443 #line 12444 "configure"
12444 #include "confdefs.h"
12445 /* Override any gcc2 internal prototype to avoid an error. */
12446 /* We use char because int might match the return type of a gcc2
12447 builtin and then its argument prototype would still apply. */
12448 char dnet_ntoa();
12449
12450 int main() {
12451 dnet_ntoa()
12452 ; return 0; }
12453 EOF
12454 if { (eval echo configure:12455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12455 rm -rf conftest*
12456 eval "ac_cv_lib_$ac_lib_var=yes"
12457 else
12458 echo "configure: failed program was:" >&5
12459 cat conftest.$ac_ext >&5
12460 rm -rf conftest*
12461 eval "ac_cv_lib_$ac_lib_var=no"
12462 fi
12463 rm -f conftest*
12464 LIBS="$ac_save_LIBS"
12465
12466 fi
12467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12468 echo "$ac_t""yes" 1>&6
12469 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12470 else
12471 echo "$ac_t""no" 1>&6
12472 fi
12473
12474 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12475 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
12476 echo "configure:12477: checking for dnet_ntoa in -ldnet_stub" >&5
12477 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12479 echo $ac_n "(cached) $ac_c" 1>&6
12480 else
12481 ac_save_LIBS="$LIBS"
12482 LIBS="-ldnet_stub $LIBS"
12483 cat > conftest.$ac_ext <<EOF
12484 #line 12485 "configure"
12485 #include "confdefs.h"
12486 /* Override any gcc2 internal prototype to avoid an error. */
12487 /* We use char because int might match the return type of a gcc2
12488 builtin and then its argument prototype would still apply. */
12489 char dnet_ntoa();
12490
12491 int main() {
12492 dnet_ntoa()
12493 ; return 0; }
12494 EOF
12495 if { (eval echo configure:12496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12496 rm -rf conftest*
12497 eval "ac_cv_lib_$ac_lib_var=yes"
12498 else
12499 echo "configure: failed program was:" >&5
12500 cat conftest.$ac_ext >&5
12501 rm -rf conftest*
12502 eval "ac_cv_lib_$ac_lib_var=no"
12503 fi
12504 rm -f conftest*
12505 LIBS="$ac_save_LIBS"
12506
12507 fi
12508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12509 echo "$ac_t""yes" 1>&6
12510 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12511 else
12512 echo "$ac_t""no" 1>&6
12513 fi
12514
12515 fi
12516
12517 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12518 # to get the SysV transport functions.
12519 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
12520 # needs -lnsl.
12521 # The nsl library prevents programs from opening the X display
12522 # on Irix 5.2, according to dickey@clark.net.
12523 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
12524 echo "configure:12525: checking for gethostbyname" >&5
12525 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
12526 echo $ac_n "(cached) $ac_c" 1>&6
12527 else
12528 cat > conftest.$ac_ext <<EOF
12529 #line 12530 "configure"
12530 #include "confdefs.h"
12531 /* System header to define __stub macros and hopefully few prototypes,
12532 which can conflict with char gethostbyname(); below. */
12533 #include <assert.h>
12534 /* Override any gcc2 internal prototype to avoid an error. */
12535 /* We use char because int might match the return type of a gcc2
12536 builtin and then its argument prototype would still apply. */
12537 char gethostbyname();
12538
12539 int main() {
12540
12541 /* The GNU C library defines this for functions which it implements
12542 to always fail with ENOSYS. Some functions are actually named
12543 something starting with __ and the normal name is an alias. */
12544 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12545 choke me
12546 #else
12547 gethostbyname();
12548 #endif
12549
12550 ; return 0; }
12551 EOF
12552 if { (eval echo configure:12553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12553 rm -rf conftest*
12554 eval "ac_cv_func_gethostbyname=yes"
12555 else
12556 echo "configure: failed program was:" >&5
12557 cat conftest.$ac_ext >&5
12558 rm -rf conftest*
12559 eval "ac_cv_func_gethostbyname=no"
12560 fi
12561 rm -f conftest*
12562 fi
12563
12564 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
12565 echo "$ac_t""yes" 1>&6
12566 :
12567 else
12568 echo "$ac_t""no" 1>&6
12569 fi
12570
12571 if test $ac_cv_func_gethostbyname = no; then
12572 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
12573 echo "configure:12574: checking for gethostbyname in -lnsl" >&5
12574 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
12575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12576 echo $ac_n "(cached) $ac_c" 1>&6
12577 else
12578 ac_save_LIBS="$LIBS"
12579 LIBS="-lnsl $LIBS"
12580 cat > conftest.$ac_ext <<EOF
12581 #line 12582 "configure"
12582 #include "confdefs.h"
12583 /* Override any gcc2 internal prototype to avoid an error. */
12584 /* We use char because int might match the return type of a gcc2
12585 builtin and then its argument prototype would still apply. */
12586 char gethostbyname();
12587
12588 int main() {
12589 gethostbyname()
12590 ; return 0; }
12591 EOF
12592 if { (eval echo configure:12593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12593 rm -rf conftest*
12594 eval "ac_cv_lib_$ac_lib_var=yes"
12595 else
12596 echo "configure: failed program was:" >&5
12597 cat conftest.$ac_ext >&5
12598 rm -rf conftest*
12599 eval "ac_cv_lib_$ac_lib_var=no"
12600 fi
12601 rm -f conftest*
12602 LIBS="$ac_save_LIBS"
12603
12604 fi
12605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12606 echo "$ac_t""yes" 1>&6
12607 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12608 else
12609 echo "$ac_t""no" 1>&6
12610 fi
12611
12612 fi
12613
12614 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12615 # socket/setsockopt and other routines are undefined under SCO ODT
12616 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12617 # on later versions), says simon@lia.di.epfl.ch: it contains
12618 # gethostby* variants that don't use the nameserver (or something).
12619 # -lsocket must be given before -lnsl if both are needed.
12620 # We assume that if connect needs -lnsl, so does gethostbyname.
12621 echo $ac_n "checking for connect""... $ac_c" 1>&6
12622 echo "configure:12623: checking for connect" >&5
12623 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
12624 echo $ac_n "(cached) $ac_c" 1>&6
12625 else
12626 cat > conftest.$ac_ext <<EOF
12627 #line 12628 "configure"
12628 #include "confdefs.h"
12629 /* System header to define __stub macros and hopefully few prototypes,
12630 which can conflict with char connect(); below. */
12631 #include <assert.h>
12632 /* Override any gcc2 internal prototype to avoid an error. */
12633 /* We use char because int might match the return type of a gcc2
12634 builtin and then its argument prototype would still apply. */
12635 char connect();
12636
12637 int main() {
12638
12639 /* The GNU C library defines this for functions which it implements
12640 to always fail with ENOSYS. Some functions are actually named
12641 something starting with __ and the normal name is an alias. */
12642 #if defined (__stub_connect) || defined (__stub___connect)
12643 choke me
12644 #else
12645 connect();
12646 #endif
12647
12648 ; return 0; }
12649 EOF
12650 if { (eval echo configure:12651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12651 rm -rf conftest*
12652 eval "ac_cv_func_connect=yes"
12653 else
12654 echo "configure: failed program was:" >&5
12655 cat conftest.$ac_ext >&5
12656 rm -rf conftest*
12657 eval "ac_cv_func_connect=no"
12658 fi
12659 rm -f conftest*
12660 fi
12661
12662 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
12663 echo "$ac_t""yes" 1>&6
12664 :
12665 else
12666 echo "$ac_t""no" 1>&6
12667 fi
12668
12669 if test $ac_cv_func_connect = no; then
12670 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
12671 echo "configure:12672: checking for connect in -lsocket" >&5
12672 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12674 echo $ac_n "(cached) $ac_c" 1>&6
12675 else
12676 ac_save_LIBS="$LIBS"
12677 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12678 cat > conftest.$ac_ext <<EOF
12679 #line 12680 "configure"
12680 #include "confdefs.h"
12681 /* Override any gcc2 internal prototype to avoid an error. */
12682 /* We use char because int might match the return type of a gcc2
12683 builtin and then its argument prototype would still apply. */
12684 char connect();
12685
12686 int main() {
12687 connect()
12688 ; return 0; }
12689 EOF
12690 if { (eval echo configure:12691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12691 rm -rf conftest*
12692 eval "ac_cv_lib_$ac_lib_var=yes"
12693 else
12694 echo "configure: failed program was:" >&5
12695 cat conftest.$ac_ext >&5
12696 rm -rf conftest*
12697 eval "ac_cv_lib_$ac_lib_var=no"
12698 fi
12699 rm -f conftest*
12700 LIBS="$ac_save_LIBS"
12701
12702 fi
12703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12704 echo "$ac_t""yes" 1>&6
12705 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12706 else
12707 echo "$ac_t""no" 1>&6
12708 fi
12709
12710 fi
12711
12712 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12713 echo $ac_n "checking for remove""... $ac_c" 1>&6
12714 echo "configure:12715: checking for remove" >&5
12715 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12716 echo $ac_n "(cached) $ac_c" 1>&6
12717 else
12718 cat > conftest.$ac_ext <<EOF
12719 #line 12720 "configure"
12720 #include "confdefs.h"
12721 /* System header to define __stub macros and hopefully few prototypes,
12722 which can conflict with char remove(); below. */
12723 #include <assert.h>
12724 /* Override any gcc2 internal prototype to avoid an error. */
12725 /* We use char because int might match the return type of a gcc2
12726 builtin and then its argument prototype would still apply. */
12727 char remove();
12728
12729 int main() {
12730
12731 /* The GNU C library defines this for functions which it implements
12732 to always fail with ENOSYS. Some functions are actually named
12733 something starting with __ and the normal name is an alias. */
12734 #if defined (__stub_remove) || defined (__stub___remove)
12735 choke me
12736 #else
12737 remove();
12738 #endif
12739
12740 ; return 0; }
12741 EOF
12742 if { (eval echo configure:12743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12743 rm -rf conftest*
12744 eval "ac_cv_func_remove=yes"
12745 else
12746 echo "configure: failed program was:" >&5
12747 cat conftest.$ac_ext >&5
12748 rm -rf conftest*
12749 eval "ac_cv_func_remove=no"
12750 fi
12751 rm -f conftest*
12752 fi
12753
12754 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12755 echo "$ac_t""yes" 1>&6
12756 :
12757 else
12758 echo "$ac_t""no" 1>&6
12759 fi
12760
12761 if test $ac_cv_func_remove = no; then
12762 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
12763 echo "configure:12764: checking for remove in -lposix" >&5
12764 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12766 echo $ac_n "(cached) $ac_c" 1>&6
12767 else
12768 ac_save_LIBS="$LIBS"
12769 LIBS="-lposix $LIBS"
12770 cat > conftest.$ac_ext <<EOF
12771 #line 12772 "configure"
12772 #include "confdefs.h"
12773 /* Override any gcc2 internal prototype to avoid an error. */
12774 /* We use char because int might match the return type of a gcc2
12775 builtin and then its argument prototype would still apply. */
12776 char remove();
12777
12778 int main() {
12779 remove()
12780 ; return 0; }
12781 EOF
12782 if { (eval echo configure:12783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12783 rm -rf conftest*
12784 eval "ac_cv_lib_$ac_lib_var=yes"
12785 else
12786 echo "configure: failed program was:" >&5
12787 cat conftest.$ac_ext >&5
12788 rm -rf conftest*
12789 eval "ac_cv_lib_$ac_lib_var=no"
12790 fi
12791 rm -f conftest*
12792 LIBS="$ac_save_LIBS"
12793
12794 fi
12795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12796 echo "$ac_t""yes" 1>&6
12797 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12798 else
12799 echo "$ac_t""no" 1>&6
12800 fi
12801
12802 fi
12803
12804 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12805 echo $ac_n "checking for shmat""... $ac_c" 1>&6
12806 echo "configure:12807: checking for shmat" >&5
12807 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12808 echo $ac_n "(cached) $ac_c" 1>&6
12809 else
12810 cat > conftest.$ac_ext <<EOF
12811 #line 12812 "configure"
12812 #include "confdefs.h"
12813 /* System header to define __stub macros and hopefully few prototypes,
12814 which can conflict with char shmat(); below. */
12815 #include <assert.h>
12816 /* Override any gcc2 internal prototype to avoid an error. */
12817 /* We use char because int might match the return type of a gcc2
12818 builtin and then its argument prototype would still apply. */
12819 char shmat();
12820
12821 int main() {
12822
12823 /* The GNU C library defines this for functions which it implements
12824 to always fail with ENOSYS. Some functions are actually named
12825 something starting with __ and the normal name is an alias. */
12826 #if defined (__stub_shmat) || defined (__stub___shmat)
12827 choke me
12828 #else
12829 shmat();
12830 #endif
12831
12832 ; return 0; }
12833 EOF
12834 if { (eval echo configure:12835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12835 rm -rf conftest*
12836 eval "ac_cv_func_shmat=yes"
12837 else
12838 echo "configure: failed program was:" >&5
12839 cat conftest.$ac_ext >&5
12840 rm -rf conftest*
12841 eval "ac_cv_func_shmat=no"
12842 fi
12843 rm -f conftest*
12844 fi
12845
12846 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12847 echo "$ac_t""yes" 1>&6
12848 :
12849 else
12850 echo "$ac_t""no" 1>&6
12851 fi
12852
12853 if test $ac_cv_func_shmat = no; then
12854 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12855 echo "configure:12856: checking for shmat in -lipc" >&5
12856 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12858 echo $ac_n "(cached) $ac_c" 1>&6
12859 else
12860 ac_save_LIBS="$LIBS"
12861 LIBS="-lipc $LIBS"
12862 cat > conftest.$ac_ext <<EOF
12863 #line 12864 "configure"
12864 #include "confdefs.h"
12865 /* Override any gcc2 internal prototype to avoid an error. */
12866 /* We use char because int might match the return type of a gcc2
12867 builtin and then its argument prototype would still apply. */
12868 char shmat();
12869
12870 int main() {
12871 shmat()
12872 ; return 0; }
12873 EOF
12874 if { (eval echo configure:12875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12875 rm -rf conftest*
12876 eval "ac_cv_lib_$ac_lib_var=yes"
12877 else
12878 echo "configure: failed program was:" >&5
12879 cat conftest.$ac_ext >&5
12880 rm -rf conftest*
12881 eval "ac_cv_lib_$ac_lib_var=no"
12882 fi
12883 rm -f conftest*
12884 LIBS="$ac_save_LIBS"
12885
12886 fi
12887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12888 echo "$ac_t""yes" 1>&6
12889 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12890 else
12891 echo "$ac_t""no" 1>&6
12892 fi
12893
12894 fi
12895 fi
12896
12897 # Check for libraries that X11R6 Xt/Xaw programs need.
12898 ac_save_LDFLAGS="$LDFLAGS"
12899 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12900 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12901 # check for ICE first), but we must link in the order -lSM -lICE or
12902 # we get undefined symbols. So assume we have SM if we have ICE.
12903 # These have to be linked with before -lX11, unlike the other
12904 # libraries we check for below, so use a different variable.
12905 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12906 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12907 echo "configure:12908: checking for IceConnectionNumber in -lICE" >&5
12908 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12910 echo $ac_n "(cached) $ac_c" 1>&6
12911 else
12912 ac_save_LIBS="$LIBS"
12913 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12914 cat > conftest.$ac_ext <<EOF
12915 #line 12916 "configure"
12916 #include "confdefs.h"
12917 /* Override any gcc2 internal prototype to avoid an error. */
12918 /* We use char because int might match the return type of a gcc2
12919 builtin and then its argument prototype would still apply. */
12920 char IceConnectionNumber();
12921
12922 int main() {
12923 IceConnectionNumber()
12924 ; return 0; }
12925 EOF
12926 if { (eval echo configure:12927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12927 rm -rf conftest*
12928 eval "ac_cv_lib_$ac_lib_var=yes"
12929 else
12930 echo "configure: failed program was:" >&5
12931 cat conftest.$ac_ext >&5
12932 rm -rf conftest*
12933 eval "ac_cv_lib_$ac_lib_var=no"
12934 fi
12935 rm -f conftest*
12936 LIBS="$ac_save_LIBS"
12937
12938 fi
12939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12940 echo "$ac_t""yes" 1>&6
12941 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12942 else
12943 echo "$ac_t""no" 1>&6
12944 fi
12945
12946 LDFLAGS="$ac_save_LDFLAGS"
12947
12948 fi
12949
12950
12951 if test "$no_x" = "yes"; then
12952 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12953 fi
12954
12955 GUI_TK_LIBRARY="$X_LIBS"
12956 TOOLKIT_INCLUDE="$X_CFLAGS"
12957 AFMINSTALL=afminstall
12958 COMPILED_X_PROGRAM=0
12959
12960 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
12961 echo "configure:12962: checking for Motif/Lesstif headers" >&5
12962
12963 ac_find_includes=
12964 for ac_dir in $SEARCH_INCLUDE;
12965 do
12966 if test -f "$ac_dir/Xm/Xm.h"; then
12967 ac_find_includes=$ac_dir
12968 break
12969 fi
12970 done
12971
12972 if test "$ac_find_includes" != "" ; then
12973 echo "$ac_t""found $ac_find_includes" 1>&6
12974 else
12975 cat > conftest.$ac_ext <<EOF
12976 #line 12977 "configure"
12977 #include "confdefs.h"
12978
12979 #include <Xm/Xm.h>
12980
12981 int main() {
12982
12983 int version;
12984 version = xmUseVersion;
12985
12986 ; return 0; }
12987 EOF
12988 if { (eval echo configure:12989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12989 rm -rf conftest*
12990
12991 echo "$ac_t""found in default search path" 1>&6
12992 COMPILED_X_PROGRAM=1
12993
12994 else
12995 echo "configure: failed program was:" >&5
12996 cat conftest.$ac_ext >&5
12997 rm -rf conftest*
12998
12999 echo "$ac_t""no" 1>&6
13000 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
13001
13002
13003 fi
13004 rm -f conftest*
13005 fi
13006
13007 if test "$COMPILED_X_PROGRAM" = 0; then
13008 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
13009 echo "configure:13010: checking for Motif/Lesstif library" >&5
13010
13011 ac_find_libraries=
13012 for ac_dir in $SEARCH_LIB;
13013 do
13014 for ac_extension in a so sl dylib; do
13015 if test -f "$ac_dir/libXm.$ac_extension"; then
13016 ac_find_libraries=$ac_dir
13017 break 2
13018 fi
13019 done
13020 done
13021
13022 if test "$ac_find_libraries" != "" ; then
13023
13024 ac_path_to_include=$ac_find_includes
13025 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
13026 result=$?
13027 if test $result = 0; then
13028 ac_path_to_include=""
13029 else
13030 ac_path_to_include=" -I$ac_find_includes"
13031 fi
13032
13033
13034 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13035 result=$?
13036 if test $result = 0; then
13037 ac_path_to_link=""
13038 else
13039 ac_path_to_link=" -L$ac_find_libraries"
13040 fi
13041
13042
13043 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13044 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
13045 echo "$ac_t""found at $ac_find_libraries" 1>&6
13046 else
13047 cat > conftest.$ac_ext <<EOF
13048 #line 13049 "configure"
13049 #include "confdefs.h"
13050
13051 #include <Xm/Xm.h>
13052
13053 int main() {
13054
13055 int version;
13056 version = xmUseVersion;
13057
13058 ; return 0; }
13059 EOF
13060 if { (eval echo configure:13061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13061 rm -rf conftest*
13062
13063 echo "$ac_t""found in default search path" 1>&6
13064 COMPILED_X_PROGRAM=1
13065
13066 else
13067 echo "configure: failed program was:" >&5
13068 cat conftest.$ac_ext >&5
13069 rm -rf conftest*
13070
13071 echo "$ac_t""no" 1>&6
13072 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
13073
13074
13075 fi
13076 rm -f conftest*
13077 fi
13078 fi
13079
13080 xpm_link=
13081 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13082 echo "configure:13083: checking for Xpm library" >&5
13083
13084 ac_find_libraries=
13085 for ac_dir in $SEARCH_LIB;
13086 do
13087 for ac_extension in a so sl dylib; do
13088 if test -f "$ac_dir/libXpm.$ac_extension"; then
13089 ac_find_libraries=$ac_dir
13090 break 2
13091 fi
13092 done
13093 done
13094
13095 if test "$ac_find_libraries" != "" ; then
13096
13097 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13098 result=$?
13099 if test $result = 0; then
13100 ac_path_to_link=""
13101 else
13102 ac_path_to_link=" -L$ac_find_libraries"
13103 fi
13104
13105 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13106 xpm_link=" -lXpm"
13107 cat >> confdefs.h <<\EOF
13108 #define wxHAVE_LIB_XPM 1
13109 EOF
13110
13111 echo "$ac_t""found at $ac_find_libraries" 1>&6
13112 else
13113 cat > conftest.$ac_ext <<EOF
13114 #line 13115 "configure"
13115 #include "confdefs.h"
13116
13117 #include <X11/xpm.h>
13118
13119 int main() {
13120
13121 int version;
13122 version = XpmLibraryVersion();
13123
13124 ; return 0; }
13125 EOF
13126 if { (eval echo configure:13127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13127 rm -rf conftest*
13128
13129 xpm_link=" -lXpm"
13130 cat >> confdefs.h <<\EOF
13131 #define wxHAVE_LIB_XPM 1
13132 EOF
13133
13134 echo "$ac_t""found in default search path" 1>&6
13135 COMPILED_X_PROGRAM=0
13136
13137 else
13138 echo "configure: failed program was:" >&5
13139 cat conftest.$ac_ext >&5
13140 rm -rf conftest*
13141
13142 echo "$ac_t""no" 1>&6
13143 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13144
13145
13146 fi
13147 rm -f conftest*
13148 fi
13149
13150 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
13151 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
13152 TOOLKIT=MOTIF
13153 GUIDIST=MOTIF_DIST
13154 fi
13155
13156 if test "$wxUSE_MAC" = 1; then
13157 if test "$wxUSE_PRECOMP" = "yes"; then
13158 CPPFLAGS="$CPPFLAGS -cpp-precomp"
13159 fi
13160 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
13161 CFLAGS="$CFLAGS -fpascal-strings"
13162 CXXFLAGS="$CXXFLAGS -fpascal-strings"
13163
13164 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
13165 TOOLKIT=MAC
13166 GUIDIST=MACX_DIST
13167 fi
13168
13169 if test "$wxUSE_PM" = 1; then
13170 TOOLKIT=PM
13171 GUIDIST=GTK_DIST
13172 fi
13173
13174 if test "$TOOLKIT" = "PM" ; then
13175 TOOLKIT_DIR="os2"
13176 else
13177 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
13178 fi
13179
13180 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
13181
13182 if test "$wxUSE_UNIVERSAL" = "yes"; then
13183 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
13184
13185 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
13186 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
13187
13188 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
13189 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
13190 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
13191 WIDGET_SET=univ
13192 else
13193 ALL_OBJECTS="\$(GUIOBJS)"
13194 ALL_SOURCES="\$(ALL_SOURCES)"
13195 ALL_HEADERS="\$(ALL_HEADERS)"
13196 fi
13197
13198 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
13199
13200 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
13201 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
13202 fi
13203
13204 if test "$wxUSE_HTML" = "yes"; then
13205 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
13206 fi
13207
13208 if test "$wxUSE_LIBJPEG" = "builtin" ; then
13209 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
13210 fi
13211 if test "$wxUSE_LIBTIFF" = "builtin" ; then
13212 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
13213 fi
13214 if test "$wxUSE_LIBPNG" = "builtin" ; then
13215 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
13216 fi
13217
13218 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
13219 DISTDIR="wx\$(TOOLKIT)"
13220 else
13221 USE_GUI=0
13222
13223 TOOLKIT_DIR="base"
13224
13225 if test "$USE_WIN32" = 1 ; then
13226 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
13227 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
13228
13229 TOOLKIT="MSW"
13230 else
13231 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
13232 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
13233 fi
13234
13235 ALL_SOURCES="\$(ALL_SOURCES)"
13236 ALL_HEADERS="\$(ALL_HEADERS)"
13237
13238 PORT_FILES="\${top_srcdir}/src/files.lst"
13239
13240 GUIDIST="BASE_DIST"
13241 DISTDIR="wxBase"
13242 fi
13243
13244
13245 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
13246 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
13247 fi
13248
13249 if test "$wxUSE_REGEX" = "builtin" ; then
13250 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
13251 fi
13252 if test "$wxUSE_ZLIB" = "builtin" ; then
13253 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
13254 fi
13255
13256 if test "$wxUSE_OPENGL" = "yes"; then
13257 if test "$wxUSE_MAC" = 1; then
13258 OPENGL_LIBS="-framework OpenGL -framework AGL"
13259 else
13260
13261 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13262 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
13263 echo "configure:13264: checking for GL/gl.h" >&5
13264 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13265 echo $ac_n "(cached) $ac_c" 1>&6
13266 else
13267 cat > conftest.$ac_ext <<EOF
13268 #line 13269 "configure"
13269 #include "confdefs.h"
13270 #include <GL/gl.h>
13271 EOF
13272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13273 { (eval echo configure:13274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13275 if test -z "$ac_err"; then
13276 rm -rf conftest*
13277 eval "ac_cv_header_$ac_safe=yes"
13278 else
13279 echo "$ac_err" >&5
13280 echo "configure: failed program was:" >&5
13281 cat conftest.$ac_ext >&5
13282 rm -rf conftest*
13283 eval "ac_cv_header_$ac_safe=no"
13284 fi
13285 rm -f conftest*
13286 fi
13287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13288 echo "$ac_t""yes" 1>&6
13289
13290 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
13291 echo "configure:13292: checking for -lGL" >&5
13292
13293 ac_find_libraries=
13294 for ac_dir in $SEARCH_LIB;
13295 do
13296 for ac_extension in a so sl dylib; do
13297 if test -f "$ac_dir/libGL.$ac_extension"; then
13298 ac_find_libraries=$ac_dir
13299 break 2
13300 fi
13301 done
13302 done
13303
13304 if test "$ac_find_libraries" != "" ; then
13305
13306 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13307 result=$?
13308 if test $result = 0; then
13309 ac_path_to_link=""
13310 else
13311 ac_path_to_link=" -L$ac_find_libraries"
13312 fi
13313
13314 if test "$ac_path_to_link" = " -L/usr/lib" ; then
13315 LDFLAGS_GL="$LDFLAGS"
13316 else
13317 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13318 fi
13319 OPENGL_LIBS="-lGL -lGLU"
13320 echo "$ac_t""yes" 1>&6
13321 else
13322 echo "$ac_t""no" 1>&6
13323 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
13324 echo "configure:13325: checking for -lMesaGL" >&5
13325
13326 ac_find_libraries=
13327 for ac_dir in $SEARCH_LIB;
13328 do
13329 for ac_extension in a so sl dylib; do
13330 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13331 ac_find_libraries=$ac_dir
13332 break 2
13333 fi
13334 done
13335 done
13336
13337 if test "$ac_find_libraries" != "" ; then
13338
13339 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13340 result=$?
13341 if test $result = 0; then
13342 ac_path_to_link=""
13343 else
13344 ac_path_to_link=" -L$ac_find_libraries"
13345 fi
13346
13347 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13348 OPENGL_LIBS="-lMesaGL -lMesaGLU"
13349 echo "$ac_t""yes" 1>&6
13350 else
13351 echo "$ac_t""no" 1>&6
13352 fi
13353 fi
13354
13355 else
13356 echo "$ac_t""no" 1>&6
13357 fi
13358
13359
13360
13361 # AC_CHECK_HEADER(GL/gl.h,
13362 # [
13363 # AC_CHECK_LIB(GL, glFlush,
13364 # [
13365 # OPENGL_LIBS="-lGL -lGLU"
13366 # ],
13367 # [
13368 # AC_CHECK_LIB(MesaGL, glFlush,
13369 # [
13370 # OPENGL_LIBS="-lMesaGL -lMesaGLU"
13371 # ],
13372 # [],
13373 # [-lm])
13374 # ],
13375 # [-lm])
13376 # ])
13377
13378 if test "x$OPENGL_LIBS" = "x"; then
13379 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
13380 fi
13381 fi
13382
13383 if test "$wxUSE_OPENGL" = "yes"; then
13384 cat >> confdefs.h <<\EOF
13385 #define wxUSE_OPENGL 1
13386 EOF
13387
13388 cat >> confdefs.h <<\EOF
13389 #define wxUSE_GLCANVAS 1
13390 EOF
13391
13392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
13393 fi
13394 fi
13395
13396 if test -z "$TOOLKIT_VPATH" ; then
13397 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
13398 fi
13399
13400 if test -n "$TOOLKIT" ; then
13401 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
13402 fi
13403
13404 lib_unicode_suffix=
13405 if test "$wxUSE_UNICODE" = "yes"; then
13406 lib_unicode_suffix=u
13407 fi
13408
13409 lib_debug_suffix=
13410 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
13411 lib_debug_suffix=d
13412 fi
13413
13414 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
13415 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
13416
13417 if test "$cross_compiling" = "yes"; then
13418 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
13419 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
13420 fi
13421
13422 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
13423 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
13424
13425 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13426 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13427
13428 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
13429 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
13430 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
13431 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13432
13433 WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
13434 WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
13435
13436 case "${host}" in
13437 *-*-cygwin* | *-*-mingw32* )
13438
13439
13440
13441 if test "$cross_compiling" != "yes"; then
13442 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13443 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13444 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
13445 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
13446 else
13447 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
13448 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13449 fi
13450
13451 esac
13452
13453 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
13454 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
13455
13456 WXCONFIG_LIBS="-l${WX_LIBRARY}"
13457 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
13458
13459 if test "$wxUSE_OPENGL" = "yes"; then
13460 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
13461 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
13462 fi
13463
13464
13465
13466 if test "$wxUSE_SHARED" = "yes"; then
13467 case "${host}" in
13468 *-pc-os2_emx | *-pc-os2-emx | \
13469 *-pc-msdosdjgpp )
13470 wxUSE_SHARED=no
13471 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
13472 ;;
13473 esac
13474 fi
13475
13476 if test "$wxUSE_SHARED" = "yes"; then
13477
13478 if test "$wxUSE_OPENGL" = "yes"; then
13479 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
13480 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
13481 else
13482 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
13483 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
13484 fi
13485
13486 if test "$GCC" = "yes"; then
13487 PIC_FLAG="-fPIC"
13488 fi
13489
13490 SHARED_LD="${CXX} -shared -o"
13491
13492 case "${host}" in
13493 *-hp-hpux* )
13494 if test "$GCC" == "yes"; then
13495 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
13496 else
13497 LDFLAGS="$LDFLAGS -L/usr/lib"
13498
13499 SHARED_LD="${CXX} -b -o"
13500 PIC_FLAG="+Z"
13501 fi
13502
13503 if test "$wxUSE_OPENGL" = "yes"; then
13504 WX_ALL_INSTALLED="preinstall_gl"
13505 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13506 else
13507 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13508 fi
13509 ;;
13510
13511 *-*-linux* )
13512 if test "$GCC" != "yes"; then
13513 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
13514 echo "configure:13515: checking for Intel compiler" >&5
13515 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
13516 echo $ac_n "(cached) $ac_c" 1>&6
13517 else
13518
13519 cat > conftest.$ac_ext <<EOF
13520 #line 13521 "configure"
13521 #include "confdefs.h"
13522
13523 int main() {
13524
13525 #ifndef __INTEL_COMPILER
13526 #error Not icc
13527 #endif
13528
13529 ; return 0; }
13530 EOF
13531 if { (eval echo configure:13532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13532 rm -rf conftest*
13533 wx_cv_prog_icc=yes
13534 else
13535 echo "configure: failed program was:" >&5
13536 cat conftest.$ac_ext >&5
13537 rm -rf conftest*
13538 wx_cv_prog_icc=no
13539
13540 fi
13541 rm -f conftest*
13542
13543 fi
13544
13545 echo "$ac_t""$wx_cv_prog_icc" 1>&6
13546 if test "$wx_cv_prog_icc" = "yes"; then
13547 PIC_FLAG="-KPIC"
13548 fi
13549 fi
13550
13551 if test "$wxUSE_SONAME" = "yes" ; then
13552 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
13553 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
13554 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
13555 fi
13556 ;;
13557
13558 *-*-solaris2* )
13559 if test "$GCC" = yes ; then
13560 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
13561 else
13562 SHARED_LD="${CXX} -G -o"
13563 PIC_FLAG="-KPIC"
13564 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
13565 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
13566 fi
13567 ;;
13568
13569 *-*-darwin* )
13570 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
13571 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
13572 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
13573 PIC_FLAG="-dynamic -fPIC"
13574 ;;
13575
13576 *-*-aix* )
13577 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
13578 ;;
13579
13580 *-*-cygwin* | *-*-mingw32* )
13581
13582 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
13583
13584 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
13585 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
13586
13587 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
13588
13589 if test "$wxUSE_OPENGL" = "yes"; then
13590 WX_ALL_INSTALLED="preinstall_gl"
13591 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13592 else
13593 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13594 fi
13595 ;;
13596
13597 *-*-beos* )
13598 SHARED_LD="${LD} -shared -o"
13599 ;;
13600
13601 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
13602 *-*-sunos4* | \
13603 *-*-irix5* | *-*-irix6* | \
13604 *-*-osf* | \
13605 *-*-dgux5* | \
13606 *-*-sysv5* )
13607 ;;
13608
13609 *)
13610 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
13611 esac
13612
13613 if test "x$WX_TARGET_LIBRARY" = "x"; then
13614 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
13615 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
13616 fi
13617
13618 WX_TARGET_LIBRARY_TYPE="so"
13619 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
13620 fi
13621
13622 if test "$wxUSE_SHARED" = "no"; then
13623
13624 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
13625 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13626 fi
13627
13628 if test "$wxUSE_MAC" = 1; then
13629 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13630 fi
13631
13632 if test "$wxUSE_OPENGL" = "yes"; then
13633 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
13634 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
13635 else
13636 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
13637 fi
13638
13639 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
13640 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
13641
13642 WX_TARGET_LIBRARY_TYPE="a"
13643 INSTALL_LIBRARY='$(INSTALL_DATA)'
13644 fi
13645
13646 if test "$wxUSE_MAC" = 1; then
13647 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
13648 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
13649 # Extract the first word of "Rez", so it can be a program name with args.
13650 set dummy Rez; ac_word=$2
13651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13652 echo "configure:13653: checking for $ac_word" >&5
13653 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
13654 echo $ac_n "(cached) $ac_c" 1>&6
13655 else
13656 if test -n "$RESCOMP"; then
13657 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13658 else
13659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13660 ac_dummy="$PATH"
13661 for ac_dir in $ac_dummy; do
13662 test -z "$ac_dir" && ac_dir=.
13663 if test -f $ac_dir/$ac_word; then
13664 ac_cv_prog_RESCOMP="Rez"
13665 break
13666 fi
13667 done
13668 IFS="$ac_save_ifs"
13669 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
13670 fi
13671 fi
13672 RESCOMP="$ac_cv_prog_RESCOMP"
13673 if test -n "$RESCOMP"; then
13674 echo "$ac_t""$RESCOMP" 1>&6
13675 else
13676 echo "$ac_t""no" 1>&6
13677 fi
13678
13679 # Extract the first word of "DeRez", so it can be a program name with args.
13680 set dummy DeRez; ac_word=$2
13681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13682 echo "configure:13683: checking for $ac_word" >&5
13683 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13684 echo $ac_n "(cached) $ac_c" 1>&6
13685 else
13686 if test -n "$DEREZ"; then
13687 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13688 else
13689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13690 ac_dummy="$PATH"
13691 for ac_dir in $ac_dummy; do
13692 test -z "$ac_dir" && ac_dir=.
13693 if test -f $ac_dir/$ac_word; then
13694 ac_cv_prog_DEREZ="DeRez"
13695 break
13696 fi
13697 done
13698 IFS="$ac_save_ifs"
13699 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
13700 fi
13701 fi
13702 DEREZ="$ac_cv_prog_DEREZ"
13703 if test -n "$DEREZ"; then
13704 echo "$ac_t""$DEREZ" 1>&6
13705 else
13706 echo "$ac_t""no" 1>&6
13707 fi
13708
13709 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
13710 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
13711 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
13712 fi
13713
13714
13715 if test "$wxUSE_MAC" != 1; then
13716 for ac_hdr in strings.h
13717 do
13718 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13720 echo "configure:13721: checking for $ac_hdr" >&5
13721 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13722 echo $ac_n "(cached) $ac_c" 1>&6
13723 else
13724 cat > conftest.$ac_ext <<EOF
13725 #line 13726 "configure"
13726 #include "confdefs.h"
13727 #include <$ac_hdr>
13728 EOF
13729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13730 { (eval echo configure:13731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13732 if test -z "$ac_err"; then
13733 rm -rf conftest*
13734 eval "ac_cv_header_$ac_safe=yes"
13735 else
13736 echo "$ac_err" >&5
13737 echo "configure: failed program was:" >&5
13738 cat conftest.$ac_ext >&5
13739 rm -rf conftest*
13740 eval "ac_cv_header_$ac_safe=no"
13741 fi
13742 rm -f conftest*
13743 fi
13744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13745 echo "$ac_t""yes" 1>&6
13746 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13747 cat >> confdefs.h <<EOF
13748 #define $ac_tr_hdr 1
13749 EOF
13750
13751 else
13752 echo "$ac_t""no" 1>&6
13753 fi
13754 done
13755
13756 fi
13757
13758 for ac_hdr in stdlib.h
13759 do
13760 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13761 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13762 echo "configure:13763: checking for $ac_hdr" >&5
13763 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13764 echo $ac_n "(cached) $ac_c" 1>&6
13765 else
13766 cat > conftest.$ac_ext <<EOF
13767 #line 13768 "configure"
13768 #include "confdefs.h"
13769 #include <$ac_hdr>
13770 EOF
13771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13772 { (eval echo configure:13773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13774 if test -z "$ac_err"; then
13775 rm -rf conftest*
13776 eval "ac_cv_header_$ac_safe=yes"
13777 else
13778 echo "$ac_err" >&5
13779 echo "configure: failed program was:" >&5
13780 cat conftest.$ac_ext >&5
13781 rm -rf conftest*
13782 eval "ac_cv_header_$ac_safe=no"
13783 fi
13784 rm -f conftest*
13785 fi
13786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13787 echo "$ac_t""yes" 1>&6
13788 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13789 cat >> confdefs.h <<EOF
13790 #define $ac_tr_hdr 1
13791 EOF
13792
13793 else
13794 echo "$ac_t""no" 1>&6
13795 fi
13796 done
13797
13798 for ac_hdr in malloc.h
13799 do
13800 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13801 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13802 echo "configure:13803: checking for $ac_hdr" >&5
13803 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13804 echo $ac_n "(cached) $ac_c" 1>&6
13805 else
13806 cat > conftest.$ac_ext <<EOF
13807 #line 13808 "configure"
13808 #include "confdefs.h"
13809 #include <$ac_hdr>
13810 EOF
13811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13812 { (eval echo configure:13813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13814 if test -z "$ac_err"; then
13815 rm -rf conftest*
13816 eval "ac_cv_header_$ac_safe=yes"
13817 else
13818 echo "$ac_err" >&5
13819 echo "configure: failed program was:" >&5
13820 cat conftest.$ac_ext >&5
13821 rm -rf conftest*
13822 eval "ac_cv_header_$ac_safe=no"
13823 fi
13824 rm -f conftest*
13825 fi
13826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13827 echo "$ac_t""yes" 1>&6
13828 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13829 cat >> confdefs.h <<EOF
13830 #define $ac_tr_hdr 1
13831 EOF
13832
13833 else
13834 echo "$ac_t""no" 1>&6
13835 fi
13836 done
13837
13838 for ac_hdr in unistd.h
13839 do
13840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13842 echo "configure:13843: checking for $ac_hdr" >&5
13843 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13844 echo $ac_n "(cached) $ac_c" 1>&6
13845 else
13846 cat > conftest.$ac_ext <<EOF
13847 #line 13848 "configure"
13848 #include "confdefs.h"
13849 #include <$ac_hdr>
13850 EOF
13851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13852 { (eval echo configure:13853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13854 if test -z "$ac_err"; then
13855 rm -rf conftest*
13856 eval "ac_cv_header_$ac_safe=yes"
13857 else
13858 echo "$ac_err" >&5
13859 echo "configure: failed program was:" >&5
13860 cat conftest.$ac_ext >&5
13861 rm -rf conftest*
13862 eval "ac_cv_header_$ac_safe=no"
13863 fi
13864 rm -f conftest*
13865 fi
13866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13867 echo "$ac_t""yes" 1>&6
13868 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13869 cat >> confdefs.h <<EOF
13870 #define $ac_tr_hdr 1
13871 EOF
13872
13873 else
13874 echo "$ac_t""no" 1>&6
13875 fi
13876 done
13877
13878 for ac_hdr in wchar.h
13879 do
13880 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13881 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13882 echo "configure:13883: checking for $ac_hdr" >&5
13883 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13884 echo $ac_n "(cached) $ac_c" 1>&6
13885 else
13886 cat > conftest.$ac_ext <<EOF
13887 #line 13888 "configure"
13888 #include "confdefs.h"
13889 #include <$ac_hdr>
13890 EOF
13891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13892 { (eval echo configure:13893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13894 if test -z "$ac_err"; then
13895 rm -rf conftest*
13896 eval "ac_cv_header_$ac_safe=yes"
13897 else
13898 echo "$ac_err" >&5
13899 echo "configure: failed program was:" >&5
13900 cat conftest.$ac_ext >&5
13901 rm -rf conftest*
13902 eval "ac_cv_header_$ac_safe=no"
13903 fi
13904 rm -f conftest*
13905 fi
13906 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13907 echo "$ac_t""yes" 1>&6
13908 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13909 cat >> confdefs.h <<EOF
13910 #define $ac_tr_hdr 1
13911 EOF
13912
13913 else
13914 echo "$ac_t""no" 1>&6
13915 fi
13916 done
13917
13918 for ac_hdr in wcstr.h
13919 do
13920 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13922 echo "configure:13923: checking for $ac_hdr" >&5
13923 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13924 echo $ac_n "(cached) $ac_c" 1>&6
13925 else
13926 cat > conftest.$ac_ext <<EOF
13927 #line 13928 "configure"
13928 #include "confdefs.h"
13929 #include <$ac_hdr>
13930 EOF
13931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13932 { (eval echo configure:13933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13934 if test -z "$ac_err"; then
13935 rm -rf conftest*
13936 eval "ac_cv_header_$ac_safe=yes"
13937 else
13938 echo "$ac_err" >&5
13939 echo "configure: failed program was:" >&5
13940 cat conftest.$ac_ext >&5
13941 rm -rf conftest*
13942 eval "ac_cv_header_$ac_safe=no"
13943 fi
13944 rm -f conftest*
13945 fi
13946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13947 echo "$ac_t""yes" 1>&6
13948 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13949 cat >> confdefs.h <<EOF
13950 #define $ac_tr_hdr 1
13951 EOF
13952
13953 else
13954 echo "$ac_t""no" 1>&6
13955 fi
13956 done
13957
13958 for ac_hdr in wctype.h
13959 do
13960 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13962 echo "configure:13963: checking for $ac_hdr" >&5
13963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13964 echo $ac_n "(cached) $ac_c" 1>&6
13965 else
13966 cat > conftest.$ac_ext <<EOF
13967 #line 13968 "configure"
13968 #include "confdefs.h"
13969 #include <$ac_hdr>
13970 EOF
13971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13972 { (eval echo configure:13973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13974 if test -z "$ac_err"; then
13975 rm -rf conftest*
13976 eval "ac_cv_header_$ac_safe=yes"
13977 else
13978 echo "$ac_err" >&5
13979 echo "configure: failed program was:" >&5
13980 cat conftest.$ac_ext >&5
13981 rm -rf conftest*
13982 eval "ac_cv_header_$ac_safe=no"
13983 fi
13984 rm -f conftest*
13985 fi
13986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13987 echo "$ac_t""yes" 1>&6
13988 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13989 cat >> confdefs.h <<EOF
13990 #define $ac_tr_hdr 1
13991 EOF
13992
13993 else
13994 echo "$ac_t""no" 1>&6
13995 fi
13996 done
13997
13998 for ac_hdr in fnmatch.h
13999 do
14000 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14001 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14002 echo "configure:14003: checking for $ac_hdr" >&5
14003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14004 echo $ac_n "(cached) $ac_c" 1>&6
14005 else
14006 cat > conftest.$ac_ext <<EOF
14007 #line 14008 "configure"
14008 #include "confdefs.h"
14009 #include <$ac_hdr>
14010 EOF
14011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14012 { (eval echo configure:14013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14014 if test -z "$ac_err"; then
14015 rm -rf conftest*
14016 eval "ac_cv_header_$ac_safe=yes"
14017 else
14018 echo "$ac_err" >&5
14019 echo "configure: failed program was:" >&5
14020 cat conftest.$ac_ext >&5
14021 rm -rf conftest*
14022 eval "ac_cv_header_$ac_safe=no"
14023 fi
14024 rm -f conftest*
14025 fi
14026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14027 echo "$ac_t""yes" 1>&6
14028 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14029 cat >> confdefs.h <<EOF
14030 #define $ac_tr_hdr 1
14031 EOF
14032
14033 else
14034 echo "$ac_t""no" 1>&6
14035 fi
14036 done
14037
14038 for ac_hdr in langinfo.h
14039 do
14040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14042 echo "configure:14043: checking for $ac_hdr" >&5
14043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14044 echo $ac_n "(cached) $ac_c" 1>&6
14045 else
14046 cat > conftest.$ac_ext <<EOF
14047 #line 14048 "configure"
14048 #include "confdefs.h"
14049 #include <$ac_hdr>
14050 EOF
14051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14052 { (eval echo configure:14053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14054 if test -z "$ac_err"; then
14055 rm -rf conftest*
14056 eval "ac_cv_header_$ac_safe=yes"
14057 else
14058 echo "$ac_err" >&5
14059 echo "configure: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14061 rm -rf conftest*
14062 eval "ac_cv_header_$ac_safe=no"
14063 fi
14064 rm -f conftest*
14065 fi
14066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14067 echo "$ac_t""yes" 1>&6
14068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14069 cat >> confdefs.h <<EOF
14070 #define $ac_tr_hdr 1
14071 EOF
14072
14073 else
14074 echo "$ac_t""no" 1>&6
14075 fi
14076 done
14077
14078
14079 if test "$wxUSE_GUI" = "yes"; then
14080 if test "$wxUSE_UNIX" = "yes"; then
14081 for ac_hdr in X11/XKBlib.h
14082 do
14083 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14084 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14085 echo "configure:14086: checking for $ac_hdr" >&5
14086 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14087 echo $ac_n "(cached) $ac_c" 1>&6
14088 else
14089 cat > conftest.$ac_ext <<EOF
14090 #line 14091 "configure"
14091 #include "confdefs.h"
14092 #include <$ac_hdr>
14093 EOF
14094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14095 { (eval echo configure:14096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14097 if test -z "$ac_err"; then
14098 rm -rf conftest*
14099 eval "ac_cv_header_$ac_safe=yes"
14100 else
14101 echo "$ac_err" >&5
14102 echo "configure: failed program was:" >&5
14103 cat conftest.$ac_ext >&5
14104 rm -rf conftest*
14105 eval "ac_cv_header_$ac_safe=no"
14106 fi
14107 rm -f conftest*
14108 fi
14109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14110 echo "$ac_t""yes" 1>&6
14111 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14112 cat >> confdefs.h <<EOF
14113 #define $ac_tr_hdr 1
14114 EOF
14115
14116 else
14117 echo "$ac_t""no" 1>&6
14118 fi
14119 done
14120
14121 fi
14122 fi
14123
14124
14125 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14126 echo "configure:14127: checking for ANSI C header files" >&5
14127 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
14128 echo $ac_n "(cached) $ac_c" 1>&6
14129 else
14130 cat > conftest.$ac_ext <<EOF
14131 #line 14132 "configure"
14132 #include "confdefs.h"
14133 #include <stdlib.h>
14134 #include <stdarg.h>
14135 #include <string.h>
14136 #include <float.h>
14137 EOF
14138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14139 { (eval echo configure:14140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14141 if test -z "$ac_err"; then
14142 rm -rf conftest*
14143 ac_cv_header_stdc=yes
14144 else
14145 echo "$ac_err" >&5
14146 echo "configure: failed program was:" >&5
14147 cat conftest.$ac_ext >&5
14148 rm -rf conftest*
14149 ac_cv_header_stdc=no
14150 fi
14151 rm -f conftest*
14152
14153 if test $ac_cv_header_stdc = yes; then
14154 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14155 cat > conftest.$ac_ext <<EOF
14156 #line 14157 "configure"
14157 #include "confdefs.h"
14158 #include <string.h>
14159 EOF
14160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14161 egrep "memchr" >/dev/null 2>&1; then
14162 :
14163 else
14164 rm -rf conftest*
14165 ac_cv_header_stdc=no
14166 fi
14167 rm -f conftest*
14168
14169 fi
14170
14171 if test $ac_cv_header_stdc = yes; then
14172 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14173 cat > conftest.$ac_ext <<EOF
14174 #line 14175 "configure"
14175 #include "confdefs.h"
14176 #include <stdlib.h>
14177 EOF
14178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14179 egrep "free" >/dev/null 2>&1; then
14180 :
14181 else
14182 rm -rf conftest*
14183 ac_cv_header_stdc=no
14184 fi
14185 rm -f conftest*
14186
14187 fi
14188
14189 if test $ac_cv_header_stdc = yes; then
14190 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14191 if test "$cross_compiling" = yes; then
14192 :
14193 else
14194 cat > conftest.$ac_ext <<EOF
14195 #line 14196 "configure"
14196 #include "confdefs.h"
14197 #include <ctype.h>
14198 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14199 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14200 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14201 int main () { int i; for (i = 0; i < 256; i++)
14202 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14203 exit (0); }
14204
14205 EOF
14206 if { (eval echo configure:14207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14207 then
14208 :
14209 else
14210 echo "configure: failed program was:" >&5
14211 cat conftest.$ac_ext >&5
14212 rm -fr conftest*
14213 ac_cv_header_stdc=no
14214 fi
14215 rm -fr conftest*
14216 fi
14217
14218 fi
14219 fi
14220
14221 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14222 if test $ac_cv_header_stdc = yes; then
14223 cat >> confdefs.h <<\EOF
14224 #define STDC_HEADERS 1
14225 EOF
14226
14227 fi
14228
14229 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14230 echo "configure:14231: checking for mode_t" >&5
14231 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
14232 echo $ac_n "(cached) $ac_c" 1>&6
14233 else
14234 cat > conftest.$ac_ext <<EOF
14235 #line 14236 "configure"
14236 #include "confdefs.h"
14237 #include <sys/types.h>
14238 #if STDC_HEADERS
14239 #include <stdlib.h>
14240 #include <stddef.h>
14241 #endif
14242 EOF
14243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14244 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14245 rm -rf conftest*
14246 ac_cv_type_mode_t=yes
14247 else
14248 rm -rf conftest*
14249 ac_cv_type_mode_t=no
14250 fi
14251 rm -f conftest*
14252
14253 fi
14254 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
14255 if test $ac_cv_type_mode_t = no; then
14256 cat >> confdefs.h <<\EOF
14257 #define mode_t int
14258 EOF
14259
14260 fi
14261
14262 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14263 echo "configure:14264: checking for off_t" >&5
14264 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
14265 echo $ac_n "(cached) $ac_c" 1>&6
14266 else
14267 cat > conftest.$ac_ext <<EOF
14268 #line 14269 "configure"
14269 #include "confdefs.h"
14270 #include <sys/types.h>
14271 #if STDC_HEADERS
14272 #include <stdlib.h>
14273 #include <stddef.h>
14274 #endif
14275 EOF
14276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14277 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14278 rm -rf conftest*
14279 ac_cv_type_off_t=yes
14280 else
14281 rm -rf conftest*
14282 ac_cv_type_off_t=no
14283 fi
14284 rm -f conftest*
14285
14286 fi
14287 echo "$ac_t""$ac_cv_type_off_t" 1>&6
14288 if test $ac_cv_type_off_t = no; then
14289 cat >> confdefs.h <<\EOF
14290 #define off_t long
14291 EOF
14292
14293 fi
14294
14295 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14296 echo "configure:14297: checking for pid_t" >&5
14297 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
14298 echo $ac_n "(cached) $ac_c" 1>&6
14299 else
14300 cat > conftest.$ac_ext <<EOF
14301 #line 14302 "configure"
14302 #include "confdefs.h"
14303 #include <sys/types.h>
14304 #if STDC_HEADERS
14305 #include <stdlib.h>
14306 #include <stddef.h>
14307 #endif
14308 EOF
14309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14310 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14311 rm -rf conftest*
14312 ac_cv_type_pid_t=yes
14313 else
14314 rm -rf conftest*
14315 ac_cv_type_pid_t=no
14316 fi
14317 rm -f conftest*
14318
14319 fi
14320 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
14321 if test $ac_cv_type_pid_t = no; then
14322 cat >> confdefs.h <<\EOF
14323 #define pid_t int
14324 EOF
14325
14326 fi
14327
14328 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14329 echo "configure:14330: checking for size_t" >&5
14330 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
14331 echo $ac_n "(cached) $ac_c" 1>&6
14332 else
14333 cat > conftest.$ac_ext <<EOF
14334 #line 14335 "configure"
14335 #include "confdefs.h"
14336 #include <sys/types.h>
14337 #if STDC_HEADERS
14338 #include <stdlib.h>
14339 #include <stddef.h>
14340 #endif
14341 EOF
14342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14343 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14344 rm -rf conftest*
14345 ac_cv_type_size_t=yes
14346 else
14347 rm -rf conftest*
14348 ac_cv_type_size_t=no
14349 fi
14350 rm -f conftest*
14351
14352 fi
14353 echo "$ac_t""$ac_cv_type_size_t" 1>&6
14354 if test $ac_cv_type_size_t = no; then
14355 cat >> confdefs.h <<\EOF
14356 #define size_t unsigned
14357 EOF
14358
14359 fi
14360
14361 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14362 echo "configure:14363: checking for uid_t in sys/types.h" >&5
14363 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
14364 echo $ac_n "(cached) $ac_c" 1>&6
14365 else
14366 cat > conftest.$ac_ext <<EOF
14367 #line 14368 "configure"
14368 #include "confdefs.h"
14369 #include <sys/types.h>
14370 EOF
14371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14372 egrep "uid_t" >/dev/null 2>&1; then
14373 rm -rf conftest*
14374 ac_cv_type_uid_t=yes
14375 else
14376 rm -rf conftest*
14377 ac_cv_type_uid_t=no
14378 fi
14379 rm -f conftest*
14380
14381 fi
14382
14383 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14384 if test $ac_cv_type_uid_t = no; then
14385 cat >> confdefs.h <<\EOF
14386 #define uid_t int
14387 EOF
14388
14389 cat >> confdefs.h <<\EOF
14390 #define gid_t int
14391 EOF
14392
14393 fi
14394
14395
14396 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
14397 echo "configure:14398: checking for wchar_t" >&5
14398 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
14399 echo $ac_n "(cached) $ac_c" 1>&6
14400 else
14401
14402 cat > conftest.$ac_ext <<EOF
14403 #line 14404 "configure"
14404 #include "confdefs.h"
14405
14406 #ifdef HAVE_WCHAR_H
14407 # ifdef __CYGWIN__
14408 # include <stddef.h>
14409 # endif
14410 # include <wchar.h>
14411 #endif
14412 #ifdef HAVE_STDLIB_H
14413 # include <stdlib.h>
14414 #endif
14415
14416 int main() {
14417
14418 wchar_t wc, *ws;
14419 wc = L'a';
14420 ws = L"Hello, world!";
14421
14422 ; return 0; }
14423 EOF
14424 if { (eval echo configure:14425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14425 rm -rf conftest*
14426 wx_cv_type_wchar_t=yes
14427 else
14428 echo "configure: failed program was:" >&5
14429 cat conftest.$ac_ext >&5
14430 rm -rf conftest*
14431 wx_cv_type_wchar_t=no
14432
14433 fi
14434 rm -f conftest*
14435
14436 fi
14437
14438 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
14439
14440 if test "$wx_cv_type_wchar_t" = "yes"; then
14441 cat >> confdefs.h <<\EOF
14442 #define wxUSE_WCHAR_T 1
14443 EOF
14444
14445 fi
14446
14447
14448 ac_ext=C
14449 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14450 ac_cpp='$CXXCPP $CPPFLAGS'
14451 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14452 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14453 cross_compiling=$ac_cv_prog_cxx_cross
14454
14455 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
14456 echo "configure:14457: checking if size_t is unsigned int" >&5
14457 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
14458 echo $ac_n "(cached) $ac_c" 1>&6
14459 else
14460 cat > conftest.$ac_ext <<EOF
14461 #line 14462 "configure"
14462 #include "confdefs.h"
14463 #include <stddef.h>
14464 int main() {
14465
14466 return 0; }
14467
14468 struct Foo { void foo(size_t); void foo(unsigned int); };
14469
14470 int bar() {
14471
14472 ; return 0; }
14473 EOF
14474 if { (eval echo configure:14475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14475 rm -rf conftest*
14476 wx_cv_size_t_is_uint=no
14477 else
14478 echo "configure: failed program was:" >&5
14479 cat conftest.$ac_ext >&5
14480 rm -rf conftest*
14481 wx_cv_size_t_is_uint=yes
14482
14483 fi
14484 rm -f conftest*
14485
14486 fi
14487
14488 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
14489
14490 if test "$wx_cv_size_t_is_uint" = "yes"; then
14491 cat >> confdefs.h <<\EOF
14492 #define wxSIZE_T_IS_UINT 1
14493 EOF
14494
14495 else
14496 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
14497 echo "configure:14498: checking if size_t is unsigned long" >&5
14498 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
14499 echo $ac_n "(cached) $ac_c" 1>&6
14500 else
14501 cat > conftest.$ac_ext <<EOF
14502 #line 14503 "configure"
14503 #include "confdefs.h"
14504 #include <stddef.h>
14505 int main() {
14506
14507 return 0; }
14508
14509 struct Foo { void foo(size_t); void foo(unsigned long); };
14510
14511 int bar() {
14512
14513 ; return 0; }
14514 EOF
14515 if { (eval echo configure:14516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14516 rm -rf conftest*
14517 wx_cv_size_t_is_ulong=no
14518 else
14519 echo "configure: failed program was:" >&5
14520 cat conftest.$ac_ext >&5
14521 rm -rf conftest*
14522 wx_cv_size_t_is_ulong=yes
14523
14524 fi
14525 rm -f conftest*
14526
14527 fi
14528
14529 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
14530
14531 if test "$wx_cv_size_t_is_ulong" = "yes"; then
14532 cat >> confdefs.h <<\EOF
14533 #define wxSIZE_T_IS_ULONG 1
14534 EOF
14535
14536 fi
14537 fi
14538
14539 ac_ext=c
14540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14541 ac_cpp='$CPP $CPPFLAGS'
14542 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14543 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14544 cross_compiling=$ac_cv_prog_cc_cross
14545
14546
14547
14548 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
14549 echo "configure:14550: checking for pw_gecos in struct passwd" >&5
14550 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
14551 echo $ac_n "(cached) $ac_c" 1>&6
14552 else
14553
14554 cat > conftest.$ac_ext <<EOF
14555 #line 14556 "configure"
14556 #include "confdefs.h"
14557 #include <pwd.h>
14558 int main() {
14559
14560 char *p;
14561 struct passwd *pw;
14562 p = pw->pw_gecos;
14563
14564 ; return 0; }
14565 EOF
14566 if { (eval echo configure:14567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14567 rm -rf conftest*
14568
14569 wx_cv_struct_pw_gecos=yes
14570
14571 else
14572 echo "configure: failed program was:" >&5
14573 cat conftest.$ac_ext >&5
14574 rm -rf conftest*
14575
14576 wx_cv_struct_pw_gecos=no
14577
14578
14579 fi
14580 rm -f conftest*
14581
14582
14583 fi
14584
14585 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
14586
14587 if test "$wx_cv_struct_pw_gecos" = "yes"; then
14588 cat >> confdefs.h <<\EOF
14589 #define HAVE_PW_GECOS 1
14590 EOF
14591
14592 fi
14593
14594
14595 echo $ac_n "checking for working const""... $ac_c" 1>&6
14596 echo "configure:14597: checking for working const" >&5
14597 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
14598 echo $ac_n "(cached) $ac_c" 1>&6
14599 else
14600 cat > conftest.$ac_ext <<EOF
14601 #line 14602 "configure"
14602 #include "confdefs.h"
14603
14604 int main() {
14605
14606 /* Ultrix mips cc rejects this. */
14607 typedef int charset[2]; const charset x;
14608 /* SunOS 4.1.1 cc rejects this. */
14609 char const *const *ccp;
14610 char **p;
14611 /* NEC SVR4.0.2 mips cc rejects this. */
14612 struct point {int x, y;};
14613 static struct point const zero = {0,0};
14614 /* AIX XL C 1.02.0.0 rejects this.
14615 It does not let you subtract one const X* pointer from another in an arm
14616 of an if-expression whose if-part is not a constant expression */
14617 const char *g = "string";
14618 ccp = &g + (g ? g-g : 0);
14619 /* HPUX 7.0 cc rejects these. */
14620 ++ccp;
14621 p = (char**) ccp;
14622 ccp = (char const *const *) p;
14623 { /* SCO 3.2v4 cc rejects this. */
14624 char *t;
14625 char const *s = 0 ? (char *) 0 : (char const *) 0;
14626
14627 *t++ = 0;
14628 }
14629 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14630 int x[] = {25, 17};
14631 const int *foo = &x[0];
14632 ++foo;
14633 }
14634 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14635 typedef const int *iptr;
14636 iptr p = 0;
14637 ++p;
14638 }
14639 { /* AIX XL C 1.02.0.0 rejects this saying
14640 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14641 struct s { int j; const int *ap[3]; };
14642 struct s *b; b->j = 5;
14643 }
14644 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14645 const int foo = 10;
14646 }
14647
14648 ; return 0; }
14649 EOF
14650 if { (eval echo configure:14651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14651 rm -rf conftest*
14652 ac_cv_c_const=yes
14653 else
14654 echo "configure: failed program was:" >&5
14655 cat conftest.$ac_ext >&5
14656 rm -rf conftest*
14657 ac_cv_c_const=no
14658 fi
14659 rm -f conftest*
14660 fi
14661
14662 echo "$ac_t""$ac_cv_c_const" 1>&6
14663 if test $ac_cv_c_const = no; then
14664 cat >> confdefs.h <<\EOF
14665 #define const
14666 EOF
14667
14668 fi
14669
14670 echo $ac_n "checking for inline""... $ac_c" 1>&6
14671 echo "configure:14672: checking for inline" >&5
14672 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
14673 echo $ac_n "(cached) $ac_c" 1>&6
14674 else
14675 ac_cv_c_inline=no
14676 for ac_kw in inline __inline__ __inline; do
14677 cat > conftest.$ac_ext <<EOF
14678 #line 14679 "configure"
14679 #include "confdefs.h"
14680
14681 int main() {
14682 } $ac_kw foo() {
14683 ; return 0; }
14684 EOF
14685 if { (eval echo configure:14686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14686 rm -rf conftest*
14687 ac_cv_c_inline=$ac_kw; break
14688 else
14689 echo "configure: failed program was:" >&5
14690 cat conftest.$ac_ext >&5
14691 fi
14692 rm -f conftest*
14693 done
14694
14695 fi
14696
14697 echo "$ac_t""$ac_cv_c_inline" 1>&6
14698 case "$ac_cv_c_inline" in
14699 inline | yes) ;;
14700 no) cat >> confdefs.h <<\EOF
14701 #define inline
14702 EOF
14703 ;;
14704 *) cat >> confdefs.h <<EOF
14705 #define inline $ac_cv_c_inline
14706 EOF
14707 ;;
14708 esac
14709
14710
14711 echo $ac_n "checking size of char""... $ac_c" 1>&6
14712 echo "configure:14713: checking size of char" >&5
14713 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
14714 echo $ac_n "(cached) $ac_c" 1>&6
14715 else
14716 if test "$cross_compiling" = yes; then
14717 ac_cv_sizeof_char=1
14718 else
14719 cat > conftest.$ac_ext <<EOF
14720 #line 14721 "configure"
14721 #include "confdefs.h"
14722 #include <stdio.h>
14723 main()
14724 {
14725 FILE *f=fopen("conftestval", "w");
14726 if (!f) exit(1);
14727 fprintf(f, "%d\n", sizeof(char));
14728 exit(0);
14729 }
14730 EOF
14731 if { (eval echo configure:14732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14732 then
14733 ac_cv_sizeof_char=`cat conftestval`
14734 else
14735 echo "configure: failed program was:" >&5
14736 cat conftest.$ac_ext >&5
14737 rm -fr conftest*
14738 ac_cv_sizeof_char=0
14739 fi
14740 rm -fr conftest*
14741 fi
14742
14743 fi
14744 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
14745 cat >> confdefs.h <<EOF
14746 #define SIZEOF_CHAR $ac_cv_sizeof_char
14747 EOF
14748
14749
14750 echo $ac_n "checking size of short""... $ac_c" 1>&6
14751 echo "configure:14752: checking size of short" >&5
14752 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
14753 echo $ac_n "(cached) $ac_c" 1>&6
14754 else
14755 if test "$cross_compiling" = yes; then
14756 ac_cv_sizeof_short=2
14757 else
14758 cat > conftest.$ac_ext <<EOF
14759 #line 14760 "configure"
14760 #include "confdefs.h"
14761 #include <stdio.h>
14762 main()
14763 {
14764 FILE *f=fopen("conftestval", "w");
14765 if (!f) exit(1);
14766 fprintf(f, "%d\n", sizeof(short));
14767 exit(0);
14768 }
14769 EOF
14770 if { (eval echo configure:14771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14771 then
14772 ac_cv_sizeof_short=`cat conftestval`
14773 else
14774 echo "configure: failed program was:" >&5
14775 cat conftest.$ac_ext >&5
14776 rm -fr conftest*
14777 ac_cv_sizeof_short=0
14778 fi
14779 rm -fr conftest*
14780 fi
14781
14782 fi
14783 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14784 cat >> confdefs.h <<EOF
14785 #define SIZEOF_SHORT $ac_cv_sizeof_short
14786 EOF
14787
14788
14789 echo $ac_n "checking size of int *""... $ac_c" 1>&6
14790 echo "configure:14791: checking size of int *" >&5
14791 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
14792 echo $ac_n "(cached) $ac_c" 1>&6
14793 else
14794 if test "$cross_compiling" = yes; then
14795 ac_cv_sizeof_int_p=4
14796 else
14797 cat > conftest.$ac_ext <<EOF
14798 #line 14799 "configure"
14799 #include "confdefs.h"
14800 #include <stdio.h>
14801 main()
14802 {
14803 FILE *f=fopen("conftestval", "w");
14804 if (!f) exit(1);
14805 fprintf(f, "%d\n", sizeof(int *));
14806 exit(0);
14807 }
14808 EOF
14809 if { (eval echo configure:14810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14810 then
14811 ac_cv_sizeof_int_p=`cat conftestval`
14812 else
14813 echo "configure: failed program was:" >&5
14814 cat conftest.$ac_ext >&5
14815 rm -fr conftest*
14816 ac_cv_sizeof_int_p=0
14817 fi
14818 rm -fr conftest*
14819 fi
14820
14821 fi
14822 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
14823 cat >> confdefs.h <<EOF
14824 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14825 EOF
14826
14827
14828 echo $ac_n "checking size of int""... $ac_c" 1>&6
14829 echo "configure:14830: checking size of int" >&5
14830 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
14831 echo $ac_n "(cached) $ac_c" 1>&6
14832 else
14833 if test "$cross_compiling" = yes; then
14834 ac_cv_sizeof_int=4
14835 else
14836 cat > conftest.$ac_ext <<EOF
14837 #line 14838 "configure"
14838 #include "confdefs.h"
14839 #include <stdio.h>
14840 main()
14841 {
14842 FILE *f=fopen("conftestval", "w");
14843 if (!f) exit(1);
14844 fprintf(f, "%d\n", sizeof(int));
14845 exit(0);
14846 }
14847 EOF
14848 if { (eval echo configure:14849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14849 then
14850 ac_cv_sizeof_int=`cat conftestval`
14851 else
14852 echo "configure: failed program was:" >&5
14853 cat conftest.$ac_ext >&5
14854 rm -fr conftest*
14855 ac_cv_sizeof_int=0
14856 fi
14857 rm -fr conftest*
14858 fi
14859
14860 fi
14861 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14862 cat >> confdefs.h <<EOF
14863 #define SIZEOF_INT $ac_cv_sizeof_int
14864 EOF
14865
14866
14867 echo $ac_n "checking size of long""... $ac_c" 1>&6
14868 echo "configure:14869: checking size of long" >&5
14869 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
14870 echo $ac_n "(cached) $ac_c" 1>&6
14871 else
14872 if test "$cross_compiling" = yes; then
14873 ac_cv_sizeof_long=4
14874 else
14875 cat > conftest.$ac_ext <<EOF
14876 #line 14877 "configure"
14877 #include "confdefs.h"
14878 #include <stdio.h>
14879 main()
14880 {
14881 FILE *f=fopen("conftestval", "w");
14882 if (!f) exit(1);
14883 fprintf(f, "%d\n", sizeof(long));
14884 exit(0);
14885 }
14886 EOF
14887 if { (eval echo configure:14888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14888 then
14889 ac_cv_sizeof_long=`cat conftestval`
14890 else
14891 echo "configure: failed program was:" >&5
14892 cat conftest.$ac_ext >&5
14893 rm -fr conftest*
14894 ac_cv_sizeof_long=0
14895 fi
14896 rm -fr conftest*
14897 fi
14898
14899 fi
14900 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14901 cat >> confdefs.h <<EOF
14902 #define SIZEOF_LONG $ac_cv_sizeof_long
14903 EOF
14904
14905
14906 echo $ac_n "checking size of long long""... $ac_c" 1>&6
14907 echo "configure:14908: checking size of long long" >&5
14908 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
14909 echo $ac_n "(cached) $ac_c" 1>&6
14910 else
14911 if test "$cross_compiling" = yes; then
14912 ac_cv_sizeof_long_long=0
14913 else
14914 cat > conftest.$ac_ext <<EOF
14915 #line 14916 "configure"
14916 #include "confdefs.h"
14917 #include <stdio.h>
14918 main()
14919 {
14920 FILE *f=fopen("conftestval", "w");
14921 if (!f) exit(1);
14922 fprintf(f, "%d\n", sizeof(long long));
14923 exit(0);
14924 }
14925 EOF
14926 if { (eval echo configure:14927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14927 then
14928 ac_cv_sizeof_long_long=`cat conftestval`
14929 else
14930 echo "configure: failed program was:" >&5
14931 cat conftest.$ac_ext >&5
14932 rm -fr conftest*
14933 ac_cv_sizeof_long_long=0
14934 fi
14935 rm -fr conftest*
14936 fi
14937
14938 fi
14939 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14940 cat >> confdefs.h <<EOF
14941 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14942 EOF
14943
14944
14945
14946 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
14947 echo "configure:14948: checking size of wchar_t" >&5
14948 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
14949 echo $ac_n "(cached) $ac_c" 1>&6
14950 else
14951
14952 if test "$cross_compiling" = yes; then
14953 wx_cv_sizeof_wchar_t=4
14954
14955 else
14956 cat > conftest.$ac_ext <<EOF
14957 #line 14958 "configure"
14958 #include "confdefs.h"
14959
14960 #ifdef HAVE_WCHAR_H
14961 # ifdef __CYGWIN__
14962 # include <stddef.h>
14963 # endif
14964 # include <wchar.h>
14965 #endif
14966 #ifdef HAVE_STDLIB_H
14967 # include <stdlib.h>
14968 #endif
14969 #include <stdio.h>
14970 int main()
14971 {
14972 FILE *f=fopen("conftestval", "w");
14973 if (!f) exit(1);
14974 fprintf(f, "%i", sizeof(wchar_t));
14975 exit(0);
14976 }
14977
14978 EOF
14979 if { (eval echo configure:14980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14980 then
14981 wx_cv_sizeof_wchar_t=`cat conftestval`
14982 else
14983 echo "configure: failed program was:" >&5
14984 cat conftest.$ac_ext >&5
14985 rm -fr conftest*
14986 wx_cv_sizeof_wchar_t=0
14987 fi
14988 rm -fr conftest*
14989 fi
14990
14991
14992 fi
14993
14994 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
14995
14996 cat >> confdefs.h <<EOF
14997 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
14998 EOF
14999
15000
15001 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
15002 echo "configure:15003: checking whether byte ordering is bigendian" >&5
15003 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
15004 echo $ac_n "(cached) $ac_c" 1>&6
15005 else
15006 ac_cv_c_bigendian=unknown
15007 # See if sys/param.h defines the BYTE_ORDER macro.
15008 cat > conftest.$ac_ext <<EOF
15009 #line 15010 "configure"
15010 #include "confdefs.h"
15011 #include <sys/types.h>
15012 #include <sys/param.h>
15013 int main() {
15014
15015 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15016 bogus endian macros
15017 #endif
15018 ; return 0; }
15019 EOF
15020 if { (eval echo configure:15021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15021 rm -rf conftest*
15022 # It does; now see whether it defined to BIG_ENDIAN or not.
15023 cat > conftest.$ac_ext <<EOF
15024 #line 15025 "configure"
15025 #include "confdefs.h"
15026 #include <sys/types.h>
15027 #include <sys/param.h>
15028 int main() {
15029
15030 #if BYTE_ORDER != BIG_ENDIAN
15031 not big endian
15032 #endif
15033 ; return 0; }
15034 EOF
15035 if { (eval echo configure:15036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15036 rm -rf conftest*
15037 ac_cv_c_bigendian=yes
15038 else
15039 echo "configure: failed program was:" >&5
15040 cat conftest.$ac_ext >&5
15041 rm -rf conftest*
15042 ac_cv_c_bigendian=no
15043 fi
15044 rm -f conftest*
15045 else
15046 echo "configure: failed program was:" >&5
15047 cat conftest.$ac_ext >&5
15048 fi
15049 rm -f conftest*
15050 if test $ac_cv_c_bigendian = unknown; then
15051 if test "$cross_compiling" = yes; then
15052 ac_cv_c_bigendian=unknown
15053 else
15054 cat > conftest.$ac_ext <<EOF
15055 #line 15056 "configure"
15056 #include "confdefs.h"
15057 main () {
15058 /* Are we little or big endian? From Harbison&Steele. */
15059 union
15060 {
15061 long l;
15062 char c[sizeof (long)];
15063 } u;
15064 u.l = 1;
15065 exit (u.c[sizeof (long) - 1] == 1);
15066 }
15067 EOF
15068 if { (eval echo configure:15069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15069 then
15070 ac_cv_c_bigendian=no
15071 else
15072 echo "configure: failed program was:" >&5
15073 cat conftest.$ac_ext >&5
15074 rm -fr conftest*
15075 ac_cv_c_bigendian=yes
15076 fi
15077 rm -fr conftest*
15078 fi
15079
15080 fi
15081 fi
15082
15083 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15084 if test $ac_cv_c_bigendian = unknown; then
15085 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
15086 fi
15087 if test $ac_cv_c_bigendian = yes; then
15088 cat >> confdefs.h <<\EOF
15089 #define WORDS_BIGENDIAN 1
15090 EOF
15091
15092 fi
15093
15094
15095 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
15096 echo "configure:15097: checking how to run the C++ preprocessor" >&5
15097 if test -z "$CXXCPP"; then
15098 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
15099 echo $ac_n "(cached) $ac_c" 1>&6
15100 else
15101 ac_ext=C
15102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15103 ac_cpp='$CXXCPP $CPPFLAGS'
15104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15106 cross_compiling=$ac_cv_prog_cxx_cross
15107 CXXCPP="${CXX-g++} -E"
15108 cat > conftest.$ac_ext <<EOF
15109 #line 15110 "configure"
15110 #include "confdefs.h"
15111 #include <stdlib.h>
15112 EOF
15113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15114 { (eval echo configure:15115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15116 if test -z "$ac_err"; then
15117 :
15118 else
15119 echo "$ac_err" >&5
15120 echo "configure: failed program was:" >&5
15121 cat conftest.$ac_ext >&5
15122 rm -rf conftest*
15123 CXXCPP=/lib/cpp
15124 fi
15125 rm -f conftest*
15126 ac_cv_prog_CXXCPP="$CXXCPP"
15127 ac_ext=C
15128 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15129 ac_cpp='$CXXCPP $CPPFLAGS'
15130 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15131 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15132 cross_compiling=$ac_cv_prog_cxx_cross
15133 fi
15134 fi
15135 CXXCPP="$ac_cv_prog_CXXCPP"
15136 echo "$ac_t""$CXXCPP" 1>&6
15137
15138
15139 if test "$cross_compiling" = "yes"; then
15140 cat >> confdefs.h <<\EOF
15141 #define wxUSE_IOSTREAMH 1
15142 EOF
15143
15144 else
15145
15146 ac_ext=C
15147 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15148 ac_cpp='$CXXCPP $CPPFLAGS'
15149 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15150 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15151 cross_compiling=$ac_cv_prog_cxx_cross
15152
15153
15154 for ac_hdr in iostream
15155 do
15156 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15157 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15158 echo "configure:15159: checking for $ac_hdr" >&5
15159 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15160 echo $ac_n "(cached) $ac_c" 1>&6
15161 else
15162 cat > conftest.$ac_ext <<EOF
15163 #line 15164 "configure"
15164 #include "confdefs.h"
15165 #include <$ac_hdr>
15166 EOF
15167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15168 { (eval echo configure:15169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15170 if test -z "$ac_err"; then
15171 rm -rf conftest*
15172 eval "ac_cv_header_$ac_safe=yes"
15173 else
15174 echo "$ac_err" >&5
15175 echo "configure: failed program was:" >&5
15176 cat conftest.$ac_ext >&5
15177 rm -rf conftest*
15178 eval "ac_cv_header_$ac_safe=no"
15179 fi
15180 rm -f conftest*
15181 fi
15182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15183 echo "$ac_t""yes" 1>&6
15184 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15185 cat >> confdefs.h <<EOF
15186 #define $ac_tr_hdr 1
15187 EOF
15188
15189 else
15190 echo "$ac_t""no" 1>&6
15191 fi
15192 done
15193
15194
15195 if test "$ac_cv_header_iostream" = "yes" ; then
15196 :
15197 else
15198 cat >> confdefs.h <<\EOF
15199 #define wxUSE_IOSTREAMH 1
15200 EOF
15201
15202 fi
15203
15204 ac_ext=c
15205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15206 ac_cpp='$CPP $CPPFLAGS'
15207 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15208 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15209 cross_compiling=$ac_cv_prog_cc_cross
15210
15211 fi
15212
15213
15214
15215 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
15216 echo "configure:15217: checking if C++ compiler supports bool" >&5
15217 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
15218 echo $ac_n "(cached) $ac_c" 1>&6
15219 else
15220
15221
15222 ac_ext=C
15223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15224 ac_cpp='$CXXCPP $CPPFLAGS'
15225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15227 cross_compiling=$ac_cv_prog_cxx_cross
15228
15229
15230 cat > conftest.$ac_ext <<EOF
15231 #line 15232 "configure"
15232 #include "confdefs.h"
15233
15234
15235 int main() {
15236
15237 bool b = true;
15238
15239 return 0;
15240
15241 ; return 0; }
15242 EOF
15243 if { (eval echo configure:15244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15244 rm -rf conftest*
15245
15246 wx_cv_cpp_bool=yes
15247
15248 else
15249 echo "configure: failed program was:" >&5
15250 cat conftest.$ac_ext >&5
15251 rm -rf conftest*
15252
15253 wx_cv_cpp_bool=no
15254
15255
15256 fi
15257 rm -f conftest*
15258
15259 ac_ext=c
15260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15261 ac_cpp='$CPP $CPPFLAGS'
15262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15264 cross_compiling=$ac_cv_prog_cc_cross
15265
15266
15267 fi
15268
15269 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
15270
15271 if test "$wx_cv_cpp_bool" = "yes"; then
15272 cat >> confdefs.h <<\EOF
15273 #define HAVE_BOOL 1
15274 EOF
15275
15276 fi
15277
15278
15279
15280 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
15281 echo "configure:15282: checking for wcslen in -lc" >&5
15282 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
15283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15284 echo $ac_n "(cached) $ac_c" 1>&6
15285 else
15286 ac_save_LIBS="$LIBS"
15287 LIBS="-lc $LIBS"
15288 cat > conftest.$ac_ext <<EOF
15289 #line 15290 "configure"
15290 #include "confdefs.h"
15291 /* Override any gcc2 internal prototype to avoid an error. */
15292 /* We use char because int might match the return type of a gcc2
15293 builtin and then its argument prototype would still apply. */
15294 char wcslen();
15295
15296 int main() {
15297 wcslen()
15298 ; return 0; }
15299 EOF
15300 if { (eval echo configure:15301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15301 rm -rf conftest*
15302 eval "ac_cv_lib_$ac_lib_var=yes"
15303 else
15304 echo "configure: failed program was:" >&5
15305 cat conftest.$ac_ext >&5
15306 rm -rf conftest*
15307 eval "ac_cv_lib_$ac_lib_var=no"
15308 fi
15309 rm -f conftest*
15310 LIBS="$ac_save_LIBS"
15311
15312 fi
15313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15314 echo "$ac_t""yes" 1>&6
15315
15316 cat >> confdefs.h <<\EOF
15317 #define HAVE_WCSLEN 1
15318 EOF
15319
15320 WCHAR_LINK=
15321
15322 else
15323 echo "$ac_t""no" 1>&6
15324
15325 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15326 echo "configure:15327: checking for wcslen in -lw" >&5
15327 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15329 echo $ac_n "(cached) $ac_c" 1>&6
15330 else
15331 ac_save_LIBS="$LIBS"
15332 LIBS="-lw $LIBS"
15333 cat > conftest.$ac_ext <<EOF
15334 #line 15335 "configure"
15335 #include "confdefs.h"
15336 /* Override any gcc2 internal prototype to avoid an error. */
15337 /* We use char because int might match the return type of a gcc2
15338 builtin and then its argument prototype would still apply. */
15339 char wcslen();
15340
15341 int main() {
15342 wcslen()
15343 ; return 0; }
15344 EOF
15345 if { (eval echo configure:15346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15346 rm -rf conftest*
15347 eval "ac_cv_lib_$ac_lib_var=yes"
15348 else
15349 echo "configure: failed program was:" >&5
15350 cat conftest.$ac_ext >&5
15351 rm -rf conftest*
15352 eval "ac_cv_lib_$ac_lib_var=no"
15353 fi
15354 rm -f conftest*
15355 LIBS="$ac_save_LIBS"
15356
15357 fi
15358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15359 echo "$ac_t""yes" 1>&6
15360
15361 cat >> confdefs.h <<\EOF
15362 #define HAVE_WCSLEN 1
15363 EOF
15364
15365 WCHAR_LINK=" -lw"
15366
15367 else
15368 echo "$ac_t""no" 1>&6
15369
15370 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15371 echo "configure:15372: checking for wcslen in -lmsvcrt" >&5
15372 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15373 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15374 echo $ac_n "(cached) $ac_c" 1>&6
15375 else
15376 ac_save_LIBS="$LIBS"
15377 LIBS="-lmsvcrt $LIBS"
15378 cat > conftest.$ac_ext <<EOF
15379 #line 15380 "configure"
15380 #include "confdefs.h"
15381 /* Override any gcc2 internal prototype to avoid an error. */
15382 /* We use char because int might match the return type of a gcc2
15383 builtin and then its argument prototype would still apply. */
15384 char wcslen();
15385
15386 int main() {
15387 wcslen()
15388 ; return 0; }
15389 EOF
15390 if { (eval echo configure:15391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15391 rm -rf conftest*
15392 eval "ac_cv_lib_$ac_lib_var=yes"
15393 else
15394 echo "configure: failed program was:" >&5
15395 cat conftest.$ac_ext >&5
15396 rm -rf conftest*
15397 eval "ac_cv_lib_$ac_lib_var=no"
15398 fi
15399 rm -f conftest*
15400 LIBS="$ac_save_LIBS"
15401
15402 fi
15403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15404 echo "$ac_t""yes" 1>&6
15405
15406 cat >> confdefs.h <<\EOF
15407 #define HAVE_WCSLEN 1
15408 EOF
15409
15410 WCHAR_LINK=
15411
15412 else
15413 echo "$ac_t""no" 1>&6
15414 fi
15415
15416
15417 fi
15418
15419
15420 fi
15421
15422
15423 for ac_func in wcsrtombs
15424 do
15425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15426 echo "configure:15427: checking for $ac_func" >&5
15427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15428 echo $ac_n "(cached) $ac_c" 1>&6
15429 else
15430 cat > conftest.$ac_ext <<EOF
15431 #line 15432 "configure"
15432 #include "confdefs.h"
15433 /* System header to define __stub macros and hopefully few prototypes,
15434 which can conflict with char $ac_func(); below. */
15435 #include <assert.h>
15436 /* Override any gcc2 internal prototype to avoid an error. */
15437 /* We use char because int might match the return type of a gcc2
15438 builtin and then its argument prototype would still apply. */
15439 char $ac_func();
15440
15441 int main() {
15442
15443 /* The GNU C library defines this for functions which it implements
15444 to always fail with ENOSYS. Some functions are actually named
15445 something starting with __ and the normal name is an alias. */
15446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15447 choke me
15448 #else
15449 $ac_func();
15450 #endif
15451
15452 ; return 0; }
15453 EOF
15454 if { (eval echo configure:15455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15455 rm -rf conftest*
15456 eval "ac_cv_func_$ac_func=yes"
15457 else
15458 echo "configure: failed program was:" >&5
15459 cat conftest.$ac_ext >&5
15460 rm -rf conftest*
15461 eval "ac_cv_func_$ac_func=no"
15462 fi
15463 rm -f conftest*
15464 fi
15465
15466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15467 echo "$ac_t""yes" 1>&6
15468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15469 cat >> confdefs.h <<EOF
15470 #define $ac_tr_func 1
15471 EOF
15472
15473 else
15474 echo "$ac_t""no" 1>&6
15475 fi
15476 done
15477
15478
15479 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15480 echo "configure:15481: checking for vprintf" >&5
15481 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
15482 echo $ac_n "(cached) $ac_c" 1>&6
15483 else
15484 cat > conftest.$ac_ext <<EOF
15485 #line 15486 "configure"
15486 #include "confdefs.h"
15487 /* System header to define __stub macros and hopefully few prototypes,
15488 which can conflict with char vprintf(); below. */
15489 #include <assert.h>
15490 /* Override any gcc2 internal prototype to avoid an error. */
15491 /* We use char because int might match the return type of a gcc2
15492 builtin and then its argument prototype would still apply. */
15493 char vprintf();
15494
15495 int main() {
15496
15497 /* The GNU C library defines this for functions which it implements
15498 to always fail with ENOSYS. Some functions are actually named
15499 something starting with __ and the normal name is an alias. */
15500 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15501 choke me
15502 #else
15503 vprintf();
15504 #endif
15505
15506 ; return 0; }
15507 EOF
15508 if { (eval echo configure:15509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15509 rm -rf conftest*
15510 eval "ac_cv_func_vprintf=yes"
15511 else
15512 echo "configure: failed program was:" >&5
15513 cat conftest.$ac_ext >&5
15514 rm -rf conftest*
15515 eval "ac_cv_func_vprintf=no"
15516 fi
15517 rm -f conftest*
15518 fi
15519
15520 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15521 echo "$ac_t""yes" 1>&6
15522 cat >> confdefs.h <<\EOF
15523 #define HAVE_VPRINTF 1
15524 EOF
15525
15526 else
15527 echo "$ac_t""no" 1>&6
15528 fi
15529
15530 if test "$ac_cv_func_vprintf" != yes; then
15531 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15532 echo "configure:15533: checking for _doprnt" >&5
15533 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
15534 echo $ac_n "(cached) $ac_c" 1>&6
15535 else
15536 cat > conftest.$ac_ext <<EOF
15537 #line 15538 "configure"
15538 #include "confdefs.h"
15539 /* System header to define __stub macros and hopefully few prototypes,
15540 which can conflict with char _doprnt(); below. */
15541 #include <assert.h>
15542 /* Override any gcc2 internal prototype to avoid an error. */
15543 /* We use char because int might match the return type of a gcc2
15544 builtin and then its argument prototype would still apply. */
15545 char _doprnt();
15546
15547 int main() {
15548
15549 /* The GNU C library defines this for functions which it implements
15550 to always fail with ENOSYS. Some functions are actually named
15551 something starting with __ and the normal name is an alias. */
15552 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15553 choke me
15554 #else
15555 _doprnt();
15556 #endif
15557
15558 ; return 0; }
15559 EOF
15560 if { (eval echo configure:15561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15561 rm -rf conftest*
15562 eval "ac_cv_func__doprnt=yes"
15563 else
15564 echo "configure: failed program was:" >&5
15565 cat conftest.$ac_ext >&5
15566 rm -rf conftest*
15567 eval "ac_cv_func__doprnt=no"
15568 fi
15569 rm -f conftest*
15570 fi
15571
15572 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15573 echo "$ac_t""yes" 1>&6
15574 cat >> confdefs.h <<\EOF
15575 #define HAVE_DOPRNT 1
15576 EOF
15577
15578 else
15579 echo "$ac_t""no" 1>&6
15580 fi
15581
15582 fi
15583
15584
15585
15586
15587
15588
15589 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
15590 echo "configure:15591: checking for vsnprintf" >&5
15591 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
15592 echo $ac_n "(cached) $ac_c" 1>&6
15593 else
15594
15595 cat > conftest.$ac_ext <<EOF
15596 #line 15597 "configure"
15597 #include "confdefs.h"
15598
15599 #include <stdio.h>
15600 #include <stdarg.h>
15601
15602 int main() {
15603
15604 int wx_test_vsnprintf(const char *, ...);
15605
15606 wx_test_vsnprintf("%s");
15607 return 0;
15608 }
15609
15610 int wx_test_vsnprintf(const char *fmt, ...)
15611 {
15612 char *s;
15613
15614 va_list argp;
15615 va_start(argp, fmt);
15616 vsnprintf(s, 42, fmt, argp);
15617 va_end(argp);
15618
15619 ; return 0; }
15620 EOF
15621 if { (eval echo configure:15622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15622 rm -rf conftest*
15623
15624 wx_cv_func_vsnprintf=yes
15625
15626 else
15627 echo "configure: failed program was:" >&5
15628 cat conftest.$ac_ext >&5
15629 rm -rf conftest*
15630
15631 cat > conftest.$ac_ext <<EOF
15632 #line 15633 "configure"
15633 #include "confdefs.h"
15634
15635 #include <stdio.h>
15636 #include <stdarg.h>
15637
15638 int main() {
15639
15640 int wx_test_vsnprintf(const char *, ...);
15641
15642 wx_test_vsnprintf("%s");
15643 return 0;
15644 }
15645
15646 int wx_test_vsnprintf(const char *fmt, ...)
15647 {
15648 char *s;
15649
15650 va_list argp;
15651 va_start(argp, fmt);
15652 _vsnprintf(s, 42, fmt, argp);
15653 va_end(argp);
15654
15655 ; return 0; }
15656 EOF
15657 if { (eval echo configure:15658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15658 rm -rf conftest*
15659
15660 wx_cv_func_vsnprintf=yes
15661
15662 else
15663 echo "configure: failed program was:" >&5
15664 cat conftest.$ac_ext >&5
15665 rm -rf conftest*
15666
15667 wx_cv_func_vsnprintf=no
15668
15669 fi
15670 rm -f conftest*
15671
15672 fi
15673 rm -f conftest*
15674
15675 fi
15676
15677 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
15678
15679 if test "$wx_cv_func_vsnprintf" = yes; then
15680 cat >> confdefs.h <<\EOF
15681 #define HAVE_VSNPRINTF 1
15682 EOF
15683
15684 else
15685 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
15686 fi
15687
15688 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
15689 echo "configure:15690: checking for vsscanf" >&5
15690 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
15691 echo $ac_n "(cached) $ac_c" 1>&6
15692 else
15693
15694 cat > conftest.$ac_ext <<EOF
15695 #line 15696 "configure"
15696 #include "confdefs.h"
15697
15698 #include <stdio.h>
15699 #include <stdarg.h>
15700
15701 int main() {
15702
15703 int wx_test_vsscanf(const char *, ...);
15704
15705 wx_test_vsscanf("%d");
15706 return 0;
15707 }
15708
15709 int wx_test_vsscanf(const char *fmt, ...)
15710 {
15711 va_list argp;
15712 va_start(argp, fmt);
15713 vsscanf("42", fmt, argp);
15714 va_end(argp);
15715
15716 ; return 0; }
15717 EOF
15718 if { (eval echo configure:15719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15719 rm -rf conftest*
15720
15721 wx_cv_func_vsscanf=yes
15722
15723 else
15724 echo "configure: failed program was:" >&5
15725 cat conftest.$ac_ext >&5
15726 rm -rf conftest*
15727
15728 wx_cv_func_vsscanf=no
15729
15730 fi
15731 rm -f conftest*
15732
15733 fi
15734
15735 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15736
15737 if test "$wx_cv_func_vsscanf" = yes; then
15738 cat >> confdefs.h <<\EOF
15739 #define HAVE_VSSCANF 1
15740 EOF
15741
15742 fi
15743
15744 if test "$TOOLKIT" != "MSW"; then
15745
15746
15747
15748 ac_ext=C
15749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15750 ac_cpp='$CXXCPP $CPPFLAGS'
15751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15753 cross_compiling=$ac_cv_prog_cxx_cross
15754
15755
15756
15757 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15758 if test "${with_libiconv_prefix+set}" = set; then
15759 withval="$with_libiconv_prefix"
15760
15761 for dir in `echo "$withval" | tr : ' '`; do
15762 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15763 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15764 done
15765
15766 fi
15767
15768
15769 echo $ac_n "checking for iconv""... $ac_c" 1>&6
15770 echo "configure:15771: checking for iconv" >&5
15771 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
15772 echo $ac_n "(cached) $ac_c" 1>&6
15773 else
15774
15775 am_cv_func_iconv="no, consider installing GNU libiconv"
15776 am_cv_lib_iconv=no
15777 cat > conftest.$ac_ext <<EOF
15778 #line 15779 "configure"
15779 #include "confdefs.h"
15780 #include <stdlib.h>
15781 #include <iconv.h>
15782 int main() {
15783 iconv_t cd = iconv_open("","");
15784 iconv(cd,NULL,NULL,NULL,NULL);
15785 iconv_close(cd);
15786 ; return 0; }
15787 EOF
15788 if { (eval echo configure:15789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15789 rm -rf conftest*
15790 am_cv_func_iconv=yes
15791 else
15792 echo "configure: failed program was:" >&5
15793 cat conftest.$ac_ext >&5
15794 fi
15795 rm -f conftest*
15796 if test "$am_cv_func_iconv" != yes; then
15797 am_save_LIBS="$LIBS"
15798 LIBS="$LIBS -liconv"
15799 cat > conftest.$ac_ext <<EOF
15800 #line 15801 "configure"
15801 #include "confdefs.h"
15802 #include <stdlib.h>
15803 #include <iconv.h>
15804 int main() {
15805 iconv_t cd = iconv_open("","");
15806 iconv(cd,NULL,NULL,NULL,NULL);
15807 iconv_close(cd);
15808 ; return 0; }
15809 EOF
15810 if { (eval echo configure:15811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15811 rm -rf conftest*
15812 am_cv_lib_iconv=yes
15813 am_cv_func_iconv=yes
15814 else
15815 echo "configure: failed program was:" >&5
15816 cat conftest.$ac_ext >&5
15817 fi
15818 rm -f conftest*
15819 LIBS="$am_save_LIBS"
15820 fi
15821
15822 fi
15823
15824 echo "$ac_t""$am_cv_func_iconv" 1>&6
15825 if test "$am_cv_func_iconv" = yes; then
15826 cat >> confdefs.h <<\EOF
15827 #define HAVE_ICONV 1
15828 EOF
15829
15830 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
15831 echo "configure:15832: checking if iconv needs const" >&5
15832 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
15833 echo $ac_n "(cached) $ac_c" 1>&6
15834 else
15835 cat > conftest.$ac_ext <<EOF
15836 #line 15837 "configure"
15837 #include "confdefs.h"
15838
15839 #include <stdlib.h>
15840 #include <iconv.h>
15841 extern
15842 #ifdef __cplusplus
15843 "C"
15844 #endif
15845 #if defined(__STDC__) || defined(__cplusplus)
15846 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15847 #else
15848 size_t iconv();
15849 #endif
15850
15851 int main() {
15852
15853 ; return 0; }
15854 EOF
15855 if { (eval echo configure:15856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15856 rm -rf conftest*
15857 wx_cv_func_iconv_const="no"
15858 else
15859 echo "configure: failed program was:" >&5
15860 cat conftest.$ac_ext >&5
15861 rm -rf conftest*
15862 wx_cv_func_iconv_const="yes"
15863
15864 fi
15865 rm -f conftest*
15866
15867 fi
15868
15869 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
15870
15871 iconv_const=
15872 if test "x$wx_cv_func_iconv_const" = "xyes"; then
15873 iconv_const="const"
15874 fi
15875
15876 cat >> confdefs.h <<EOF
15877 #define ICONV_CONST $iconv_const
15878 EOF
15879
15880 fi
15881 LIBICONV=
15882 if test "$am_cv_lib_iconv" = yes; then
15883 LIBICONV="-liconv"
15884 fi
15885
15886
15887 LIBS="$LIBICONV $LIBS"
15888 ac_ext=c
15889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15890 ac_cpp='$CPP $CPPFLAGS'
15891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15892 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15893 cross_compiling=$ac_cv_prog_cc_cross
15894
15895
15896 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
15897 for ac_func in sigaction
15898 do
15899 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15900 echo "configure:15901: checking for $ac_func" >&5
15901 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15902 echo $ac_n "(cached) $ac_c" 1>&6
15903 else
15904 cat > conftest.$ac_ext <<EOF
15905 #line 15906 "configure"
15906 #include "confdefs.h"
15907 /* System header to define __stub macros and hopefully few prototypes,
15908 which can conflict with char $ac_func(); below. */
15909 #include <assert.h>
15910 /* Override any gcc2 internal prototype to avoid an error. */
15911 /* We use char because int might match the return type of a gcc2
15912 builtin and then its argument prototype would still apply. */
15913 char $ac_func();
15914
15915 int main() {
15916
15917 /* The GNU C library defines this for functions which it implements
15918 to always fail with ENOSYS. Some functions are actually named
15919 something starting with __ and the normal name is an alias. */
15920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15921 choke me
15922 #else
15923 $ac_func();
15924 #endif
15925
15926 ; return 0; }
15927 EOF
15928 if { (eval echo configure:15929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15929 rm -rf conftest*
15930 eval "ac_cv_func_$ac_func=yes"
15931 else
15932 echo "configure: failed program was:" >&5
15933 cat conftest.$ac_ext >&5
15934 rm -rf conftest*
15935 eval "ac_cv_func_$ac_func=no"
15936 fi
15937 rm -f conftest*
15938 fi
15939
15940 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15941 echo "$ac_t""yes" 1>&6
15942 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15943 cat >> confdefs.h <<EOF
15944 #define $ac_tr_func 1
15945 EOF
15946
15947 else
15948 echo "$ac_t""no" 1>&6
15949 fi
15950 done
15951
15952
15953 if test "$ac_cv_func_sigaction" = "no"; then
15954 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
15955 wxUSE_ON_FATAL_EXCEPTION=no
15956 fi
15957
15958 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15959
15960 ac_ext=C
15961 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15962 ac_cpp='$CXXCPP $CPPFLAGS'
15963 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15964 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15965 cross_compiling=$ac_cv_prog_cxx_cross
15966
15967
15968 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
15969 echo "configure:15970: checking for sa_handler type" >&5
15970 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
15971 echo $ac_n "(cached) $ac_c" 1>&6
15972 else
15973
15974 cat > conftest.$ac_ext <<EOF
15975 #line 15976 "configure"
15976 #include "confdefs.h"
15977 #include <signal.h>
15978 int main() {
15979
15980 extern void testSigHandler(int);
15981
15982 struct sigaction sa;
15983 sa.sa_handler = testSigHandler;
15984
15985 ; return 0; }
15986 EOF
15987 if { (eval echo configure:15988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15988 rm -rf conftest*
15989
15990 wx_cv_type_sa_handler=int
15991
15992 else
15993 echo "configure: failed program was:" >&5
15994 cat conftest.$ac_ext >&5
15995 rm -rf conftest*
15996
15997 wx_cv_type_sa_handler=void
15998
15999 fi
16000 rm -f conftest*
16001
16002 fi
16003
16004 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16005
16006 ac_ext=c
16007 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16008 ac_cpp='$CPP $CPPFLAGS'
16009 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16010 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16011 cross_compiling=$ac_cv_prog_cc_cross
16012
16013
16014 cat >> confdefs.h <<EOF
16015 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
16016 EOF
16017
16018 fi
16019 fi
16020
16021 for ac_func in vfork
16022 do
16023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16024 echo "configure:16025: checking for $ac_func" >&5
16025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16026 echo $ac_n "(cached) $ac_c" 1>&6
16027 else
16028 cat > conftest.$ac_ext <<EOF
16029 #line 16030 "configure"
16030 #include "confdefs.h"
16031 /* System header to define __stub macros and hopefully few prototypes,
16032 which can conflict with char $ac_func(); below. */
16033 #include <assert.h>
16034 /* Override any gcc2 internal prototype to avoid an error. */
16035 /* We use char because int might match the return type of a gcc2
16036 builtin and then its argument prototype would still apply. */
16037 char $ac_func();
16038
16039 int main() {
16040
16041 /* The GNU C library defines this for functions which it implements
16042 to always fail with ENOSYS. Some functions are actually named
16043 something starting with __ and the normal name is an alias. */
16044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16045 choke me
16046 #else
16047 $ac_func();
16048 #endif
16049
16050 ; return 0; }
16051 EOF
16052 if { (eval echo configure:16053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16053 rm -rf conftest*
16054 eval "ac_cv_func_$ac_func=yes"
16055 else
16056 echo "configure: failed program was:" >&5
16057 cat conftest.$ac_ext >&5
16058 rm -rf conftest*
16059 eval "ac_cv_func_$ac_func=no"
16060 fi
16061 rm -f conftest*
16062 fi
16063
16064 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16065 echo "$ac_t""yes" 1>&6
16066 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16067 cat >> confdefs.h <<EOF
16068 #define $ac_tr_func 1
16069 EOF
16070
16071 else
16072 echo "$ac_t""no" 1>&6
16073 fi
16074 done
16075
16076
16077 for ac_func in mkstemp mktemp
16078 do
16079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16080 echo "configure:16081: checking for $ac_func" >&5
16081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16082 echo $ac_n "(cached) $ac_c" 1>&6
16083 else
16084 cat > conftest.$ac_ext <<EOF
16085 #line 16086 "configure"
16086 #include "confdefs.h"
16087 /* System header to define __stub macros and hopefully few prototypes,
16088 which can conflict with char $ac_func(); below. */
16089 #include <assert.h>
16090 /* Override any gcc2 internal prototype to avoid an error. */
16091 /* We use char because int might match the return type of a gcc2
16092 builtin and then its argument prototype would still apply. */
16093 char $ac_func();
16094
16095 int main() {
16096
16097 /* The GNU C library defines this for functions which it implements
16098 to always fail with ENOSYS. Some functions are actually named
16099 something starting with __ and the normal name is an alias. */
16100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16101 choke me
16102 #else
16103 $ac_func();
16104 #endif
16105
16106 ; return 0; }
16107 EOF
16108 if { (eval echo configure:16109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16109 rm -rf conftest*
16110 eval "ac_cv_func_$ac_func=yes"
16111 else
16112 echo "configure: failed program was:" >&5
16113 cat conftest.$ac_ext >&5
16114 rm -rf conftest*
16115 eval "ac_cv_func_$ac_func=no"
16116 fi
16117 rm -f conftest*
16118 fi
16119
16120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16121 echo "$ac_t""yes" 1>&6
16122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16123 cat >> confdefs.h <<EOF
16124 #define $ac_tr_func 1
16125 EOF
16126 break
16127 else
16128 echo "$ac_t""no" 1>&6
16129 fi
16130 done
16131
16132
16133 echo $ac_n "checking for statfs""... $ac_c" 1>&6
16134 echo "configure:16135: checking for statfs" >&5
16135 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16136 echo $ac_n "(cached) $ac_c" 1>&6
16137 else
16138 cat > conftest.$ac_ext <<EOF
16139 #line 16140 "configure"
16140 #include "confdefs.h"
16141
16142 #if defined(__BSD__)
16143 #include <sys/param.h>
16144 #include <sys/mount.h>
16145 #else
16146 #include <sys/vfs.h>
16147 #endif
16148
16149 int main() {
16150
16151 long l;
16152 struct statfs fs;
16153 statfs("/", &fs);
16154 l = fs.f_bsize;
16155 l += fs.f_blocks;
16156 l += fs.f_bavail;
16157
16158 ; return 0; }
16159 EOF
16160 if { (eval echo configure:16161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16161 rm -rf conftest*
16162
16163 wx_cv_func_statfs=yes
16164
16165 else
16166 echo "configure: failed program was:" >&5
16167 cat conftest.$ac_ext >&5
16168 rm -rf conftest*
16169
16170 wx_cv_func_statfs=no
16171
16172
16173 fi
16174 rm -f conftest*
16175
16176 fi
16177
16178 echo "$ac_t""$wx_cv_func_statfs" 1>&6
16179
16180 if test "$wx_cv_func_statfs" = "yes"; then
16181 cat >> confdefs.h <<\EOF
16182 #define HAVE_STATFS 1
16183 EOF
16184
16185 else
16186 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16187 echo "configure:16188: checking for statvfs" >&5
16188 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16189 echo $ac_n "(cached) $ac_c" 1>&6
16190 else
16191 cat > conftest.$ac_ext <<EOF
16192 #line 16193 "configure"
16193 #include "confdefs.h"
16194
16195 #include <sys/statvfs.h>
16196
16197 int main() {
16198
16199 long l;
16200 struct statvfs fs;
16201 statvfs("/", &fs);
16202 l = fs.f_bsize;
16203 l += fs.f_blocks;
16204 l += fs.f_bavail;
16205
16206 ; return 0; }
16207 EOF
16208 if { (eval echo configure:16209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16209 rm -rf conftest*
16210
16211 wx_cv_func_statvfs=yes
16212
16213 else
16214 echo "configure: failed program was:" >&5
16215 cat conftest.$ac_ext >&5
16216 rm -rf conftest*
16217
16218 wx_cv_func_statvfs=no
16219
16220
16221 fi
16222 rm -f conftest*
16223
16224 fi
16225
16226 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16227
16228 if test "$wx_cv_func_statvfs" = "yes"; then
16229 cat >> confdefs.h <<\EOF
16230 #define HAVE_STATVFS 1
16231 EOF
16232
16233 else
16234 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16235 fi
16236 fi
16237
16238 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16239 for ac_func in fcntl flock
16240 do
16241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16242 echo "configure:16243: checking for $ac_func" >&5
16243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16244 echo $ac_n "(cached) $ac_c" 1>&6
16245 else
16246 cat > conftest.$ac_ext <<EOF
16247 #line 16248 "configure"
16248 #include "confdefs.h"
16249 /* System header to define __stub macros and hopefully few prototypes,
16250 which can conflict with char $ac_func(); below. */
16251 #include <assert.h>
16252 /* Override any gcc2 internal prototype to avoid an error. */
16253 /* We use char because int might match the return type of a gcc2
16254 builtin and then its argument prototype would still apply. */
16255 char $ac_func();
16256
16257 int main() {
16258
16259 /* The GNU C library defines this for functions which it implements
16260 to always fail with ENOSYS. Some functions are actually named
16261 something starting with __ and the normal name is an alias. */
16262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16263 choke me
16264 #else
16265 $ac_func();
16266 #endif
16267
16268 ; return 0; }
16269 EOF
16270 if { (eval echo configure:16271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16271 rm -rf conftest*
16272 eval "ac_cv_func_$ac_func=yes"
16273 else
16274 echo "configure: failed program was:" >&5
16275 cat conftest.$ac_ext >&5
16276 rm -rf conftest*
16277 eval "ac_cv_func_$ac_func=no"
16278 fi
16279 rm -f conftest*
16280 fi
16281
16282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16283 echo "$ac_t""yes" 1>&6
16284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16285 cat >> confdefs.h <<EOF
16286 #define $ac_tr_func 1
16287 EOF
16288 break
16289 else
16290 echo "$ac_t""no" 1>&6
16291 fi
16292 done
16293
16294
16295 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16296 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16297 wxUSE_SNGLINST_CHECKER=no
16298 fi
16299 fi
16300
16301 for ac_func in timegm
16302 do
16303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16304 echo "configure:16305: checking for $ac_func" >&5
16305 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16306 echo $ac_n "(cached) $ac_c" 1>&6
16307 else
16308 cat > conftest.$ac_ext <<EOF
16309 #line 16310 "configure"
16310 #include "confdefs.h"
16311 /* System header to define __stub macros and hopefully few prototypes,
16312 which can conflict with char $ac_func(); below. */
16313 #include <assert.h>
16314 /* Override any gcc2 internal prototype to avoid an error. */
16315 /* We use char because int might match the return type of a gcc2
16316 builtin and then its argument prototype would still apply. */
16317 char $ac_func();
16318
16319 int main() {
16320
16321 /* The GNU C library defines this for functions which it implements
16322 to always fail with ENOSYS. Some functions are actually named
16323 something starting with __ and the normal name is an alias. */
16324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16325 choke me
16326 #else
16327 $ac_func();
16328 #endif
16329
16330 ; return 0; }
16331 EOF
16332 if { (eval echo configure:16333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16333 rm -rf conftest*
16334 eval "ac_cv_func_$ac_func=yes"
16335 else
16336 echo "configure: failed program was:" >&5
16337 cat conftest.$ac_ext >&5
16338 rm -rf conftest*
16339 eval "ac_cv_func_$ac_func=no"
16340 fi
16341 rm -f conftest*
16342 fi
16343
16344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16345 echo "$ac_t""yes" 1>&6
16346 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16347 cat >> confdefs.h <<EOF
16348 #define $ac_tr_func 1
16349 EOF
16350
16351 else
16352 echo "$ac_t""no" 1>&6
16353 fi
16354 done
16355
16356
16357 for ac_func in putenv setenv
16358 do
16359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16360 echo "configure:16361: checking for $ac_func" >&5
16361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16362 echo $ac_n "(cached) $ac_c" 1>&6
16363 else
16364 cat > conftest.$ac_ext <<EOF
16365 #line 16366 "configure"
16366 #include "confdefs.h"
16367 /* System header to define __stub macros and hopefully few prototypes,
16368 which can conflict with char $ac_func(); below. */
16369 #include <assert.h>
16370 /* Override any gcc2 internal prototype to avoid an error. */
16371 /* We use char because int might match the return type of a gcc2
16372 builtin and then its argument prototype would still apply. */
16373 char $ac_func();
16374
16375 int main() {
16376
16377 /* The GNU C library defines this for functions which it implements
16378 to always fail with ENOSYS. Some functions are actually named
16379 something starting with __ and the normal name is an alias. */
16380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16381 choke me
16382 #else
16383 $ac_func();
16384 #endif
16385
16386 ; return 0; }
16387 EOF
16388 if { (eval echo configure:16389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16389 rm -rf conftest*
16390 eval "ac_cv_func_$ac_func=yes"
16391 else
16392 echo "configure: failed program was:" >&5
16393 cat conftest.$ac_ext >&5
16394 rm -rf conftest*
16395 eval "ac_cv_func_$ac_func=no"
16396 fi
16397 rm -f conftest*
16398 fi
16399
16400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16401 echo "$ac_t""yes" 1>&6
16402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16403 cat >> confdefs.h <<EOF
16404 #define $ac_tr_func 1
16405 EOF
16406 break
16407 else
16408 echo "$ac_t""no" 1>&6
16409 fi
16410 done
16411
16412
16413 HAVE_SOME_SLEEP_FUNC=0
16414 if test "$USE_BEOS" = 1; then
16415 cat >> confdefs.h <<\EOF
16416 #define HAVE_SLEEP 1
16417 EOF
16418
16419 HAVE_SOME_SLEEP_FUNC=1
16420 fi
16421
16422 if test "$USE_DARWIN" = 1; then
16423 cat >> confdefs.h <<\EOF
16424 #define HAVE_USLEEP 1
16425 EOF
16426
16427 HAVE_SOME_SLEEP_FUNC=1
16428 fi
16429
16430 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16431 POSIX4_LINK=
16432 for ac_func in nanosleep
16433 do
16434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16435 echo "configure:16436: checking for $ac_func" >&5
16436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16437 echo $ac_n "(cached) $ac_c" 1>&6
16438 else
16439 cat > conftest.$ac_ext <<EOF
16440 #line 16441 "configure"
16441 #include "confdefs.h"
16442 /* System header to define __stub macros and hopefully few prototypes,
16443 which can conflict with char $ac_func(); below. */
16444 #include <assert.h>
16445 /* Override any gcc2 internal prototype to avoid an error. */
16446 /* We use char because int might match the return type of a gcc2
16447 builtin and then its argument prototype would still apply. */
16448 char $ac_func();
16449
16450 int main() {
16451
16452 /* The GNU C library defines this for functions which it implements
16453 to always fail with ENOSYS. Some functions are actually named
16454 something starting with __ and the normal name is an alias. */
16455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16456 choke me
16457 #else
16458 $ac_func();
16459 #endif
16460
16461 ; return 0; }
16462 EOF
16463 if { (eval echo configure:16464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16464 rm -rf conftest*
16465 eval "ac_cv_func_$ac_func=yes"
16466 else
16467 echo "configure: failed program was:" >&5
16468 cat conftest.$ac_ext >&5
16469 rm -rf conftest*
16470 eval "ac_cv_func_$ac_func=no"
16471 fi
16472 rm -f conftest*
16473 fi
16474
16475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16476 echo "$ac_t""yes" 1>&6
16477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16478 cat >> confdefs.h <<EOF
16479 #define $ac_tr_func 1
16480 EOF
16481 cat >> confdefs.h <<\EOF
16482 #define HAVE_NANOSLEEP 1
16483 EOF
16484
16485 else
16486 echo "$ac_t""no" 1>&6
16487 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16488 echo "configure:16489: checking for nanosleep in -lposix4" >&5
16489 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16491 echo $ac_n "(cached) $ac_c" 1>&6
16492 else
16493 ac_save_LIBS="$LIBS"
16494 LIBS="-lposix4 $LIBS"
16495 cat > conftest.$ac_ext <<EOF
16496 #line 16497 "configure"
16497 #include "confdefs.h"
16498 /* Override any gcc2 internal prototype to avoid an error. */
16499 /* We use char because int might match the return type of a gcc2
16500 builtin and then its argument prototype would still apply. */
16501 char nanosleep();
16502
16503 int main() {
16504 nanosleep()
16505 ; return 0; }
16506 EOF
16507 if { (eval echo configure:16508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16508 rm -rf conftest*
16509 eval "ac_cv_lib_$ac_lib_var=yes"
16510 else
16511 echo "configure: failed program was:" >&5
16512 cat conftest.$ac_ext >&5
16513 rm -rf conftest*
16514 eval "ac_cv_lib_$ac_lib_var=no"
16515 fi
16516 rm -f conftest*
16517 LIBS="$ac_save_LIBS"
16518
16519 fi
16520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16521 echo "$ac_t""yes" 1>&6
16522
16523 cat >> confdefs.h <<\EOF
16524 #define HAVE_NANOSLEEP 1
16525 EOF
16526
16527 POSIX4_LINK=" -lposix4"
16528
16529 else
16530 echo "$ac_t""no" 1>&6
16531
16532 for ac_func in usleep
16533 do
16534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16535 echo "configure:16536: checking for $ac_func" >&5
16536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16537 echo $ac_n "(cached) $ac_c" 1>&6
16538 else
16539 cat > conftest.$ac_ext <<EOF
16540 #line 16541 "configure"
16541 #include "confdefs.h"
16542 /* System header to define __stub macros and hopefully few prototypes,
16543 which can conflict with char $ac_func(); below. */
16544 #include <assert.h>
16545 /* Override any gcc2 internal prototype to avoid an error. */
16546 /* We use char because int might match the return type of a gcc2
16547 builtin and then its argument prototype would still apply. */
16548 char $ac_func();
16549
16550 int main() {
16551
16552 /* The GNU C library defines this for functions which it implements
16553 to always fail with ENOSYS. Some functions are actually named
16554 something starting with __ and the normal name is an alias. */
16555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16556 choke me
16557 #else
16558 $ac_func();
16559 #endif
16560
16561 ; return 0; }
16562 EOF
16563 if { (eval echo configure:16564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16564 rm -rf conftest*
16565 eval "ac_cv_func_$ac_func=yes"
16566 else
16567 echo "configure: failed program was:" >&5
16568 cat conftest.$ac_ext >&5
16569 rm -rf conftest*
16570 eval "ac_cv_func_$ac_func=no"
16571 fi
16572 rm -f conftest*
16573 fi
16574
16575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16576 echo "$ac_t""yes" 1>&6
16577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16578 cat >> confdefs.h <<EOF
16579 #define $ac_tr_func 1
16580 EOF
16581 cat >> confdefs.h <<\EOF
16582 #define HAVE_USLEEP 1
16583 EOF
16584
16585 else
16586 echo "$ac_t""no" 1>&6
16587 echo "configure: warning: wxSleep() function will not work" 1>&2
16588
16589 fi
16590 done
16591
16592
16593
16594 fi
16595
16596
16597
16598 fi
16599 done
16600
16601 fi
16602
16603 for ac_func in uname gethostname
16604 do
16605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16606 echo "configure:16607: checking for $ac_func" >&5
16607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16608 echo $ac_n "(cached) $ac_c" 1>&6
16609 else
16610 cat > conftest.$ac_ext <<EOF
16611 #line 16612 "configure"
16612 #include "confdefs.h"
16613 /* System header to define __stub macros and hopefully few prototypes,
16614 which can conflict with char $ac_func(); below. */
16615 #include <assert.h>
16616 /* Override any gcc2 internal prototype to avoid an error. */
16617 /* We use char because int might match the return type of a gcc2
16618 builtin and then its argument prototype would still apply. */
16619 char $ac_func();
16620
16621 int main() {
16622
16623 /* The GNU C library defines this for functions which it implements
16624 to always fail with ENOSYS. Some functions are actually named
16625 something starting with __ and the normal name is an alias. */
16626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16627 choke me
16628 #else
16629 $ac_func();
16630 #endif
16631
16632 ; return 0; }
16633 EOF
16634 if { (eval echo configure:16635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16635 rm -rf conftest*
16636 eval "ac_cv_func_$ac_func=yes"
16637 else
16638 echo "configure: failed program was:" >&5
16639 cat conftest.$ac_ext >&5
16640 rm -rf conftest*
16641 eval "ac_cv_func_$ac_func=no"
16642 fi
16643 rm -f conftest*
16644 fi
16645
16646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16647 echo "$ac_t""yes" 1>&6
16648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16649 cat >> confdefs.h <<EOF
16650 #define $ac_tr_func 1
16651 EOF
16652 break
16653 else
16654 echo "$ac_t""no" 1>&6
16655 fi
16656 done
16657
16658
16659
16660 ac_ext=C
16661 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16662 ac_cpp='$CXXCPP $CPPFLAGS'
16663 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16664 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16665 cross_compiling=$ac_cv_prog_cxx_cross
16666
16667
16668 for ac_func in strtok_r
16669 do
16670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16671 echo "configure:16672: checking for $ac_func" >&5
16672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16673 echo $ac_n "(cached) $ac_c" 1>&6
16674 else
16675 cat > conftest.$ac_ext <<EOF
16676 #line 16677 "configure"
16677 #include "confdefs.h"
16678 /* System header to define __stub macros and hopefully few prototypes,
16679 which can conflict with char $ac_func(); below. */
16680 #include <assert.h>
16681 /* Override any gcc2 internal prototype to avoid an error. */
16682 #ifdef __cplusplus
16683 extern "C"
16684 #endif
16685 /* We use char because int might match the return type of a gcc2
16686 builtin and then its argument prototype would still apply. */
16687 char $ac_func();
16688
16689 int main() {
16690
16691 /* The GNU C library defines this for functions which it implements
16692 to always fail with ENOSYS. Some functions are actually named
16693 something starting with __ and the normal name is an alias. */
16694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16695 choke me
16696 #else
16697 $ac_func();
16698 #endif
16699
16700 ; return 0; }
16701 EOF
16702 if { (eval echo configure:16703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16703 rm -rf conftest*
16704 eval "ac_cv_func_$ac_func=yes"
16705 else
16706 echo "configure: failed program was:" >&5
16707 cat conftest.$ac_ext >&5
16708 rm -rf conftest*
16709 eval "ac_cv_func_$ac_func=no"
16710 fi
16711 rm -f conftest*
16712 fi
16713
16714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16715 echo "$ac_t""yes" 1>&6
16716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16717 cat >> confdefs.h <<EOF
16718 #define $ac_tr_func 1
16719 EOF
16720
16721 else
16722 echo "$ac_t""no" 1>&6
16723 fi
16724 done
16725
16726
16727 ac_ext=c
16728 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16729 ac_cpp='$CPP $CPPFLAGS'
16730 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16731 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16732 cross_compiling=$ac_cv_prog_cc_cross
16733
16734
16735 INET_LINK=
16736 for ac_func in inet_addr
16737 do
16738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16739 echo "configure:16740: checking for $ac_func" >&5
16740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16741 echo $ac_n "(cached) $ac_c" 1>&6
16742 else
16743 cat > conftest.$ac_ext <<EOF
16744 #line 16745 "configure"
16745 #include "confdefs.h"
16746 /* System header to define __stub macros and hopefully few prototypes,
16747 which can conflict with char $ac_func(); below. */
16748 #include <assert.h>
16749 /* Override any gcc2 internal prototype to avoid an error. */
16750 /* We use char because int might match the return type of a gcc2
16751 builtin and then its argument prototype would still apply. */
16752 char $ac_func();
16753
16754 int main() {
16755
16756 /* The GNU C library defines this for functions which it implements
16757 to always fail with ENOSYS. Some functions are actually named
16758 something starting with __ and the normal name is an alias. */
16759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16760 choke me
16761 #else
16762 $ac_func();
16763 #endif
16764
16765 ; return 0; }
16766 EOF
16767 if { (eval echo configure:16768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16768 rm -rf conftest*
16769 eval "ac_cv_func_$ac_func=yes"
16770 else
16771 echo "configure: failed program was:" >&5
16772 cat conftest.$ac_ext >&5
16773 rm -rf conftest*
16774 eval "ac_cv_func_$ac_func=no"
16775 fi
16776 rm -f conftest*
16777 fi
16778
16779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16780 echo "$ac_t""yes" 1>&6
16781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16782 cat >> confdefs.h <<EOF
16783 #define $ac_tr_func 1
16784 EOF
16785 cat >> confdefs.h <<\EOF
16786 #define HAVE_INET_ADDR 1
16787 EOF
16788
16789 else
16790 echo "$ac_t""no" 1>&6
16791 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
16792 echo "configure:16793: checking for inet_addr in -lnsl" >&5
16793 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
16794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16795 echo $ac_n "(cached) $ac_c" 1>&6
16796 else
16797 ac_save_LIBS="$LIBS"
16798 LIBS="-lnsl $LIBS"
16799 cat > conftest.$ac_ext <<EOF
16800 #line 16801 "configure"
16801 #include "confdefs.h"
16802 /* Override any gcc2 internal prototype to avoid an error. */
16803 /* We use char because int might match the return type of a gcc2
16804 builtin and then its argument prototype would still apply. */
16805 char inet_addr();
16806
16807 int main() {
16808 inet_addr()
16809 ; return 0; }
16810 EOF
16811 if { (eval echo configure:16812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16812 rm -rf conftest*
16813 eval "ac_cv_lib_$ac_lib_var=yes"
16814 else
16815 echo "configure: failed program was:" >&5
16816 cat conftest.$ac_ext >&5
16817 rm -rf conftest*
16818 eval "ac_cv_lib_$ac_lib_var=no"
16819 fi
16820 rm -f conftest*
16821 LIBS="$ac_save_LIBS"
16822
16823 fi
16824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16825 echo "$ac_t""yes" 1>&6
16826 INET_LINK="nsl"
16827 else
16828 echo "$ac_t""no" 1>&6
16829 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
16830 echo "configure:16831: checking for inet_addr in -lresolv" >&5
16831 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
16832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16833 echo $ac_n "(cached) $ac_c" 1>&6
16834 else
16835 ac_save_LIBS="$LIBS"
16836 LIBS="-lresolv $LIBS"
16837 cat > conftest.$ac_ext <<EOF
16838 #line 16839 "configure"
16839 #include "confdefs.h"
16840 /* Override any gcc2 internal prototype to avoid an error. */
16841 /* We use char because int might match the return type of a gcc2
16842 builtin and then its argument prototype would still apply. */
16843 char inet_addr();
16844
16845 int main() {
16846 inet_addr()
16847 ; return 0; }
16848 EOF
16849 if { (eval echo configure:16850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16850 rm -rf conftest*
16851 eval "ac_cv_lib_$ac_lib_var=yes"
16852 else
16853 echo "configure: failed program was:" >&5
16854 cat conftest.$ac_ext >&5
16855 rm -rf conftest*
16856 eval "ac_cv_lib_$ac_lib_var=no"
16857 fi
16858 rm -f conftest*
16859 LIBS="$ac_save_LIBS"
16860
16861 fi
16862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16863 echo "$ac_t""yes" 1>&6
16864 INET_LINK="resolv"
16865
16866 else
16867 echo "$ac_t""no" 1>&6
16868 fi
16869
16870
16871 fi
16872
16873
16874
16875 fi
16876 done
16877
16878
16879 for ac_func in inet_aton
16880 do
16881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16882 echo "configure:16883: checking for $ac_func" >&5
16883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16884 echo $ac_n "(cached) $ac_c" 1>&6
16885 else
16886 cat > conftest.$ac_ext <<EOF
16887 #line 16888 "configure"
16888 #include "confdefs.h"
16889 /* System header to define __stub macros and hopefully few prototypes,
16890 which can conflict with char $ac_func(); below. */
16891 #include <assert.h>
16892 /* Override any gcc2 internal prototype to avoid an error. */
16893 /* We use char because int might match the return type of a gcc2
16894 builtin and then its argument prototype would still apply. */
16895 char $ac_func();
16896
16897 int main() {
16898
16899 /* The GNU C library defines this for functions which it implements
16900 to always fail with ENOSYS. Some functions are actually named
16901 something starting with __ and the normal name is an alias. */
16902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16903 choke me
16904 #else
16905 $ac_func();
16906 #endif
16907
16908 ; return 0; }
16909 EOF
16910 if { (eval echo configure:16911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16911 rm -rf conftest*
16912 eval "ac_cv_func_$ac_func=yes"
16913 else
16914 echo "configure: failed program was:" >&5
16915 cat conftest.$ac_ext >&5
16916 rm -rf conftest*
16917 eval "ac_cv_func_$ac_func=no"
16918 fi
16919 rm -f conftest*
16920 fi
16921
16922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16923 echo "$ac_t""yes" 1>&6
16924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16925 cat >> confdefs.h <<EOF
16926 #define $ac_tr_func 1
16927 EOF
16928 cat >> confdefs.h <<\EOF
16929 #define HAVE_INET_ATON 1
16930 EOF
16931
16932 else
16933 echo "$ac_t""no" 1>&6
16934 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
16935 echo "configure:16936: checking for inet_aton in -l$INET_LINK" >&5
16936 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
16937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16938 echo $ac_n "(cached) $ac_c" 1>&6
16939 else
16940 ac_save_LIBS="$LIBS"
16941 LIBS="-l$INET_LINK $LIBS"
16942 cat > conftest.$ac_ext <<EOF
16943 #line 16944 "configure"
16944 #include "confdefs.h"
16945 /* Override any gcc2 internal prototype to avoid an error. */
16946 /* We use char because int might match the return type of a gcc2
16947 builtin and then its argument prototype would still apply. */
16948 char inet_aton();
16949
16950 int main() {
16951 inet_aton()
16952 ; return 0; }
16953 EOF
16954 if { (eval echo configure:16955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16955 rm -rf conftest*
16956 eval "ac_cv_lib_$ac_lib_var=yes"
16957 else
16958 echo "configure: failed program was:" >&5
16959 cat conftest.$ac_ext >&5
16960 rm -rf conftest*
16961 eval "ac_cv_lib_$ac_lib_var=no"
16962 fi
16963 rm -f conftest*
16964 LIBS="$ac_save_LIBS"
16965
16966 fi
16967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16968 echo "$ac_t""yes" 1>&6
16969 cat >> confdefs.h <<\EOF
16970 #define HAVE_INET_ATON 1
16971 EOF
16972
16973 else
16974 echo "$ac_t""no" 1>&6
16975 fi
16976
16977
16978 fi
16979 done
16980
16981
16982 if test "x$INET_LINK" != "x"; then
16983 cat >> confdefs.h <<\EOF
16984 #define HAVE_INET_ADDR 1
16985 EOF
16986
16987 INET_LINK=" -l$INET_LINK"
16988 fi
16989
16990 fi
16991
16992
16993 cat > confcache <<\EOF
16994 # This file is a shell script that caches the results of configure
16995 # tests run on this system so they can be shared between configure
16996 # scripts and configure runs. It is not useful on other systems.
16997 # If it contains results you don't want to keep, you may remove or edit it.
16998 #
16999 # By default, configure uses ./config.cache as the cache file,
17000 # creating it if it does not exist already. You can give configure
17001 # the --cache-file=FILE option to use a different cache file; that is
17002 # what configure does when it calls configure scripts in
17003 # subdirectories, so they share the cache.
17004 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17005 # config.status only pays attention to the cache file if you give it the
17006 # --recheck option to rerun configure.
17007 #
17008 EOF
17009 # The following way of writing the cache mishandles newlines in values,
17010 # but we know of no workaround that is simple, portable, and efficient.
17011 # So, don't put newlines in cache variables' values.
17012 # Ultrix sh set writes to stderr and can't be redirected directly,
17013 # and sets the high bit in the cache file unless we assign to the vars.
17014 (set) 2>&1 |
17015 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17016 *ac_space=\ *)
17017 # `set' does not quote correctly, so add quotes (double-quote substitution
17018 # turns \\\\ into \\, and sed turns \\ into \).
17019 sed -n \
17020 -e "s/'/'\\\\''/g" \
17021 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17022 ;;
17023 *)
17024 # `set' quotes correctly as required by POSIX, so do not add quotes.
17025 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17026 ;;
17027 esac >> confcache
17028 if cmp -s $cache_file confcache; then
17029 :
17030 else
17031 if test -w $cache_file; then
17032 echo "updating cache $cache_file"
17033 cat confcache > $cache_file
17034 else
17035 echo "not updating unwritable cache $cache_file"
17036 fi
17037 fi
17038 rm -f confcache
17039
17040
17041
17042 if test "$TOOLKIT" != "MSW"; then
17043
17044
17045 THREADS_LINK=
17046 THREADS_OBJ=
17047 CODE_GEN_FLAGS=
17048 CODE_GEN_FLAGS_CXX=
17049
17050 if test "$wxUSE_THREADS" = "yes" ; then
17051 if test "$wxUSE_WINE" = 1 ; then
17052 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
17053 wxUSE_THREADS="no"
17054 elif test "$USE_BEOS" = 1; then
17055 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
17056 wxUSE_THREADS="no"
17057 fi
17058 fi
17059
17060 if test "$wxUSE_THREADS" = "yes" ; then
17061
17062 if test "$USE_AIX" = 1; then
17063 THREADS_LIB=pthreads
17064 else
17065 THREADS_LIB=pthread
17066 fi
17067
17068 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
17069 echo "configure:17070: checking for pthread_create in -l$THREADS_LIB" >&5
17070 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
17071 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17072 echo $ac_n "(cached) $ac_c" 1>&6
17073 else
17074 ac_save_LIBS="$LIBS"
17075 LIBS="-l$THREADS_LIB $LIBS"
17076 cat > conftest.$ac_ext <<EOF
17077 #line 17078 "configure"
17078 #include "confdefs.h"
17079 /* Override any gcc2 internal prototype to avoid an error. */
17080 /* We use char because int might match the return type of a gcc2
17081 builtin and then its argument prototype would still apply. */
17082 char pthread_create();
17083
17084 int main() {
17085 pthread_create()
17086 ; return 0; }
17087 EOF
17088 if { (eval echo configure:17089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17089 rm -rf conftest*
17090 eval "ac_cv_lib_$ac_lib_var=yes"
17091 else
17092 echo "configure: failed program was:" >&5
17093 cat conftest.$ac_ext >&5
17094 rm -rf conftest*
17095 eval "ac_cv_lib_$ac_lib_var=no"
17096 fi
17097 rm -f conftest*
17098 LIBS="$ac_save_LIBS"
17099
17100 fi
17101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17102 echo "$ac_t""yes" 1>&6
17103
17104 THREADS_OBJ="threadpsx.lo"
17105 THREADS_LINK=$THREADS_LIB
17106
17107 else
17108 echo "$ac_t""no" 1>&6
17109
17110 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
17111 echo "configure:17112: checking for pthread_create in -lc_r" >&5
17112 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
17113 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17114 echo $ac_n "(cached) $ac_c" 1>&6
17115 else
17116 ac_save_LIBS="$LIBS"
17117 LIBS="-lc_r $LIBS"
17118 cat > conftest.$ac_ext <<EOF
17119 #line 17120 "configure"
17120 #include "confdefs.h"
17121 /* Override any gcc2 internal prototype to avoid an error. */
17122 /* We use char because int might match the return type of a gcc2
17123 builtin and then its argument prototype would still apply. */
17124 char pthread_create();
17125
17126 int main() {
17127 pthread_create()
17128 ; return 0; }
17129 EOF
17130 if { (eval echo configure:17131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17131 rm -rf conftest*
17132 eval "ac_cv_lib_$ac_lib_var=yes"
17133 else
17134 echo "configure: failed program was:" >&5
17135 cat conftest.$ac_ext >&5
17136 rm -rf conftest*
17137 eval "ac_cv_lib_$ac_lib_var=no"
17138 fi
17139 rm -f conftest*
17140 LIBS="$ac_save_LIBS"
17141
17142 fi
17143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17144 echo "$ac_t""yes" 1>&6
17145
17146 THREADS_OBJ="threadpsx.lo"
17147 THREADS_LINK="c_r"
17148
17149 else
17150 echo "$ac_t""no" 1>&6
17151
17152 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
17153 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
17154 echo "configure:17155: checking for sys/prctl.h" >&5
17155 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17156 echo $ac_n "(cached) $ac_c" 1>&6
17157 else
17158 cat > conftest.$ac_ext <<EOF
17159 #line 17160 "configure"
17160 #include "confdefs.h"
17161 #include <sys/prctl.h>
17162 EOF
17163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17164 { (eval echo configure:17165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17166 if test -z "$ac_err"; then
17167 rm -rf conftest*
17168 eval "ac_cv_header_$ac_safe=yes"
17169 else
17170 echo "$ac_err" >&5
17171 echo "configure: failed program was:" >&5
17172 cat conftest.$ac_ext >&5
17173 rm -rf conftest*
17174 eval "ac_cv_header_$ac_safe=no"
17175 fi
17176 rm -f conftest*
17177 fi
17178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17179 echo "$ac_t""yes" 1>&6
17180
17181 THREADS_OBJ="threadsgi.lo"
17182
17183 else
17184 echo "$ac_t""no" 1>&6
17185 fi
17186
17187
17188 fi
17189
17190
17191 fi
17192
17193
17194 if test -z "$THREADS_OBJ" ; then
17195 wxUSE_THREADS=no
17196 echo "configure: warning: No thread support on this system... disabled" 1>&2
17197 fi
17198 fi
17199
17200 if test "$wxUSE_THREADS" = "yes" ; then
17201 for ac_func in thr_setconcurrency
17202 do
17203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17204 echo "configure:17205: checking for $ac_func" >&5
17205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17206 echo $ac_n "(cached) $ac_c" 1>&6
17207 else
17208 cat > conftest.$ac_ext <<EOF
17209 #line 17210 "configure"
17210 #include "confdefs.h"
17211 /* System header to define __stub macros and hopefully few prototypes,
17212 which can conflict with char $ac_func(); below. */
17213 #include <assert.h>
17214 /* Override any gcc2 internal prototype to avoid an error. */
17215 /* We use char because int might match the return type of a gcc2
17216 builtin and then its argument prototype would still apply. */
17217 char $ac_func();
17218
17219 int main() {
17220
17221 /* The GNU C library defines this for functions which it implements
17222 to always fail with ENOSYS. Some functions are actually named
17223 something starting with __ and the normal name is an alias. */
17224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17225 choke me
17226 #else
17227 $ac_func();
17228 #endif
17229
17230 ; return 0; }
17231 EOF
17232 if { (eval echo configure:17233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17233 rm -rf conftest*
17234 eval "ac_cv_func_$ac_func=yes"
17235 else
17236 echo "configure: failed program was:" >&5
17237 cat conftest.$ac_ext >&5
17238 rm -rf conftest*
17239 eval "ac_cv_func_$ac_func=no"
17240 fi
17241 rm -f conftest*
17242 fi
17243
17244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17245 echo "$ac_t""yes" 1>&6
17246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17247 cat >> confdefs.h <<EOF
17248 #define $ac_tr_func 1
17249 EOF
17250
17251 else
17252 echo "$ac_t""no" 1>&6
17253 fi
17254 done
17255
17256
17257
17258 for ac_hdr in sched.h
17259 do
17260 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17261 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17262 echo "configure:17263: checking for $ac_hdr" >&5
17263 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17264 echo $ac_n "(cached) $ac_c" 1>&6
17265 else
17266 cat > conftest.$ac_ext <<EOF
17267 #line 17268 "configure"
17268 #include "confdefs.h"
17269 #include <$ac_hdr>
17270 EOF
17271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17272 { (eval echo configure:17273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17273 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17274 if test -z "$ac_err"; then
17275 rm -rf conftest*
17276 eval "ac_cv_header_$ac_safe=yes"
17277 else
17278 echo "$ac_err" >&5
17279 echo "configure: failed program was:" >&5
17280 cat conftest.$ac_ext >&5
17281 rm -rf conftest*
17282 eval "ac_cv_header_$ac_safe=no"
17283 fi
17284 rm -f conftest*
17285 fi
17286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17287 echo "$ac_t""yes" 1>&6
17288 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17289 cat >> confdefs.h <<EOF
17290 #define $ac_tr_hdr 1
17291 EOF
17292
17293 else
17294 echo "$ac_t""no" 1>&6
17295 fi
17296 done
17297
17298
17299 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
17300 echo "configure:17301: checking for sched_yield in -l$THREADS_LINK" >&5
17301 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
17302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17303 echo $ac_n "(cached) $ac_c" 1>&6
17304 else
17305 ac_save_LIBS="$LIBS"
17306 LIBS="-l$THREADS_LINK $LIBS"
17307 cat > conftest.$ac_ext <<EOF
17308 #line 17309 "configure"
17309 #include "confdefs.h"
17310 /* Override any gcc2 internal prototype to avoid an error. */
17311 /* We use char because int might match the return type of a gcc2
17312 builtin and then its argument prototype would still apply. */
17313 char sched_yield();
17314
17315 int main() {
17316 sched_yield()
17317 ; return 0; }
17318 EOF
17319 if { (eval echo configure:17320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17320 rm -rf conftest*
17321 eval "ac_cv_lib_$ac_lib_var=yes"
17322 else
17323 echo "configure: failed program was:" >&5
17324 cat conftest.$ac_ext >&5
17325 rm -rf conftest*
17326 eval "ac_cv_lib_$ac_lib_var=no"
17327 fi
17328 rm -f conftest*
17329 LIBS="$ac_save_LIBS"
17330
17331 fi
17332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17333 echo "$ac_t""yes" 1>&6
17334 cat >> confdefs.h <<\EOF
17335 #define HAVE_SCHED_YIELD 1
17336 EOF
17337
17338 else
17339 echo "$ac_t""no" 1>&6
17340 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17341 echo "configure:17342: checking for sched_yield in -lposix4" >&5
17342 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17344 echo $ac_n "(cached) $ac_c" 1>&6
17345 else
17346 ac_save_LIBS="$LIBS"
17347 LIBS="-lposix4 $LIBS"
17348 cat > conftest.$ac_ext <<EOF
17349 #line 17350 "configure"
17350 #include "confdefs.h"
17351 /* Override any gcc2 internal prototype to avoid an error. */
17352 /* We use char because int might match the return type of a gcc2
17353 builtin and then its argument prototype would still apply. */
17354 char sched_yield();
17355
17356 int main() {
17357 sched_yield()
17358 ; return 0; }
17359 EOF
17360 if { (eval echo configure:17361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17361 rm -rf conftest*
17362 eval "ac_cv_lib_$ac_lib_var=yes"
17363 else
17364 echo "configure: failed program was:" >&5
17365 cat conftest.$ac_ext >&5
17366 rm -rf conftest*
17367 eval "ac_cv_lib_$ac_lib_var=no"
17368 fi
17369 rm -f conftest*
17370 LIBS="$ac_save_LIBS"
17371
17372 fi
17373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17374 echo "$ac_t""yes" 1>&6
17375 cat >> confdefs.h <<\EOF
17376 #define HAVE_SCHED_YIELD 1
17377 EOF
17378 POSIX4_LINK=" -lposix4"
17379 else
17380 echo "$ac_t""no" 1>&6
17381 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17382
17383 fi
17384
17385
17386 fi
17387
17388
17389 HAVE_PRIOR_FUNCS=0
17390 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
17391 echo "configure:17392: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
17392 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
17393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17394 echo $ac_n "(cached) $ac_c" 1>&6
17395 else
17396 ac_save_LIBS="$LIBS"
17397 LIBS="-l$THREADS_LINK $LIBS"
17398 cat > conftest.$ac_ext <<EOF
17399 #line 17400 "configure"
17400 #include "confdefs.h"
17401 /* Override any gcc2 internal prototype to avoid an error. */
17402 /* We use char because int might match the return type of a gcc2
17403 builtin and then its argument prototype would still apply. */
17404 char pthread_attr_getschedpolicy();
17405
17406 int main() {
17407 pthread_attr_getschedpolicy()
17408 ; return 0; }
17409 EOF
17410 if { (eval echo configure:17411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17411 rm -rf conftest*
17412 eval "ac_cv_lib_$ac_lib_var=yes"
17413 else
17414 echo "configure: failed program was:" >&5
17415 cat conftest.$ac_ext >&5
17416 rm -rf conftest*
17417 eval "ac_cv_lib_$ac_lib_var=no"
17418 fi
17419 rm -f conftest*
17420 LIBS="$ac_save_LIBS"
17421
17422 fi
17423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17424 echo "$ac_t""yes" 1>&6
17425 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
17426 echo "configure:17427: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
17427 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
17428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17429 echo $ac_n "(cached) $ac_c" 1>&6
17430 else
17431 ac_save_LIBS="$LIBS"
17432 LIBS="-l$THREADS_LINK $LIBS"
17433 cat > conftest.$ac_ext <<EOF
17434 #line 17435 "configure"
17435 #include "confdefs.h"
17436 /* Override any gcc2 internal prototype to avoid an error. */
17437 /* We use char because int might match the return type of a gcc2
17438 builtin and then its argument prototype would still apply. */
17439 char pthread_attr_setschedparam();
17440
17441 int main() {
17442 pthread_attr_setschedparam()
17443 ; return 0; }
17444 EOF
17445 if { (eval echo configure:17446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17446 rm -rf conftest*
17447 eval "ac_cv_lib_$ac_lib_var=yes"
17448 else
17449 echo "configure: failed program was:" >&5
17450 cat conftest.$ac_ext >&5
17451 rm -rf conftest*
17452 eval "ac_cv_lib_$ac_lib_var=no"
17453 fi
17454 rm -f conftest*
17455 LIBS="$ac_save_LIBS"
17456
17457 fi
17458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17459 echo "$ac_t""yes" 1>&6
17460 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
17461 echo "configure:17462: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
17462 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17464 echo $ac_n "(cached) $ac_c" 1>&6
17465 else
17466 ac_save_LIBS="$LIBS"
17467 LIBS="-l$THREADS_LINK $LIBS"
17468 cat > conftest.$ac_ext <<EOF
17469 #line 17470 "configure"
17470 #include "confdefs.h"
17471 /* Override any gcc2 internal prototype to avoid an error. */
17472 /* We use char because int might match the return type of a gcc2
17473 builtin and then its argument prototype would still apply. */
17474 char sched_get_priority_max();
17475
17476 int main() {
17477 sched_get_priority_max()
17478 ; return 0; }
17479 EOF
17480 if { (eval echo configure:17481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17481 rm -rf conftest*
17482 eval "ac_cv_lib_$ac_lib_var=yes"
17483 else
17484 echo "configure: failed program was:" >&5
17485 cat conftest.$ac_ext >&5
17486 rm -rf conftest*
17487 eval "ac_cv_lib_$ac_lib_var=no"
17488 fi
17489 rm -f conftest*
17490 LIBS="$ac_save_LIBS"
17491
17492 fi
17493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17494 echo "$ac_t""yes" 1>&6
17495 HAVE_PRIOR_FUNCS=1
17496 else
17497 echo "$ac_t""no" 1>&6
17498 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
17499 echo "configure:17500: checking for sched_get_priority_max in -lposix4" >&5
17500 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17502 echo $ac_n "(cached) $ac_c" 1>&6
17503 else
17504 ac_save_LIBS="$LIBS"
17505 LIBS="-lposix4 $LIBS"
17506 cat > conftest.$ac_ext <<EOF
17507 #line 17508 "configure"
17508 #include "confdefs.h"
17509 /* Override any gcc2 internal prototype to avoid an error. */
17510 /* We use char because int might match the return type of a gcc2
17511 builtin and then its argument prototype would still apply. */
17512 char sched_get_priority_max();
17513
17514 int main() {
17515 sched_get_priority_max()
17516 ; return 0; }
17517 EOF
17518 if { (eval echo configure:17519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17519 rm -rf conftest*
17520 eval "ac_cv_lib_$ac_lib_var=yes"
17521 else
17522 echo "configure: failed program was:" >&5
17523 cat conftest.$ac_ext >&5
17524 rm -rf conftest*
17525 eval "ac_cv_lib_$ac_lib_var=no"
17526 fi
17527 rm -f conftest*
17528 LIBS="$ac_save_LIBS"
17529
17530 fi
17531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17532 echo "$ac_t""yes" 1>&6
17533
17534 HAVE_PRIOR_FUNCS=1
17535 POSIX4_LINK=" -lposix4"
17536
17537 else
17538 echo "$ac_t""no" 1>&6
17539 fi
17540
17541
17542 fi
17543
17544
17545 else
17546 echo "$ac_t""no" 1>&6
17547 fi
17548
17549
17550 else
17551 echo "$ac_t""no" 1>&6
17552 fi
17553
17554
17555 if test "$HAVE_PRIOR_FUNCS" = 1; then
17556 cat >> confdefs.h <<\EOF
17557 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
17558 EOF
17559
17560 else
17561 echo "configure: warning: Setting thread priority will not work" 1>&2
17562 fi
17563
17564 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
17565 echo "configure:17566: checking for pthread_cancel in -l$THREADS_LINK" >&5
17566 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
17567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17568 echo $ac_n "(cached) $ac_c" 1>&6
17569 else
17570 ac_save_LIBS="$LIBS"
17571 LIBS="-l$THREADS_LINK $LIBS"
17572 cat > conftest.$ac_ext <<EOF
17573 #line 17574 "configure"
17574 #include "confdefs.h"
17575 /* Override any gcc2 internal prototype to avoid an error. */
17576 /* We use char because int might match the return type of a gcc2
17577 builtin and then its argument prototype would still apply. */
17578 char pthread_cancel();
17579
17580 int main() {
17581 pthread_cancel()
17582 ; return 0; }
17583 EOF
17584 if { (eval echo configure:17585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17585 rm -rf conftest*
17586 eval "ac_cv_lib_$ac_lib_var=yes"
17587 else
17588 echo "configure: failed program was:" >&5
17589 cat conftest.$ac_ext >&5
17590 rm -rf conftest*
17591 eval "ac_cv_lib_$ac_lib_var=no"
17592 fi
17593 rm -f conftest*
17594 LIBS="$ac_save_LIBS"
17595
17596 fi
17597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17598 echo "$ac_t""yes" 1>&6
17599 cat >> confdefs.h <<\EOF
17600 #define HAVE_PTHREAD_CANCEL 1
17601 EOF
17602
17603 else
17604 echo "$ac_t""no" 1>&6
17605 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
17606 fi
17607
17608
17609 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
17610 echo "configure:17611: checking for pthread_cleanup_push/pop" >&5
17611 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
17612 echo $ac_n "(cached) $ac_c" 1>&6
17613 else
17614
17615 cat > conftest.$ac_ext <<EOF
17616 #line 17617 "configure"
17617 #include "confdefs.h"
17618 #include <pthread.h>
17619 int main() {
17620
17621 pthread_cleanup_push(NULL, NULL);
17622 pthread_cleanup_pop(0);
17623
17624 ; return 0; }
17625 EOF
17626 if { (eval echo configure:17627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17627 rm -rf conftest*
17628
17629 wx_cv_func_pthread_cleanup_push=yes
17630
17631 else
17632 echo "configure: failed program was:" >&5
17633 cat conftest.$ac_ext >&5
17634 rm -rf conftest*
17635
17636 wx_cv_func_pthread_cleanup_push=no
17637
17638 fi
17639 rm -f conftest*
17640
17641 fi
17642
17643 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17644
17645 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
17646 cat >> confdefs.h <<\EOF
17647 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
17648 EOF
17649
17650 fi
17651
17652
17653 if test "x$wx_lib_glibc21" = "xyes"; then
17654 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17655 fi
17656
17657 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
17658 echo "configure:17659: checking for pthread_mutexattr_t" >&5
17659 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
17660 echo $ac_n "(cached) $ac_c" 1>&6
17661 else
17662
17663 cat > conftest.$ac_ext <<EOF
17664 #line 17665 "configure"
17665 #include "confdefs.h"
17666 #include <pthread.h>
17667 int main() {
17668
17669 pthread_mutexattr_t attr;
17670 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
17671
17672 ; return 0; }
17673 EOF
17674 if { (eval echo configure:17675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17675 rm -rf conftest*
17676
17677 wx_cv_type_pthread_mutexattr_t=yes
17678
17679 else
17680 echo "configure: failed program was:" >&5
17681 cat conftest.$ac_ext >&5
17682 rm -rf conftest*
17683
17684 wx_cv_type_pthread_mutexattr_t=no
17685
17686
17687 fi
17688 rm -f conftest*
17689
17690 fi
17691
17692 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
17693
17694 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
17695 cat >> confdefs.h <<\EOF
17696 #define HAVE_PTHREAD_MUTEXATTR_T 1
17697 EOF
17698
17699 else
17700 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
17701 echo "configure:17702: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
17702 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
17703 echo $ac_n "(cached) $ac_c" 1>&6
17704 else
17705
17706 cat > conftest.$ac_ext <<EOF
17707 #line 17708 "configure"
17708 #include "confdefs.h"
17709 #include <pthread.h>
17710 int main() {
17711
17712 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
17713
17714 ; return 0; }
17715 EOF
17716 if { (eval echo configure:17717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17717 rm -rf conftest*
17718
17719 wx_cv_type_pthread_rec_mutex_init=yes
17720
17721 else
17722 echo "configure: failed program was:" >&5
17723 cat conftest.$ac_ext >&5
17724 rm -rf conftest*
17725
17726 wx_cv_type_pthread_rec_mutex_init=no
17727
17728
17729 fi
17730 rm -f conftest*
17731
17732 fi
17733
17734 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
17735 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17736 cat >> confdefs.h <<\EOF
17737 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17738 EOF
17739
17740 else
17741 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17742 fi
17743 fi
17744
17745 THREADS_LINK=" -l$THREADS_LINK"
17746
17747 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
17748 CPPFLAGS="$CFLAGS -mt"
17749 CXXFLAGS="$CXXFLAGS -mt"
17750 LDFLAGS="$LDFLAGS -mt"
17751 fi
17752 fi
17753
17754 fi
17755
17756 if test "$wxUSE_THREADS" = "yes"; then
17757 cat >> confdefs.h <<\EOF
17758 #define wxUSE_THREADS 1
17759 EOF
17760
17761
17762 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
17763
17764 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
17765 else
17766 if test "$ac_cv_func_strtok_r" = "yes"; then
17767 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
17768 echo "configure:17769: checking if -D_REENTRANT is needed" >&5
17769 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17770 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17771 echo "$ac_t""yes" 1>&6
17772 else
17773 echo "$ac_t""no" 1>&6
17774 fi
17775 fi
17776 fi
17777
17778 if test "$WXGTK20" = 1 ; then
17779 cat >> confdefs.h <<EOF
17780 #define __WXGTK20__ $WXGTK20
17781 EOF
17782
17783 WXGTK12=1
17784 fi
17785
17786 if test "$WXGTK12" = 1 ; then
17787 cat >> confdefs.h <<EOF
17788 #define __WXGTK12__ $WXGTK12
17789 EOF
17790
17791 fi
17792
17793 if test "$WXGTK127" = 1 ; then
17794 cat >> confdefs.h <<EOF
17795 #define __WXGTK127__ $WXGTK127
17796 EOF
17797
17798 fi
17799
17800 WXDEBUG=
17801
17802 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17803 WXDEBUG="-g"
17804 wxUSE_OPTIMISE=no
17805 fi
17806
17807 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17808 wxUSE_DEBUG_INFO=yes
17809 WXDEBUG="-ggdb"
17810 fi
17811
17812 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17813 cat >> confdefs.h <<\EOF
17814 #define WXDEBUG 1
17815 EOF
17816
17817 WXDEBUG_DEFINE="-D__WXDEBUG__"
17818 else
17819 if test "$wxUSE_GTK" = 1 ; then
17820 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17821 fi
17822 fi
17823
17824 if test "$wxUSE_MEM_TRACING" = "yes" ; then
17825 cat >> confdefs.h <<\EOF
17826 #define wxUSE_MEMORY_TRACING 1
17827 EOF
17828
17829 cat >> confdefs.h <<\EOF
17830 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17831 EOF
17832
17833 cat >> confdefs.h <<\EOF
17834 #define wxUSE_DEBUG_NEW_ALWAYS 1
17835 EOF
17836
17837 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17838 fi
17839
17840 if test "$wxUSE_DMALLOC" = "yes" ; then
17841 DMALLOC_LIBS="-ldmalloc"
17842 fi
17843
17844 PROFILE=
17845 if test "$wxUSE_PROFILE" = "yes" ; then
17846 PROFILE=" -pg"
17847 fi
17848
17849 if test "$GCC" = "yes" ; then
17850 if test "$wxUSE_NO_RTTI" = "yes" ; then
17851 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
17852 fi
17853 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17854 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17855 fi
17856 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17857 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17858 fi
17859 if test "$USE_WIN32" = 1 ; then
17860 # I'm not even really sure what this was ever added to solve,
17861 # but someone added it for mingw native builds, so I guess
17862 # they had a reason, right??
17863 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
17864 fi
17865 fi
17866
17867
17868 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
17869 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
17870 if test "$wxUSE_OPTIMISE" = "no" ; then
17871 OPTIMISE=
17872 else
17873 if test "$GCC" = yes ; then
17874 OPTIMISE="-O2"
17875 case "${host}" in
17876 i586-*-*|i686-*-* )
17877 OPTIMISE="${OPTIMISE} "
17878 ;;
17879 esac
17880 else
17881 OPTIMISE="-O"
17882 fi
17883 fi
17884
17885 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
17886 cat >> confdefs.h <<\EOF
17887 #define WXWIN_COMPATIBILITY_2 1
17888 EOF
17889
17890
17891 WXWIN_COMPATIBILITY_2_2="yes"
17892 fi
17893
17894 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
17895 cat >> confdefs.h <<\EOF
17896 #define WXWIN_COMPATIBILITY_2_2 1
17897 EOF
17898
17899 fi
17900
17901
17902 if test "$wxUSE_GUI" = "yes"; then
17903 cat >> confdefs.h <<\EOF
17904 #define wxUSE_GUI 1
17905 EOF
17906
17907
17908 else
17909 cat >> confdefs.h <<\EOF
17910 #define wxUSE_NOGUI 1
17911 EOF
17912
17913 fi
17914
17915
17916 if test "$wxUSE_UNIX" = "yes"; then
17917 cat >> confdefs.h <<\EOF
17918 #define wxUSE_UNIX 1
17919 EOF
17920
17921 fi
17922
17923
17924 if test "$wxUSE_APPLE_IEEE" = "yes"; then
17925 cat >> confdefs.h <<\EOF
17926 #define wxUSE_APPLE_IEEE 1
17927 EOF
17928
17929 fi
17930
17931 if test "$wxUSE_TIMER" = "yes"; then
17932 cat >> confdefs.h <<\EOF
17933 #define wxUSE_TIMER 1
17934 EOF
17935
17936 fi
17937
17938 if test "$wxUSE_WAVE" = "yes"; then
17939 cat >> confdefs.h <<\EOF
17940 #define wxUSE_WAVE 1
17941 EOF
17942
17943 fi
17944
17945 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
17946 cat >> confdefs.h <<\EOF
17947 #define wxUSE_CMDLINE_PARSER 1
17948 EOF
17949
17950 fi
17951
17952 if test "$wxUSE_STOPWATCH" = "yes"; then
17953 cat >> confdefs.h <<\EOF
17954 #define wxUSE_STOPWATCH 1
17955 EOF
17956
17957 fi
17958
17959 if test "$wxUSE_DATETIME" = "yes"; then
17960 cat >> confdefs.h <<\EOF
17961 #define wxUSE_DATETIME 1
17962 EOF
17963
17964 fi
17965
17966 if test "$wxUSE_TIMEDATE" = "yes"; then
17967 cat >> confdefs.h <<\EOF
17968 #define wxUSE_TIMEDATE 1
17969 EOF
17970
17971 fi
17972
17973 if test "$wxUSE_FILE" = "yes"; then
17974 cat >> confdefs.h <<\EOF
17975 #define wxUSE_FILE 1
17976 EOF
17977
17978 fi
17979
17980 if test "$wxUSE_FFILE" = "yes"; then
17981 cat >> confdefs.h <<\EOF
17982 #define wxUSE_FFILE 1
17983 EOF
17984
17985 fi
17986
17987 if test "$wxUSE_FILESYSTEM" = "yes"; then
17988 cat >> confdefs.h <<\EOF
17989 #define wxUSE_FILESYSTEM 1
17990 EOF
17991
17992 fi
17993
17994 if test "$wxUSE_FS_INET" = "yes"; then
17995 cat >> confdefs.h <<\EOF
17996 #define wxUSE_FS_INET 1
17997 EOF
17998
17999 fi
18000
18001 if test "$wxUSE_FS_ZIP" = "yes"; then
18002 cat >> confdefs.h <<\EOF
18003 #define wxUSE_FS_ZIP 1
18004 EOF
18005
18006 fi
18007
18008 if test "$wxUSE_ZIPSTREAM" = "yes"; then
18009 cat >> confdefs.h <<\EOF
18010 #define wxUSE_ZIPSTREAM 1
18011 EOF
18012
18013 fi
18014
18015 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18016 cat >> confdefs.h <<\EOF
18017 #define wxUSE_ON_FATAL_EXCEPTION 1
18018 EOF
18019
18020 fi
18021
18022 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18023 cat >> confdefs.h <<\EOF
18024 #define wxUSE_SNGLINST_CHECKER 1
18025 EOF
18026
18027 fi
18028
18029 if test "$wxUSE_BUSYINFO" = "yes"; then
18030 cat >> confdefs.h <<\EOF
18031 #define wxUSE_BUSYINFO 1
18032 EOF
18033
18034 fi
18035
18036 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
18037 cat >> confdefs.h <<\EOF
18038 #define wxUSE_STD_IOSTREAM 1
18039 EOF
18040
18041 fi
18042
18043 if test "$wxUSE_TEXTBUFFER" = "yes"; then
18044 cat >> confdefs.h <<\EOF
18045 #define wxUSE_TEXTBUFFER 1
18046 EOF
18047
18048 fi
18049
18050 if test "$wxUSE_TEXTFILE" = "yes"; then
18051 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
18052 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
18053 else
18054 cat >> confdefs.h <<\EOF
18055 #define wxUSE_TEXTFILE 1
18056 EOF
18057
18058 fi
18059 fi
18060
18061 if test "$wxUSE_CONFIG" = "yes" ; then
18062 if test "$wxUSE_TEXTFILE" != "yes"; then
18063 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
18064 else
18065 cat >> confdefs.h <<\EOF
18066 #define wxUSE_CONFIG 1
18067 EOF
18068
18069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18070 fi
18071 fi
18072
18073 if test "$wxUSE_INTL" = "yes" ; then
18074 if test "$wxUSE_FILE" != "yes"; then
18075 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18076 else
18077 cat >> confdefs.h <<\EOF
18078 #define wxUSE_INTL 1
18079 EOF
18080
18081 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18082 GUIDIST="$GUIDIST INTL_DIST"
18083 fi
18084 fi
18085
18086 if test "$wxUSE_LOG" = "yes"; then
18087 cat >> confdefs.h <<\EOF
18088 #define wxUSE_LOG 1
18089 EOF
18090
18091
18092 if test "$wxUSE_LOGGUI" = "yes"; then
18093 cat >> confdefs.h <<\EOF
18094 #define wxUSE_LOGGUI 1
18095 EOF
18096
18097 fi
18098
18099 if test "$wxUSE_LOGWINDOW" = "yes"; then
18100 cat >> confdefs.h <<\EOF
18101 #define wxUSE_LOGWINDOW 1
18102 EOF
18103
18104 fi
18105
18106 if test "$wxUSE_LOGDIALOG" = "yes"; then
18107 cat >> confdefs.h <<\EOF
18108 #define wxUSE_LOG_DIALOG 1
18109 EOF
18110
18111 fi
18112 fi
18113
18114 if test "$wxUSE_LONGLONG" = "yes"; then
18115 cat >> confdefs.h <<\EOF
18116 #define wxUSE_LONGLONG 1
18117 EOF
18118
18119 fi
18120
18121 if test "$wxUSE_GEOMETRY" = "yes"; then
18122 cat >> confdefs.h <<\EOF
18123 #define wxUSE_GEOMETRY 1
18124 EOF
18125
18126 fi
18127
18128 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18129 cat >> confdefs.h <<\EOF
18130 #define wxUSE_DIALUP_MANAGER 1
18131 EOF
18132
18133 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18134 fi
18135
18136 if test "$wxUSE_STREAMS" = "yes" ; then
18137 cat >> confdefs.h <<\EOF
18138 #define wxUSE_STREAMS 1
18139 EOF
18140
18141 fi
18142
18143
18144 if test "$wxUSE_DATETIME" = "yes"; then
18145 for ac_func in strptime
18146 do
18147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18148 echo "configure:18149: checking for $ac_func" >&5
18149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18150 echo $ac_n "(cached) $ac_c" 1>&6
18151 else
18152 cat > conftest.$ac_ext <<EOF
18153 #line 18154 "configure"
18154 #include "confdefs.h"
18155 /* System header to define __stub macros and hopefully few prototypes,
18156 which can conflict with char $ac_func(); below. */
18157 #include <assert.h>
18158 /* Override any gcc2 internal prototype to avoid an error. */
18159 /* We use char because int might match the return type of a gcc2
18160 builtin and then its argument prototype would still apply. */
18161 char $ac_func();
18162
18163 int main() {
18164
18165 /* The GNU C library defines this for functions which it implements
18166 to always fail with ENOSYS. Some functions are actually named
18167 something starting with __ and the normal name is an alias. */
18168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18169 choke me
18170 #else
18171 $ac_func();
18172 #endif
18173
18174 ; return 0; }
18175 EOF
18176 if { (eval echo configure:18177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18177 rm -rf conftest*
18178 eval "ac_cv_func_$ac_func=yes"
18179 else
18180 echo "configure: failed program was:" >&5
18181 cat conftest.$ac_ext >&5
18182 rm -rf conftest*
18183 eval "ac_cv_func_$ac_func=no"
18184 fi
18185 rm -f conftest*
18186 fi
18187
18188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18189 echo "$ac_t""yes" 1>&6
18190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18191 cat >> confdefs.h <<EOF
18192 #define $ac_tr_func 1
18193 EOF
18194
18195 else
18196 echo "$ac_t""no" 1>&6
18197 fi
18198 done
18199
18200
18201 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18202 echo "configure:18203: checking for timezone variable in <time.h>" >&5
18203 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18204 echo $ac_n "(cached) $ac_c" 1>&6
18205 else
18206
18207 cat > conftest.$ac_ext <<EOF
18208 #line 18209 "configure"
18209 #include "confdefs.h"
18210
18211 #include <time.h>
18212
18213 int main() {
18214
18215 int tz;
18216 tz = timezone;
18217
18218 ; return 0; }
18219 EOF
18220 if { (eval echo configure:18221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18221 rm -rf conftest*
18222
18223 wx_cv_var_timezone=timezone
18224
18225 else
18226 echo "configure: failed program was:" >&5
18227 cat conftest.$ac_ext >&5
18228 rm -rf conftest*
18229
18230 cat > conftest.$ac_ext <<EOF
18231 #line 18232 "configure"
18232 #include "confdefs.h"
18233
18234 #include <time.h>
18235
18236 int main() {
18237
18238 int tz;
18239 tz = _timezone;
18240
18241 ; return 0; }
18242 EOF
18243 if { (eval echo configure:18244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18244 rm -rf conftest*
18245
18246 wx_cv_var_timezone=_timezone
18247
18248 else
18249 echo "configure: failed program was:" >&5
18250 cat conftest.$ac_ext >&5
18251 rm -rf conftest*
18252
18253 cat > conftest.$ac_ext <<EOF
18254 #line 18255 "configure"
18255 #include "confdefs.h"
18256
18257 #include <time.h>
18258
18259 int main() {
18260
18261 int tz;
18262 tz = __timezone;
18263
18264 ; return 0; }
18265 EOF
18266 if { (eval echo configure:18267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18267 rm -rf conftest*
18268
18269 wx_cv_var_timezone=__timezone
18270
18271 else
18272 echo "configure: failed program was:" >&5
18273 cat conftest.$ac_ext >&5
18274 rm -rf conftest*
18275
18276 if test "$USE_DOS" = 0 ; then
18277 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
18278 fi
18279
18280
18281 fi
18282 rm -f conftest*
18283
18284
18285 fi
18286 rm -f conftest*
18287
18288
18289 fi
18290 rm -f conftest*
18291
18292
18293 fi
18294
18295 echo "$ac_t""$wx_cv_var_timezone" 1>&6
18296
18297 if test "x$wx_cv_var_timezone" != x ; then
18298 cat >> confdefs.h <<EOF
18299 #define WX_TIMEZONE $wx_cv_var_timezone
18300 EOF
18301
18302 fi
18303
18304 for ac_func in localtime
18305 do
18306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18307 echo "configure:18308: checking for $ac_func" >&5
18308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18309 echo $ac_n "(cached) $ac_c" 1>&6
18310 else
18311 cat > conftest.$ac_ext <<EOF
18312 #line 18313 "configure"
18313 #include "confdefs.h"
18314 /* System header to define __stub macros and hopefully few prototypes,
18315 which can conflict with char $ac_func(); below. */
18316 #include <assert.h>
18317 /* Override any gcc2 internal prototype to avoid an error. */
18318 /* We use char because int might match the return type of a gcc2
18319 builtin and then its argument prototype would still apply. */
18320 char $ac_func();
18321
18322 int main() {
18323
18324 /* The GNU C library defines this for functions which it implements
18325 to always fail with ENOSYS. Some functions are actually named
18326 something starting with __ and the normal name is an alias. */
18327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18328 choke me
18329 #else
18330 $ac_func();
18331 #endif
18332
18333 ; return 0; }
18334 EOF
18335 if { (eval echo configure:18336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18336 rm -rf conftest*
18337 eval "ac_cv_func_$ac_func=yes"
18338 else
18339 echo "configure: failed program was:" >&5
18340 cat conftest.$ac_ext >&5
18341 rm -rf conftest*
18342 eval "ac_cv_func_$ac_func=no"
18343 fi
18344 rm -f conftest*
18345 fi
18346
18347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18348 echo "$ac_t""yes" 1>&6
18349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18350 cat >> confdefs.h <<EOF
18351 #define $ac_tr_func 1
18352 EOF
18353
18354 else
18355 echo "$ac_t""no" 1>&6
18356 fi
18357 done
18358
18359
18360 if test "$ac_cv_func_localtime" = "yes"; then
18361 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18362 echo "configure:18363: checking for tm_gmtoff in struct tm" >&5
18363 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18364 echo $ac_n "(cached) $ac_c" 1>&6
18365 else
18366
18367 cat > conftest.$ac_ext <<EOF
18368 #line 18369 "configure"
18369 #include "confdefs.h"
18370
18371 #include <time.h>
18372
18373 int main() {
18374
18375 struct tm tm;
18376 tm.tm_gmtoff++;
18377
18378 ; return 0; }
18379 EOF
18380 if { (eval echo configure:18381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18381 rm -rf conftest*
18382
18383 wx_cv_struct_tm_has_gmtoff=yes
18384
18385 else
18386 echo "configure: failed program was:" >&5
18387 cat conftest.$ac_ext >&5
18388 rm -rf conftest*
18389 wx_cv_struct_tm_has_gmtoff=no
18390
18391 fi
18392 rm -f conftest*
18393
18394 fi
18395
18396 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18397 fi
18398
18399 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18400 cat >> confdefs.h <<\EOF
18401 #define WX_GMTOFF_IN_TM 1
18402 EOF
18403
18404 fi
18405
18406 for ac_func in gettimeofday ftime
18407 do
18408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18409 echo "configure:18410: checking for $ac_func" >&5
18410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18411 echo $ac_n "(cached) $ac_c" 1>&6
18412 else
18413 cat > conftest.$ac_ext <<EOF
18414 #line 18415 "configure"
18415 #include "confdefs.h"
18416 /* System header to define __stub macros and hopefully few prototypes,
18417 which can conflict with char $ac_func(); below. */
18418 #include <assert.h>
18419 /* Override any gcc2 internal prototype to avoid an error. */
18420 /* We use char because int might match the return type of a gcc2
18421 builtin and then its argument prototype would still apply. */
18422 char $ac_func();
18423
18424 int main() {
18425
18426 /* The GNU C library defines this for functions which it implements
18427 to always fail with ENOSYS. Some functions are actually named
18428 something starting with __ and the normal name is an alias. */
18429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18430 choke me
18431 #else
18432 $ac_func();
18433 #endif
18434
18435 ; return 0; }
18436 EOF
18437 if { (eval echo configure:18438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18438 rm -rf conftest*
18439 eval "ac_cv_func_$ac_func=yes"
18440 else
18441 echo "configure: failed program was:" >&5
18442 cat conftest.$ac_ext >&5
18443 rm -rf conftest*
18444 eval "ac_cv_func_$ac_func=no"
18445 fi
18446 rm -f conftest*
18447 fi
18448
18449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18450 echo "$ac_t""yes" 1>&6
18451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18452 cat >> confdefs.h <<EOF
18453 #define $ac_tr_func 1
18454 EOF
18455 break
18456 else
18457 echo "$ac_t""no" 1>&6
18458 fi
18459 done
18460
18461
18462 if test "$ac_cv_func_gettimeofday" = "yes"; then
18463 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
18464 echo "configure:18465: checking whether gettimeofday takes two arguments" >&5
18465 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18466 echo $ac_n "(cached) $ac_c" 1>&6
18467 else
18468
18469
18470 ac_ext=C
18471 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18472 ac_cpp='$CXXCPP $CPPFLAGS'
18473 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18474 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18475 cross_compiling=$ac_cv_prog_cxx_cross
18476
18477
18478 cat > conftest.$ac_ext <<EOF
18479 #line 18480 "configure"
18480 #include "confdefs.h"
18481
18482 #include <sys/time.h>
18483 #include <unistd.h>
18484
18485 int main() {
18486
18487 struct timeval tv;
18488 gettimeofday(&tv, NULL);
18489
18490 ; return 0; }
18491 EOF
18492 if { (eval echo configure:18493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18493 rm -rf conftest*
18494 wx_cv_func_gettimeofday_has_2_args=yes
18495 else
18496 echo "configure: failed program was:" >&5
18497 cat conftest.$ac_ext >&5
18498 rm -rf conftest*
18499 cat > conftest.$ac_ext <<EOF
18500 #line 18501 "configure"
18501 #include "confdefs.h"
18502
18503 #include <sys/time.h>
18504 #include <unistd.h>
18505
18506 int main() {
18507
18508 struct timeval tv;
18509 gettimeofday(&tv);
18510
18511 ; return 0; }
18512 EOF
18513 if { (eval echo configure:18514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18514 rm -rf conftest*
18515 wx_cv_func_gettimeofday_has_2_args=no
18516 else
18517 echo "configure: failed program was:" >&5
18518 cat conftest.$ac_ext >&5
18519 rm -rf conftest*
18520
18521 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18522 wx_cv_func_gettimeofday_has_2_args=unknown
18523
18524
18525 fi
18526 rm -f conftest*
18527
18528 fi
18529 rm -f conftest*
18530 ac_ext=c
18531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18532 ac_cpp='$CPP $CPPFLAGS'
18533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18535 cross_compiling=$ac_cv_prog_cc_cross
18536
18537
18538 fi
18539
18540 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
18541
18542 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
18543 cat >> confdefs.h <<\EOF
18544 #define WX_GETTIMEOFDAY_NO_TZ 1
18545 EOF
18546
18547 fi
18548 fi
18549
18550 cat >> confdefs.h <<\EOF
18551 #define wxUSE_TIMEDATE 1
18552 EOF
18553
18554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18555 fi
18556
18557
18558 if test "$TOOLKIT" != "MSW"; then
18559
18560 if test "$wxUSE_SOCKETS" = "yes"; then
18561 echo $ac_n "checking for socket""... $ac_c" 1>&6
18562 echo "configure:18563: checking for socket" >&5
18563 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18564 echo $ac_n "(cached) $ac_c" 1>&6
18565 else
18566 cat > conftest.$ac_ext <<EOF
18567 #line 18568 "configure"
18568 #include "confdefs.h"
18569 /* System header to define __stub macros and hopefully few prototypes,
18570 which can conflict with char socket(); below. */
18571 #include <assert.h>
18572 /* Override any gcc2 internal prototype to avoid an error. */
18573 /* We use char because int might match the return type of a gcc2
18574 builtin and then its argument prototype would still apply. */
18575 char socket();
18576
18577 int main() {
18578
18579 /* The GNU C library defines this for functions which it implements
18580 to always fail with ENOSYS. Some functions are actually named
18581 something starting with __ and the normal name is an alias. */
18582 #if defined (__stub_socket) || defined (__stub___socket)
18583 choke me
18584 #else
18585 socket();
18586 #endif
18587
18588 ; return 0; }
18589 EOF
18590 if { (eval echo configure:18591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18591 rm -rf conftest*
18592 eval "ac_cv_func_socket=yes"
18593 else
18594 echo "configure: failed program was:" >&5
18595 cat conftest.$ac_ext >&5
18596 rm -rf conftest*
18597 eval "ac_cv_func_socket=no"
18598 fi
18599 rm -f conftest*
18600 fi
18601
18602 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18603 echo "$ac_t""yes" 1>&6
18604 :
18605 else
18606 echo "$ac_t""no" 1>&6
18607 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
18608 echo "configure:18609: checking for socket in -lsocket" >&5
18609 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18611 echo $ac_n "(cached) $ac_c" 1>&6
18612 else
18613 ac_save_LIBS="$LIBS"
18614 LIBS="-lsocket $LIBS"
18615 cat > conftest.$ac_ext <<EOF
18616 #line 18617 "configure"
18617 #include "confdefs.h"
18618 /* Override any gcc2 internal prototype to avoid an error. */
18619 /* We use char because int might match the return type of a gcc2
18620 builtin and then its argument prototype would still apply. */
18621 char socket();
18622
18623 int main() {
18624 socket()
18625 ; return 0; }
18626 EOF
18627 if { (eval echo configure:18628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18628 rm -rf conftest*
18629 eval "ac_cv_lib_$ac_lib_var=yes"
18630 else
18631 echo "configure: failed program was:" >&5
18632 cat conftest.$ac_ext >&5
18633 rm -rf conftest*
18634 eval "ac_cv_lib_$ac_lib_var=no"
18635 fi
18636 rm -f conftest*
18637 LIBS="$ac_save_LIBS"
18638
18639 fi
18640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18641 echo "$ac_t""yes" 1>&6
18642 INET_LINK="$INET_LINK -lsocket"
18643 else
18644 echo "$ac_t""no" 1>&6
18645
18646 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
18647 wxUSE_SOCKETS=no
18648
18649
18650 fi
18651
18652
18653 fi
18654
18655 fi
18656
18657
18658 if test "$wxUSE_SOCKETS" = "yes" ; then
18659 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
18660 echo "configure:18661: checking what is the type of the third argument of getsockname" >&5
18661 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
18662 echo $ac_n "(cached) $ac_c" 1>&6
18663 else
18664
18665
18666 ac_ext=C
18667 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18668 ac_cpp='$CXXCPP $CPPFLAGS'
18669 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18670 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18671 cross_compiling=$ac_cv_prog_cxx_cross
18672
18673
18674 cat > conftest.$ac_ext <<EOF
18675 #line 18676 "configure"
18676 #include "confdefs.h"
18677
18678 #include <sys/types.h>
18679 #include <sys/socket.h>
18680
18681 int main() {
18682
18683 socklen_t len;
18684 getsockname(0, 0, &len);
18685
18686 ; return 0; }
18687 EOF
18688 if { (eval echo configure:18689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18689 rm -rf conftest*
18690 wx_cv_type_getsockname3=socklen_t
18691 else
18692 echo "configure: failed program was:" >&5
18693 cat conftest.$ac_ext >&5
18694 rm -rf conftest*
18695 cat > conftest.$ac_ext <<EOF
18696 #line 18697 "configure"
18697 #include "confdefs.h"
18698
18699 #include <sys/types.h>
18700 #include <sys/socket.h>
18701
18702 int main() {
18703
18704 size_t len;
18705 getsockname(0, 0, &len);
18706
18707 ; return 0; }
18708 EOF
18709 if { (eval echo configure:18710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18710 rm -rf conftest*
18711 wx_cv_type_getsockname3=size_t
18712 else
18713 echo "configure: failed program was:" >&5
18714 cat conftest.$ac_ext >&5
18715 rm -rf conftest*
18716 cat > conftest.$ac_ext <<EOF
18717 #line 18718 "configure"
18718 #include "confdefs.h"
18719
18720 #include <sys/types.h>
18721 #include <sys/socket.h>
18722
18723 int main() {
18724
18725 int len;
18726 getsockname(0, 0, &len);
18727
18728 ; return 0; }
18729 EOF
18730 if { (eval echo configure:18731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18731 rm -rf conftest*
18732 wx_cv_type_getsockname3=int
18733 else
18734 echo "configure: failed program was:" >&5
18735 cat conftest.$ac_ext >&5
18736 rm -rf conftest*
18737 wx_cv_type_getsockname3=unknown
18738
18739 fi
18740 rm -f conftest*
18741
18742 fi
18743 rm -f conftest*
18744
18745 fi
18746 rm -f conftest*
18747
18748 ac_ext=c
18749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18750 ac_cpp='$CPP $CPPFLAGS'
18751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18753 cross_compiling=$ac_cv_prog_cc_cross
18754
18755
18756 fi
18757
18758 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
18759
18760 if test "$wx_cv_type_getsockname3" = "unknown"; then
18761 wxUSE_SOCKETS=no
18762 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18763 else
18764 cat >> confdefs.h <<EOF
18765 #define SOCKLEN_T $wx_cv_type_getsockname3
18766 EOF
18767
18768 fi
18769 fi
18770 fi
18771
18772 if test "$wxUSE_SOCKETS" = "yes" ; then
18773 cat >> confdefs.h <<\EOF
18774 #define wxUSE_SOCKETS 1
18775 EOF
18776
18777 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
18778 fi
18779
18780
18781 if test "$wxUSE_GUI" = "yes"; then
18782
18783 if test "$TOOLKIT" = "MAC"; then
18784 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18785 wxUSE_JOYSTICK=no
18786 fi
18787 if test "$TOOLKIT" = "MOTIF"; then
18788 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18789 wxUSE_JOYSTICK=no
18790 fi
18791 if test "$TOOLKIT" = "X11"; then
18792 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
18793 wxUSE_JOYSTICK=no
18794 fi
18795
18796 if test "$TOOLKIT" != "MSW"; then
18797 if test "$wxUSE_JOYSTICK" = "yes"; then
18798 for ac_hdr in linux/joystick.h
18799 do
18800 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18801 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18802 echo "configure:18803: checking for $ac_hdr" >&5
18803 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18804 echo $ac_n "(cached) $ac_c" 1>&6
18805 else
18806 cat > conftest.$ac_ext <<EOF
18807 #line 18808 "configure"
18808 #include "confdefs.h"
18809 #include <$ac_hdr>
18810 EOF
18811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18812 { (eval echo configure:18813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18814 if test -z "$ac_err"; then
18815 rm -rf conftest*
18816 eval "ac_cv_header_$ac_safe=yes"
18817 else
18818 echo "$ac_err" >&5
18819 echo "configure: failed program was:" >&5
18820 cat conftest.$ac_ext >&5
18821 rm -rf conftest*
18822 eval "ac_cv_header_$ac_safe=no"
18823 fi
18824 rm -f conftest*
18825 fi
18826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18827 echo "$ac_t""yes" 1>&6
18828 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18829 cat >> confdefs.h <<EOF
18830 #define $ac_tr_hdr 1
18831 EOF
18832
18833 else
18834 echo "$ac_t""no" 1>&6
18835 fi
18836 done
18837
18838 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18839 wxUSE_JOYSTICK=no
18840 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
18841 fi
18842 fi
18843 fi
18844
18845 if test "$wxUSE_JOYSTICK" = "yes"; then
18846 cat >> confdefs.h <<\EOF
18847 #define wxUSE_JOYSTICK 1
18848 EOF
18849
18850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18851 fi
18852 fi
18853
18854
18855 if test "$TOOLKIT" != "MSW"; then
18856
18857 HAVE_DL_FUNCS=0
18858 HAVE_SHL_FUNCS=0
18859 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
18860 if test "$USE_DARWIN" = 1; then
18861 HAVE_DL_FUNCS=1
18862 else
18863 for ac_func in dlopen
18864 do
18865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18866 echo "configure:18867: checking for $ac_func" >&5
18867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18868 echo $ac_n "(cached) $ac_c" 1>&6
18869 else
18870 cat > conftest.$ac_ext <<EOF
18871 #line 18872 "configure"
18872 #include "confdefs.h"
18873 /* System header to define __stub macros and hopefully few prototypes,
18874 which can conflict with char $ac_func(); below. */
18875 #include <assert.h>
18876 /* Override any gcc2 internal prototype to avoid an error. */
18877 /* We use char because int might match the return type of a gcc2
18878 builtin and then its argument prototype would still apply. */
18879 char $ac_func();
18880
18881 int main() {
18882
18883 /* The GNU C library defines this for functions which it implements
18884 to always fail with ENOSYS. Some functions are actually named
18885 something starting with __ and the normal name is an alias. */
18886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18887 choke me
18888 #else
18889 $ac_func();
18890 #endif
18891
18892 ; return 0; }
18893 EOF
18894 if { (eval echo configure:18895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18895 rm -rf conftest*
18896 eval "ac_cv_func_$ac_func=yes"
18897 else
18898 echo "configure: failed program was:" >&5
18899 cat conftest.$ac_ext >&5
18900 rm -rf conftest*
18901 eval "ac_cv_func_$ac_func=no"
18902 fi
18903 rm -f conftest*
18904 fi
18905
18906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18907 echo "$ac_t""yes" 1>&6
18908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18909 cat >> confdefs.h <<EOF
18910 #define $ac_tr_func 1
18911 EOF
18912
18913 cat >> confdefs.h <<\EOF
18914 #define HAVE_DLOPEN 1
18915 EOF
18916
18917 HAVE_DL_FUNCS=1
18918
18919 else
18920 echo "$ac_t""no" 1>&6
18921 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
18922 echo "configure:18923: checking for dlopen in -ldl" >&5
18923 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
18924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18925 echo $ac_n "(cached) $ac_c" 1>&6
18926 else
18927 ac_save_LIBS="$LIBS"
18928 LIBS="-ldl $LIBS"
18929 cat > conftest.$ac_ext <<EOF
18930 #line 18931 "configure"
18931 #include "confdefs.h"
18932 /* Override any gcc2 internal prototype to avoid an error. */
18933 /* We use char because int might match the return type of a gcc2
18934 builtin and then its argument prototype would still apply. */
18935 char dlopen();
18936
18937 int main() {
18938 dlopen()
18939 ; return 0; }
18940 EOF
18941 if { (eval echo configure:18942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18942 rm -rf conftest*
18943 eval "ac_cv_lib_$ac_lib_var=yes"
18944 else
18945 echo "configure: failed program was:" >&5
18946 cat conftest.$ac_ext >&5
18947 rm -rf conftest*
18948 eval "ac_cv_lib_$ac_lib_var=no"
18949 fi
18950 rm -f conftest*
18951 LIBS="$ac_save_LIBS"
18952
18953 fi
18954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18955 echo "$ac_t""yes" 1>&6
18956
18957 cat >> confdefs.h <<\EOF
18958 #define HAVE_DLOPEN 1
18959 EOF
18960
18961 HAVE_DL_FUNCS=1
18962 DL_LINK=" -ldl$DL_LINK"
18963
18964 else
18965 echo "$ac_t""no" 1>&6
18966
18967 for ac_func in shl_load
18968 do
18969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18970 echo "configure:18971: checking for $ac_func" >&5
18971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18972 echo $ac_n "(cached) $ac_c" 1>&6
18973 else
18974 cat > conftest.$ac_ext <<EOF
18975 #line 18976 "configure"
18976 #include "confdefs.h"
18977 /* System header to define __stub macros and hopefully few prototypes,
18978 which can conflict with char $ac_func(); below. */
18979 #include <assert.h>
18980 /* Override any gcc2 internal prototype to avoid an error. */
18981 /* We use char because int might match the return type of a gcc2
18982 builtin and then its argument prototype would still apply. */
18983 char $ac_func();
18984
18985 int main() {
18986
18987 /* The GNU C library defines this for functions which it implements
18988 to always fail with ENOSYS. Some functions are actually named
18989 something starting with __ and the normal name is an alias. */
18990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18991 choke me
18992 #else
18993 $ac_func();
18994 #endif
18995
18996 ; return 0; }
18997 EOF
18998 if { (eval echo configure:18999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18999 rm -rf conftest*
19000 eval "ac_cv_func_$ac_func=yes"
19001 else
19002 echo "configure: failed program was:" >&5
19003 cat conftest.$ac_ext >&5
19004 rm -rf conftest*
19005 eval "ac_cv_func_$ac_func=no"
19006 fi
19007 rm -f conftest*
19008 fi
19009
19010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19011 echo "$ac_t""yes" 1>&6
19012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19013 cat >> confdefs.h <<EOF
19014 #define $ac_tr_func 1
19015 EOF
19016
19017 cat >> confdefs.h <<\EOF
19018 #define HAVE_SHL_LOAD 1
19019 EOF
19020
19021 HAVE_SHL_FUNCS=1
19022
19023 else
19024 echo "$ac_t""no" 1>&6
19025 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
19026 echo "configure:19027: checking for dld in -lshl_load" >&5
19027 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19029 echo $ac_n "(cached) $ac_c" 1>&6
19030 else
19031 ac_save_LIBS="$LIBS"
19032 LIBS="-lshl_load $LIBS"
19033 cat > conftest.$ac_ext <<EOF
19034 #line 19035 "configure"
19035 #include "confdefs.h"
19036 /* Override any gcc2 internal prototype to avoid an error. */
19037 /* We use char because int might match the return type of a gcc2
19038 builtin and then its argument prototype would still apply. */
19039 char dld();
19040
19041 int main() {
19042 dld()
19043 ; return 0; }
19044 EOF
19045 if { (eval echo configure:19046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19046 rm -rf conftest*
19047 eval "ac_cv_lib_$ac_lib_var=yes"
19048 else
19049 echo "configure: failed program was:" >&5
19050 cat conftest.$ac_ext >&5
19051 rm -rf conftest*
19052 eval "ac_cv_lib_$ac_lib_var=no"
19053 fi
19054 rm -f conftest*
19055 LIBS="$ac_save_LIBS"
19056
19057 fi
19058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19059 echo "$ac_t""yes" 1>&6
19060
19061 HAVE_SHL_FUNCS=1
19062 DL_LINK=" -ldld$DL_LINK"
19063
19064 else
19065 echo "$ac_t""no" 1>&6
19066 fi
19067
19068
19069 fi
19070 done
19071
19072
19073 fi
19074
19075
19076 fi
19077 done
19078
19079
19080 if test "$HAVE_DL_FUNCS" = 1; then
19081 for ac_func in dlerror
19082 do
19083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19084 echo "configure:19085: checking for $ac_func" >&5
19085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19086 echo $ac_n "(cached) $ac_c" 1>&6
19087 else
19088 cat > conftest.$ac_ext <<EOF
19089 #line 19090 "configure"
19090 #include "confdefs.h"
19091 /* System header to define __stub macros and hopefully few prototypes,
19092 which can conflict with char $ac_func(); below. */
19093 #include <assert.h>
19094 /* Override any gcc2 internal prototype to avoid an error. */
19095 /* We use char because int might match the return type of a gcc2
19096 builtin and then its argument prototype would still apply. */
19097 char $ac_func();
19098
19099 int main() {
19100
19101 /* The GNU C library defines this for functions which it implements
19102 to always fail with ENOSYS. Some functions are actually named
19103 something starting with __ and the normal name is an alias. */
19104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19105 choke me
19106 #else
19107 $ac_func();
19108 #endif
19109
19110 ; return 0; }
19111 EOF
19112 if { (eval echo configure:19113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19113 rm -rf conftest*
19114 eval "ac_cv_func_$ac_func=yes"
19115 else
19116 echo "configure: failed program was:" >&5
19117 cat conftest.$ac_ext >&5
19118 rm -rf conftest*
19119 eval "ac_cv_func_$ac_func=no"
19120 fi
19121 rm -f conftest*
19122 fi
19123
19124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19125 echo "$ac_t""yes" 1>&6
19126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19127 cat >> confdefs.h <<EOF
19128 #define $ac_tr_func 1
19129 EOF
19130 cat >> confdefs.h <<\EOF
19131 #define HAVE_DLERROR 1
19132 EOF
19133
19134 else
19135 echo "$ac_t""no" 1>&6
19136 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19137 echo "configure:19138: checking for dlerror in -ldl" >&5
19138 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19140 echo $ac_n "(cached) $ac_c" 1>&6
19141 else
19142 ac_save_LIBS="$LIBS"
19143 LIBS="-ldl $LIBS"
19144 cat > conftest.$ac_ext <<EOF
19145 #line 19146 "configure"
19146 #include "confdefs.h"
19147 /* Override any gcc2 internal prototype to avoid an error. */
19148 /* We use char because int might match the return type of a gcc2
19149 builtin and then its argument prototype would still apply. */
19150 char dlerror();
19151
19152 int main() {
19153 dlerror()
19154 ; return 0; }
19155 EOF
19156 if { (eval echo configure:19157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19157 rm -rf conftest*
19158 eval "ac_cv_lib_$ac_lib_var=yes"
19159 else
19160 echo "configure: failed program was:" >&5
19161 cat conftest.$ac_ext >&5
19162 rm -rf conftest*
19163 eval "ac_cv_lib_$ac_lib_var=no"
19164 fi
19165 rm -f conftest*
19166 LIBS="$ac_save_LIBS"
19167
19168 fi
19169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19170 echo "$ac_t""yes" 1>&6
19171 cat >> confdefs.h <<\EOF
19172 #define HAVE_DLERROR 1
19173 EOF
19174
19175 else
19176 echo "$ac_t""no" 1>&6
19177 fi
19178
19179 fi
19180 done
19181
19182 fi
19183 fi
19184
19185 if test "$HAVE_DL_FUNCS" = 0; then
19186 if test "$HAVE_SHL_FUNCS" = 0; then
19187 if test "$USE_UNIX" = 1; then
19188 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19189 wxUSE_DYNAMIC_LOADER=no
19190 wxUSE_DYNLIB_CLASS=no
19191 else
19192 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19193 fi
19194 fi
19195 fi
19196 fi
19197 fi
19198
19199 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19200 cat >> confdefs.h <<\EOF
19201 #define wxUSE_DYNAMIC_LOADER 1
19202 EOF
19203
19204 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19205 cat >> confdefs.h <<\EOF
19206 #define wxUSE_DYNLIB_CLASS 1
19207 EOF
19208
19209 fi
19210
19211
19212 if test "$wxUSE_FONTMAP" = "yes" ; then
19213 cat >> confdefs.h <<\EOF
19214 #define wxUSE_FONTMAP 1
19215 EOF
19216
19217 fi
19218
19219 if test "$wxUSE_UNICODE" = "yes" ; then
19220 cat >> confdefs.h <<\EOF
19221 #define wxUSE_UNICODE 1
19222 EOF
19223
19224
19225 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19226 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19227 echo "configure:19228: checking for main in -lunicows" >&5
19228 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19230 echo $ac_n "(cached) $ac_c" 1>&6
19231 else
19232 ac_save_LIBS="$LIBS"
19233 LIBS="-lunicows $LIBS"
19234 cat > conftest.$ac_ext <<EOF
19235 #line 19236 "configure"
19236 #include "confdefs.h"
19237
19238 int main() {
19239 main()
19240 ; return 0; }
19241 EOF
19242 if { (eval echo configure:19243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19243 rm -rf conftest*
19244 eval "ac_cv_lib_$ac_lib_var=yes"
19245 else
19246 echo "configure: failed program was:" >&5
19247 cat conftest.$ac_ext >&5
19248 rm -rf conftest*
19249 eval "ac_cv_lib_$ac_lib_var=no"
19250 fi
19251 rm -f conftest*
19252 LIBS="$ac_save_LIBS"
19253
19254 fi
19255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19256 echo "$ac_t""yes" 1>&6
19257
19258 cat >> confdefs.h <<\EOF
19259 #define wxUSE_UNICODE_MSLU 1
19260 EOF
19261
19262
19263 else
19264 echo "$ac_t""no" 1>&6
19265
19266 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19267 Applications will only run on Windows NT/2000/XP!" 1>&2
19268 wxUSE_UNICODE_MSLU=no
19269
19270 fi
19271
19272 fi
19273 fi
19274
19275 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19276 cat >> confdefs.h <<\EOF
19277 #define wxUSE_EXPERIMENTAL_PRINTF 1
19278 EOF
19279
19280 fi
19281
19282
19283
19284 IODBC_C_SRC=""
19285 if test "$wxUSE_ODBC" = "yes" ; then
19286 cat >> confdefs.h <<\EOF
19287 #define wxUSE_ODBC 1
19288 EOF
19289
19290 WXODBCFLAG="-D_IODBC_"
19291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19292 fi
19293
19294
19295 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19296 cat >> confdefs.h <<\EOF
19297 #define wxUSE_POSTSCRIPT 1
19298 EOF
19299
19300 fi
19301
19302 cat >> confdefs.h <<\EOF
19303 #define wxUSE_AFM_FOR_POSTSCRIPT 1
19304 EOF
19305
19306
19307 cat >> confdefs.h <<\EOF
19308 #define wxUSE_NORMALIZED_PS_FONTS 1
19309 EOF
19310
19311
19312
19313 if test "$wxUSE_CONSTRAINTS" = "yes"; then
19314 cat >> confdefs.h <<\EOF
19315 #define wxUSE_CONSTRAINTS 1
19316 EOF
19317
19318 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19319 fi
19320
19321 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19322 if test "$wxUSE_UNIVERSAL" = "yes"; then
19323 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
19324 wxUSE_MDI_ARCHITECTURE=no
19325 fi
19326
19327 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19328 cat >> confdefs.h <<\EOF
19329 #define wxUSE_MDI_ARCHITECTURE 1
19330 EOF
19331
19332 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19333 fi
19334 fi
19335
19336 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19337 cat >> confdefs.h <<\EOF
19338 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
19339 EOF
19340
19341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19342 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19343 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19344 fi
19345 fi
19346
19347 if test "$wxUSE_HELP" = "yes"; then
19348 cat >> confdefs.h <<\EOF
19349 #define wxUSE_HELP 1
19350 EOF
19351
19352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19353
19354 if test "$wxUSE_MSW" = 1; then
19355 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19356 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
19357 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
19358 echo "configure:19359: checking for htmlhelp.h" >&5
19359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19360 echo $ac_n "(cached) $ac_c" 1>&6
19361 else
19362 cat > conftest.$ac_ext <<EOF
19363 #line 19364 "configure"
19364 #include "confdefs.h"
19365 #include <htmlhelp.h>
19366 EOF
19367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19368 { (eval echo configure:19369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19370 if test -z "$ac_err"; then
19371 rm -rf conftest*
19372 eval "ac_cv_header_$ac_safe=yes"
19373 else
19374 echo "$ac_err" >&5
19375 echo "configure: failed program was:" >&5
19376 cat conftest.$ac_ext >&5
19377 rm -rf conftest*
19378 eval "ac_cv_header_$ac_safe=no"
19379 fi
19380 rm -f conftest*
19381 fi
19382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19383 echo "$ac_t""yes" 1>&6
19384
19385 cat >> confdefs.h <<\EOF
19386 #define wxUSE_MS_HTML_HELP 1
19387 EOF
19388
19389
19390 else
19391 echo "$ac_t""no" 1>&6
19392
19393 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
19394 wxUSE_MS_HTML_HELP=no
19395
19396 fi
19397
19398 fi
19399 fi
19400
19401 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19402 if test "$wxUSE_HTML" = "yes"; then
19403 cat >> confdefs.h <<\EOF
19404 #define wxUSE_WXHTML_HELP 1
19405 EOF
19406
19407 else
19408 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19409 wxUSE_WXHTML_HELP=no
19410 fi
19411 fi
19412 fi
19413
19414 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19415 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19416 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19417 else
19418 cat >> confdefs.h <<\EOF
19419 #define wxUSE_PRINTING_ARCHITECTURE 1
19420 EOF
19421
19422 fi
19423 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19424 fi
19425
19426 if test "$wxUSE_PROLOGIO" = "yes" ; then
19427 cat >> confdefs.h <<\EOF
19428 #define wxUSE_PROLOGIO 1
19429 EOF
19430
19431 fi
19432
19433 if test "$wxUSE_RESOURCES" = "yes" ; then
19434 cat >> confdefs.h <<\EOF
19435 #define wxUSE_RESOURCES 1
19436 EOF
19437
19438 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19439 fi
19440
19441 if test "$wxUSE_X_RESOURCES" = "yes"; then
19442 cat >> confdefs.h <<\EOF
19443 #define wxUSE_X_RESOURCES 1
19444 EOF
19445
19446 fi
19447
19448
19449 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19450 -o "$wxUSE_CLIPBOARD" = "yes" \
19451 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19452 for ac_hdr in ole2.h
19453 do
19454 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19456 echo "configure:19457: checking for $ac_hdr" >&5
19457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19458 echo $ac_n "(cached) $ac_c" 1>&6
19459 else
19460 cat > conftest.$ac_ext <<EOF
19461 #line 19462 "configure"
19462 #include "confdefs.h"
19463 #include <$ac_hdr>
19464 EOF
19465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19466 { (eval echo configure:19467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19468 if test -z "$ac_err"; then
19469 rm -rf conftest*
19470 eval "ac_cv_header_$ac_safe=yes"
19471 else
19472 echo "$ac_err" >&5
19473 echo "configure: failed program was:" >&5
19474 cat conftest.$ac_ext >&5
19475 rm -rf conftest*
19476 eval "ac_cv_header_$ac_safe=no"
19477 fi
19478 rm -f conftest*
19479 fi
19480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19481 echo "$ac_t""yes" 1>&6
19482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19483 cat >> confdefs.h <<EOF
19484 #define $ac_tr_hdr 1
19485 EOF
19486
19487 else
19488 echo "$ac_t""no" 1>&6
19489 fi
19490 done
19491
19492
19493 if test "$ac_cv_header_ole2_h" = "yes" ; then
19494 if test "$GCC" = yes ; then
19495 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
19496 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
19497 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
19498 cat >> confdefs.h <<\EOF
19499 #define wxUSE_OLE 1
19500 EOF
19501
19502
19503 fi
19504
19505 cat >> confdefs.h <<\EOF
19506 #define wxUSE_DATAOBJ 1
19507 EOF
19508
19509 else
19510 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19511
19512 wxUSE_CLIPBOARD=no
19513 wxUSE_DRAG_AND_DROP=no
19514 wxUSE_DATAOBJ=no
19515 fi
19516
19517 if test "$wxUSE_METAFILE" = "yes"; then
19518 cat >> confdefs.h <<\EOF
19519 #define wxUSE_METAFILE 1
19520 EOF
19521
19522
19523 cat >> confdefs.h <<\EOF
19524 #define wxUSE_ENH_METAFILE 1
19525 EOF
19526
19527 fi
19528 fi
19529
19530 if test "$wxUSE_IPC" = "yes"; then
19531 if test "$wxUSE_SOCKETS" != "yes"; then
19532 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
19533 fi
19534
19535 cat >> confdefs.h <<\EOF
19536 #define wxUSE_IPC 1
19537 EOF
19538
19539 fi
19540
19541 if test "$wxUSE_CLIPBOARD" = "yes"; then
19542 if test "$wxUSE_X11" = 1; then
19543 echo "configure: warning: Clipboard not yet supported under X11... disabled" 1>&2
19544 wxUSE_CLIPBOARD=no
19545 fi
19546
19547 if test "$wxUSE_CLIPBOARD" = "yes"; then
19548 cat >> confdefs.h <<\EOF
19549 #define wxUSE_CLIPBOARD 1
19550 EOF
19551
19552
19553 cat >> confdefs.h <<\EOF
19554 #define wxUSE_DATAOBJ 1
19555 EOF
19556
19557 fi
19558 fi
19559
19560 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19561 if test "$wxUSE_GTK" = 1; then
19562 if test "$WXGTK12" != 1; then
19563 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
19564 wxUSE_DRAG_AND_DROP=no
19565 fi
19566 fi
19567
19568 if test "$wxUSE_MOTIF" = 1; then
19569 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
19570 wxUSE_DRAG_AND_DROP=no
19571 fi
19572
19573 if test "$wxUSE_X11" = 1; then
19574 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19575 wxUSE_DRAG_AND_DROP=no
19576 fi
19577
19578 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
19579 cat >> confdefs.h <<\EOF
19580 #define wxUSE_DRAG_AND_DROP 1
19581 EOF
19582
19583 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19584 fi
19585
19586 fi
19587
19588 if test "$wxUSE_SPLINES" = "yes" ; then
19589 cat >> confdefs.h <<\EOF
19590 #define wxUSE_SPLINES 1
19591 EOF
19592
19593 fi
19594
19595
19596 USES_CONTROLS=0
19597 if test "$wxUSE_CONTROLS" = "yes"; then
19598 USES_CONTROLS=1
19599 fi
19600
19601 if test "$wxUSE_ACCEL" = "yes"; then
19602 cat >> confdefs.h <<\EOF
19603 #define wxUSE_ACCEL 1
19604 EOF
19605
19606 USES_CONTROLS=1
19607 fi
19608
19609 if test "$wxUSE_BUTTON" = "yes"; then
19610 cat >> confdefs.h <<\EOF
19611 #define wxUSE_BUTTON 1
19612 EOF
19613
19614 USES_CONTROLS=1
19615 fi
19616
19617 if test "$wxUSE_BMPBUTTON" = "yes"; then
19618 cat >> confdefs.h <<\EOF
19619 #define wxUSE_BMPBUTTON 1
19620 EOF
19621
19622 USES_CONTROLS=1
19623 fi
19624
19625 if test "$wxUSE_CALCTRL" = "yes"; then
19626 cat >> confdefs.h <<\EOF
19627 #define wxUSE_CALENDARCTRL 1
19628 EOF
19629
19630 USES_CONTROLS=1
19631 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
19632 fi
19633
19634 if test "$wxUSE_CARET" = "yes"; then
19635 cat >> confdefs.h <<\EOF
19636 #define wxUSE_CARET 1
19637 EOF
19638
19639 USES_CONTROLS=1
19640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
19641 fi
19642
19643 if test "$wxUSE_COMBOBOX" = "yes"; then
19644 cat >> confdefs.h <<\EOF
19645 #define wxUSE_COMBOBOX 1
19646 EOF
19647
19648 USES_CONTROLS=1
19649 fi
19650
19651 if test "$wxUSE_CHOICE" = "yes"; then
19652 cat >> confdefs.h <<\EOF
19653 #define wxUSE_CHOICE 1
19654 EOF
19655
19656 USES_CONTROLS=1
19657 fi
19658
19659 if test "$wxUSE_CHECKBOX" = "yes"; then
19660 cat >> confdefs.h <<\EOF
19661 #define wxUSE_CHECKBOX 1
19662 EOF
19663
19664 USES_CONTROLS=1
19665 fi
19666
19667 if test "$wxUSE_CHECKLST" = "yes"; then
19668 cat >> confdefs.h <<\EOF
19669 #define wxUSE_CHECKLISTBOX 1
19670 EOF
19671
19672 USES_CONTROLS=1
19673 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
19674 fi
19675
19676 if test "$wxUSE_GAUGE" = "yes"; then
19677 cat >> confdefs.h <<\EOF
19678 #define wxUSE_GAUGE 1
19679 EOF
19680
19681 USES_CONTROLS=1
19682 fi
19683
19684 if test "$wxUSE_NEW_GRID" = "yes"; then
19685 wxUSE_GRID="yes"
19686 cat >> confdefs.h <<\EOF
19687 #define wxUSE_NEW_GRID 1
19688 EOF
19689
19690 USES_CONTROLS=1
19691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
19692 fi
19693
19694 if test "$wxUSE_GRID" = "yes"; then
19695 cat >> confdefs.h <<\EOF
19696 #define wxUSE_GRID 1
19697 EOF
19698
19699 USES_CONTROLS=1
19700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
19701 fi
19702
19703 if test "$wxUSE_IMAGLIST" = "yes"; then
19704 cat >> confdefs.h <<\EOF
19705 #define wxUSE_IMAGLIST 1
19706 EOF
19707
19708 fi
19709
19710 if test "$wxUSE_LISTBOX" = "yes"; then
19711 cat >> confdefs.h <<\EOF
19712 #define wxUSE_LISTBOX 1
19713 EOF
19714
19715 USES_CONTROLS=1
19716 fi
19717
19718 if test "$wxUSE_LISTCTRL" = "yes"; then
19719 if test "$wxUSE_IMAGLIST" = "yes"; then
19720 cat >> confdefs.h <<\EOF
19721 #define wxUSE_LISTCTRL 1
19722 EOF
19723
19724 USES_CONTROLS=1
19725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
19726 else
19727 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
19728 fi
19729 fi
19730
19731 if test "$wxUSE_NOTEBOOK" = "yes"; then
19732 cat >> confdefs.h <<\EOF
19733 #define wxUSE_NOTEBOOK 1
19734 EOF
19735
19736 USES_CONTROLS=1
19737 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
19738 fi
19739
19740 if test "$wxUSE_PROPSHEET" = "yes"; then
19741 cat >> confdefs.h <<\EOF
19742 #define wxUSE_PROPSHEET 1
19743 EOF
19744
19745 USES_CONTROLS=1
19746 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
19747 fi
19748
19749 if test "$wxUSE_RADIOBOX" = "yes"; then
19750 cat >> confdefs.h <<\EOF
19751 #define wxUSE_RADIOBOX 1
19752 EOF
19753
19754 USES_CONTROLS=1
19755 fi
19756
19757 if test "$wxUSE_RADIOBTN" = "yes"; then
19758 cat >> confdefs.h <<\EOF
19759 #define wxUSE_RADIOBTN 1
19760 EOF
19761
19762 USES_CONTROLS=1
19763 fi
19764
19765 if test "$wxUSE_SASH" = "yes"; then
19766 cat >> confdefs.h <<\EOF
19767 #define wxUSE_SASH 1
19768 EOF
19769
19770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19771 fi
19772
19773 if test "$wxUSE_SCROLLBAR" = "yes"; then
19774 cat >> confdefs.h <<\EOF
19775 #define wxUSE_SCROLLBAR 1
19776 EOF
19777
19778 USES_CONTROLS=1
19779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
19780 fi
19781
19782 if test "$wxUSE_SLIDER" = "yes"; then
19783 cat >> confdefs.h <<\EOF
19784 #define wxUSE_SLIDER 1
19785 EOF
19786
19787 USES_CONTROLS=1
19788 fi
19789
19790 if test "$wxUSE_SPINBTN" = "yes"; then
19791 cat >> confdefs.h <<\EOF
19792 #define wxUSE_SPINBTN 1
19793 EOF
19794
19795 USES_CONTROLS=1
19796 fi
19797
19798 if test "$wxUSE_SPINCTRL" = "yes"; then
19799 cat >> confdefs.h <<\EOF
19800 #define wxUSE_SPINCTRL 1
19801 EOF
19802
19803 USES_CONTROLS=1
19804 fi
19805
19806 if test "$wxUSE_SPLITTER" = "yes"; then
19807 cat >> confdefs.h <<\EOF
19808 #define wxUSE_SPLITTER 1
19809 EOF
19810
19811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19812 fi
19813
19814 if test "$wxUSE_STATBMP" = "yes"; then
19815 cat >> confdefs.h <<\EOF
19816 #define wxUSE_STATBMP 1
19817 EOF
19818
19819 USES_CONTROLS=1
19820 fi
19821
19822 if test "$wxUSE_STATBOX" = "yes"; then
19823 cat >> confdefs.h <<\EOF
19824 #define wxUSE_STATBOX 1
19825 EOF
19826
19827 USES_CONTROLS=1
19828 fi
19829
19830 if test "$wxUSE_STATTEXT" = "yes"; then
19831 cat >> confdefs.h <<\EOF
19832 #define wxUSE_STATTEXT 1
19833 EOF
19834
19835 USES_CONTROLS=1
19836 fi
19837
19838 if test "$wxUSE_STATLINE" = "yes"; then
19839 if test "$wxUSE_WINE" = 1 ; then
19840 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
19841 else
19842 cat >> confdefs.h <<\EOF
19843 #define wxUSE_STATLINE 1
19844 EOF
19845
19846 USES_CONTROLS=1
19847 fi
19848 fi
19849
19850 if test "$wxUSE_STATUSBAR" = "yes"; then
19851 cat >> confdefs.h <<\EOF
19852 #define wxUSE_STATUSBAR 1
19853 EOF
19854
19855 USES_CONTROLS=1
19856
19857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
19858 fi
19859
19860 if test "$wxUSE_TABDIALOG" = "yes"; then
19861 cat >> confdefs.h <<\EOF
19862 #define wxUSE_TAB_DIALOG 1
19863 EOF
19864
19865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19866 fi
19867
19868 if test "$wxUSE_TEXTCTRL" = "yes"; then
19869 cat >> confdefs.h <<\EOF
19870 #define wxUSE_TEXTCTRL 1
19871 EOF
19872
19873 USES_CONTROLS=1
19874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
19875 fi
19876
19877 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19878 if test "$wxUSE_MAC" = 1; then
19879 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
19880 wxUSE_TOGGLEBTN=no
19881 fi
19882 if test "$wxUSE_UNIVERSAL" = "yes"; then
19883 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
19884 wxUSE_TOGGLEBTN=no
19885 fi
19886
19887 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19888 cat >> confdefs.h <<\EOF
19889 #define wxUSE_TOGGLEBTN 1
19890 EOF
19891
19892 USES_CONTROLS=1
19893 fi
19894 fi
19895
19896 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
19897 cat >> confdefs.h <<\EOF
19898 #define wxUSE_TOOLBAR_SIMPLE 1
19899 EOF
19900
19901 wxUSE_TOOLBAR="yes"
19902 USES_CONTROLS=1
19903 fi
19904
19905 if test "$wxUSE_TOOLBAR" = "yes"; then
19906 cat >> confdefs.h <<\EOF
19907 #define wxUSE_TOOLBAR 1
19908 EOF
19909
19910 USES_CONTROLS=1
19911
19912 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
19913 wxUSE_TOOLBAR_NATIVE="yes"
19914 fi
19915
19916 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
19917 cat >> confdefs.h <<\EOF
19918 #define wxUSE_TOOLBAR_NATIVE 1
19919 EOF
19920
19921 USES_CONTROLS=1
19922 fi
19923
19924 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
19925 fi
19926
19927 if test "$wxUSE_TOOLTIPS" = "yes"; then
19928 if test "$wxUSE_MOTIF" = 1; then
19929 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
19930 else
19931 if test "$wxUSE_WINE" = 1; then
19932 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
19933 else
19934 if test "$wxUSE_UNIVERSAL" = "yes"; then
19935 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
19936 else
19937 if test "$wxUSE_X11" = "1"; then
19938 echo "configure: warning: wxTooltip not supported yet under X11... disabled" 1>&2
19939 else
19940 cat >> confdefs.h <<\EOF
19941 #define wxUSE_TOOLTIPS 1
19942 EOF
19943
19944 fi
19945 fi
19946 fi
19947 fi
19948 fi
19949
19950 if test "$wxUSE_TREECTRL" = "yes"; then
19951 if test "$wxUSE_IMAGLIST" = "yes"; then
19952 cat >> confdefs.h <<\EOF
19953 #define wxUSE_TREECTRL 1
19954 EOF
19955
19956 USES_CONTROLS=1
19957 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
19958 else
19959 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
19960 fi
19961 fi
19962
19963 if test "$wxUSE_POPUPWIN" = "yes"; then
19964 if test "$wxUSE_MAC" = 1; then
19965 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
19966 else
19967 if test "$wxUSE_MOTIF" = 1; then
19968 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
19969 else
19970 cat >> confdefs.h <<\EOF
19971 #define wxUSE_POPUPWIN 1
19972 EOF
19973
19974
19975 USES_CONTROLS=1
19976 fi
19977 fi
19978 fi
19979
19980 if test "$wxUSE_TIPWINDOW" = "yes"; then
19981 cat >> confdefs.h <<\EOF
19982 #define wxUSE_TIPWINDOW 1
19983 EOF
19984
19985 fi
19986
19987 if test "$USES_CONTROLS" = 1; then
19988 cat >> confdefs.h <<\EOF
19989 #define wxUSE_CONTROLS 1
19990 EOF
19991
19992 fi
19993
19994
19995 if test "$wxUSE_TREELAYOUT" = "yes"; then
19996 cat >> confdefs.h <<\EOF
19997 #define wxUSE_TREELAYOUT 1
19998 EOF
19999
20000 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20001 fi
20002
20003 if test "$wxUSE_DRAGIMAGE" = "yes"; then
20004 cat >> confdefs.h <<\EOF
20005 #define wxUSE_DRAGIMAGE 1
20006 EOF
20007
20008 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20009 fi
20010
20011 if test "$wxUSE_MENUS" = "yes"; then
20012 cat >> confdefs.h <<\EOF
20013 #define wxUSE_MENUS 1
20014 EOF
20015
20016 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
20017 fi
20018
20019 if test "$wxUSE_METAFILE" = "yes"; then
20020 cat >> confdefs.h <<\EOF
20021 #define wxUSE_METAFILE 1
20022 EOF
20023
20024 fi
20025
20026 if test "$wxUSE_MIMETYPE" = "yes"; then
20027 cat >> confdefs.h <<\EOF
20028 #define wxUSE_MIMETYPE 1
20029 EOF
20030
20031 fi
20032
20033 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20034 cat >> confdefs.h <<\EOF
20035 #define wxUSE_SYSTEM_OPTIONS 1
20036 EOF
20037
20038 fi
20039
20040 if test "$wxUSE_PROTOCOL" = "yes"; then
20041 if test "$wxUSE_SOCKETS" != "yes"; then
20042 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20043 wxUSE_PROTOCOL=no
20044 fi
20045
20046 if test "$wxUSE_PROTOCOL" = "yes"; then
20047 cat >> confdefs.h <<\EOF
20048 #define wxUSE_PROTOCOL 1
20049 EOF
20050
20051
20052 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20053 cat >> confdefs.h <<\EOF
20054 #define wxUSE_PROTOCOL_HTTP 1
20055 EOF
20056
20057 fi
20058 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20059 cat >> confdefs.h <<\EOF
20060 #define wxUSE_PROTOCOL_FTP 1
20061 EOF
20062
20063 fi
20064 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20065 cat >> confdefs.h <<\EOF
20066 #define wxUSE_PROTOCOL_FILE 1
20067 EOF
20068
20069 fi
20070 fi
20071 fi
20072
20073 if test "$wxUSE_URL" = "yes"; then
20074 if test "$wxUSE_PROTOCOL" != "yes"; then
20075 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20076 wxUSE_URL=no
20077 fi
20078 if test "$wxUSE_URL" = "yes"; then
20079 cat >> confdefs.h <<\EOF
20080 #define wxUSE_URL 1
20081 EOF
20082
20083 fi
20084 fi
20085
20086 if test "$wxUSE_MINIFRAME" = "yes"; then
20087 cat >> confdefs.h <<\EOF
20088 #define wxUSE_MINIFRAME 1
20089 EOF
20090
20091 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20092 fi
20093
20094 if test "$wxUSE_HTML" = "yes"; then
20095 cat >> confdefs.h <<\EOF
20096 #define wxUSE_HTML 1
20097 EOF
20098
20099 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20100 fi
20101
20102 if test "$wxUSE_VALIDATORS" = "yes"; then
20103 cat >> confdefs.h <<\EOF
20104 #define wxUSE_VALIDATORS 1
20105 EOF
20106
20107 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20108 fi
20109
20110 if test "$wxUSE_PALETTE" = "yes" ; then
20111 cat >> confdefs.h <<\EOF
20112 #define wxUSE_PALETTE 1
20113 EOF
20114
20115 fi
20116
20117 if test "$wxUSE_IMAGE" = "yes" ; then
20118 cat >> confdefs.h <<\EOF
20119 #define wxUSE_IMAGE 1
20120 EOF
20121
20122 fi
20123
20124 if test "$wxUSE_GIF" = "yes" ; then
20125 cat >> confdefs.h <<\EOF
20126 #define wxUSE_GIF 1
20127 EOF
20128
20129 fi
20130
20131 if test "$wxUSE_PCX" = "yes" ; then
20132 cat >> confdefs.h <<\EOF
20133 #define wxUSE_PCX 1
20134 EOF
20135
20136 fi
20137
20138 if test "$wxUSE_IFF" = "yes" ; then
20139 cat >> confdefs.h <<\EOF
20140 #define wxUSE_IFF 1
20141 EOF
20142
20143 fi
20144
20145 if test "$wxUSE_PNM" = "yes" ; then
20146 cat >> confdefs.h <<\EOF
20147 #define wxUSE_PNM 1
20148 EOF
20149
20150 fi
20151
20152 if test "$wxUSE_XPM" = "yes" ; then
20153 cat >> confdefs.h <<\EOF
20154 #define wxUSE_XPM 1
20155 EOF
20156
20157 fi
20158
20159 if test "$wxUSE_ICO_CUR" = "yes" ; then
20160 cat >> confdefs.h <<\EOF
20161 #define wxUSE_ICO_CUR 1
20162 EOF
20163
20164 fi
20165
20166 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20167 LIBS=" -lunicows $LIBS"
20168 fi
20169
20170
20171 if test "$wxUSE_CHOICEDLG" = "yes"; then
20172 cat >> confdefs.h <<\EOF
20173 #define wxUSE_CHOICEDLG 1
20174 EOF
20175
20176 fi
20177
20178 if test "$wxUSE_COLOURDLG" = "yes"; then
20179 cat >> confdefs.h <<\EOF
20180 #define wxUSE_COLOURDLG 1
20181 EOF
20182
20183 fi
20184
20185 if test "$wxUSE_FILEDLG" = "yes"; then
20186 cat >> confdefs.h <<\EOF
20187 #define wxUSE_FILEDLG 1
20188 EOF
20189
20190 fi
20191
20192 if test "$wxUSE_FINDREPLDLG" = "yes"; then
20193 cat >> confdefs.h <<\EOF
20194 #define wxUSE_FINDREPLDLG 1
20195 EOF
20196
20197 fi
20198
20199 if test "$wxUSE_FONTDLG" = "yes"; then
20200 cat >> confdefs.h <<\EOF
20201 #define wxUSE_FONTDLG 1
20202 EOF
20203
20204 fi
20205
20206 if test "$wxUSE_DIRDLG" = "yes"; then
20207 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20208 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
20209 else
20210 if test "$wxUSE_TREECTRL" != "yes"; then
20211 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20212 else
20213 cat >> confdefs.h <<\EOF
20214 #define wxUSE_DIRDLG 1
20215 EOF
20216
20217 fi
20218 fi
20219 fi
20220
20221 if test "$wxUSE_MSGDLG" = "yes"; then
20222 cat >> confdefs.h <<\EOF
20223 #define wxUSE_MSGDLG 1
20224 EOF
20225
20226 fi
20227
20228 if test "$wxUSE_NUMBERDLG" = "yes"; then
20229 cat >> confdefs.h <<\EOF
20230 #define wxUSE_NUMBERDLG 1
20231 EOF
20232
20233 fi
20234
20235 if test "$wxUSE_PROGRESSDLG" = "yes"; then
20236 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20237 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20238 else
20239 cat >> confdefs.h <<\EOF
20240 #define wxUSE_PROGRESSDLG 1
20241 EOF
20242
20243 fi
20244 fi
20245
20246 if test "$wxUSE_SPLASH" = "yes"; then
20247 cat >> confdefs.h <<\EOF
20248 #define wxUSE_SPLASH 1
20249 EOF
20250
20251 fi
20252
20253 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20254 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20255 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20256 else
20257 cat >> confdefs.h <<\EOF
20258 #define wxUSE_STARTUP_TIPS 1
20259 EOF
20260
20261 fi
20262 fi
20263
20264 if test "$wxUSE_TEXTDLG" = "yes"; then
20265 cat >> confdefs.h <<\EOF
20266 #define wxUSE_TEXTDLG 1
20267 EOF
20268
20269 fi
20270
20271 if test "$wxUSE_WIZARDDLG" = "yes"; then
20272 cat >> confdefs.h <<\EOF
20273 #define wxUSE_WIZARDDLG 1
20274 EOF
20275
20276 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20277 fi
20278
20279
20280 if test "$cross_compiling" = "yes"; then
20281 OSINFO="\"$host\""
20282 else
20283 OSINFO=`uname -s -r -m`
20284 OSINFO="\"$OSINFO\""
20285 fi
20286
20287 cat >> confdefs.h <<EOF
20288 #define WXWIN_OS_DESCRIPTION $OSINFO
20289 EOF
20290
20291
20292
20293 if test "x$prefix" != "xNONE"; then
20294 wxPREFIX=$prefix
20295 else
20296 wxPREFIX=$ac_default_prefix
20297 fi
20298
20299 cat >> confdefs.h <<EOF
20300 #define wxINSTALL_PREFIX "$wxPREFIX"
20301 EOF
20302
20303
20304
20305
20306
20307 if test "$wxUSE_MAC" = 1 ; then
20308 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20309 fi
20310
20311
20312 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DL_LINK -lm $LIBS"
20313
20314 if test "$wxUSE_GUI" = "yes"; then
20315
20316 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20317
20318
20319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
20320 drawing dynamic erase event exec font image \
20321 minimal richedit rotate widgets"
20322
20323 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20324 else
20325 SAMPLES_SUBDIRS="console"
20326 fi
20327
20328
20329 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
20330 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
20331
20332 if test "$wxUSE_GTK" = 1; then
20333 WXCONFIG_INCLUDE=
20334 else
20335 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20336 fi
20337
20338 if test "$GXX" = yes ; then
20339 CXXWARNINGS="-Wall"
20340
20341 if test "$wxUSE_NO_DEPS" = "no" ; then
20342 CFLAGS="-MMD $CFLAGS"
20343 CXXFLAGS="-MMD $CXXFLAGS"
20344 fi
20345 fi
20346
20347 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20348
20349 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20350 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20351
20352 LDFLAGS="$LDFLAGS$PROFILE"
20353
20354 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
20443 echo "configure:20444: checking whether ${MAKE-make} sets \${MAKE}" >&5
20444 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20445 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20446 echo $ac_n "(cached) $ac_c" 1>&6
20447 else
20448 cat > conftestmake <<\EOF
20449 all:
20450 @echo 'ac_maketemp="${MAKE}"'
20451 EOF
20452 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20453 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
20454 if test -n "$ac_maketemp"; then
20455 eval ac_cv_prog_make_${ac_make}_set=yes
20456 else
20457 eval ac_cv_prog_make_${ac_make}_set=no
20458 fi
20459 rm -f conftestmake
20460 fi
20461 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20462 echo "$ac_t""yes" 1>&6
20463 SET_MAKE=
20464 else
20465 echo "$ac_t""no" 1>&6
20466 SET_MAKE="MAKE=${MAKE-make}"
20467 fi
20468
20469
20470 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20471 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
20472 fi
20473
20474
20475
20476 if test "$wxUSE_GUI" = "yes"; then
20477 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20478 wx_cv_if_gnu_make=$IF_GNU_MAKE
20479 wx_cv_path_ifs=$PATH_IFS
20480 wx_cv_program_ext=$PROGRAM_EXT
20481 wx_cv_target_library=$WX_TARGET_LIBRARY
20482 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20483 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20484 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20485 wx_cv_path_ifs wx_cv_program_ext \
20486 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20487 subdirs="demos samples utils contrib"
20488
20489 fi
20490
20491 trap '' 1 2 15
20492 cat > confcache <<\EOF
20493 # This file is a shell script that caches the results of configure
20494 # tests run on this system so they can be shared between configure
20495 # scripts and configure runs. It is not useful on other systems.
20496 # If it contains results you don't want to keep, you may remove or edit it.
20497 #
20498 # By default, configure uses ./config.cache as the cache file,
20499 # creating it if it does not exist already. You can give configure
20500 # the --cache-file=FILE option to use a different cache file; that is
20501 # what configure does when it calls configure scripts in
20502 # subdirectories, so they share the cache.
20503 # Giving --cache-file=/dev/null disables caching, for debugging configure.
20504 # config.status only pays attention to the cache file if you give it the
20505 # --recheck option to rerun configure.
20506 #
20507 EOF
20508 # The following way of writing the cache mishandles newlines in values,
20509 # but we know of no workaround that is simple, portable, and efficient.
20510 # So, don't put newlines in cache variables' values.
20511 # Ultrix sh set writes to stderr and can't be redirected directly,
20512 # and sets the high bit in the cache file unless we assign to the vars.
20513 (set) 2>&1 |
20514 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20515 *ac_space=\ *)
20516 # `set' does not quote correctly, so add quotes (double-quote substitution
20517 # turns \\\\ into \\, and sed turns \\ into \).
20518 sed -n \
20519 -e "s/'/'\\\\''/g" \
20520 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20521 ;;
20522 *)
20523 # `set' quotes correctly as required by POSIX, so do not add quotes.
20524 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20525 ;;
20526 esac >> confcache
20527 if cmp -s $cache_file confcache; then
20528 :
20529 else
20530 if test -w $cache_file; then
20531 echo "updating cache $cache_file"
20532 cat confcache > $cache_file
20533 else
20534 echo "not updating unwritable cache $cache_file"
20535 fi
20536 fi
20537 rm -f confcache
20538
20539 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20540
20541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20542 # Let make expand exec_prefix.
20543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20544
20545 # Any assignment to VPATH causes Sun make to only execute
20546 # the first set of double-colon rules, so remove it if not needed.
20547 # If there is a colon in the path, we need to keep it.
20548 if test "x$srcdir" = x.; then
20549 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
20550 fi
20551
20552 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20553
20554 DEFS=-DHAVE_CONFIG_H
20555
20556 # Without the "./", some shells look in PATH for config.status.
20557 : ${CONFIG_STATUS=./config.status}
20558
20559 echo creating $CONFIG_STATUS
20560 rm -f $CONFIG_STATUS
20561 cat > $CONFIG_STATUS <<EOF
20562 #! /bin/sh
20563 # Generated automatically by configure.
20564 # Run this file to recreate the current configuration.
20565 # This directory was configured as follows,
20566 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20567 #
20568 # $0 $ac_configure_args
20569 #
20570 # Compiler output produced by configure, useful for debugging
20571 # configure, is in ./config.log if it exists.
20572
20573 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20574 for ac_option
20575 do
20576 case "\$ac_option" in
20577 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20578 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20579 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20580 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20581 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20582 exit 0 ;;
20583 -help | --help | --hel | --he | --h)
20584 echo "\$ac_cs_usage"; exit 0 ;;
20585 *) echo "\$ac_cs_usage"; exit 1 ;;
20586 esac
20587 done
20588
20589 ac_given_srcdir=$srcdir
20590 ac_given_INSTALL="$INSTALL"
20591
20592 trap 'rm -fr `echo "
20593 wx-config
20594 src/make.env
20595 src/makeprog.env
20596 src/makelib.env
20597 Makefile
20598 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
20599 EOF
20600 cat >> $CONFIG_STATUS <<EOF
20601
20602 # Protect against being on the right side of a sed subst in config.status.
20603 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20604 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20605 $ac_vpsub
20606 $extrasub
20607 s%@SHELL@%$SHELL%g
20608 s%@CFLAGS@%$CFLAGS%g
20609 s%@CPPFLAGS@%$CPPFLAGS%g
20610 s%@CXXFLAGS@%$CXXFLAGS%g
20611 s%@FFLAGS@%$FFLAGS%g
20612 s%@DEFS@%$DEFS%g
20613 s%@LDFLAGS@%$LDFLAGS%g
20614 s%@LIBS@%$LIBS%g
20615 s%@exec_prefix@%$exec_prefix%g
20616 s%@prefix@%$prefix%g
20617 s%@program_transform_name@%$program_transform_name%g
20618 s%@bindir@%$bindir%g
20619 s%@sbindir@%$sbindir%g
20620 s%@libexecdir@%$libexecdir%g
20621 s%@datadir@%$datadir%g
20622 s%@sysconfdir@%$sysconfdir%g
20623 s%@sharedstatedir@%$sharedstatedir%g
20624 s%@localstatedir@%$localstatedir%g
20625 s%@libdir@%$libdir%g
20626 s%@includedir@%$includedir%g
20627 s%@oldincludedir@%$oldincludedir%g
20628 s%@infodir@%$infodir%g
20629 s%@mandir@%$mandir%g
20630 s%@host@%$host%g
20631 s%@host_alias@%$host_alias%g
20632 s%@host_cpu@%$host_cpu%g
20633 s%@host_vendor@%$host_vendor%g
20634 s%@host_os@%$host_os%g
20635 s%@target@%$target%g
20636 s%@target_alias@%$target_alias%g
20637 s%@target_cpu@%$target_cpu%g
20638 s%@target_vendor@%$target_vendor%g
20639 s%@target_os@%$target_os%g
20640 s%@build@%$build%g
20641 s%@build_alias@%$build_alias%g
20642 s%@build_cpu@%$build_cpu%g
20643 s%@build_vendor@%$build_vendor%g
20644 s%@build_os@%$build_os%g
20645 s%@CC@%$CC%g
20646 s%@CPP@%$CPP%g
20647 s%@CXX@%$CXX%g
20648 s%@RANLIB@%$RANLIB%g
20649 s%@AR@%$AR%g
20650 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
20651 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
20652 s%@INSTALL_DATA@%$INSTALL_DATA%g
20653 s%@STRIP@%$STRIP%g
20654 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
20655 s%@YACC@%$YACC%g
20656 s%@LEX@%$LEX%g
20657 s%@LEXLIB@%$LEXLIB%g
20658 s%@LN_S@%$LN_S%g
20659 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
20660 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
20661 s%@GTK_LIBS@%$GTK_LIBS%g
20662 s%@GTK_CONFIG@%$GTK_CONFIG%g
20663 s%@X_CFLAGS@%$X_CFLAGS%g
20664 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
20665 s%@X_LIBS@%$X_LIBS%g
20666 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
20667 s%@RESCOMP@%$RESCOMP%g
20668 s%@DEREZ@%$DEREZ%g
20669 s%@CXXCPP@%$CXXCPP%g
20670 s%@LIBICONV@%$LIBICONV%g
20671 s%@LEX_STEM@%$LEX_STEM%g
20672 s%@PATH_IFS@%$PATH_IFS%g
20673 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
20674 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
20675 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
20676 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
20677 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
20678 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
20679 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
20680 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
20681 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
20682 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
20683 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
20684 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
20685 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
20686 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
20687 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
20688 s%@WX_ALL@%$WX_ALL%g
20689 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
20690 s%@SHARED_LD@%$SHARED_LD%g
20691 s%@PIC_FLAG@%$PIC_FLAG%g
20692 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
20693 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
20694 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
20695 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
20696 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
20697 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
20698 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
20699 s%@USE_GUI@%$USE_GUI%g
20700 s%@AFMINSTALL@%$AFMINSTALL%g
20701 s%@TOOLKIT@%$TOOLKIT%g
20702 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
20703 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
20704 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
20705 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
20706 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
20707 s%@cross_compiling@%$cross_compiling%g
20708 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
20709 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
20710 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
20711 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
20712 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
20713 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
20714 s%@ALL_HEADERS@%$ALL_HEADERS%g
20715 s%@ALL_SOURCES@%$ALL_SOURCES%g
20716 s%@GUIDIST@%$GUIDIST%g
20717 s%@PORT_FILES@%$PORT_FILES%g
20718 s%@DISTDIR@%$DISTDIR%g
20719 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
20720 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
20721 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
20722 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
20723 s%@EXTRADEFS@%$EXTRADEFS%g
20724 s%@RESFLAGS@%$RESFLAGS%g
20725 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
20726 s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
20727 s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
20728 s%@LIBWXMACRES@%$LIBWXMACRES%g
20729 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
20730 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
20731 s%@DLLTOOL@%$DLLTOOL%g
20732 s%@AS@%$AS%g
20733 s%@NM@%$NM%g
20734 s%@LD@%$LD%g
20735 s%@MAKEINFO@%$MAKEINFO%g
20736 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
20737 s%@SET_MAKE@%$SET_MAKE%g
20738 s%@subdirs@%$subdirs%g
20739
20740 CEOF
20741 EOF
20742
20743 cat >> $CONFIG_STATUS <<\EOF
20744
20745 # Split the substitutions into bite-sized pieces for seds with
20746 # small command number limits, like on Digital OSF/1 and HP-UX.
20747 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20748 ac_file=1 # Number of current file.
20749 ac_beg=1 # First line for current file.
20750 ac_end=$ac_max_sed_cmds # Line after last line for current file.
20751 ac_more_lines=:
20752 ac_sed_cmds=""
20753 while $ac_more_lines; do
20754 if test $ac_beg -gt 1; then
20755 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20756 else
20757 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20758 fi
20759 if test ! -s conftest.s$ac_file; then
20760 ac_more_lines=false
20761 rm -f conftest.s$ac_file
20762 else
20763 if test -z "$ac_sed_cmds"; then
20764 ac_sed_cmds="sed -f conftest.s$ac_file"
20765 else
20766 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
20767 fi
20768 ac_file=`expr $ac_file + 1`
20769 ac_beg=$ac_end
20770 ac_end=`expr $ac_end + $ac_max_sed_cmds`
20771 fi
20772 done
20773 if test -z "$ac_sed_cmds"; then
20774 ac_sed_cmds=cat
20775 fi
20776 EOF
20777
20778 cat >> $CONFIG_STATUS <<EOF
20779
20780 CONFIG_FILES=\${CONFIG_FILES-"wx-config
20781 src/make.env
20782 src/makeprog.env
20783 src/makelib.env
20784 Makefile
20785 "}
20786 EOF
20787 cat >> $CONFIG_STATUS <<\EOF
20788 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
20789 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20790 case "$ac_file" in
20791 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20792 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20793 *) ac_file_in="${ac_file}.in" ;;
20794 esac
20795
20796 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20797
20798 # Remove last slash and all that follows it. Not all systems have dirname.
20799 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20800 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20801 # The file is in a subdirectory.
20802 test ! -d "$ac_dir" && mkdir "$ac_dir"
20803 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
20804 # A "../" for each directory in $ac_dir_suffix.
20805 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
20806 else
20807 ac_dir_suffix= ac_dots=
20808 fi
20809
20810 case "$ac_given_srcdir" in
20811 .) srcdir=.
20812 if test -z "$ac_dots"; then top_srcdir=.
20813 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20814 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
20815 *) # Relative path.
20816 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20817 top_srcdir="$ac_dots$ac_given_srcdir" ;;
20818 esac
20819
20820 case "$ac_given_INSTALL" in
20821 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20822 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20823 esac
20824
20825 echo creating "$ac_file"
20826 rm -f "$ac_file"
20827 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20828 case "$ac_file" in
20829 *Makefile*) ac_comsub="1i\\
20830 # $configure_input" ;;
20831 *) ac_comsub= ;;
20832 esac
20833
20834 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20835 sed -e "$ac_comsub
20836 s%@configure_input@%$configure_input%g
20837 s%@srcdir@%$srcdir%g
20838 s%@top_srcdir@%$top_srcdir%g
20839 s%@INSTALL@%$INSTALL%g
20840 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20841 fi; done
20842 rm -f conftest.s*
20843
20844 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20845 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20846 #
20847 # ac_d sets the value in "#define NAME VALUE" lines.
20848 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20849 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20850 ac_dC='\3'
20851 ac_dD='%g'
20852 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20853 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20854 ac_uB='\([ ]\)%\1#\2define\3'
20855 ac_uC=' '
20856 ac_uD='\4%g'
20857 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20858 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20859 ac_eB='$%\1#\2define\3'
20860 ac_eC=' '
20861 ac_eD='%g'
20862
20863 if test "${CONFIG_HEADERS+set}" != set; then
20864 EOF
20865 cat >> $CONFIG_STATUS <<EOF
20866 CONFIG_HEADERS="setup.h:setup.h.in"
20867 EOF
20868 cat >> $CONFIG_STATUS <<\EOF
20869 fi
20870 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
20871 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20872 case "$ac_file" in
20873 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20874 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20875 *) ac_file_in="${ac_file}.in" ;;
20876 esac
20877
20878 echo creating $ac_file
20879
20880 rm -f conftest.frag conftest.in conftest.out
20881 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20882 cat $ac_file_inputs > conftest.in
20883
20884 EOF
20885
20886 # Transform confdefs.h into a sed script conftest.vals that substitutes
20887 # the proper values into config.h.in to produce config.h. And first:
20888 # Protect against being on the right side of a sed subst in config.status.
20889 # Protect against being in an unquoted here document in config.status.
20890 rm -f conftest.vals
20891 cat > conftest.hdr <<\EOF
20892 s/[\\&%]/\\&/g
20893 s%[\\$`]%\\&%g
20894 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20895 s%ac_d%ac_u%gp
20896 s%ac_u%ac_e%gp
20897 EOF
20898 sed -n -f conftest.hdr confdefs.h > conftest.vals
20899 rm -f conftest.hdr
20900
20901 # This sed command replaces #undef with comments. This is necessary, for
20902 # example, in the case of _POSIX_SOURCE, which is predefined and required
20903 # on some systems where configure will not decide to define it.
20904 cat >> conftest.vals <<\EOF
20905 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
20906 EOF
20907
20908 # Break up conftest.vals because some shells have a limit on
20909 # the size of here documents, and old seds have small limits too.
20910
20911 rm -f conftest.tail
20912 while :
20913 do
20914 ac_lines=`grep -c . conftest.vals`
20915 # grep -c gives empty output for an empty file on some AIX systems.
20916 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20917 # Write a limited-size here document to conftest.frag.
20918 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20919 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
20920 echo 'CEOF
20921 sed -f conftest.frag conftest.in > conftest.out
20922 rm -f conftest.in
20923 mv conftest.out conftest.in
20924 ' >> $CONFIG_STATUS
20925 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20926 rm -f conftest.vals
20927 mv conftest.tail conftest.vals
20928 done
20929 rm -f conftest.vals
20930
20931 cat >> $CONFIG_STATUS <<\EOF
20932 rm -f conftest.frag conftest.h
20933 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
20934 cat conftest.in >> conftest.h
20935 rm -f conftest.in
20936 if cmp -s $ac_file conftest.h 2>/dev/null; then
20937 echo "$ac_file is unchanged"
20938 rm -f conftest.h
20939 else
20940 # Remove last slash and all that follows it. Not all systems have dirname.
20941 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20942 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20943 # The file is in a subdirectory.
20944 test ! -d "$ac_dir" && mkdir "$ac_dir"
20945 fi
20946 rm -f $ac_file
20947 mv conftest.h $ac_file
20948 fi
20949 fi; done
20950
20951 EOF
20952 cat >> $CONFIG_STATUS <<EOF
20953
20954 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
20955 LN_S="${LN_S}"
20956
20957
20958 EOF
20959 cat >> $CONFIG_STATUS <<\EOF
20960
20961 if test ! -h wx-config; then
20962 chmod +x wx-config
20963 mv wx-config wx${TOOLCHAIN_NAME}-config
20964 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
20965 fi
20966
20967 if test ! -d lib; then
20968 mkdir lib
20969 fi
20970 if test ! -d lib/wx; then
20971 mkdir lib/wx
20972 fi
20973 if test ! -d lib/wx/include; then
20974 mkdir lib/wx/include
20975 fi
20976 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
20977 mkdir lib/wx/include/${TOOLCHAIN_NAME}
20978 fi
20979 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
20980 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
20981 fi
20982 if test -f setup.h; then
20983 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
20984 fi
20985
20986 exit 0
20987 EOF
20988 chmod +x $CONFIG_STATUS
20989 rm -fr confdefs* $ac_clean_files
20990 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
20991
20992 if test "$no_recursion" != yes; then
20993
20994 # Remove --cache-file and --srcdir arguments so they do not pile up.
20995 ac_sub_configure_args=
20996 ac_prev=
20997 for ac_arg in $ac_configure_args; do
20998 if test -n "$ac_prev"; then
20999 ac_prev=
21000 continue
21001 fi
21002 case "$ac_arg" in
21003 -cache-file | --cache-file | --cache-fil | --cache-fi \
21004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21005 ac_prev=cache_file ;;
21006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
21008 ;;
21009 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21010 ac_prev=srcdir ;;
21011 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21012 ;;
21013 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21014 esac
21015 done
21016
21017 for ac_config_dir in demos samples utils contrib; do
21018
21019 # Do not complain, so a configure script can configure whichever
21020 # parts of a large source tree are present.
21021 if test ! -d $srcdir/$ac_config_dir; then
21022 continue
21023 fi
21024
21025 echo configuring in $ac_config_dir
21026
21027 case "$srcdir" in
21028 .) ;;
21029 *)
21030 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21031 else
21032 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21033 fi
21034 ;;
21035 esac
21036
21037 ac_popdir=`pwd`
21038 cd $ac_config_dir
21039
21040 # A "../" for each directory in /$ac_config_dir.
21041 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
21042
21043 case "$srcdir" in
21044 .) # No --srcdir option. We are building in place.
21045 ac_sub_srcdir=$srcdir ;;
21046 /*) # Absolute path.
21047 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21048 *) # Relative path.
21049 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21050 esac
21051
21052 # Check for guested configure; otherwise get Cygnus style configure.
21053 if test -f $ac_sub_srcdir/configure; then
21054 ac_sub_configure=$ac_sub_srcdir/configure
21055 elif test -f $ac_sub_srcdir/configure.in; then
21056 ac_sub_configure=$ac_configure
21057 else
21058 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
21059 ac_sub_configure=
21060 fi
21061
21062 # The recursion is here.
21063 if test -n "$ac_sub_configure"; then
21064
21065 # Make the cache file name correct relative to the subdirectory.
21066 case "$cache_file" in
21067 /*) ac_sub_cache_file=$cache_file ;;
21068 *) # Relative path.
21069 ac_sub_cache_file="$ac_dots$cache_file" ;;
21070 esac
21071 case "$ac_given_INSTALL" in
21072 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21073 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21074 esac
21075
21076 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21077 # The eval makes quoting arguments work.
21078 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21079 then :
21080 else
21081 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21082 fi
21083 fi
21084
21085 cd $ac_popdir
21086 done
21087 fi
21088
21089